Class ScannerConfig.Builder
java.lang.Object
com.regula.documentreader.api.config.ScannerConfig.Builder
- Enclosing class:
ScannerConfig
-
Constructor Summary
ConstructorDescriptionBuilder
(OnlineProcessingConfig onlineProcessingConfig) New ScannerConfig.Builder instance Use for Online processing withOnlineMode.MANUAL
New ScannerConfig.Builder instanceBuilder
(String scenario, OnlineProcessingConfig onlineProcessingConfig) New ScannerConfig.Builder instance -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCameraId
(int cameraId) Set ID of the camera to be used for video capturingsetExtPortrait
(Bitmap extPortrait) Portrait photo from an external sourcesetLivePortrait
(Bitmap livePortrait) Live portrait photosetOnlineProcessingConfig
(OnlineProcessingConfig onlineProcessingConfig) Set online processing configuration
-
Constructor Details
-
Builder
New ScannerConfig.Builder instance- Parameters:
scenario
-Scenario.Scenarios
-
Builder
New ScannerConfig.Builder instance- Parameters:
scenario
-Scenario.Scenarios
onlineProcessingConfig
-OnlineProcessingConfig
-
Builder
New ScannerConfig.Builder instance Use for Online processing withOnlineMode.MANUAL
- Parameters:
onlineProcessingConfig
-OnlineProcessingConfig
-
-
Method Details
-
setOnlineProcessingConfig
public ScannerConfig.Builder setOnlineProcessingConfig(OnlineProcessingConfig onlineProcessingConfig) Set online processing configuration- Parameters:
onlineProcessingConfig
-OnlineProcessingConfig
-
setCameraId
Set ID of the camera to be used for video capturing -
setLivePortrait
Live portrait photo- Parameters:
livePortrait
- base64 photo- Returns:
- builder
-
setExtPortrait
Portrait photo from an external source- Parameters:
extPortrait
- base64 photo- Returns:
- builder
-
build
- Returns:
- a new ScannerConfig
-