Detection
- The SDK receives data from a motion sensor and pauses scanning when a device is moving. Turn on/off the video capture motion control:
DocumentReader.Instance().functionality().edit().setVideoCaptureMotionControl(true).apply();
DocumentReader.Instance().functionality().edit().setVideoCaptureMotionControl(true).apply()
- Pause scanning while a camera is focusing (may decrease the camera processing speed):
DocumentReader.Instance().functionality().edit().setSkipFocusingFrames(true).apply();
DocumentReader.Instance().functionality().edit().setSkipFocusingFrames(true).apply()
- To omit the document focus check, enable the following parameter:
DocumentReader.Instance().processParams().disableFocusingCheck = false;
DocumentReader.Instance().processParams().disableFocusingCheck = false
- Set the maximum value of the deviation of the corners of the document from the 90 degrees value:
DocumentReader.Instance().processParams().perspectiveAngle = 5;
DocumentReader.Instance().processParams().perspectiveAngle = 5
- Specify the minimal area of an image that a document should cover to be treated as a candidate when locating. The value should be in a range from 0 to 1, where 1 is for the document that fully covers the image:
DocumentReader.Instance().processParams().documentAreaMin = 0.7;
- Shorten the list of candidates to process during the document detection in a single image process mode. The option reduces the processing time for specific backgrounds:
DocumentReader.Instance().processParams().fastDocDetect = true;