Author Topic: any OCR QB64 program code available?  (Read 3323 times)

0 Members and 1 Guest are viewing this topic.

Offline Richard

  • Seasoned Forum Regular
  • Posts: 364
    • View Profile
any OCR QB64 program code available?
« 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.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: any OCR QB64 program code available?
« Reply #1 on: January 27, 2021, 04:41:37 am »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: any OCR QB64 program code available?
« Reply #2 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
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: any OCR QB64 program code available?
« Reply #3 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/

Offline qbkiller101

  • Newbie
  • Posts: 73
    • View Profile
Re: any OCR QB64 program code available?
« Reply #4 on: January 27, 2021, 01:35:32 pm »
Check this out: https://ocr.space/ocrapi
Use curl or something.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: any OCR QB64 program code available?
« Reply #5 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?
« Last Edit: January 27, 2021, 01:47:50 pm by bplus »

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: any OCR QB64 program code available?
« Reply #6 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
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials