getOrientation method

DocumentOrientation getOrientation()

Gets the document orientation in source image. (0,0,0) means the document is in front of the camera.

return Document orientation in source image. (0,0,0) means the document is in front of the camera. throws DocumentException An error has occurred during Document Library execution.

Implementation

DocumentOrientation getOrientation() {
  Pointer<id3DocumentOrientation> pOrientation = calloc();
  var err = documentSDK.id3DetectedDocument_GetOrientation(_pHandle.value, pOrientation);
  if (err != DocumentError.success.value) {
  	calloc.free(pOrientation);
  	throw DocumentException(err);
  }
  return DocumentOrientation(pOrientation);
}