Interface VideoAlgorithmProvider
- All Superinterfaces:
AlgorithmProvider
- All Known Subinterfaces:
VideoBackend
- All Known Implementing Classes:
JavaCVMediaBackend, MulticoreVideoBackend, NativeJavaCVMediaBackend, NativeVideoBackend, VLCJMediaBackend
Service Provider Interface (SPI) for video algorithm providers.
- Since:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondetectMotion(float[][] prev, float[][] curr, float threshold) Detects motion between two frames.default List<SceneTransitionDetector.Transition> detectTransitions(List<float[][]> frames, double threshold) Detects scene transitions in a list of frames.default StringReturns the unique category of the algorithm.default StringgetName()Methods inherited from interface AlgorithmProvider
description, getMetadata, getPriority, isAvailable, score, shutdown
-
Method Details
-
getName
- Specified by:
getNamein interfaceAlgorithmProvider
-
getAlgorithmType
Description copied from interface:AlgorithmProviderReturns the unique category of the algorithm.- Specified by:
getAlgorithmTypein interfaceAlgorithmProvider
-
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
-