03-05-2012 06:40 AM
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.
03-05-2012 05:45 PM
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.
03-06-2012 08:31 AM
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
03-07-2012 05:21 AM
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?
03-07-2012 09:09 AM
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.
03-07-2012 04:16 PM
Could you post an 8.6 version of your VI?
03-08-2012 08:48 PM
Double Post : http://forums.ni.com/t5/Machine-Vision/Detect-rectangles-Error-1074395635/td-p/1904637