Class RecognizeConfig.Builder
java.lang.Object
com.regula.documentreader.api.config.RecognizeConfig.Builder
- All Implemented Interfaces:
RecognizeConfig.IBuilder
- Enclosing class:
RecognizeConfig
public static final class RecognizeConfig.Builder
extends Object
implements RecognizeConfig.IBuilder
-
Constructor Summary
ConstructorDescriptionBuilder
(OnlineProcessingConfig onlineProcessingConfig) New RecognizeConfig.Builder instanceNew RecognizeConfig.Builder instance -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBitmap
(Bitmap bitmap) Set image of document to be processed (e.g.setBitmaps
(Bitmap[] bitmaps) Set multiple images to be processedsetData
(byte[] data) Set an image in any formatsetExtPortrait
(Bitmap extPortrait) Portrait photo from an external sourcesetImageInputData
(ImageInputData[] imageInputData) Set multiple imagessetLivePortrait
(Bitmap livePortrait) Live portrait photosetOneShotIdentification
(boolean oneShotIdentification)
-
Constructor Details
-
Builder
New RecognizeConfig.Builder instance- Parameters:
scenario
-Scenario.Scenarios
-
Builder
New RecognizeConfig.Builder instance- Parameters:
onlineProcessingConfig
-OnlineProcessingConfig
-
-
Method Details
-
setBitmap
Set image of document to be processed (e.g. from gallery)- Parameters:
bitmap
- Bitmap
-
setBitmaps
Set multiple images to be processed- Parameters:
bitmaps
- array of Bitmap
-
setData
Set an image in any format- Parameters:
data
- binary data
-
setImageInputData
Set multiple images- Parameters:
imageInputData
- array ofImageInputData
-
setLivePortrait
Live portrait photo- Parameters:
livePortrait
- bitmap photo- Returns:
- builder
-
setExtPortrait
Portrait photo from an external source- Parameters:
extPortrait
- bitmap photo- Returns:
- builder
-
setOneShotIdentification
- Specified by:
setOneShotIdentification
in interfaceRecognizeConfig.IBuilder
-
build
- Specified by:
build
in interfaceRecognizeConfig.IBuilder
- Returns:
- a new RecognizeConfig
-