It is currently Fri Nov 27, 2020 3:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 841 posts ]  Go to page Previous  1 ... 53, 54, 55, 56, 57  Next
Author Message
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun May 31, 2020 11:07 am 
Offline
Enthusiast
Enthusiast

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

I think it will be more compact code using OpenCV (but more dlls).

P.S. I deleted my message so that it no interferes with your news. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sun May 31, 2020 5:34 pm 
Offline
Addict
Addict
User avatar

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

AAT wrote:
I think it will be more compact code using OpenCV (but more dlls).

I was more referring to automation; instead or in addition to the user adding points to create Vector Curves, the process could be automated.

See animated GIF below (created using Video Snipping Tool):
1. Downloaded a detailed image to be used as a template for our Vector Curves.
2. Opened the existing OpenCV example making a single change to the code.
3. Opened the previously downloaded image; all points were ready to be processed or turned into Bezier Curves.

Image

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Wed Jul 15, 2020 8:35 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon Jun 01, 2020 9:57 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 243
Location: Russia
JHPJHP, you are wizard!
Оne motion of a magic wand and voila... :D


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon Jun 01, 2020 12:36 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 619
Location: Belgium
Hello JHPJHP,

Nice to have you back here ...

For my new robot, I did something totaly out of my budget,
I just brought a LattePanda alpha with Win 10 pro installed.
So, now (at last) I have the best/fast processor card to run PB and my robot ...

Finely I like to start and install all the needed software on this board.

Q1)
What is the minimum software I need to install to run your Open_CV with PB 5.72 LST x64,
I want to use 2 camera's for obstacles detection (red soda cans).

Q2)
Do you have any experience for what camera to use ?

greetings,
marc

_________________
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon Jun 01, 2020 4:39 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6261
Location: Wales, UK
Hi Marc

Are you familiar with DF Robot?

https://www.dfrobot.com

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon Jun 01, 2020 9:10 pm 
Offline
Addict
Addict
User avatar

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

AAT wrote:
JHPJHP, you are wizard!

Thank you... if/when I find the time, I'll craft :) together something to better showcase what I am envisioning.

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

Hi marc_256,

Thank you. I was hoping to hear that you were able to merge your robotics with PureBasic. Congratulations :!:

Deciding on which algorithms you require will determine which DLL's you need; no installation required.

The basic requirements for the webcam are:
- opencv_core2413.dll, opencv_core2413.lib
- opencv_highgui2413.dll, opencv_highgui2413.lib
- opencv_imgproc2413.dll, opencv_imgproc2413.lib

Any relatively new webcams will work. It's more about how well you write your code that will determine the accuracy and speed for identifying objects.

Good luck, and if you need any help with the code or just deciding the best algorithms, drop me a post.

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Mon Jun 01, 2020 10:24 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2010 10:16 am
Posts: 619
Location: Belgium
Hi IdeasVacuum,
Well, this is my first attempt to do something with the LATTEPANDA Alpha ...
I ordered the LATTE and the 10" IPS SCREEN (1280*800 px) on a local shop.
I sended a mail some weeks ago to DFROBOT, and I'm still waiting for an answer ???

Hello JHPJHP,
Thanks for your info,
and yes I gone need a lot of help here :( :?
I just started today so, ...

thanks
marc,

_________________
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Sep 10, 2020 10:11 pm 
Offline
New User
New User

Joined: Mon Jul 01, 2013 11:24 pm
Posts: 5
Hi,
i just found this interesting topic and that might be interesting.
I would like to save images from a webcam and then analyze them in order to implement a kind of target tracking.
Is that possible with it?

Unfortunately I have not been able to test the program so far because the download does not work!

greetings

wolfgang


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Fri Sep 11, 2020 3:58 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 243
Location: Russia
derschutzhund wrote:
I would like to save images from a webcam and then analyze them in order to implement a kind of target tracking.
Is that possible with it?

Hi derschutzhund.
Yes, it's possible to save image from webcam. Moreover, you can analyze every frame from webcam in realtime if your analysis does not take too much time. There was many examples in the "PureBasic Interface to OpenCV" pack.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Oct 29, 2020 4:16 am 
Offline
User
User

Joined: Sun Aug 03, 2003 12:05 am
Posts: 41
Location: Australia
Thanks again for the great interface.

I had been having problems with image quality with cvSave and found changing the CvSaveData struct fixed the problem.

Code:
Structure CvSaveData
  paramId.l
  paramValue.l
  paramValue2.l <--- Added this line.
EndStructure

_________________
Ziltch - http://www.youtube.com/user/OZiltch


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Oct 29, 2020 2:08 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1689
Hi Ziltch,

Thank you for reporting your findings.

While I cannot reproduce the issue, I did find supporting documentation.
- https://stackoverflow.com/questions/801054/opencv-cvsaveimage-jpeg-compression-factor

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

Updated:
- all the main packages have been updated with the change provided by Ziltch

NOTES:
All downloads require an access key.
Access key is emailed after a one time $10 CAD donation.
Good for all current and future scripts, programs, and updates.

* If AAT or wilbert would like any or all of the OpenCV downloads (no access key required), post here or email your request from My PureBasic Stuff. *

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Fri Oct 30, 2020 2:23 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 15, 2008 3:13 am
Posts: 243
Location: Russia
Hi, JHPJHP and Ziltch.

JHPJHP wrote:
While I cannot reproduce the issue...

I'm too. Thanks for the invitation! :)

Ziltch, paramValue2 is always 0? Could you provide an example of an image you are having problems with?


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Sat Oct 31, 2020 4:10 pm 
Offline
User
User

Joined: Sun Aug 03, 2003 12:05 am
Posts: 41
Location: Australia
My prog saved this before the struct change. jpg quality should be 95 but it is only 7.
Image

after the change image looks fine and image quality is 95
Image

It is strange as the extra param is always 0 . So why it would make a difference in my prog and not any of the code examples that I tried is confusing.

_________________
Ziltch - http://www.youtube.com/user/OZiltch


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Fri Nov 06, 2020 6:17 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1689
Animated GIF of 5 examples from the OpenCV package (250+ examples); created using Video Snipping Tool.
1. cv_convertscale.pb: Modify the brightness and contrast levels using a scaling factor.
2. cv_gamma.pb: Gamma Correction: The relationship between a pixels numerical value and its actual luminance.
3. cv_sharpen_1.pb: Unsharp masking (USM): Combining a blurred mask with the original image for a sharpen effect.
4. cv_sharpen_2.pb: Add various edge filters to an image giving it different sharpened effects (sharpen / excessive / realistic).
5. cv_enhance_detail.pb: Enhance the details of an image.

NB*: This post was to demonstrate certain features; see request here.

Image

_________________

STATUS: Comfortably Numb :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic Interface to OpenCV
PostPosted: Thu Nov 12, 2020 7:44 pm 
Offline
New User
New User

Joined: Thu Oct 08, 2020 10:19 am
Posts: 1
Hi JHPJHP,


I have a version of openCV for purebasic from 2013.

Now I have a project for an AOI (Automated Optical Inspection) for my company and I would like to use the latest version if possible.
I can't download the software, I made a couple of donations but I don't receive the access code, can you please help me? , thanks.

I do not know if this message is appropriate here, I do not see private email to contact.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 34 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