Setting Configurations, Error messages, Camera customization
The following methods are commonly used to set up configurations, error messages, scanning title messages, and camera customization
Methods use to set configs are as follows
AccuraOcr.setFaceBlurPercentage(80);
AccuraOcr.setHologramDetection(true);
AccuraOcr.setLowLightTolerance(10);
AccuraOcr.setMotionThreshold(25);
AccuraOcr.setMinGlarePercentage(6);
AccuraOcr.setMaxGlarePercentage(99);
AccuraOcr.setBlurPercentage(60);
AccuraOcr.setCameraFacing(0);
AccuraOcr.EnableLogs(false);Methods use to set Error messages are as follows
AccuraOcr.ACCURA_ERROR_CODE_MOTION("Keep Document Steady");
AccuraOcr.ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME("Keep document in frame");
AccuraOcr.ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME("Bring card near to frame");
AccuraOcr.ACCURA_ERROR_CODE_PROCESSING("Processing");
AccuraOcr.ACCURA_ERROR_CODE_BLUR_DOCUMENT("Blur detect in document");
AccuraOcr.ACCURA_ERROR_CODE_FACE_BLUR("Blur detected over face");
AccuraOcr.ACCURA_ERROR_CODE_GLARE_DOCUMENT("Glare detect in document");
AccuraOcr.ACCURA_ERROR_CODE_HOLOGRAM("Hologram Detected");
AccuraOcr.ACCURA_ERROR_CODE_DARK_DOCUMENT("Low lighting detected");
AccuraOcr.ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT("Can not accept Photo Copy Document");
AccuraOcr.ACCURA_ERROR_CODE_FACE("Face not detected");
AccuraOcr.ACCURA_ERROR_CODE_MRZ("MRZ not detected");
AccuraOcr.ACCURA_ERROR_CODE_PASSPORT_MRZ("Passport MRZ not detected");
AccuraOcr.ACCURA_ERROR_CODE_ID_MRZ("ID MRZ not detected");
AccuraOcr.ACCURA_ERROR_CODE_VISA_MRZ("Visa MRZ not detected");
AccuraOcr.ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE("Document is upside down. Place it properly");
AccuraOcr.ACCURA_ERROR_CODE_WRONG_SIDE("Scanning wrong side of Document");
AccuraOcr.Disable_Card_Name(false);Methods use to set Scaning title messages are as follows
Methods use to set Camera customization are as follows
Methods use to set all the above configuration is
The example function is shown below
Last updated