Search code examples
pythonopencvmotion-detection

How to detect moving object on a moving conveyor using opencv


I'm building a grading system for crabs. In this system, the animals (crabs) are placed in a moving conveyor and I need to identify dead or alive animals by detecting its motion based on images captured by a camera on this conveyor. The color of conveyor belt is black.

As the conveyor is always moving, so I can't apply methods using stationary camera like here. Does anyone have a suggestion about motion detection of the animals in this case using opencv? I can use more than one camera if it's necessary. Thanks.


Solution

  • Well, the most obvious answer is: 1) adjust the pictures of the conveyor in the different periods of time so that they become of the same area. 2) watch which ones of the crabs have different poses (like, "substract the images") - different regions (pixels) mean that there happened a motion.

    If using a tracking - well, you should train your classifier to watch the crabs, and than compare the regions of crabs in a same way. But i think it's too complicated for your particular issue.