OpenCV vision with EMC/linuxcnc

More
23 May 2012 13:00 #20288 by BigJohnT
andypugh wrote:

BigJohnT wrote:

The cameras we use have all the software built in and use a network cable and your browser to set it up.


And a Playstation controller?
I worked for a company that was an integrator for the Keyence cameras, and did the training course, but we never installed one as far as I recall.


Playstation?

Keyence is high dollar stuff for sure... we can get it but it's always too expensive for the return.

John

Please Log in or Create an account to join the conversation.

More
23 May 2012 13:02 #20289 by btvpimill
Ok guys, you win the cameras on mill/lathes.

But the PnP market is still there. :)

Please Log in or Create an account to join the conversation.

More
23 May 2012 13:06 #20290 by BigJohnT
btvpimill wrote:

There ya go being all practical and what not :)

You mean since I can't even see through the doors, The inside mounted camera would be blind also? Hmmm thats a tough nut to crack. Now you got me thinking about scara mounted camera to move in when needed much like my touch probe does on my lathe..


Something like that would work if you make a good drip shield for the top... a touch probe does sound more practical for tool setting.

John

Please Log in or Create an account to join the conversation.

More
23 May 2012 13:58 #20292 by edsimmons
YEs!

Have touch probe for milling, would still like to work on pick and place vision - where do I start as an experienced vision systems coder but EMC source novice? I know I've got to do a lot of reading, but some practical advice would be great ;)

Cheers,
Ed

Please Log in or Create an account to join the conversation.

More
23 May 2012 14:22 #20293 by edsimmons
I'm slowly working my way through building example routines for all the core needs, detecting part presence, comparing to reference, detecting offsets as you mentuioned etc, but I'm keen to ensure that my approach will fit together with EMC without too much awful spaghetti code.

I'm sure I can do the vision, how much others are willing to help in this and other areas will largely decide the feasibilty/outcome. I'm sure given enough time I'd make my way to a working solution - it would be great to arrive at a sensible solution for a system including the definition of the pick locations etc.

Working from gEDA's PCB I get centroid and rotation data for PNP, from this I have a good idea of the control that's needed to make placement happen, it would be great if someone could work in tandem to decide on an approach for defining the pickup locations of the parts, reel dimensions and offsets etc.

Thanks!
Ed

Please Log in or Create an account to join the conversation.

More
23 May 2012 14:29 #20294 by edsimmons
Regarding keeping cameras clean in harsh environments, I have seen (but not used) a pinhole camera system that uses compressed air to keep the lens pinhole open and clean. These are supposedly great in placed like paper mills for viewing the sloppy bits of processes and would more than likely fair quite well in a lathe/mill environment if mounted in the right spot (and you weren't too concerned about the need to supply 20cfm air to a camera!)

Just a thought ;)

Please Log in or Create an account to join the conversation.

More
23 May 2012 14:33 #20295 by arch dude
I am a hobbyist with my first CNC machine (a Probotix V90 mill.) I looked at using a webcam instead of limit switches, since the webcam would be cheaper and easier. Note that on this class of machine. exceeding the limits is merely embarrassing, not damaging.
(except for -Z, but that's another problem altogether.)

For this use, I would place the camera in a fixed position on the enclosure, behind the gantry, and use it to locate a square painted on the back of a piece of metal mounted to the Z axis. Accuracy need not be better than 0.1" and I suspect that just about any machine vision system, with just about any camera, could handle this single, trivial, completely reproducable problem.

Cost: limit switches are "only" about $2.00 apiece: you need 5 of them, plus you need to run the wires, plus you burn I/O pins. A cheap webcam costs about $20 except that I have several in my junk box, and you need only one fixed USB wire, not 5 moving wires.

A Webcam that can get you within .1" can be used in conjunction with a touchplate. Use the webcam to get close using rapids, then touch off for final accuracy.

I have not pursued this, since I have lots of other machine improvement projects in play. (I added the limit switches, but I would still prefer to use the camera.)

Please Log in or Create an account to join the conversation.

More
23 May 2012 14:46 #20296 by edsimmons
Are you saying you are not using the swtches for homing?

Please Log in or Create an account to join the conversation.

More
23 May 2012 14:59 #20297 by andypugh
edsimmons wrote:

I'm sure I can do the vision, how much others are willing to help in this and other areas will largely decide the feasibilty/outcome.


I can help with HAL stuff, but I only really know how to do realtime code in C. I am trying to pick up Python, though.

Please Log in or Create an account to join the conversation.

More
23 May 2012 15:08 #20298 by edsimmons
The single biggest help anyone could give me right now would be a pointer as to what to read first in the source code, even better would be a template/starting point/some instruction for creating HAL objects.

I'm happy once I've got myself a 'framework' that will sit well with EMC, if such a thing is available it would be great - alternatively I'll publish something that does when we arrive there.

Cheers!

Ed

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum