visageSDK
Public Member Functions | Static Public Member Functions | List of all members
com.visagetechnologies.visagetrackerdemo.TrackerActivity Class Reference

Activity called to initiate and control tracking for either tracking from camera or image. More...

Inherits Activity.

Public Member Functions

void StartCam () throws IOException
 Starts tracking from camera and initializes surface for displaying tracking results.
 
void StartImage (Uri imageURI) throws IOException
 Called to initialize and start tracking for image. More...
 
native void TrackerInit (String pathToAssets, String configFilename)
 Interface to native method called for initializing tracker. More...
 
native void TrackFromImage (int width, int height)
 Interface to native method called to start tracking from image. More...
 
native void TrackFromCam ()
 Prepare raw image interface to track from camera.
 
native void TrackerStop ()
 Interface to native method used to stop tracking.
 

Static Public Member Functions

static native float GetFps ()
 Interface to native method called to obtain frame rate information from tracker. More...
 
static native float GetDisplayFps ()
 Interface to native method called to obtain rendering frame rate information. More...
 
static native String GetStatus ()
 Interface to native method called to obtain status of tracking information from tracker. More...
 
static native int GetTrackTime ()
 Interface to native method called to obtain pure tracking time. More...
 
static native void setParameters (int width, int height, int orientation, int flip)
 Interface to native method called to set camera frame parameteres. More...
 

Detailed Description

Activity called to initiate and control tracking for either tracking from camera or image.

Definition at line 39 of file TrackerActivity.java.

Member Function Documentation

◆ GetDisplayFps()

static native float com.visagetechnologies.visagetrackerdemo.TrackerActivity.GetDisplayFps ( )
static

Interface to native method called to obtain rendering frame rate information.

Returns
rendering frame rate value

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ GetFps()

static native float com.visagetechnologies.visagetrackerdemo.TrackerActivity.GetFps ( )
static

Interface to native method called to obtain frame rate information from tracker.

Returns
frame rate value

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ GetStatus()

static native String com.visagetechnologies.visagetrackerdemo.TrackerActivity.GetStatus ( )
static

Interface to native method called to obtain status of tracking information from tracker.

Returns
status of tracking information as text.

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ GetTrackTime()

static native int com.visagetechnologies.visagetrackerdemo.TrackerActivity.GetTrackTime ( )
static

Interface to native method called to obtain pure tracking time.

Returns
status of tracking information as text.

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ setParameters()

static native void com.visagetechnologies.visagetrackerdemo.TrackerActivity.setParameters ( int  width,
int  height,
int  orientation,
int  flip 
)
static

Interface to native method called to set camera frame parameteres.

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ StartImage()

void com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage ( Uri  imageURI) throws IOException
inline

◆ TrackerInit()

native void com.visagetechnologies.visagetrackerdemo.TrackerActivity.TrackerInit ( String  pathToAssets,
String  configFilename 
)

Interface to native method called for initializing tracker.

Parameters
configFilenameabsolute path to tracker configuration file.

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartCam(), and com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().

◆ TrackFromImage()

native void com.visagetechnologies.visagetrackerdemo.TrackerActivity.TrackFromImage ( int  width,
int  height 
)

Interface to native method called to start tracking from image.

Parameters
widthwidth of image file used for tracking
heightheight of image used for tracking

Referenced by com.visagetechnologies.visagetrackerdemo.TrackerActivity.StartImage().


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