chineseocr_lite icon indicating copy to clipboard operation
chineseocr_lite copied to clipboard

为什么我整的golang版本的识别精度不如C#版本的?

Open tx7do opened this issue 2 years ago • 3 comments

系统: WSL Ubuntu Onnx Runtime 1.14.0 OpenCV 4.2.0

首先,我提取出来cpp_project为:https://github.com/tx7do/cppocrlite; 然后,我通过cgo,封装成了golang版本:https://github.com/tx7do/go-chineseocr-lite。

然后,我运行demo图片,图1的歌词,它把“檐”识别成了“糖”。竖版的结果更是令人奔溃。

谁能解答我的疑惑么?

tx7do avatar Feb 15 '23 15:02 tx7do

可以尝试调节unClipRatio参数,把框增大点

benjaminwan avatar Feb 16 '23 04:02 benjaminwan

可以尝试调节unClipRatio参数,把框增大点

可是,我跟C#的一样都是设置的unClipRatio=2.0呢。

tx7do avatar Feb 16 '23 06:02 tx7do

刚刚试了下,unClipRatio=2.5。2.jpg识别正常。

tx7do avatar Feb 16 '23 07:02 tx7do