visageSDK
Public Member Functions | List of all members
com.visagetechnologies.facedetectdemo.DetectorActivity Class Reference

Activity called to initiate and control detection. More...

Inherits Activity.

Public Member Functions

void StartDetector (Uri uri) throws IOException
 Called to initialize and start detection. More...
 
native void DetectorInit (String appPath, String modelName)
 Interface to native method used to initialize VisageFeaturesDetector object. More...
 
native void CleanUp ()
 Interface to native method used to clean up resources.
 

Detailed Description

Activity called to initiate and control detection.

Definition at line 21 of file DetectorActivity.java.

Member Function Documentation

◆ DetectorInit()

native void com.visagetechnologies.facedetectdemo.DetectorActivity.DetectorInit ( String  appPath,
String  modelName 
)

Interface to native method used to initialize VisageFeaturesDetector object.

Parameters
appPathpath to root folder where Android application data is stored
modelNamename of generic Active Appearance Model file used for detection

Referenced by com.visagetechnologies.facedetectdemo.DetectorActivity.StartDetector().

◆ StartDetector()

void com.visagetechnologies.facedetectdemo.DetectorActivity.StartDetector ( Uri  uri) throws IOException
inline

Called to initialize and start detection.

Also initializes surface for displaying detection results.

Parameters
pathabsolute path to image file used for detecting. Sent from ImagesActivity using Bundle class provided by Android.

Definition at line 65 of file DetectorActivity.java.

References com.visagetechnologies.facedetectdemo.DetectorActivity.CleanUp(), com.visagetechnologies.facedetectdemo.DetectorActivity.DetectorInit(), and com.visagetechnologies.facedetectdemo.DetectorView.setGLView().


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