This library will extract text from images via OCR.
Requirements:
1- B4A 3.82.
2- Get an API Key HERE (you need to create an account).
3- Internet connection.
How to install:
- Copy the OCR.jar and OCR.xml to your additional libraries directory.
Usage:
That's it.
You can upload an image or reference one via a URL, the service will return the extracted text (if any).
NOTES:
- OCR is not perfect, so, expect some weird results or no results at all.
- It is a free service but some quotas apply.
For more details, see the attached project.
Requirements:
1- B4A 3.82.
2- Get an API Key HERE (you need to create an account).
3- Internet connection.
How to install:
- Copy the OCR.jar and OCR.xml to your additional libraries directory.
Usage:
B4X:
Private myOCR As OCR
myOCR.Initialize(Me, "myOCR", "<YOUR_API_KEY>")
myOCR.ExtractFromImage(File.Combine(File.DirAssets, "sample.gif"), "", "scene", 20000)
That's it.
You can upload an image or reference one via a URL, the service will return the extracted text (if any).
NOTES:
- OCR is not perfect, so, expect some weird results or no results at all.
- It is a free service but some quotas apply.
For more details, see the attached project.
Attachments
Last edited: