
Originally Posted by
FriendOfGhost
dear friends,
Imagine a conveyor band with boxed moving over it. they pass in front of the camera one by one. I need to get picture each of boxes but I don't know how. how can I decide when I get the picture ? I cannot use conveyor speed and timing because boxes are in different shapes and the space among them are not even. if camera is 30fps and a box passes by in front of camera in 3 seconds, it means there are 3x30=90 pictures. of course I should select the one that centers the box in the camera but I don't know how. also moving speed is not constant. I need an algorithm that says "okay there's a box in front of me, lets get the picture and save it".
can anyone obtain me information or sample that gets pictures of boxes while they are passing by in front of camera ?
in other words, you'll wave your hand at the camera and on each pass it will get ONE picture of your hand, roughly at the middle of camera.