public class TextDataScannerConfiguration
Class which is used to configure io.scanbot.sdk.ui.view.generictext.TextDataScannerActivity Contains settings indicating views Behaviour, Texts and Appearance
public TextDataScannerConfiguration()
Class which is used to configure io.scanbot.sdk.ui.view.generictext.TextDataScannerActivity Contains settings indicating views Behaviour, Texts and Appearance
@NotNull public java.util.Map<java.lang.String,java.io.Serializable> getDataScannerConfiguration()
public void setFlashEnabled(boolean flashEnabled)
Controls whether the flash should be initially enabled. The default value is FALSE.
public void setOrientationLockMode(@NotNull
io.scanbot.sdk.ui.view.base.configuration.CameraOrientationMode cameraOrientationMode)
Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. By default the camera orientation is not locked.
public void setCameraModule(@NotNull
io.scanbot.sdk.camera.CameraModule cameraModule)
Set supported camera module: CameraModule.BACK, CameraModule.FRONT or others. Optional. By default is CameraModule.BACK.
public void setTopBarBackgroundColor(int topBarBackgroundColor)
Background color of the top toolbar.
public void setTopBarButtonsColor(int topBarButtonsColor)
Color of the titles of all buttons in the top toolbar.
public void setTopBarButtonsInactiveColor(int topBarButtonsInactiveColor)
Color of the titles of all buttons in the top toolbar.
public void setCameraOverlayColor(int cameraOverlayColor)
Background color outside of the finder window.
public void setFinderLineWidth(@Px
int finderLineWidth)
Thickness of the finder window's outline.
public void setFinderLineColor(int finderLineColor)
Color of the finder window's outline.
public void setFinderTextHintColor(int finderTextHintColor)
The color of the text with user guidance below the finder view
public void setCancelButtonTitle(@NotNull
java.lang.String cancelButtonTitle)
Title of the cancel button.
public void setEnableCameraExplanationText(@NotNull
java.lang.String enableCameraExplanationText)
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
public void setEnableCameraButtonTitle(@NotNull
java.lang.String enableCameraButtonTitle)
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
public void setWordBoxHighlightColor(int color)
The color of the highlight of the wordboxes founded on the frame
public void setWordBoxHighlightEnabled(boolean enabled)
If the wordboxes should be highlighted when were found on the frame
public void setMinimumNumberOfRequiredFramesWithEqualRecognitionResult(int numberOfFrames)
Minimum number of accumulated frames that have equal result
public void setMaximumNumberOfAccumulatedFrames(int numberOfFrames)
Maximum number of accumulated frames to inspect before actual result is returned
public void setSupportedLanguages(@NotNull
java.util.Set<? extends io.scanbot.sdk.entity.Language> supportedLanguages)
Languages on which the recognition will be run
public void setOcrResolutionLimit(@Px
int ocrResolutionLimit)
The image will be downscaled to the given value during the processing. If the quality of the scanning is not enough, try to increase the limit. This variable affects the performance of the scanning process. Higher the size limit - better the quality, but the recognition is slower
0 - do not rescale.
public void setUseButtonsAllCaps(boolean allCaps)
Controls whether buttons should use all capitals style