Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
c8aa6d03
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1528
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c8aa6d03
编写于
8月 10, 2021
作者:
M
MissPenguin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
4a182a89
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
22 deletion
+9
-22
deploy/cpp_infer/CMakeLists.txt
deploy/cpp_infer/CMakeLists.txt
+0
-2
deploy/cpp_infer/CMakeLists_det.txt
deploy/cpp_infer/CMakeLists_det.txt
+0
-2
deploy/cpp_infer/CMakeLists_rec.txt
deploy/cpp_infer/CMakeLists_rec.txt
+0
-2
deploy/cpp_infer/CMakeLists_system.txt
deploy/cpp_infer/CMakeLists_system.txt
+0
-2
deploy/cpp_infer/include/ocr_det.h
deploy/cpp_infer/include/ocr_det.h
+9
-14
未找到文件。
deploy/cpp_infer/CMakeLists.txt
浏览文件 @
c8aa6d03
...
...
@@ -38,10 +38,8 @@ endif()
if
(
WIN32
)
include_directories
(
"
${
PADDLE_LIB
}
/paddle/fluid/inference"
)
include_directories
(
"
${
PADDLE_LIB
}
/paddle/include"
)
link_directories
(
"
${
PADDLE_LIB
}
/paddle/lib"
)
link_directories
(
"
${
PADDLE_LIB
}
/paddle/fluid/inference"
)
find_package
(
OpenCV REQUIRED PATHS
${
OPENCV_DIR
}
/build/ NO_DEFAULT_PATH
)
else
()
...
...
deploy/cpp_infer/CMakeLists_det.txt
浏览文件 @
c8aa6d03
...
...
@@ -38,10 +38,8 @@ endif()
if (WIN32)
include_directories("${PADDLE_LIB}/paddle/fluid/inference")
include_directories("${PADDLE_LIB}/paddle/include")
link_directories("${PADDLE_LIB}/paddle/lib")
link_directories("${PADDLE_LIB}/paddle/fluid/inference")
find_package(OpenCV REQUIRED PATHS ${OPENCV_DIR}/build/ NO_DEFAULT_PATH)
else ()
...
...
deploy/cpp_infer/CMakeLists_rec.txt
浏览文件 @
c8aa6d03
...
...
@@ -38,10 +38,8 @@ endif()
if (WIN32)
include_directories("${PADDLE_LIB}/paddle/fluid/inference")
include_directories("${PADDLE_LIB}/paddle/include")
link_directories("${PADDLE_LIB}/paddle/lib")
link_directories("${PADDLE_LIB}/paddle/fluid/inference")
find_package(OpenCV REQUIRED PATHS ${OPENCV_DIR}/build/ NO_DEFAULT_PATH)
else ()
...
...
deploy/cpp_infer/CMakeLists_system.txt
浏览文件 @
c8aa6d03
...
...
@@ -38,10 +38,8 @@ endif()
if (WIN32)
include_directories("${PADDLE_LIB}/paddle/fluid/inference")
include_directories("${PADDLE_LIB}/paddle/include")
link_directories("${PADDLE_LIB}/paddle/lib")
link_directories("${PADDLE_LIB}/paddle/fluid/inference")
find_package(OpenCV REQUIRED PATHS ${OPENCV_DIR}/build/ NO_DEFAULT_PATH)
else ()
...
...
deploy/cpp_infer/include/ocr_det.h
浏览文件 @
c8aa6d03
...
...
@@ -38,20 +38,15 @@ namespace PaddleOCR {
class
DBDetector
{
public:
explicit
DBDetector
(
const
std
::
string
&
model_dir
,
const
bool
&
use_gpu
=
false
,
const
int
&
gpu_id
=
0
,
const
int
&
gpu_mem
=
4000
,
const
int
&
cpu_math_library_num_threads
=
1
,
const
bool
&
use_mkldnn
=
false
,
const
int
&
max_side_len
=
960
,
const
double
&
det_db_thresh
=
0.3
,
const
double
&
det_db_box_thresh
=
0.5
,
const
double
&
det_db_unclip_ratio
=
2.0
,
const
bool
&
use_polygon_score
=
false
,
const
bool
&
visualize
=
false
,
const
bool
&
use_tensorrt
=
false
,
const
bool
&
use_fp16
=
false
)
{
explicit
DBDetector
(
const
std
::
string
&
model_dir
,
const
bool
&
use_gpu
,
const
int
&
gpu_id
,
const
int
&
gpu_mem
,
const
int
&
cpu_math_library_num_threads
,
const
bool
&
use_mkldnn
,
const
int
&
max_side_len
,
const
double
&
det_db_thresh
,
const
double
&
det_db_box_thresh
,
const
double
&
det_db_unclip_ratio
,
const
bool
&
use_polygon_score
,
const
bool
&
visualize
,
const
bool
&
use_tensorrt
,
const
bool
&
use_fp16
)
{
this
->
use_gpu_
=
use_gpu
;
this
->
gpu_id_
=
gpu_id
;
this
->
gpu_mem_
=
gpu_mem
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录