10-10-2016 03:35 AM
Hello every master: I am new to coordinate. i have a application like this. There is an connector soldered in the PCB. we use the camera to take a picture for connector or the PCB, and the we send the coordinate to the YAMAHA robotic arm and let it to clip the PCB around the connector(i marked it with red line in "Connector.png")。the "Detail.png" is the picture for connector. and "Template.png" is the template i create used to coordinate the metal slice. so ,how i can do next ? is any tips or suggestion? thank you very much in advance.
10-10-2016 07:59 AM
10-12-2016 02:40 AM
LVK 已写:
So i guess you are doing a pattern matching.
Looking at the template you are setting for the connector there need to have two reference points.
1. For the whole image (Detail.png).You can set XY coordinate according to whole image.This is needed if your image is not consistent everytime. If you are confident that the consistency of image is same everytime you capture you capture it then ignore the step. //--------------For setting XY coordinate, how can i do? take top-left point(0,0) as origin???
2. While recognizing pattern from the whole image you will have to set the coordinate system in accordance with the center or any edge point on the image. ///after pattern matching, we will get the center of the template in the whole image. so, what i need to do for this point?
The next step would be finding the distance of template axis and the detailed image axis. //--use "IMAQ convert pixel to realworld.vi"?
This will help robotic arm to start from reference points .
Note: I hope you have resolved the rotated connector issue. I mean if the connector is rotated while connecting.
10-12-2016 08:28 PM
Any one help?
10-17-2016 01:40 AM - edited 10-17-2016 01:41 AM
ok let me send you some information that will be help you
for searching template base on coordinate use this vis
10-17-2016 01:50 AM
for make geometry calculation in image pixel use this vis
10-17-2016 01:54 AM
for last answer you can select coordinate in your template and it is not always in center
in this case for matching you will be have that coordinate information
see this image to find where you can change template coordinate by drag and drop