Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Motion Sensing by Camera in iOS

Tags:

ios

opencv

camera

I am working on an app in iOS that will occur an event if camera detects some changes in image or we can say motion in image. Here I am not asking about face recognition or a particular colored image motion, And I got all result for OpenCV when I searched, And I also found that we can achieve this by using gyroscope and accelerometer both , but how??

I am beginner in iOS.So my question is , Is there any framework or any easy way to detect motion or motion sensing by camera.And How to achieve?

For Example if I move my hand before camera then it will show some message or alert.

And plz give me some useful and easy to understand links about this. Thanx

like image 878
Shyam Dixit Avatar asked Sep 02 '13 10:09

Shyam Dixit


People also ask

How do I turn on my iPhone motion sensor?

Go to Settings > Accessibility > Motion. Turn on or off any of the following controls: Reduce Motion: Reduces the motion of the user interface, including the parallax effect of icons. Auto-Play Message Effects: Allows the Messages app to automatically play full-screen effects.

What is motion camera app?

Motion is a highly configurable program that monitors video signals from many types of cameras. Set it up to monitor your security cameras, watch birds, check in on your pet, create timelapse videos and more. Create videos or save pictures of the activity. Passthrough recording from many IP cameras.


1 Answers

If all you want is some kind of crude motion detection, my open source GPUImage framework has a GPUImageMotionDetector within it.

This admittedly simple motion detector does frame-to-frame comparisons, based on a low-pass filter, and can identify the number of pixels that have changed between frames and the centroid of the changed area. It operates on live video and I know some people who've used it for motion activation of functions in their iOS applications.

Because it relies on pixel differences and not optical flow or feature matching, it can be prone to false positives and can't track discrete objects as they move in a frame. However, if all you need is basic motion sensing, this is pretty easy to drop into your application. Look at the FilterShowcase example to see how it works in practice.

like image 99
Brad Larson Avatar answered Sep 29 '22 04:09

Brad Larson