SWHL
1518e72235
chore: update files
2025-01-20 21:18:56 +08:00
SWHL
c2b409f023
chore: update files
2025-01-19 22:01:25 +08:00
jesse01 and jesse01
0d70e86a08
feat(rapidocr_onnxruntime): 优化单字符坐标及返回单字符置信度 ( #293 )
...
* 1、utils.py:优化单字符坐标计算。根据CTC解码特点,增加每个字符长度列表作为判断条件,一般非中文字符2-3个解码宽度,中文3-4个解码宽度,当某个字符与上一字符距离大于4个解码宽度,表示中间有空白,此时进行字段拆分,这样可以减少文字间空白对坐标计算的影响;同时返回每个字符值信度,以方便应用使用
2、cal_rec_boxes/main.py:
配合返回单字符值信度列表的修改
修改计算单字符宽度的分母为总字符数减1,与分母一致,这样计算出的值更加准确
3.main.py:
修复主程序没有传递命令行参数的问题
* 优化文本行检测优化,当limit_type为max,根据图片大小动态设置limit_side_len,以减少漏检
---------
Co-authored-by: jesse01 <jesse01.163.com>
2024-12-12 09:31:58 +08:00
SWHL
3da032a00e
fix(rapidocr_onnxruntime): fixed issue #288
2024-12-09 09:28:45 +08:00
SWHL
df36c69820
chore: optimze char rec ( #260 )
...
* chore: format code
* chore: format code
* test: update unit tests for different platform
* feat(rapidocr_onnxruntime): optimize code
* feat(rapidocr_onnxruntime): add --return_word_box params of CLI
* chore: update demo
* feat(rapidocr_onnxruntime): update vis of return_word_box
2024-11-19 22:27:18 +08:00
xinyi
2ac3c35a36
feat: char rec(单字识别) ( #254 )
...
* feat: add word spilit for ocr
* chore: rm unnecessary change
* test: fix test error
2024-11-13 09:23:22 +08:00
SWHL
2be4feff82
fix(python): fix incorrect usage of the exists function
2024-11-13 08:25:06 +08:00
Pumpkinor
f7978c650b
chore(rapidocr_onnxruntime): change read_yaml order ( #251 )
...
fisrt check the input args
if the param named 'config_path' exists, use 'config_path' first.
if it is not exists, use the default one named 'DEFAULT_CFG_PATH'
2024-11-13 08:21:20 +08:00
SWHL
c3504c2f7d
chore: Compatible with python 3.7
2024-10-17 22:51:03 +08:00
SWHL
5e1b5ef196
chore: Compatible with python 3.7
2024-10-17 22:47:19 +08:00
SWHL
fd520ffdad
Fix issue 232 ( #235 )
...
* fix(rapidocr_onnxruntime): Fixed padding_h variable before assignment
* feat(rapidocr_onnxruntime): Add resize function
* feat(rapidocr_onnxruntime): Add limit of max_side_len and min_side_len
* tests: Add __init__
2024-10-17 22:24:31 +08:00
SWHL
6b60256ee7
chore: Optimize code structure
2024-09-06 10:13:12 +08:00
SWHL
1de4db0249
refactor(rapidocr_onnxruntime): Refactor the pre-processing code for the det part
2024-06-27 10:02:17 +08:00
SWHL
ac5547345b
refactor(rapidocr_onnxruntime): Add typing annotations of RapidOCR call
2024-06-09 17:01:58 +08:00
SWHL
e7094936a9
refactor(rapidocr_onnxruntime): Add typing annotations and remove invalid code
2024-06-09 16:32:41 +08:00
SWHL
de44841377
refactor(rapidocr_onnxruntime): Decoupling utils.py files
2024-05-18 15:12:10 +08:00
SWHL
182e54ef6d
Fixed issue #161
2024-04-07 09:51:57 +08:00
SWHL
b2349ae4e6
Synchronize PR #151 and set it to openvino and paddle versions.
2024-02-04 17:29:40 +08:00
SWHL
c2b12e51fb
Optimize logic of adding letterbox
2024-02-04 14:18:17 +08:00
LWQ2EDU
3c91804d0f
add letterbox-like resize function in the python api ( #151 )
...
* add letterbox like resize function for exceeds aspect ratio in the python api
* add cli letterbox-like control for python api
* fix det result
2024-02-04 10:24:05 +08:00
Aurora
d05b629a27
Fix get_boxes_img_without_det in the python api ( #150 )
2024-01-30 21:33:36 +08:00
SWHL
b5f8ef31f2
Update VisRes usage in CLI mode.
2023-11-16 09:14:37 +08:00
SWHL
8439c0754d
Optim main function ( #137 )
...
* Optim main function
* Optim main function
* Optim RapidOCR pipeline
2023-11-11 16:10:01 +08:00
SWHL
585708efdd
Add warning tip when skip the det.
2023-10-08 15:32:51 +08:00
SWHL
9551d8bb34
Add to support visisual result under CLI
2023-09-21 16:50:59 +08:00
SWHL
a981e21743
Fixed auto_text_det parameter error
2023-09-20 21:54:49 +08:00
SWHL
8806af16ad
Fixed issue #124
2023-09-20 15:57:16 +08:00
SWHL
6d53213d18
Fixed issue #122
2023-09-20 14:58:25 +08:00