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.
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.
main problem: your camera is too close to the conveyour belt, so it can't see your object as a whole. change that, not the outcome of it.
The image is of the whole object, in the real case, the cardboard would be much bigger like 70-80cm, and it would be visible when moving in a small gap, 20-30 cm, between two machines. Another problem is that there is no uniform background like a conveyour belt.