It is currently Sun Jun 16, 2019 4:26 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 818 posts ]  Go to page Previous  1 ... 51, 52, 53, 54, 55  Next
Author Message
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Wed Apr 18, 2018 1:02 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 235
Location: Russia
Many thanks, JHPJHP!
And my congratulation to you: more than 2^18 views :)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Apr 19, 2018 3:33 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Hi AAT,

It was good to hear from you again, I hope you are doing well.

---------------------------------------------------

Updated: ( OpenCV 3.3 to OpenCV 3.4.1 )
- World Download: PureBasic Interface to OpenCV :: 32 bit
- World Download: PureBasic Interface to OpenCV :: 64 bit

Other Changes:
- replaced reference files
- removed 3 examples (might be temporary)
- removed MS Runtime DLLs (users with an older version of Windows may need to provide their own)

NB*: The Function cvSaveImage is not working in the World packages; currently I am debugging the C / C++ source scripts.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Mon Apr 23, 2018 10:31 pm, edited 8 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Apr 19, 2018 5:17 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Jun 01, 2012 12:20 am
Posts: 136
Congratulations!

Very usefull work.

May I suggest you link statically c runtimes libraries? This should improve portability.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Wed Apr 25, 2018 4:41 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Hi acreis,

Thank you for your post.

acreis wrote:
May I suggest you link statically c runtimes libraries? This should improve portability.

I removed the runtimes libraries from the Interface because in the latest versions of Windows they're already included.

----------------------------------------------------------

Updated:
- fixed World downloads
- removed Linux and OSX downloads

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Apr 26, 2018 11:19 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Jun 01, 2012 12:20 am
Posts: 136
Thanks for clearing up and the fantastic work.

Cheers


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Wed May 09, 2018 12:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue May 28, 2013 10:51 pm
Posts: 534
Location: Europe
Greetings to all,

regarding Tesseract OCR Engine, has anyone managed:

a) implement new language file? It crashes when I edit

Code:
hAPI = TesseractInit(#PSM_AUTO, #OEM_TESSERACT_ONLY, #PB_Compiler_FilePath + "binaries/tesseract/tessdata", "eng", #Null$)


with new language file

b) read anything except perfect demo picture JHPJHP included?

I get whole mess even with PDF->JPEG of english files, text only, let alone something more "mushy".

Which parameters should I play with?

B

_________________
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Wed May 09, 2018 2:49 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Hi bbanelli,

a. See the following post: http://www.purebasic.fr/english/viewtopic.php?p=518127#p518127
b. Please post a link to a test JPG / PDF that produces the inaccurate results

NB*: At some point I will probably update the packages with the latest version of the Tesseract binaries.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun May 13, 2018 7:55 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue May 28, 2013 10:51 pm
Posts: 534
Location: Europe
JHPJHP wrote:

Thanks. This version, however, for my language (Croatian) is almost 4 times (~4MB) smaller than latest (~18MB).

Obviously there has been tremendous advancement in Tesseract during time...

Quote:
b. Please post a link to a test JPG / PDF that produces the inaccurate results
Can I send it on your PM?

Quote:
NB*: At some point I will probably update the packages with the latest version of the Tesseract binaries.
It seems that Tesseract is quite mature now; I will make sure to post my own code if relevant so I can add to community since I plan to embed this engine to larger scale software of mine...

Thank you for all your hard work so far!

With my best,

Bruno

_________________
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sat May 19, 2018 2:22 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Hi bbanelli,

If the following does not help, send me a PM with a test file.

See the following post by Lunasole (newer binaries), the Tesseract include file was based on his original work.
- http://www.purebasic.fr/english/viewtopic.php?f=12&t=66231&hilit=tesseract
- http://geocities.ws/lunasole/data/_sources/tesseract/l

Which OpenCV example did you test your file against?
- cv_OCR_confidence.pb should provide the best results

