DocSDK
2.4.1
|
Liveness pipeline result. More...
#include <liveness_pipeline.h>
Data Structures | |
struct | Value |
Document liveness check result. More... | |
Public Member Functions | |
LivenessPipelineResult ()=default | |
LivenessPipelineResult (ValidationStatusCode status_code) | |
LivenessPipelineResult (Value value) | |
const Value & | GetValue () const |
const ValidationStatusCode & | GetStatusCode () const noexcept |
bool | Ok () const noexcept |
Friends | |
std::ostream & | operator<< (std::ostream &os, const LivenessPipelineResult &result) |
Liveness pipeline result.
Image quality warning (image quality check is performed along with liveness check)
Enumerator | |
---|---|
kRelativeDocumentSizeLowerThan10Percent | Document size (area) is lower than 10% of the frame size |
kDocumentBordersOutsideOfFrame | Document border(s) are outside of the frame, corresponds to ValidationStatusCode::kDocumentCropped |
kMultipleDocumentsInFrame | More than one document are present in the frame, corresponds to ValidationStatusCode::kTooManyDocuments |
kDocumentTooCloseToBorder | Document is too close to the frame border |
kImageTooBlurry | Image is too blurry |
kImageTooCompressed | Image is too compressed |
kPoorImageExposure | Image is either too bright or too dark |
kGlareOnImage | Image has glare |
Image validation status code (image validation is performed beforehand each liveness check)
Enumerator | |
---|---|
kOk | Validation successful |
kDocumentTooCloseToCamera | Document is too close to the camera |
kDocumentTooCloseToBorder | Document is too close to the image border |
kDocumentCropped | Document is cropped (part of the document is not present in the image), corresponds to ImageQualityWarning::kDocumentBordersOutsideOfFrame |
kDocumentNotFound | Document is not detected in the image |
kDocumentTooSmall | Document size in the image is too small |
kTooManyDocuments | Too many documents were detected in the image, corresponds to ImageQualityWarning::kMultipleDocumentsInFrame |
kDocumentIsColorless | Document is colorless (black and white) |
kDocumentPhotoNotFound | Document photo is not detected in the image |
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
inlinenoexcept |
Returns validation status code.
|
inline |
Returns document liveness checking result if validation was successful. Otherwise, throws an exception.
std::runtime_error |
|
inlinenoexcept |
Returns a binary value indicated whether the validation was successful.
|
friend |