Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Connector--coordinate

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.

Download All
0 Kudos
Message 1 of 7
(3,644 Views)
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.
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.
The next step would be finding the distance of template axis and the detailed image axis.
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.

0 Kudos
Message 2 of 7
(3,626 Views)

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.


0 Kudos
Message 3 of 7
(3,597 Views)

Any one help?

0 Kudos
Message 4 of 7
(3,577 Views)

ok let me send you some information that will be help you 
for searching template base on coordinate use this vis 

Untitled.jpg

Message 5 of 7
(3,531 Views)

for make geometry calculation in image pixel2.png use this vis 

Message 6 of 7
(3,529 Views)

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 

3.png

Message 7 of 7
(3,528 Views)