visageSDK
Public Member Functions | List of all members
VisageSDK::AndroidCameraCapture Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AndroidCameraCapture()

VisageSDK::AndroidCameraCapture::AndroidCameraCapture ( int  width,
int  height,
int  orientation = 0,
int  flip = 0 
)

Constructor.

Parameters
widthwidth of image
heightheight of image
orientationOrientation of image. Allowed values are 0, 90, 180, 270
flipFlip image horizontaly.

Definition at line 16 of file AndroidCameraCapture.cpp.

Member Function Documentation

◆ WriteFrame()

void VisageSDK::AndroidCameraCapture::WriteFrame ( unsigned char *  imageData)

Method for writing imageData to buffer object.

Parameters
imageDataraw pixel data of image used for tracking

Definition at line 41 of file AndroidCameraCapture.cpp.

References VsImage::imageData.


The documentation for this class was generated from the following files: