05-28-2013 01:15 PM - edited 05-28-2013 01:20 PM
Hello everyone,
This irregular shape is previously unspecified (other than the fact that it is white on a black background). Changes in the area would cause a motor to either speed up (increase) or slow down (decrease).
I'm completely new to Labview and I'm still trying to figure out the jists of it. I have been playing around with the vision assistant. Any help would be appreaciated.
Thanks.
05-28-2013 01:33 PM
Just create a binary image using automatic thresholding (or fixed threshold if it is a constant), then use particle measurement to measure the area of the particle. If it returns multiple particles, you probably want the largest one. You might have to clean up the binary image by removing edge particles, etc. before using particle measurement.
You should be able to measure the area several times a second easily, possibly at the frame rate of the camera.
Bruce
05-28-2013 02:23 PM
Initially (when I'm creating the code), would I take a picture of the setup? If so, how could I integrate the camera into the code?
05-28-2013 03:25 PM
Yes, you would need to start by taking a picture. There should be a bunch of examples for acquiring and analyzing images. A simple Grab will work well.
Your program will probably be a while loop with a stop button. Inside the loop, you will acquire a new image, process it, and do something with the results.
Bruce
11-10-2013 01:46 PM
you can find some examples of vision in https://decibel.ni.com/content/docs/DOC-31892