kfrancis / ocr

A plugin to provide the ability to do simple text from image OCR using nothing but platform APIs.
MIT License
106 stars 5 forks source link

Android Identifying Chinese garbled characters #3

Open CHENJKNB opened 5 months ago

CHENJKNB commented 5 months ago

hello
MAUI Android Identifying Chinese garbled characters, But there is no garbled code on the PC 。Thks. image image

kfrancis commented 5 months ago

I don't have access to much in the way of other language text, but feel free to look if there's something that can be improved. Always happy to take pull requests. I know for Android, there are a few language-specific models (like Xamarin.Google.MLKit.TextRecognition.Chinese) but I haven't had much chance to play around with how those dependencies might be brought in when needed.

5118234 commented 1 month ago

hello MAUI Android Identifying Chinese garbled characters, But there is no garbled code on the PC 。Thks. image image

change source code , replace TextRecognizerOptions.Builder() to ChineseTextRecognizerOptions.Builder() , add using Xamarin.Google.MLKit.Vision.Text.Chinese;

kfrancis commented 1 month ago

I don't have a good way yet to handle this. Any ideas? Feel free to submit an idea and eventually a pull request.

What I don't want is for someone who mainly expects English to have to pull in dependencies that they don't need, so I could see language-specific nuget packages or something .. ?