I have to make a hand gesture recognition app on Android platform using OpenCV libraries. So I have to pass the captured data from OnPreviewFrame method of android to an OpenCV function for skin color detection. I am not getting how process the raw data in OpenCV and re-encode back to the video to be stored in sd card and at the same time show in real time, the background subtracted preview to the user.
1 Answers
0
votes
If you know how to do it for normal images, put a while loop,extract frames from the videos and do same segmentation operation on each frame.
Below are two links to detect yellow color in real-time. Link 1, Link 2
(Codes are in Python, and it is done for PC, not android platform. But you wouldn't have problem to understand the idea).