Interface VideoAlgorithmProvider

All Superinterfaces:
AlgorithmProvider
All Known Subinterfaces:
VideoBackend
All Known Implementing Classes:
JavaCVMediaBackend, MulticoreVideoBackend, NativeJavaCVMediaBackend, NativeVideoBackend, VLCJMediaBackend

public interface VideoAlgorithmProvider extends AlgorithmProvider
Service Provider Interface (SPI) for video algorithm providers.
Since:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • getName

      default String getName()
      Specified by:
      getName in interface AlgorithmProvider
    • getAlgorithmType

      default String getAlgorithmType()
      Description copied from interface: AlgorithmProvider
      Returns the unique category of the algorithm.
      Specified by:
      getAlgorithmType in interface AlgorithmProvider
    • detectMotion

      default SceneTransitionDetector.Transition detectMotion(float[][] prev, float[][] curr, float threshold)
      Detects motion between two frames.
      Parameters:
      prev - Gray frame (float[][])
      curr - Gray frame (float[][])
      threshold - Sensitivity threshold
      Returns:
      Motion result
    • detectTransitions

      default List<SceneTransitionDetector.Transition> detectTransitions(List<float[][]> frames, double threshold)
      Detects scene transitions in a list of frames.
      Parameters:
      frames - List of gray frames (float[][])
      threshold - Sensitivity threshold
      Returns:
      List of transitions