NB*: All OCR examples were created by AAT, with only small modifications by me.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun May 27, 2018 4:38 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Updated:
- renamed 1 example
-- pb_GL_photo_cube.pb to pb_GL_photo_cube_triangle.pb
- modified 2 examples:
-- cv_pixel_spread.pb
-- pb_GL_photo_cube_triangle.pb
- added 1 example
-- cv_webcam_pixel_spread.pb

NB*: Added DPI awareness for all relevant Windows examples: SetProcessDpiAwarenessContext.

---------------------------------------------------------------

Updated:
- Linux & OSX downloads available again from the first post
-- upgraded libraries from v2.4.13.3 to v2.4.13.6

NB*: Currently there is an OpenCV Interface conflict in Linux with UseJPEGImageDecoder() and UseJPEGImageEncoder() Functions.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun May 27, 2018 11:42 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 235
Location: Russia
Hi, JHPJHP!
I'm grateful to you for continuing to work on the package!

I upgraded the package of Tesseract OCR libraries to version 3.5.1. It works but I did not see better results compared to version 3.0.2. Libraries became larger, and they became larger in size.
I checked the work with all the examples from the package.

Download: http://rgho.st/7zcgMxVHm will be available for 90 days.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon May 28, 2018 3:35 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Hi AAT,

AAT wrote:
I upgraded the package of Tesseract OCR libraries to version 3.5.1.

That's great, there has been some interest in the past few months concerning the OCR examples in conjunction with newer binaries.

Because of the additional dependencies, I am reluctant to replace the current binaries, at least for now.

NB*: If you still have the sources available, can you please compile and post a link to a 64 bit package of Tesseract OCR binaries and dependencies.

------------------------------------------------

Updated:
- Linux packages have been updated with some minor improvements; see the first post for download links.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon May 28, 2018 2:58 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 235
Location: Russia
Hi. JHPJHP!

Sorry, I did not compile the tesseract, I took the compiled dlls and for them I got the lib files using polib
I took dlls here: https://digi.bib.uni-mannheim.de/tesseract/

bat file:
Code:
polib libtesseract-3.dll /machine:ix86 /out:libtesseract-3.lib
polib liblept-5.dll /machine:ix86 /out:liblept-5.lib
polib libgif-4.dll /machine:ix86 /out:libgif-4.lib
polib libpng16-16.dll /machine:ix86 /out:libpng16-16.lib
polib libjpeg-8.dll /machine:ix86 /out:libjpeg-8.lib
polib libopenjp2.dll /machine:ix86 /out:libopenjp2.lib
polib zlib1.dll /machine:ix86 /out:zlib1.lib
polib libtiff-5.dll /machine:ix86 /out:libtiff-5.lib
polib libjbig-2.dll /machine:ix86 /out:libjbig-2.lib
polib liblzma-5.dll /machine:ix86 /out:liblzma-5.lib
polib libwebp-5.dll /machine:ix86 /out:libwebp-5.lib
polib libstdc++-6.dll /machine:ix86 /out:libstdc++-6.lib


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Wed Aug 08, 2018 6:04 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Updated:
- some minor changes to various examples
- added Constants to the Main and World packages

Walking the binaries from the latest OpenCV release revealed additional Functions...

Windows (world):
- added 4 Functions
Code:
cvCreateFileCaptureWithPreference(filename.p-ascii, apiPreference)
cvGetWindowImageRect(name.p-ascii)
cvSetTrackbarMin(trackbar_name.p-ascii, window_name.p-ascii, minval)
cvWriteRawDataBase64(*fs, *src, len, dt.p-ascii)

Windows / Linux / OSX (main):
- 155 Legacy Functions (not added)

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun Dec 09, 2018 5:35 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1567
Updated:
- some minor changes to various examples
- replaced all the Windows binaries (versions have not changed) *

* Rebuilt the binaries after upgrading to Visual Studio 2017 from 2013. In addition, CMake was upgraded to the latest release.

NB*: No sooner after moving to 2017, Visual Studio 2019 Preview comes available.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 818 posts ]  Go to page Previous  1 ... 51, 52, 53, 54, 55  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye