I am trying to see if it is possible to take picture on iOS when there is any movement in front of the camera. For example, Is it possible for an app to take picture when some body wave hand or just show his/her face in front of the camera or throw a ball in the air such that it crosses the camera line of sight.
Check out Lucas-Kanade (LK) Optical Flow for the iPhone It's an optical flow estimation algorithm (i.e. "the pattern of apparent motion of objects, surfaces and edges in a visual scene caused by the relative motion between an observer and the scene.")
It might help you out with the motion detection and then you would probably just have to respond to that event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With