Compare image ignoring light android

I am very new to Android. I want to compare two images and ignore the lighting effects in the comparison.

To do this, I found out that I can generate an edge image and then compare the images.

what should i do in this case? How do I do this in android and if any library is available how to use it?

I've searched and learned a lot about Jmagick and Imagemagick, but I don't know how to use them in my application.

I need to provide motion detection functionality for my application. The tablet will be connected to the wall and it will collect feedback from the user, and the ads will be displayed as a slideshow. The front camera will take a picture every 10 seconds, and the previously captured image and the current image will be compared to see if anything has changed (i.e. at least someone is watching the ads or not). Based on the results, if no motion is detected for 20 minutes, I want to turn off the tablet screen.

Please help me.

+3


source to share


1 answer


If you are promoting with OpenCV your implementation should depend on how much traffic is allowed. The optical flow approach can tell you if the camera is moving at all. You can take the sum of the amount of movement as a threshold. If you want the camera to be able to move a little without triggering motion detection, I would recommend using an approach like SURF. You can use the number of matches with the original image as a threshold to move. Anyway, take a look at matcher_simple.cpp and simpleflow_demo.cpp for a getting started guide.



0


source







All Articles