Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
6d025b49
"vscode:/vscode.git/clone" did not exist on "d36a929b27008ee1dfaeddb9fc3d1a3de87f9890"
Unverified
Commit
6d025b49
authored
Apr 24, 2022
by
zhoujun
Committed by
GitHub
Apr 24, 2022
Browse files
Merge pull request #6046 from WenmuZhou/cpp_infer1
update win doc
parents
95ac9c0e
57e18221
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
deploy/cpp_infer/docs/imgs/result.jpg
deploy/cpp_infer/docs/imgs/result.jpg
+0
-0
deploy/cpp_infer/docs/imgs/result.png
deploy/cpp_infer/docs/imgs/result.png
+0
-0
deploy/cpp_infer/docs/windows_vs2019_build.md
deploy/cpp_infer/docs/windows_vs2019_build.md
+5
-4
No files found.
deploy/cpp_infer/docs/imgs/result.jpg
0 → 100644
View file @
6d025b49
791 KB
deploy/cpp_infer/docs/imgs/result.png
deleted
100644 → 0
View file @
95ac9c0e
352 KB
deploy/cpp_infer/docs/windows_vs2019_build.md
View file @
6d025b49
...
...
@@ -70,7 +70,7 @@ cmake安装完后后系统里会有一个cmake-gui程序,打开cmake-gui,在
*
cpu版本,仅需考虑OPENCV_DIR、OpenCV_DIR、PADDLE_LIB三个参数
-
OPENCV_DIR:填写opencv lib文件夹所在位置
-
OpenCV_DIR:同填写opencv lib文件夹所在位
-
OpenCV_DIR:同填写opencv lib文件夹所在位
置
-
PADDLE_LIB:paddle_inference文件夹所在位置
*
GPU版本,在cpu版本的基础上,还需填写以下变量
...
...
@@ -78,7 +78,7 @@ CUDA_LIB、CUDNN_LIB、TENSORRT_DIR、WITH_GPU、WITH_TENSORRT
-
CUDA_LIB: CUDA地址,如
`C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\lib\x64`
-
CUDNN_LIB: 和CUDA_LIB一致
-
TENSORRT_DIR:TRT下载后解压缩的位置
-
TENSORRT_DIR:TRT下载后解压缩的位置
,如
`D:\TensorRT-8.0.1.6`
-
WITH_GPU: 打钩
-
WITH_TENSORRT:打勾
...
...
@@ -110,10 +110,11 @@ CUDA_LIB、CUDNN_LIB、TENSORRT_DIR、WITH_GPU、WITH_TENSORRT
运行之前,将下面文件拷贝到
`build/Release/`
文件夹下
1.
`paddle_inference/paddle/lib/paddle_inference.dll`
2.
`opencv/build/x64/vc15/bin/opencv_world455.dll`
3.
如果使用openblas版本的预测库还需要拷贝
`paddle_inference/third_party/install/openblas/lib/openblas.dll`
### Step4: 预测
上述
`Visual Studio 2019`
编译产出的可执行文件在
`
out\
build
\x64-
Release
\Release
`
目录下,打开
`cmd`
,并切换到
`D:\projects\cpp\PaddleOCR\deploy\cpp_infer\`:
上述
`Visual Studio 2019`
编译产出的可执行文件在
`build
/
Release
/
`
目录下,打开
`cmd`
,并切换到
`D:\projects\cpp\PaddleOCR\deploy\cpp_infer\`:
```
cd /d D:\projects\cpp\PaddleOCR\deploy\cpp_infer
...
...
@@ -128,7 +129,7 @@ CHCP 65001
```
识别结果如下


## FAQ
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment