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 Object implements Recognizer
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getFeature

      public Feature getFeature(FeatureId feature)
      Specified by:
      getFeature in interface Recognizer
    • setFeatures

      public void setFeatures(HashSet<FeatureId> features)
      Specified by:
      setFeatures in interface Recognizer
    • addFeature

      public void addFeature(Feature feature, HashSet<FeatureId> dependencies)
      Specified by:
      addFeature in interface Recognizer
    • removeFeature

      public void removeFeature(Feature feature)
      Specified by:
      removeFeature in interface Recognizer
    • 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 interface Recognizer
    • setOfflineMode

      public void setOfflineMode(boolean on)
      Specified by:
      setOfflineMode in interface Recognizer
    • 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 interface Recognizer
    • 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 interface Recognizer
    • process

      public void process(FrameData frameData)
      Specified by:
      process in interface Recognizer
    • pushCameraFrame

      public void pushCameraFrame(FrameData inputFrameData)
      Specified by:
      pushCameraFrame in interface Recognizer
    • popFrameData

      public boolean popFrameData(FrameData outputFrameData)
      Specified by:
      popFrameData in interface Recognizer
    • start

      public void start()
      Description copied from interface: Recognizer
      start the recognizer
      Specified by:
      start in interface Recognizer
    • pause

      public void pause()
      Description copied from interface: Recognizer
      pause the recognizer
      Specified by:
      pause in interface Recognizer
    • stop

      public void stop()
      Description copied from interface: Recognizer
      pause + clear
      Specified by:
      stop in interface Recognizer
    • 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 interface Recognizer
    • create

      @Nullable public static Recognizer create(@NonNull RecognizerMode mode)
    • getFeatureId

      public static long getFeatureId(@NonNull FeatureId feature)