Ask Your Question

Detect equipment in desired position

asked 2018-08-25 15:20:52 -0500

MarceloMota gravatar image

Hello everyone!

Is It possible to evaluate some pictures and save them Just when the object is in some desired position?

For example: monitoring a vídeo of an equipment that moves in and out of the scene. I would like to detect the time when the equipment is fully in the scene and then save It in a desired folder.

Thanks a Lot and have a great weekend

edit retag flag offensive close merge delete


i think there are at leaset two steps to solve your problem 1、find the equipment 2、save the picture

jsxyhelu gravatar imagejsxyhelu ( 2018-08-25 20:39:57 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2018-08-28 08:36:16 -0500

MikeTronix gravatar image

updated 2018-08-28 15:09:51 -0500

LBerger gravatar image

If you have captured video frames from when the equipment is not in the scene, then a simple method is to subtract the captured background from the current frame and sum up any large pixel differences to detect when the scene has changed. You can require that the large changes not be at the border of the scene as well, so that you will only capture a frame when the equipment is fully in the scene. However, this technique is NOT very robust, as any lighting, noise, other objects, or video gain changes can ruin its effectiveness. OpenCV has more sophisticated background subtraction as seen [here] (

I recommend that you read up on the reference papers for MOG background subtraction and try it.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-08-25 15:20:52 -0500

Seen: 93 times

Last updated: Aug 25 '18