|
visageSDK
|
AndroidCameraCapture demonstrates use of raw camera image input to track from Android camera. More...
#include <AndroidCameraCapture.h>
Public Member Functions | |
| AndroidCameraCapture () | |
| Constructor. | |
| AndroidCameraCapture (int width, int height, int orientation=0, int flip=0) | |
| Constructor. More... | |
| ~AndroidCameraCapture (void) | |
| Destructor. | |
| VsImage * | GrabFrame (long &timeStamp) |
| This function is called periodically to get the new video frame to process. | |
| void | WriteFrame (unsigned char *imageData) |
| Method for writing imageData to buffer object. More... | |
AndroidCameraCapture 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 27 of file AndroidCameraCapture.h.
| VisageSDK::AndroidCameraCapture::AndroidCameraCapture | ( | 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. |
Definition at line 16 of file AndroidCameraCapture.cpp.
| void VisageSDK::AndroidCameraCapture::WriteFrame | ( | unsigned char * | imageData | ) |
Method for writing imageData to buffer object.
| imageData | raw pixel data of image used for tracking |
Definition at line 41 of file AndroidCameraCapture.cpp.
References VsImage::imageData.
1.8.13