Class MetadataCallbacks


  • public final class MetadataCallbacks
    extends java.lang.Object
    Class that contains all possible metadata callbacks that can observe recognition process.
    • Constructor Detail

      • MetadataCallbacks

        public MetadataCallbacks()
    • Method Detail

      • setOcrCallback

        public void setOcrCallback​(@Nullable
                                   OcrCallback ocrCallback)
        Callback that will be invoked with displayable OCR result obtained during recognition process. See OcrCallback for more information.
      • getOcrCallback

        @Nullable
        public OcrCallback getOcrCallback()
        Callback that will be invoked with displayable OCR result obtained during recognition process. See OcrCallback for more information.
      • setFirstSideRecognitionCallback

        public void setFirstSideRecognitionCallback​(@Nullable
                                                    FirstSideRecognitionCallback firstSideRecognitionCallback)
        Callback that will be invoked when first side recognition has completed. See FirstSideRecognitionCallback for more information.
      • setGlareCallback

        public void setGlareCallback​(@Nullable
                                     GlareCallback glareCallback)
        Callback that will be invoked when glare detection has completed. See GlareCallback for more information.
      • getGlareCallback

        @Nullable
        public GlareCallback getGlareCallback()
        Callback that will be invoked when glare detection has completed. See GlareCallback for more information.
      • setDebugImageCallback

        public void setDebugImageCallback​(@Nullable
                                          DebugImageCallback debugImageCallback)
        Callback that will be invoked when recognition process wishes to display a debug image. See DebugImageCallback for more information.
      • getDebugImageCallback

        @Nullable
        public DebugImageCallback getDebugImageCallback()
        Callback that will be invoked when recognition process wishes to display a debug image. See DebugImageCallback for more information.
      • setDebugTextCallback

        public void setDebugTextCallback​(@Nullable
                                         DebugTextCallback debugTextCallback)
        Callback that will be invoked when debug text information gets available. See DebugTextCallback for more information.
      • getDebugTextCallback

        @Nullable
        public DebugTextCallback getDebugTextCallback()
        Callback that will be invoked when debug text information gets available. See DebugTextCallback for more information.
      • setQuadDetectionCallback

        public void setQuadDetectionCallback​(@Nullable
                                             QuadDetectionCallback quadDetectionCallback)
        A callback that will be invoked when DisplayableQuadDetection gets available. See QuadDetectionCallback for more information.
      • getQuadDetectionCallback

        @Nullable
        public QuadDetectionCallback getQuadDetectionCallback()
        A callback that will be invoked when DisplayableQuadDetection gets available. See QuadDetectionCallback for more information.
      • setPointsDetectionCallback

        public void setPointsDetectionCallback​(@Nullable
                                               PointsDetectionCallback pointsDetectionCallback)
        A callback that will be invoked when DisplayablePointsDetection gets available. See PointsDetectionCallback for more information.
      • getPointsDetectionCallback

        @Nullable
        public PointsDetectionCallback getPointsDetectionCallback()
        A callback that will be invoked when DisplayablePointsDetection gets available. See PointsDetectionCallback for more information.