DayBreak-u / chineseocr_lite

超轻量级中文ocr,支持竖排文字识别, 支持ncnn、mnn、tnn推理 ( dbnet(1.8M) + crnn(2.5M) + anglenet(378KB)) 总模型仅4.7M
GNU General Public License v2.0
11.72k stars 2.25k forks source link

能否支持linux版本 #419

Open haifding opened 2 years ago

haifding commented 2 years ago

.net core3.1、NET6 程序会放到 CentOS7.9上面去运行。现在windows可以正常使用 , linux服务上报错

=======message=======The type initializer for 'Emgu.CV.CvInvoke' threw an exception.| at Emgu.CV.CvInvoke.Imread(String filename, ImreadModes loadType) at OcrLiteLib.OcrLite.Detect(String img, Int32 padding, Int32 imgResize, Single boxScoreThresh, Single boxThresh, Single unClipRatio, Boolean doAngle, Boolean mostAngle) at NetModular.Module.Scrm.Web.Controllers.FansAccountController.ceshitupian() in D:\Program Files\Jenkins.jenkins\workspace\Dev-FishScrm-API\src\Web\Controllers\FansAccountController.cs:line 177

benjaminwan commented 2 years ago

一般linux的bin或dll都需要本机编译。如果nuget上面没有提供对应的版本,那就没办法了。