breezedeus / CnSTD

CnSTD: 基于 PyTorch/MXNet 的 中文/英文 场景文字检测(Scene Text Detection)、数学公式检测(Mathematical Formula Detection, MFD)、篇章分析(Layout Analysis)的Python3 包
https://www.breezedeus.com/article/cnocr
Apache License 2.0
658 stars 101 forks source link

README.md 文档上有个错误 #34

Closed tdouguo closed 2 years ago

tdouguo commented 2 years ago

from cnstd import CnStd from cnocr import CnOcr

std = CnStd() cn_ocr = CnOcr()

box_infos = std.detect('examples/taobao.jpg')

for box_info in box_infos['detected_texts']: cropped_img = box_info['cropped_img'] ocr_res = cn_ocr.ocr_for_single_line(cropped_img) print('ocr result: %s' % str(ocr_out))

ocr_out变量没有 和pring的时候应该是 使用的 ocr_res 变量吧