当前位置:网站首页>Solve the problem of inconsistent prediction effect between text detection training model and information model based on paddleocr
Solve the problem of inconsistent prediction effect between text detection training model and information model based on paddleocr
2022-07-19 05:18:00 【Tomato expert】
Purpose
There are many such problems , Most of the problems are trained model Preprocessing during prediction 、 Post processing parameters and inference model Preprocessing during prediction 、 Caused by inconsistent post-processing parameters . official DBnet The detection model provides yml When the file is self training, it needs to be modified accordingly to train the model .
solve
One 、 Adjust according to official instructions
The official part also explains :PaddleOCR/detection.md at release/2.5 · PaddlePaddle/PaddleOCR (github.com)

According to the code of the official website deployment prediction model ,yml The configuration is as follows
- DetResizeForTest:
limit_side_len: 960
limit_type: maxTwo 、 Adjust after self-test
Training bank card 、 license plate number 、 ID card and other text detection models , According to the above configuration, the actual training effect is not good , By fixing the size of the picture, the effect is very good , Modified as follows :
1、 modify yml file
- DetResizeForTest:
resize_long: 9602、tools/infer/utility.py Add the following parameters to the file

3、tools/infer/predict_det.py The document is modified as follows

4、 Other documents : Modify the deployment forecast file , With hubserving Deployment as an example :
deploy/hubserving/ocr_system/params.py

summary
The above modification effect , You can check my previous articles Bank card 、 license plate number 、 Id card Text detection training results , It is much better than the general text detection model in the vertical effect .
边栏推荐
- <script>标签内容详解
- Flex弹性布局
- 微信小程序wx.setClipboardData复制文本
- LeetCode53. 最大子数组和
- IText modify PDF Text
- STL容器——set集合的应用
- (elaborate) ES6 remaining parameters, ES6 built-in objects, template string content (detailed example Dictionary) and practical cases of flexible use of the project
- 多功能(实现)封装函数
- Two JS methods of rolling wheel loading and modal box dragging
- Bi design: distributed high concurrency epidemic prevention health management system based on vue+socket+redis
猜你喜欢
随机推荐
(elaborate) ES6 remaining parameters, ES6 built-in objects, template string content (detailed example Dictionary) and practical cases of flexible use of the project
云服务器部署WEB项目
es6新增-Symbol数据类型
微信小程序 学习笔记
MySQL optimization
Using JS to realize the second level menu of anjuke and the full version (demonstration of precautions and problem points)
Submit the uniapp form (input, radio, picker) to get the parameter value
OpenDDS的QoS和自定义QoS(校时TimingQosPolicy)
Cesium bind mouse events and remove mouse events
实习项目3-更改所有者
es6新增-数组/对象的解构赋值
Wechat applet cloud development and use method-1
cookie是否有效时间限定?如何设置cookie?手把手教你设置
Two methods of rotation chart and automatic rotation
【Es6】详细解说Set ,Array的常用对象及其他方法(完整版)
Es6 真实案例解构(多维数组对象)全新案例:
【C语言—零基础第六课】输入输出语句格式与复合语句
实习项目2-主页配置-我的数据模块
Applet cloud development upload pictures to cloud storage
Bi design: distributed high concurrency epidemic prevention health management system based on vue+socket+redis









