detectOrientation Function

external fun detectOrientation(detector: ScanDetector): Boolean

Works out which way up this page is and records the result in orientation.

Return

true if an orientation was determined, false if the page gave no usable signal

Parameters

  • detector — a loaded detection model; keep one alive across pages, since loading it is the expensive part

Throws

  • ScanningSdkException — if this picture or the detector has been closed, or if detection fails in the engine
Top