Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Detect, stitch and get the contour of moving image real-time

Hi, I'm working on a Python OpenCV project where I'm trying to detect a paperboard given a CAD reference file. Before using CAD, I'm using this image as a reference object.

C:\fakepath\package.jpg

Basically I have a cardboard object that always moves in the same direction, on a straight line, where * only a portion of the object is visible from time to time *, never the whole cardboard.

The cameras would be positioned above the cardboard, perpendiculary to the moving direction.

In order to detect I tried to use Keypoint Matching with SIFT, but not enough good key points were found. I wanted to try to use the color of the object to detect it, but I would prefer to use an approach that is independent of color, because I would like to detect different colored objects.

For the same reason, not enough keypoints, I could not stitch the different frames with the moving parts of the object using OpenCV Stitcher.

Could someone suggest an approach to solve the problem? The final result I would like to have is the precise outline of the whole object in order to compare it with the CAD file.

click to hide/show revision 2
None

updated 2018-10-19 18:49:02 -0600

berak gravatar image

Detect, stitch and get the contour of moving image real-time

Hi, I'm working on a Python OpenCV project where I'm trying to detect a paperboard given a CAD reference file. Before using CAD, I'm using this image as a reference object.

C:\fakepath\package.jpgC:\fakepath\package.jpg

Basically I have a cardboard object that always moves in the same direction, on a straight line, where * only a portion of the object is visible from time to time *, never the whole cardboard.

The cameras would be positioned above the cardboard, perpendiculary to the moving direction.

In order to detect I tried to use Keypoint Matching with SIFT, but not enough good key points were found. I wanted to try to use the color of the object to detect it, but I would prefer to use an approach that is independent of color, because I would like to detect different colored objects.

For the same reason, not enough keypoints, I could not stitch the different frames with the moving parts of the object using OpenCV Stitcher.

Could someone suggest an approach to solve the problem? The final result I would like to have is the precise outline of the whole object in order to compare it with the CAD file.