z

Class AutoShotDetector

Wraps the native auto-shot detector which monitors document corner stability to trigger automatic capture.

Namespace: ImageSdkWrapper Assembly: ImageSdkWrapper.MAUI

Inheritance: object

public class AutoShotDetector : IDisposable

Method

AddDetectedCorners(PxlPoint[])

Appends the latest detected document corners and updates stability state. Pass null to reset the detector.

public bool AddDetectedCorners(PxlPoint[] points)

Parameters

  • points (PxlPoint[]): Array of four corner points in SDK order.

Returns

  • bool: true when the detector deems the input stable.

Dispose()

Releases the native detector handle.

public void Dispose()

SetParams(int, int, int)

Configures the detector thresholds and resets the internal state.

public void SetParams(int stable_radius, int stable_delay, int stable_count)

Parameters

  • stable_radius (int): Maximum pixel deviation allowed for each corner.
  • stable_delay (int): Required stability duration in milliseconds.
  • stable_count (int): Number of consecutive stable detections required.
Top