# eCheckDiagnose

`eCheckDiagnose` enumeration contains identificators which determinate the result of the text field comparison from the different sources.

```java
public class eCheckDiagnose {
    public static final int UNKNOWN = 0;
    public static final int PASS = 1;
    public static final int INVALID_INPUT_DATA = 2;
    public static final int INTERNAL_ERROR = 3;
    public static final int EXCEPTION_IN_MODULE = 4;
    public static final int UNCERTAIN_VERIFICATION = 5;
    public static final int NECESSARY_IMAGE_NOT_FOUND = 7;
    public static final int PHOTO_SIDES_NOT_FOUND = 8;
    public static final int INVALID_CHECKSUM = 10;
    public static final int SYNTAX_ERROR = 11;
    public static final int LOGIC_ERROR = 12;
    public static final int SOURCES_COMPARISON_ERROR = 13;
    public static final int FIELDS_COMPARISON_LOGIC_ERROR = 14;
    public static final int INVALID_FIELD_FORMAT = 15;
    public static final int TRUE_LUMINISCENCE_ERROR = 20;
    public static final int FALSE_LUMINISCENCE_ERROR = 21;
    public static final int FIXED_PATTERN_ERROR = 22;
    public static final int LOW_CONTRAST_IN_IR_LIGHT = 23;
    public static final int INCORRECT_BACKGROUND_LIGHT = 24;
    public static final int BACKGROUND_COMPARISON_ERROR = 25;
    public static final int INCORRECT_TEXT_COLOR = 26;
    public static final int PHOTO_FALSE_LUMINISCENCE = 27;
    public static final int TOO_MUCH_SHIFT = 28;
    public static final int FIBERS_NOT_FOUND = 30;
    public static final int TOO_MANY_OBJECTS = 31;
    public static final int SPECKS_IN_UV = 33;
    public static final int TOO_LOW_RESOLUTION = 34;
    public static final int INVISIBLE_ELEMENT_PRESENT = 40;
    public static final int VISIBLE_ELEMENT_ABSENT = 41;
    public static final int ELEMENT_SHOULD_BE_COLORED = 42;
    public static final int ELEMENT_SHOULD_BE_GRAYSCALE = 43;
    public static final int UV_DULL_PAPER_MRZ = 50;
    public static final int FALSE_LUMINISCENCE_IN_MRZ = 51;
    public static final int UV_DULL_PAPER_PHOTO = 52;
    public static final int UV_DULL_PAPER_BLANK = 53;
    public static final int UV_DULL_PAPER_ERROR = 54;
    public static final int FALSE_LUMINISCENCE_IN_BLANK = 55;
    public static final int BAD_AREA_IN_AXIAL = 60;
    public static final int FALSE_IPI_PARAMETERS = 65;
    public static final int FIELD_POS_CORRECTOR_HIGHLIGHT_IR = 80;
    public static final int OVI_IR_INVISIBLE = 90;
    public static final int OVI_INSUFFICIENT_AREA = 91;
    public static final int OVI_COLOR_INVARIABLE = 92;
    public static final int OVI_BAD_COLOR_FRONT = 93;
    public static final int OVI_BAD_COLOR_SIDE = 94;
    public static final int OVI_WIDE_COLOR_SPREAD = 95;
    public static final int OVI_BAD_COLOR_PERCENT = 96;
    public static final int HOLOGRAM_ELEMENT_ABSENT = 100;
    public static final int HOLOGRAM_SIDE_TOP_IMAGES_ABSENT = 101;
    public static final int HOLOGRAM_ELEMENT_PRESENT = 102;
    public static final int PHOTO_PATTERN_INTERRUPTED = 110;
    public static final int PHOTO_PATTERN_SHIFTED = 111;
    public static final int PHOTO_PATTERN_DIFFERENT_COLORS = 112;
    public static final int PHOTO_PATTERN_IR_VISIBLE = 113;
    public static final int PHOTO_PATTERN_NOT_INTERSECT = 114;
    public static final int PHOTO_SIZE_IS_WRONG = 115;
    public static final int PHOTO_PATTERN_INVALID_COLOR = 116;
    public static final int PHOTO_PATTERN_SHIFTED_VERT = 117;
    public static final int PHOTO_PATTERN_PATTERN_NOT_FOUND = 118;
    public static final int PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS = 119;
    public static final int PHOTO_IS_NOT_RECTANGLE = 120;
    public static final int PHOTO_CORNERS_IS_WRONG = 121;
    public static final int DOCUMENT_IS_CANCELLING = 122;
    public static final int TEXT_COLOR_SHOULD_BE_BLUE = 130;
    public static final int TEXT_COLOR_SHOULD_BE_GREEN = 131;
    public static final int TEXT_COLOR_SHOULD_BE_RED = 132;
    public static final int TEXT_SHOULD_BE_BLACK = 133;
    public static final int BARCODE_WAS_READ_WITH_ERRORS = 140;
    public static final int BARCODE_DATA_FORMAT_ERROR = 141;
    public static final int BARCODE_SIZE_PARAMS_ERROR = 142;
    public static final int NOT_ALL_BARCODES_READ = 143;
    public static final int PORTRAIT_COMPARISON_PORTRAITS_DIFFER = 150;
    public static final int PORTRAIT_COMPARISON_NO_SERVICE_REPLY = 151;
    public static final int PORTRAIT_COMPARISON_SERVICE_ERROR = 152;
    public static final int PPORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES = 153;
    public static final int PORTRAIT_COMPARISON_NO_LIVE_PHOTO = 154;
    public static final int PORTRAIT_COMPARISON_NO_SERVICE_LICENSE = 155;
}
```

