New Zealand
Asked — Edited

C# Sdk Vs Emgucv

Hi everyone,

I'm trying to write a GUI in c# that obtains information from a USB webcam. Since I 've got a ezb4 no so long ago, I'm aware what the sdk can do in terms of image processing and object recognition. But I'm contemplating between should I use sdk or emguCV to do my project on. So what do you guys recommen? (my project described below) Secondly, I've downloaded the sdk zip and have a brief look on the examples in the folders, but I'm wondering is there any proper tutorial /videos anywhere here, so I could properly learn the functionality of the sdk (I'm reasonably new to c#).

What I need to do for my project is, I'll have a 8 joint link robotic arm (that will be physically build) and a overhead usb webcam. Both of which will be link to a pc. What I wanted to do with the arm is, when the GUI runs, the webcam will continuously stream video to a picturebox in the GUI. Then when a ping pong ball is presented within the workspace of the arm, the GUI will recognise the ball and drive the arm to pick up the ball.

Thanks.


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#25  

I literally provided you a complete working code with object tracking and everything:) did you not see it?

All you have to do is copy and paste my code into your project - and the ONLY piece that you need to edit is the movearm() method for moving servos. That's it - the entire project is done and right there in this thread.... object tracking and everything.

New Zealand
#26  

@DJSure, I just saw it.

PRO
Synthiam
#27  

Okay wicked - so all you have to do is fill in the math for the servos to move the paddle into the x/y position. That goes in moveArm()...

I built a little tiny prototype with bits for fun to test with....

User-inserted image

User-inserted image

New Zealand
#29  

@JustinRatliff , when you brought the idea of paddlebots up. I have that image of 2 bots playing that classic arcade game call pong. Don't know why.

@DJSures, I'll work on that over the weekend and keep updating and/or posting if I got into come complications

PRO
Synthiam
#30  

Okay now that's awesome - computer vs computer with real life pong? I like it!

Philip, the toughest part will be filling in the code for moveArm(). Because you will need to calculate how to move the servo joints to reach each x/y relative coordinate.

Lastly, if you find the object isn't tracking "perfectly", the Size and Brightness can be adjusted with the GetObjectLocationByColor() parameters. I would recommend adding trackbars to configure those two values realtime.