Package com.banuba.sdk.recognizer
Interface Recognizer
- All Known Implementing Classes:
Recognizer.CppProxy
public interface Recognizer
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(Feature feature, HashSet<FeatureId> dependencies) void
clear()
clear input and output buffers and pipeline state, also clean cached featuresstatic Recognizer
create
(RecognizerMode mode) getFeature
(FeatureId feature) static long
getFeatureId
(FeatureId feature) void
pause()
pause the recognizerboolean
popFrameData
(FrameData outputFrameData) void
void
pushCameraFrame
(FrameData inputFrameData) void
removeFeature
(Feature feature) void
setFeatures
(HashSet<FeatureId> features) void
setMaxFaces
(int num) sets maximum allowed face results, if face tracking feature is presentvoid
setOfflineMode
(boolean on) void
setUseFutureFilter
(boolean on) Set future frame filtrarion mode.void
setUseFutureInterpolate
(boolean on) Set future frame interpolation mode.void
start()
start the recognizervoid
stop()
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, ... -
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
-