Package com.banuba.sdk.recognizer
Class Recognizer.CppProxy
java.lang.Object
com.banuba.sdk.recognizer.Recognizer.CppProxy
- All Implemented Interfaces:
Recognizer
- Enclosing interface:
- Recognizer
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.recognizer.Recognizer
Recognizer.CppProxy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addFeature
(Feature feature, HashSet<FeatureId> dependencies) void
clear()
clear input and output buffers and pipeline state, also clean cached featuresstatic Recognizer
create
(RecognizerMode mode) protected void
finalize()
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
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
getFeature
- Specified by:
getFeature
in interfaceRecognizer
-
setFeatures
- Specified by:
setFeatures
in interfaceRecognizer
-
addFeature
- Specified by:
addFeature
in interfaceRecognizer
-
removeFeature
- Specified by:
removeFeature
in interfaceRecognizer
-
setMaxFaces
public void setMaxFaces(int num) Description copied from interface:Recognizer
sets maximum allowed face results, if face tracking feature is present- Specified by:
setMaxFaces
in interfaceRecognizer
-
setOfflineMode
public void setOfflineMode(boolean on) - Specified by:
setOfflineMode
in interfaceRecognizer
-
setUseFutureFilter
public void setUseFutureFilter(boolean on) Description copied from interface:Recognizer
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, ...- Specified by:
setUseFutureFilter
in interfaceRecognizer
-
setUseFutureInterpolate
public void setUseFutureInterpolate(boolean on) Description copied from interface:Recognizer
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, ...- Specified by:
setUseFutureInterpolate
in interfaceRecognizer
-
process
- Specified by:
process
in interfaceRecognizer
-
pushCameraFrame
- Specified by:
pushCameraFrame
in interfaceRecognizer
-
popFrameData
- Specified by:
popFrameData
in interfaceRecognizer
-
start
public void start()Description copied from interface:Recognizer
start the recognizer- Specified by:
start
in interfaceRecognizer
-
pause
public void pause()Description copied from interface:Recognizer
pause the recognizer- Specified by:
pause
in interfaceRecognizer
-
stop
public void stop()Description copied from interface:Recognizer
pause + clear- Specified by:
stop
in interfaceRecognizer
-
clear
public void clear()Description copied from interface:Recognizer
clear input and output buffers and pipeline state, also clean cached features- Specified by:
clear
in interfaceRecognizer
-
create
-
getFeatureId
-