Package com.banuba.sdk.recognizer
Class Recognizer.CppProxy
- java.lang.Object
-
- com.banuba.sdk.recognizer.Recognizer.CppProxy
-
- All Implemented Interfaces:
Recognizer
- Enclosing interface:
- Recognizer
public static final class Recognizer.CppProxy extends java.lang.Object implements Recognizer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.recognizer.Recognizer
Recognizer.CppProxy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
void
addFeature(Feature feature, java.util.HashSet<FeatureId> dependencies)
void
clear()
clear input and output buffers and pipeline state, also clean cached featuresstatic Recognizer
create(RecognizerMode mode)
protected void
finalize()
Feature
getFeature(FeatureId feature)
static long
getFeatureId(FeatureId feature)
void
pause()
pause the recognizerboolean
popFrameData(FrameData outputFrameData)
void
process(FrameData frameData)
void
pushCameraFrame(FrameData inputFrameData)
void
removeFeature(Feature feature)
void
setFeatures(java.util.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 Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
getFeature
public Feature getFeature(FeatureId feature)
- Specified by:
getFeature
in interfaceRecognizer
-
setFeatures
public void setFeatures(java.util.HashSet<FeatureId> features)
- Specified by:
setFeatures
in interfaceRecognizer
-
addFeature
public void addFeature(Feature feature, java.util.HashSet<FeatureId> dependencies)
- Specified by:
addFeature
in interfaceRecognizer
-
removeFeature
public void removeFeature(Feature feature)
- 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
public void process(FrameData frameData)
- Specified by:
process
in interfaceRecognizer
-
pushCameraFrame
public void pushCameraFrame(FrameData inputFrameData)
- Specified by:
pushCameraFrame
in interfaceRecognizer
-
popFrameData
public boolean popFrameData(FrameData outputFrameData)
- 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
@Nullable public static Recognizer create(@NonNull RecognizerMode mode)
-
getFeatureId
public static long getFeatureId(@NonNull FeatureId feature)
-
-