在使用Xamarin.forms的时候,引用xamarin.tesseract库,按照文档说明去操作,提示错误,画红线了。
//这个是官方文档使用方法:
//Android
TesseractApi api = new TesseractApi (context, AssetsDeployment.OncePerVersion);
//iOS
TesseractApi api = new TesseractApi ();
await api.Init ("eng");
await api.SetImage("image_path");
string text = api.Text;
//这个是报红线的错误。
TesseractApi api = new TesseractApi(context, AssetsDeployment.OncePerVersion);
await api.Init("eng");
await api.SetImage("image_path");
string text = api.Text;
安装的是这个库:
实际使用中报红线:
这个是解决方案里面的错误提示:
这个是详细的错误描述:
这种情况该如何解决呢?
你把报错复制出来发给我
在 nuget console 执行:
dotnet nuget locals all --clear