Goldgesture is a GUI app built with the Android SDK and OpenCV's Java bindings for Android. It has just a single view, seen in the screenshot on the next page. The app has the following flow of execution:
- Constantly display a live video feed from the front-facing (self-portrait) camera.
- Perform human face detection using OpenCV's CascadeClassifier class.
- When a human face is detected:
- Draw a blue rectangle around the face.
- Detect features of the face (points that should be easy to track in subsequent frames despite movement) using OpenCV's goodFeaturesToTrack function. Draw green circles around these features.
- As the face moves, track the features in every frame using OpenCV's calcOpticalFlowPyrLK function. This function can continuously track the features even though CascadeClassifier is unlikely to continuously detect a...