Package com.banuba.sdk.recognizer
Interface Recognizer
- All Known Implementing Classes:
Recognizer.CppProxy
public interface Recognizer
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(Feature feature, HashSet<FeatureId> dependencies) voidclear()clear input and output buffers and pipeline state, also clean cached featuresstatic Recognizercreate(RecognizerMode mode) getFeature(FeatureId feature) static longgetFeatureId(FeatureId feature) voidpause()pause the recognizerbooleanpopFrameData(FrameData outputFrameData) voidvoidpushCameraFrame(FrameData inputFrameData) voidremoveFeature(Feature feature) voidsetFeatures(HashSet<FeatureId> features) voidsetMaxFaces(int num) sets maximum allowed face results, if face tracking feature is presentvoidsetOfflineMode(boolean on) voidsetUseFutureFilter(boolean on) Set future frame filtrarion mode.voidsetUseFutureInterpolate(boolean on) Set future frame interpolation mode.voidsetUseNewFaceTracking(boolean on) Set new face tracking mode.voidstart()start the recognizervoidstop()pause + clear
-
Method Details
-
getFeature
-
setFeatures
-
addFeature
-
removeFeature
-
setMaxFaces
void setMaxFaces(int num) sets maximum allowed face results, if face tracking feature is present -
setOfflineMode
void setOfflineMode(boolean on) -
setUseFutureFilter
void setUseFutureFilter(boolean on) Set future frame filtrarion mode. Produce smoother recognition result (anti jitter), however adds inconsistency in push'ed/pop'ed frames (one frame lag) Applied only in push_camera_frame/pop_frame_data methods, when offline mode is disabled. Example: push frame 1 - pop frame 1, push frame 2 - pop frame 1, push frame 3 - pop frame 2, ... -
setUseFutureInterpolate
void setUseFutureInterpolate(boolean on) Set future frame interpolation mode. Produce faster recognition result (skip even frames), however adds inconsistency in push'ed/pop'ed frames (one frame lag) Applied only in push_camera_frame/pop_frame_data methods, when offline mode is disabled. Example: push frame 1 - pop frame 1, push frame 2 - pop frame 1, push frame 3 - pop frame 2, ... -
setUseNewFaceTracking
void setUseNewFaceTracking(boolean on) Set new face tracking mode. -
process
-
pushCameraFrame
-
popFrameData
-
start
void start()start the recognizer -
pause
void pause()pause the recognizer -
stop
void stop()pause + clear -
clear
void clear()clear input and output buffers and pipeline state, also clean cached features -
create
-
getFeatureId
-