|
visageSDK
|
AndroidStreamCapture demonstrates use of raw camera image input to track from Android camera. More...
#include <AndroidStreamCapture.h>
Public Member Functions | |
| AndroidStreamCapture () | |
| Constructor. | |
| AndroidStreamCapture (int width, int height, int orientation=0, int flip=0) | |
| Constructor. More... | |
| ~AndroidStreamCapture (void) | |
| Destructor. | |
| VsImage * | GrabFrame (long &timeStamp) |
| This function is called periodically to get the new video frame to process. | |
AndroidStreamCapture demonstrates use of raw camera image input to track from Android camera.
GrabFrame method will be periodically called to get new frame. For inputing new frame, WriteFrame should be used. This method expects frame in Android camera NV21 format (YUV420sp). YUV420sp to RGB converting, rotation and flipping is done in GrabFrame.
Definition at line 31 of file AndroidStreamCapture.h.
| VisageSDK::AndroidStreamCapture::AndroidStreamCapture | ( | int | width, |
| int | height, | ||
| int | orientation = 0, |
||
| int | flip = 0 |
||
| ) |
Constructor.
| width | width of image |
| height | height of image |
| orientation | Orientation of image. Allowed values are 0, 90, 180, 270 |
| flip | Flip image horizontaly. |
1.8.13