>> As part of a pick & place project I'm working on, I have >> implemented a userspace component to establish a >> home location using a USB video camera. > >Are You saying that You have EMC2 with some vision capabilities? >Could You, please, share some more information? > > Viesturs
I bought a $60 USB video microscope, and verified that it works with Linux using luvcview. I then installed opencv from source using instructions on the web for getting the python binding working. I then played around a bit with example programs, and combined an example that grabbed frames from the camera with an example that finds ellipses in an image to give me a function that grabs a frame and finds all the ellipses in the frame, discarding all except the one that is a circle of the correct diameter. I return the x,y position and diameter of this. Then I pass it back to hal as an x offset and a found/not-found flag. It was actually surprisingly easy. It took me about two days to get it together. Now I need to try Andy's suggestion of using a probing sequence rather than a homing sequence and see where it gets me. That will have to wait until next week after getting back from the holiday. -- Ralph ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
