QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Richard on January 27, 2021, 01:01:25 am

Title: any OCR QB64 program code available?
Post by: Richard on January 27, 2021, 01:01:25 am
Is there any OCR (Optical Character Recognition) QB64 code (or API's etc) available to extract text from say a .BMP image?

Failing that, any good (free) 3rd party apps?

Prefer use what is available, rather than write code from scratch.
Title: Re: any OCR QB64 program code available?
Post by: SMcNeill on January 27, 2021, 04:41:37 am
You’re a Window’s guy — do you have a copy of OneNote on your PC?  It does OCR, and is free.  https://www.onenote.com/Download

https://support.microsoft.com/en-us/office/copy-text-from-pictures-and-file-printouts-using-ocr-in-onenote-93a70a2f-ebcd-42dc-9f0b-19b09fd775b4
Title: Re: any OCR QB64 program code available?
Post by: Pete on January 27, 2021, 11:25:42 am
Do you guys recall @Ashish came up with a rudimentary routine that do just that, read text from an image. Very cool. I don't think he went forward with making into something completely usable, but maybe he did, and i just missed it. Anyone have the link here, to that?

Pete
Title: Re: any OCR QB64 program code available?
Post by: doppler on January 27, 2021, 01:12:36 pm
@Richard This is the animal you want.  As long as the text is legible and not background distorted works great.  Multi-language capable.

http://capture2text.sourceforge.net/
Title: Re: any OCR QB64 program code available?
Post by: qbkiller101 on January 27, 2021, 01:35:32 pm
Check this out: https://ocr.space/ocrapi
Use curl or something.
Title: Re: any OCR QB64 program code available?
Post by: bplus on January 27, 2021, 01:46:07 pm
I've seen Basic coders working on this, try FreeBasic, Liberty or YABasic  forums (YABASIC still active?)
assuming you want to work your own Basic code.

What, copy/paste from clipboard image maybe?
Title: Re: any OCR QB64 program code available?
Post by: Ashish on February 05, 2021, 09:59:00 pm
As Pete mentioned, I made this for fun :-
https://www.qb64.org/forum/index.php?topic=2470