Package com.geniusscansdk.core
Class QuadStreamAnalyzer
- java.lang.Object
-
- com.geniusscansdk.core.QuadStreamAnalyzer
-
public class QuadStreamAnalyzer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuadStreamAnalyzer.Result
static class
QuadStreamAnalyzer.Status
-
Constructor Summary
Constructors Constructor Description QuadStreamAnalyzer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QuadStreamAnalyzer.Result
analyzeQuadStream(Quadrangle quadrangle)
Analyze quadrangle from a video stream.static int
getMinDurationInAboutToTriggerForTrigger()
Minimum duration between DocumentDetectionStatus.ABOUT_TO_TRIGGER and DocumentDetectionStatus.TRIGGER.static void
initQuadrangleAnalyzer()
Reset status of the quadrangle analyzer.
-
-
-
Method Detail
-
analyzeQuadStream
public static QuadStreamAnalyzer.Result analyzeQuadStream(@NonNull Quadrangle quadrangle)
Analyze quadrangle from a video stream. This is intended to be used for real-time detection.- Parameters:
quadrangle
- quadrangle to analyze, can be empty if no document was detected- Returns:
- result containing a status and an optional quadrangle.
-
initQuadrangleAnalyzer
public static void initQuadrangleAnalyzer()
Reset status of the quadrangle analyzer. Should be called when a new video stream starts.
-
getMinDurationInAboutToTriggerForTrigger
public static int getMinDurationInAboutToTriggerForTrigger()
Minimum duration between DocumentDetectionStatus.ABOUT_TO_TRIGGER and DocumentDetectionStatus.TRIGGER.- Returns:
- duration (milliseconds)
-
-