Skip to content

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();
RGLDocReader.Shared.Functionality.VideoCaptureMotionControl = true;
  • Pause scanning while a camera is focusing (may decrease the camera processing speed):
DocumentReader.Instance().Functionality().Edit().SetSkipFocusingFrames(true).Apply();
RGLDocReader.Shared.Functionality.SkipFocusingFrames = true;
  • To omit the document focus check, enable the following parameter:
DocumentReader.Instance().ProcessParams().DisableFocusingCheck = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.DisableFocusingCheck = true;
  • Set the maximum value of the deviation of the corners of the document from the 90 degrees value:
DocumentReader.Instance().ProcessParams().PerspectiveAngle = (Java.Lang.Integer)5;
RGLDocReader.Shared.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 = (Java.Lang.Float)0.7F;
RGLDocReader.Shared.ProcessParams.DocumentAreaMin = 0.7F;
  • 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 = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.FastDocDetect = true;

Next Steps