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.
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.
Put the name of the operator, we determined that our calibration never expires and click Next.
Add the image that captures the camera.
Click Next.
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.
Advance will detect the edges and the type of noise so that you can make decisions when modifying the above parameters.
In Limits modified as it passes inspection oars to avoid false positives.
We continue with the procedure and go to Select 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.
We'll Find Straight Edge and perform the same operation as before but this time with the main camera.
We continue to practice and go to Calculator.
We label if we want and give it to Edit Inputs / Outputs.
And we choose as input each Find Straight Edge we have done and Short Distance (Calibrated) option. We give Outputs Results.
We continue and we put a name to the exit, which is numeric and go updating the value we place on ok.
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.
To give adequate visualization we go to Custom Overlay
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”.
As seen a text between <> appears, this is achieved by clicking on the next tool.
It appears the following menu and chose our measure in this case. We click on it, choose the type of number and press ok.
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.
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