halkar / Tesseract.Xamarin

Tesseract OCR wrapper for Xamarin
MIT License
121 stars 40 forks source link

Init is returning false. #55

Open malikirfan opened 5 years ago

malikirfan commented 5 years ago

Hi @halkar , I am using it in Xamarin Forms application using DependencySevice. In Android, I have added language files in tessdata under Asset but Init is always returning false. I tried language files from your source (https://github.com/halkar/Tesseract.Xamarin/tree/master/Tesseract.Forms.Test/tessdata) and also tried file from (https://github.com/tesseract-ocr/tessdata/blob/master/eng.traineddata) but same result.

In DependencyService implementation class under Android I have something like this TesseractApi api = new TesseractApi(Android.App.Application.Context, AssetsDeployment.OncePerVersion); var isInitialized = await api.Init("eng"); isInitialized is always false. Attach is my solution structure screenshot untitled

halkar commented 5 years ago

Can you share the project?

malikirfan commented 5 years ago

Hi @halkar , Please find complete VS 2017 solution https://drive.google.com/open?id=1uUaSm_ciiK4g8IRobMd_Q9FRzJZ0MLPO. Thank you.

malikirfan commented 5 years ago

Hi @halkar , Any update please.

Thanks

malikirfan commented 5 years ago

Hi @halkar , Is it because ".Net Standard" type not supported?

FloRup commented 5 years ago

I also have this problem. My setup is pretty much the same.

szhengresponsetek commented 2 years ago

I use Xamarin.Tessereact 0.3.4 for Xamrin.forms solution. I got same issue as Malikirfan has Is this problem solved and new version for that?

suvarnnaputhuvail commented 1 year ago

@malikirfan did you solve this issue?