Project description: "Android code to detection motion from by comparing two pictures. Justin Justin 3, 4 4 gold badges 19 19 silver badges 41 41 bronze badges. Here is my open source motion detection app for Android. Could you update it please? Up-to-date link to the tutorial: newcircle. Yes, thats it, just average multiple pixels of the source image.
And, how to scale the image do an average of colors to create one pixel of the scaled image? Just need to figure out to use the front camera. The reason why you should scale it down are the following: It is less error prone to noise introduced by the camera It will be much faster than doing a comparison of the whole image. Let me just add that finally I never did it, as my customer resigned of this functionality and I had no time to deal with it on my own. How to implement a simple motion detector using the front camera and Android SDK? Yar Yar 4, 2 2 gold badges 31 31 silver badges 40 40 bronze badges. Android - camera as motion detector Ask Question. If your take a photo every second, and then scale it down to something like 8x8 pixels, you can easily compare two photos and find out if something has happened, to trigger you action. Here is a Tutorial on how to take a photo with the camera. If a person appears in front of it, without even touching it - it changes the movie. An example scenario would be like this: a device is standing on a stand and plays a movie.
Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.