| Constant                                        | Description                                                            |
| ----------------------------------------------- | ---------------------------------------------------------------------- |
| **UNKNOWN**                                     | check was not performed                                                |
| **PASS**                                        | check was OK                                                           |
| **INVALID\_INPUT\_DATA**                        | invalid input data                                                     |
| **INTERNAL\_ERROR**                             | internal error in module                                               |
| **EXCEPTION\_IN\_MODULE**                       | exception caught                                                       |
| **UNCERTAIN\_VERIFICATION**                     | can't make reliable decision                                           |
| **NECESSARY\_IMAGE\_NOT\_FOUND**                | image in necessary light was not found                                 |
| **PHOTO\_SIDES\_NOT\_FOUND**                    | necessary side of photo was not found                                  |
| **INVALID\_CHECKSUM**                           | invalid checksum                                                       |
| **SYNTAX\_ERROR**                               | syntactical error                                                      |
| **LOGIC\_ERROR**                                | logical error                                                          |
| **SOURCES\_COMPARISON\_ERROR**                  | comparison was incorrect                                               |
| **FIELDS\_COMPARISON\_LOGIC\_ERROR**            | logical error, e.g. the current date is less than issue date           |
| **INVALID\_FIELD\_FORMAT**                      | wrong field format                                                     |
| **TRUE\_LUMINISCENCE\_ERROR**                   | element of the luminescense in the UV does not meet the standard       |
| **FALSE\_LUMINISCENCE\_ERROR**                  | the presence of excess luminescence in UV                              |
| **FIXED\_PATTERN\_ERROR**                       | pattern does not match the standard                                    |
| **LOW\_CONTRAST\_IN\_IR\_LIGHT**                | low contrast of object in transmitted IR light                         |
| **INCORRECT\_BACKGROUND\_LIGHT**                | background of page is too light or has invalid color                   |
| **BACKGROUND\_COMPARISON\_ERROR**               | background lightness of two pages is different                         |
| **INCORRECT\_TEXT\_COLOR**                      | text has incorrect color of luminescence in UV light                   |
| **PHOTO\_FALSE\_LUMINISCENCE**                  | invalid luminescence in photo area                                     |
| **TOO\_MUCH\_SHIFT**                            | object is too shifted from standard coordinates                        |
| **FIBERS\_NOT\_FOUND**                          | no protective fibers were found in UV                                  |
| **TOO\_MANY\_OBJECTS**                          | error finding fibers, too many objects                                 |
| **SPECKS\_IN\_UV**                              | speck or exposure in UV image                                          |
| **TOO\_LOW\_RESOLUTION**                        | resolution too low for fibers search                                   |
| **INVISIBLE\_ELEMENT\_PRESENT**                 | erroneous visibility of the element in IR                              |
| **VISIBLE\_ELEMENT\_ABSENT**                    | element is absent in IR                                                |
| **ELEMENT\_SHOULD\_BE\_COLORED**                | element should be in color                                             |
| **ELEMENT\_SHOULD\_BE\_GRAYSCALE**              | element should be in grayscale                                         |
| **UV\_DULL\_PAPER\_MRZ**                        | glow paper in MRZ                                                      |
| **FALSE\_LUMINISCENCE\_IN\_MRZ**                | luminescence characters in MRZ                                         |
| **UV\_DULL\_PAPER\_PHOTO**                      | glow in the field of photo paper                                       |
| **UV\_DULL\_PAPER\_BLANK**                      | glow of the whole paper form                                           |
| **UV\_DULL\_PAPER\_ERROR**                      | glow of the document in UV                                             |
| **FALSE\_LUMINISCENCE\_IN\_BLANK**              | element of blank has luminescence                                      |
| **BAD\_AREA\_IN\_AXIAL**                        | violation of the retro-reflective protection                           |
| **FALSE\_IPI\_PARAMETERS**                      | invalid params for IPI check                                           |
| **FIELD\_POS\_CORRECTOR\_HIGHLIGHT\_IR**        | IR image too bright                                                    |
| **OVI\_IR\_INVISIBLE**                          | OVI object is not visible in IR                                        |
| **OVI\_INSUFFICIENT\_AREA**                     | insufficient area of the object OVI                                    |
| **OVI\_COLOR\_INVARIABLE**                      | OVI color of an object does not change                                 |
| **OVI\_BAD\_COLOR\_FRONT**                      | impossible to determine the color of the AXIAL image                   |
| **OVI\_BAD\_COLOR\_SIDE**                       | impossible to determine the color of the WHITE image                   |
| **OVI\_WIDE\_COLOR\_SPREAD**                    | wide color spread                                                      |
| **OVI\_BAD\_COLOR\_PERCENT**                    | not enough color information                                           |
| **HOLOGRAM\_ELEMENT\_ABSENT**                   | hologram element absent                                                |
| **HOLOGRAM\_SIDE\_TOP\_IMAGES\_ABSENT**         | there are no side or top images. Check cancelled                       |
| **HOLOGRAM\_ELEMENT\_PRESENT**                  | hologram element present                                               |
| **PHOTO\_PATTERN\_INTERRUPTED**                 | pattern is interrupted                                                 |
| **PHOTO\_PATTERN\_SHIFTED**                     | some of the patterns are shifted relative to each other                |
| **PHOTO\_PATTERN\_DIFFERENT\_COLORS**           | some parts of the pattern have different color                         |
| **PHOTO\_PATTERN\_IR\_VISIBLE**                 | pattern visible in the infrared                                        |
| **PHOTO\_PATTERN\_NOT\_INTERSECT**              | edge of the photo does not intersect with the pattern. Check cancelled |
| **PHOTO\_SIZE\_IS\_WRONG**                      | size of the photo does not correspond to requirements                  |
| **PHOTO\_PATTERN\_INVALID\_COLOR**              | some parts of the pattern have invalid color                           |
| **PHOTO\_PATTERN\_SHIFTED\_VERT**               | some patterns are relatively shifted                                   |
| **PHOTO\_PATTERN\_PATTERN\_NOT\_FOUND**         | not found Pattern. Check cancelled                                     |
| **PHOTO\_PATTERN\_DIFFERENT\_LINES\_THICKNESS** | different lines thickness                                              |
| **PHOTO\_IS\_NOT\_RECTANGLE**                   | photo shape is not rectangular                                         |
| **PHOTO\_CORNERS\_IS\_WRONG**                   | photo corners don't satisfy the requirements                           |
| **DOCUMENT\_IS\_CANCELLING**                    | for internal use                                                       |
| **TEXT\_COLOR\_SHOULD\_BE\_BLUE**               | text color should be blue                                              |
| **TEXT\_COLOR\_SHOULD\_BE\_GREEN**              | text color should be green                                             |
| **TEXT\_COLOR\_SHOULD\_BE\_RED**                | text color should be red                                               |
| **TEXT\_SHOULD\_BE\_BLACK**                     | text should be black                                                   |
| **BARCODE\_WAS\_READ\_WITH\_ERRORS**            | barcode read with errors                                               |
| **BARCODE\_DATA\_FORMAT\_ERROR**                | barcode data format error                                              |
| **BARCODE\_SIZE\_PARAMS\_ERROR**                | barcode size parameters error                                          |
| **NOT\_ALL\_BARCODES\_READ**                    | this document should contain more barcodes                             |
| **PORTRAIT\_COMPARISON\_PORTRAITS\_DIFFER**     | the portraits do not match                                             |
| **PORTRAIT\_COMPARISON\_NO\_SERVICE\_REPLY**    | the service does not respond                                           |
| **PORTRAIT\_COMPARISON\_SERVICE\_ERROR**        | service error                                                          |
| **PPORTRAIT\_COMPARISON\_NOT\_ENOUGH\_IMAGES**  | not enough images                                                      |
| **PORTRAIT\_COMPARISON\_NO\_LIVE\_PHOTO**       | there is no camera image                                               |
| **PORTRAIT\_COMPARISON\_NO\_SERVICE\_LICENSE**  | there is no license for the service                                    |
