Jul 29, 2014 Replies: 21 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: Code: 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 OCR_Sample_Project.zip OCR_Sample_Project.zip 22.8 KB · Views: 1,073 OCR_Library_1.2.zip OCR_Library_1.2.zip 7.6 KB · Views: 1,146 Last edited: Aug 6, 2014 Click to expand...
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: Code: 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.
A angel Member Licensed User Longtime User Dec 22, 2018 #21 Hello When start get this error Code: Private myOCR As OCR myOCR.Initialize(Me, "myOCR", "<6a5bb8d9-e85d-46b5-b1b1-202ae15e0f10>") myOCR.ExtractFromImage(File.Combine(File.DirAssets, "sample.gif"), "", "scene", 20000) Thanks For more details, see the attached project.[/QUOTE] Attachments Screenshot_2018-12-22-11-31-49-1831964341.png 167 KB · Views: 701
Hello When start get this error Code: Private myOCR As OCR myOCR.Initialize(Me, "myOCR", "<6a5bb8d9-e85d-46b5-b1b1-202ae15e0f10>") myOCR.ExtractFromImage(File.Combine(File.DirAssets, "sample.gif"), "", "scene", 20000) Thanks For more details, see the attached project.[/QUOTE]
A Almog Active Member Licensed User Dec 22, 2018 #22 angel said: Hello When start get this error Code: Private myOCR As OCR myOCR.Initialize(Me, "myOCR", "<6a5bb8d9-e85d-46b5-b1b1-202ae15e0f10>") myOCR.ExtractFromImage(File.Combine(File.DirAssets, "sample.gif"), "", "scene", 20000) Thanks For more details, see the attached project. Click to expand... [/QUOTE] Maybe try without < and > , but for me the same error happened today even without <>...
angel said: Hello When start get this error Code: Private myOCR As OCR myOCR.Initialize(Me, "myOCR", "<6a5bb8d9-e85d-46b5-b1b1-202ae15e0f10>") myOCR.ExtractFromImage(File.Combine(File.DirAssets, "sample.gif"), "", "scene", 20000) Thanks For more details, see the attached project. Click to expand... [/QUOTE] Maybe try without < and > , but for me the same error happened today even without <>...