Package com.banuba.sdk.recognizer
Interface Recognizer
-
- All Known Implementing Classes:
Recognizer.CppProxy
public interface Recognizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Recognizer.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
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
-
setFeatures
void setFeatures(@NonNull java.util.HashSet<FeatureId> features)
-
addFeature
void addFeature(@Nullable Feature feature, @NonNull java.util.HashSet<FeatureId> dependencies)
-
removeFeature
void removeFeature(@Nullable Feature feature)
-
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
void process(@Nullable FrameData frameData)
-
pushCameraFrame
void pushCameraFrame(@Nullable FrameData inputFrameData)
-
popFrameData
boolean popFrameData(@Nullable FrameData outputFrameData)
-
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
@Nullable static Recognizer create(@NonNull RecognizerMode mode)
-
getFeatureId
static long getFeatureId(@NonNull FeatureId feature)
-
-