Note
The Adaptive Recognition API is still in beta and may change in future versions of Scandit Data Capture SDK.
Label Capture Adaptive Recognition Overlay
Note
The Adaptive Recognition Engine helps making Smart Label Capture more robust and scalable thanks to its larger, more capable model hosted in the cloud. Whenever Smart Label Capture’s on-device model fails to capture data, the SDK will automatically trigger the Adaptive Recognition Engine to capture complex, unforeseen data capture and process it with high accuracy and reliability.
Defined in package com.scandit.datacapture.label.ui.overlay.adaptiverecognition
- LabelCaptureAdaptiveRecognitionOverlay
class LabelCaptureAdaptiveRecognitionOverlay : FrameLayout
Added in version 7.6.0
Specialized overlay that provides a guided adaptive recognition experience for Label Capture. The overlay coordinates the UI during the adaptive recognition flow and reports results through the LabelCaptureAdaptiveRecognitionListener.
- newInstance(context, mode, view)
static @NonNull LabelCaptureAdaptiveRecognitionOverlay newInstance(@NonNull Context context, LabelCapture mode, @Nullable DataCaptureView view)
Added in version 7.6.0
Constructs a new overlay to visualize the adaptive recognition receipt scanning flow. When
viewis non-null, the overlay is automatically added to the view. Otherwise, it must be added through DataCaptureView.addOverlay().
- listener
@Nullable LabelCaptureAdaptiveRecognitionListener getListener()
voidsetListener(@Nullable LabelCaptureAdaptiveRecognitionListener value)Added in version 7.6.0
Sets the listener to observe adaptive recognition events from this overlay.
- applySettings(settings)
voidapplySettings(@NonNull LabelCaptureAdaptiveRecognitionSettings settings)Added in version 7.6.0
Apply settings that customize the adaptive recognition UI and behavior. Use this to configure properties such as the processing hint text displayed while the overlay processes captured data.
- onResume()
voidonResume()Added in version 7.6.0
Notifies the overlay that the container has resumed.
This method should be called in a Fragment or Activity’s onResume method to allow starting the scanning process or to restore a state previously paused by onPause().
- onPause()
voidonPause()Added in version 7.6.0
Notifies the overlay that the container has paused.
This method should be called in a Fragment or Activity’s onPause method to pause the scanning flow. The scan state will then be restored when onResume() in called.