Class IdValidationResult
-
- All Implemented Interfaces:
@Deprecated() public class IdValidationResult
Stores result of ID validation scanning
-
-
Field Summary
Fields Modifier and Type Field Description public StringfrontIdPathpublic StringfrontIdCroppedFacePathpublic intfrontIdResultpublic StringbackIdPathpublic intbackIdResultpublic IncodeWelcome.OCRDataocrDatapublic IdCategoryidCategorypublic StringfrontIdBase64public StringbackIdBase64
-
Constructor Summary
Constructors Constructor Description IdValidationResult(String frontIdPath, String frontIdCroppedFacePath, int frontIdResult, String backIdPath, int backIdResult, IncodeWelcome.OCRData ocrData, IdCategory idCategory, String frontIdBase64, String backIdBase64)IdValidationResult()
-
Method Summary
Modifier and Type Method Description StringgetFrontIdPath()voidsetFrontIdPath(String frontIdPath)StringgetFrontIdCroppedFacePath()voidsetFrontIdCroppedFacePath(String frontIdCroppedFacePath)intgetFrontIdResult()voidsetFrontIdResult(int frontIdResult)StringgetBackIdPath()voidsetBackIdPath(String backIdPath)intgetBackIdResult()voidsetBackIdResult(int backIdResult)IncodeWelcome.OCRDatagetOcrData()voidsetOcrData(IncodeWelcome.OCRData ocrData)IdCategorygetIdCategory()voidsetIdCategory(IdCategory idCategory)StringgetFrontIdBase64()voidsetFrontIdBase64(String frontIdBase64)StringgetBackIdBase64()voidsetBackIdBase64(String backIdBase64)StringtoString()-
-
Constructor Detail
-
IdValidationResult
IdValidationResult(String frontIdPath, String frontIdCroppedFacePath, int frontIdResult, String backIdPath, int backIdResult, IncodeWelcome.OCRData ocrData, IdCategory idCategory, String frontIdBase64, String backIdBase64)
-
IdValidationResult
IdValidationResult()
-
-
Method Detail
-
getFrontIdPath
String getFrontIdPath()
- Returns:
URI pointing to the front of the ID
-
setFrontIdPath
void setFrontIdPath(String frontIdPath)
-
getFrontIdCroppedFacePath
String getFrontIdCroppedFacePath()
- Returns:
URI pointing to the face cropped from the front of the ID
-
setFrontIdCroppedFacePath
void setFrontIdCroppedFacePath(String frontIdCroppedFacePath)
-
getFrontIdResult
int getFrontIdResult()
- Returns:
Front ID validation result -1 : Unknown error 0 : OK, front ID validated successfully 1 : ID is possibly fake or it can't be classified as a valid ID 2 : Error while extracting picture from the ID 3 : There is to much glare on the photo 4 : Sharpness of the photo is too low 5 : There is too much shadow on the photo 6 : Passport is possibly fake or it can't be classified as a valid passport 8 : ID picture is not readable enough to perform validation
-
setFrontIdResult
void setFrontIdResult(int frontIdResult)
-
getBackIdPath
String getBackIdPath()
- Returns:
URI pointing to the back of the ID
-
setBackIdPath
void setBackIdPath(String backIdPath)
-
getBackIdResult
int getBackIdResult()
- Returns:
Back ID validation result -1 : Unknown error 0 : OK, front ID validated successfully 1 : ID is possibly fake or it can't be classified as a valid ID 3 : There is to much glare on the photo 4 : Sharpness of the photo is too low 5 : There is too much shadow on the photo 8 : ID picture is not readable enough to perform validation
-
setBackIdResult
void setBackIdResult(int backIdResult)
-
getOcrData
IncodeWelcome.OCRData getOcrData()
- Returns:
OCR Results containing birthDate, name, address, gender, etc.
-
setOcrData
void setOcrData(IncodeWelcome.OCRData ocrData)
-
getIdCategory
IdCategory getIdCategory()
- Returns:
Category of the ID, meaning if it's first or second ID
-
setIdCategory
void setIdCategory(IdCategory idCategory)
-
getFrontIdBase64
String getFrontIdBase64()
- Returns:
base64 String for Front ID bitmap or Passport scan bitmap
-
setFrontIdBase64
void setFrontIdBase64(String frontIdBase64)
-
getBackIdBase64
String getBackIdBase64()
- Returns:
base64 String for Back ID bitmap
-
setBackIdBase64
void setBackIdBase64(String backIdBase64)
-
-
-
-