Page 57 of 60

Re: PureBasic Interface to OpenCV

Posted: Thu Nov 12, 2020 9:43 pm
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.

Re: PureBasic Interface to OpenCV

Posted: Thu Dec 17, 2020 5:06 pm
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?

Re: PureBasic Interface to OpenCV

Posted: Thu Dec 17, 2020 5:52 pm
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

Re: PureBasic Interface to OpenCV

Posted: Fri Dec 18, 2020 7:14 am
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\...

Re: PureBasic Interface to OpenCV

Posted: Mon Dec 21, 2020 4:43 pm
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!

Re: PureBasic Interface to OpenCV

Posted: Tue Dec 22, 2020 2:16 am
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.

Re: PureBasic Interface to OpenCV

Posted: Sun Mar 21, 2021 3:46 am
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.

Re: PureBasic Interface to OpenCV

Posted: Tue Mar 23, 2021 1:44 pm
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

Re: PureBasic Interface to OpenCV

Posted: Tue Mar 23, 2021 2:22 pm
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.

Re: PureBasic Interface to OpenCV

Posted: Tue Mar 23, 2021 2:48 pm
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

Re: PureBasic Interface to OpenCV

Posted: Tue Mar 23, 2021 3:29 pm
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

Re: PureBasic Interface to OpenCV

Posted: Fri Mar 26, 2021 7:19 am
by Rings
moved to the announcement section, did not fit perfectly into tips&tricks anymore.

Re: PureBasic Interface to OpenCV

Posted: Fri Mar 26, 2021 1:01 pm
by skywalk
Thanks JHPJHP!
Your work is very appreciated. 8)

Re: PureBasic Interface to OpenCV

Posted: Fri Mar 26, 2021 2:30 pm
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.

Re: PureBasic Interface to OpenCV

Posted: Fri Mar 26, 2021 6:12 pm
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.