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

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AndroidStreamCapture()

VisageSDK::AndroidStreamCapture::AndroidStreamCapture ( 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.

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