2 Star 2 Fork 2

os-lee / chineseocr_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.py 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
lixingyu 提交于 2023-07-10 16:38 . init
import os
filt_path = os.path.abspath(__file__)
father_path = os.path.abspath(os.path.dirname(filt_path) + os.path.sep + ".")
# dbnet 参数
dbnet_max_size = 6000 #长边最大长度
pad_size = 0 #检测是pad尺寸,有些文档文字充满整个屏幕检测有误,需要pad
# crnn参数
crnn_lite = True
model_path = os.path.join(father_path, "models/dbnet.onnx")
is_rgb = True
crnn_model_path = os.path.join(father_path, "models/crnn_lite_lstm.onnx")
# angle
angle_detect = True
angle_detect_num = 30
angle_net_path = os.path.join(father_path, "models/angle_net.onnx")
max_post_time = 100 # ip 访问最大次数
from crnn.keys import alphabetChinese as alphabet
white_ips = [] #白名单
version = 'api/v1'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/os_lee/chineseocr_lite.git
git@gitee.com:os_lee/chineseocr_lite.git
os_lee
chineseocr_lite
chineseocr_lite
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891