1 Star 0 Fork 0

陈国辉 / chineseocr_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.py 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
ouyanghuiyu 提交于 2020-08-21 09:46 . update model file
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'
1
https://gitee.com/cgh_chen/chineseocr_lite.git
git@gitee.com:cgh_chen/chineseocr_lite.git
cgh_chen
chineseocr_lite
chineseocr_lite
onnx

搜索帮助