Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding position

The Challenge : I have a battery cell(rectangle shape 18x10cm). I have to pick this with a robot. The cell will be in different orientation and different position. I need to Locate the correct position and orientation and send it to labview.

 

I have also attached my battery cell image.

 

My Approach : I used a camera and using Vision builder. I used geometric pattern matching technique.

 

My question :

 1. Am I using the right technique(geo pattern matching), In manual I came across different technique like edge detection, color matching, etc.

2. While am exporting the file from vision builder to labview. It says file already exist and when am trying to save it in a new file it says file not found.

3. I need the X and Y co ordinates by keeping a origin outside of the battery cell( I mean near to battery cell but the point is inside the image)

4. Since the orientation and position are different. I need to locate the centre of the cell.( for this how should I teach the reference)

 

 I think I have wrote down too many questions. I am eagerly waiting for your answer. Thanks in advance.

 

0 Kudos
Message 1 of 7
(4,028 Views)

How about this http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_detect_shapes/#IMAQDetectRectangl...

Detects rectangles and gives you the location of the corners, and the rotation. That should allow you to calculate the centre too.

0 Kudos
Message 2 of 7
(4,016 Views)

The most important thing before trying differents techniques is to have a good image. Looking at your image, it appears that you have very poor contrast, you better first improve your image quality by using approporiate lightning before extracting features from it.

Then as your part is rectangular, the simple way would be to find the edges.

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 3 of 7
(4,002 Views)

 When i came across manual , Its says that in edge detection method the orientation tolerance is +-65degree only. That's why i switched to geometric pattern matching method.

 

My question : Is edge detection method will be Ok for different orientation?

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

 Thanks for your idea. But when i used Imaq detect rectangles it shows error as

 

Error -1074395635 occurred at an unidentified location

Possible reason(s):

IMAQ Vision: The passed shape descriptor is invalid.

 

I have attached the VI file and the object file.

Download All
0 Kudos
Message 5 of 7
(3,973 Views)

Could you post an 8.6 version of your VI?

0 Kudos
Message 6 of 7
(3,963 Views)
0 Kudos
Message 7 of 7
(3,949 Views)