PureBasic Interface to OpenCV

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi JGarcia,

Sorry to hear that you are having trouble retrieving your Access Key.

Please refer to the Private Message I sent you; we can continue to resolve the issue from there.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
kinglestat
Enthusiast
Enthusiast
Posts: 732
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Re: PureBasic Interface to OpenCV

Post by kinglestat »

Hi. I mainly want to use openCV for the tessaract interface. I am having difficulties regarding OCR in that easy to OCR things don't get recognized
I am talking about screen text. When using commandline version recogniziton is perfect; the only difference I can see is that with your interface the library (tessdata) does not get used.
When I do try to use it by

Code: Select all

hAPI = TesseractInit(#PSM_AUTO, #OEM_TESSERACT_CUBE_COMBINED, "R:\Temp\binaries\tesseract\tessdata", "eng", #Null$)
code crashes on recogniztion

could you please help?
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi kinglestat,

See if the following post and corresponding answer resolves your issue:
http://forums.purebasic.com/english/vie ... ed#p543670

Data Files for Version 3.02 (scroll to the correct section)
https://github.com/tesseract-ocr/tessdo ... ersion-302

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
AAT
Enthusiast
Enthusiast
Posts: 253
Joined: Sun Jun 15, 2008 3:13 am
Location: Russia

Re: PureBasic Interface to OpenCV

Post by AAT »

Hi, JHPJHP!
Glad to see you again here! :D

Hi kinglestat.
you should replace
#OEM_TESSERACT_CUBE_COMBINED
with
#OEM_TESSERACT_ONLY

or download the "Data Files for Version 3.02" from the link gived you by JHPJHP and place everything including *cube.* in your folder "R:\Temp\...
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi AAT,

Very good to hear from you as well.

I don't know why we bother answering posts anymore, more then half of the time we don't get a response much less a thank you; one of the reasons why I now answer posts so infrequently.

Anyways, take care, hope this post finds you and your family happy and healthy.

Least I forget, Merry Christmas & Happy New Year!

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
AAT
Enthusiast
Enthusiast
Posts: 253
Joined: Sun Jun 15, 2008 3:13 am
Location: Russia

Re: PureBasic Interface to OpenCV

Post by AAT »

Hi, JHPJHP

Merry Christmas and Happy New Year, my friend! :D
Take care about your health!

P.S. Yes, there are few responses and few thanks. I thought about it. I will do the same as you, probably.
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Updated (all Windows packages):
- removed DPI Aware compiler option
- applied some minor improvements to various examples

Removed DPI Aware
While testing examples I found that some of the returned results were not as accurate as when they were first written.
This only occurred in examples where calculating the screen size was a factor. Instead of figuring out what examples this applied to, it was easier to just remove the option.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
wro
New User
New User
Posts: 2
Joined: Tue Mar 23, 2021 1:19 pm

Re: PureBasic Interface to OpenCV

Post by wro »

Hello,

everything went fine getting access to the opencv packages.
Absolutely outstanding work done by JHPJHP.

One question: The readme states, "TESTED ( PureBasic 5.24 - 5.62 )".
So, do I have to install 5.62 or is it possible to use the actual PB 5.73
without any drawbacks?

Please advise

Regards wro
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi wro,

Sorry, the readme files have been updated... all packages have been tested with the latest version of PureBasic (5.73 LTS x86/x64).

NOTE: At the top of each example is a description with basic instructions.

NB*: Various small updates occurred yesterday, mainly to some webcam and video examples.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
wro
New User
New User
Posts: 2
Joined: Tue Mar 23, 2021 1:19 pm

Re: PureBasic Interface to OpenCV

Post by wro »

Hello JHPJHP,

faster than lightning...
Many thanks for your fast response.
So everything ready to get started.

Thank you again and regards

wro
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi All,

As was mentioned in my previous post to wro, at the top of every example is a brief description and basic instructions.
I am writing this post because those instructions are not always clear; here is just one of 250+ examples...

cv_transparent_1.pb
1. Mark the part of the image you want to extract.
2. Mark the exclusions.
3. Press the Spacebar to initiate the Watershed algorithm.
4. Double-click the part of the image you want extracted.
.. Press the Spacebar again if you want to mark additional parts of the image or add exclusions; repeat steps 1 - 4.

NB*: Right-mouse-click image (context menu) to save as transparent PNG or open another image.

Animation created using Video Snipping Tool
Image

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Rings
Moderator
Moderator
Posts: 1403
Joined: Sat Apr 26, 2003 1:11 am

Re: PureBasic Interface to OpenCV

Post by Rings »

moved to the announcement section, did not fit perfectly into tips&tricks anymore.
SPAMINATOR NR.1
User avatar
skywalk
Addict
Addict
Posts: 3554
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic Interface to OpenCV

Post by skywalk »

Thanks JHPJHP!
Your work is very appreciated. 8)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
JHPJHP
Addict
Addict
Posts: 1847
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: PureBasic Interface to OpenCV

Post by JHPJHP »

Hi skywalk,

Thank you for your post, your comment was very much appreciated.

I think I'm going to like my new home, it's less competitive and the view is to die for.

Just waiting for the rest of my belongings to be delivered.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
skywalk
Addict
Addict
Posts: 3554
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic Interface to OpenCV

Post by skywalk »

Ha!
I am still in the rat race. Inflated home prices and overall cost of living.
But, it is good to have a view too. Mine is a muddy river with beaver and muskrat and the usual water fowl.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply