viernes, 1 de mayo de 2015

Measure parts with two cameras

Today's practice is to measure two pieces with two cameras, this practice has been made between two components possess a camera each.
We position cameras each in a place at the same height and spaced a given distance. As with all practices of artificial vision we have it all in a controlled environment, but you have a place where to do it and want to do outdoors I recommend that you consider as lighting will affect the measurements. Use LED bulbs especially since other types of bulbs to go to AC 50Hz affects vision camera dela confusing gray scale we have in the work area. If you want to box work area I recommend you visit the following post.
http://elblogdejosewa.blogspot.com.es/2015/04/hacer-una-caja-para-vision-artificial.html
For after all these notes Vision Builder open and open a new inspection.
image
This time I have to explain practice from which I did because now no need of one of the cameras nor box workspace.
First we introduce one of the cameras we go for it and other practices to Acquire Image and choose our camera.
image In my case the mobius.Nos go to the Calibration tab, which as we have a we will create calibration, in my case I'm having calibrated Edit.
imageWe have a pattern for measurement with our camera, I used eg paper A-4 for the work area, in it I printed a rule that filled the sheet in this way is much easier to calibrate our camera.
image
Put the name of the operator, we determined that our calibration never expires and click Next.
Add the image that captures the camera.
imageSelect the image and then Next.
imageClicking on the image and zoom helped choose the two points we want to have as a reference. Real World And we actual measurement in this case is 10 mm.
image    
Click Next.
imageWe reappears previous page because we set the X axis ours.
imageWe place it where we want to start and sense where we want to measure in this case as shown. At the end press OK and continue.
imagePress ok and we have a camera set.
imageWe're going to Vision Assistant and removed the color to make it look all in black and white.
imageimageAnd the display shows.
imageIn Extract Color chose the plane that we like.
imageimageWith the other chamber do the same and the sequence would.
imageWe'll Find Straight Edge, in an area of the image captures the first edge.
imageWe label, adding that if we put this so catch the image of the second chamber.
image
In Settings we choose as we want the area to detect the piece, both say it Direction Top to bottom, left to right etc. Edge put on how we want the change to detect the edges and looking Look for the first edge. Then as the second point we can change the type of scanning in order to be more precise or less depending on your camera and the working environment will be one or the other.
image         
Advance will detect the edges and the type of noise so that you can make decisions when modifying the above parameters.
image
In Limits modified as it passes inspection oars to avoid false positives.
image
We continue with the procedure and go to Select Image.
image
We chose to remove color of the second chamber so with this tool you do is save the last image captured by the camera to compare with the first one that caught our camera. Then we accept.
image
We'll Find Straight Edge and perform the same operation as before but this time with the main camera.
imageI attached pictures for you to see that the settings are different but the process is the same.
image
image imageimage
  We continue to practice and go to Calculator.
image
We label if we want and give it to Edit Inputs / Outputs.
image
And we choose as input each Find Straight Edge we have done and Short Distance (Calibrated) option. We give Outputs Results.
image

We continue and we put a name to the exit, which is numeric and go updating the value we place on ok.
image
Make a right click operation is to add the two distances taken by the width of the piece, minus the distance between the reference axes of the camera and gives us the size of the piece, saying that although this is very accurate for greater precision in this case seeking mm units, adjust a little empirically, since the light influences, in our case are light bulbs, but LED bulbs recommended.
image
To give adequate visualization we go to Custom Overlay
image  
With this tool, you create an interactive text, as explained in previous posts how to create texts, to highlight this entry is that next to our text the extent of the part, so we have to put a text in this case appears is “Medida del objeto”.
image
As seen a text between <> appears, this is achieved by clicking on the next tool.
image  
It appears the following menu and chose our measure in this case. We click on it, choose the type of number and press ok.
image
Finally put a 500ms delay time for the program to process the image of the second chamber, compared with the first and perform the calculation.
image
image
Well i am just see how the practice works for it I attached two videos below them and have the practice to download if you click the symbol.









No hay comentarios:

Publicar un comentario