getDocumentWidthRatio method
Gets the ratio of the estimated width of the searched document in the image. Hint: Default value is 1.
return Ratio of the estimated width of the searched document in the image. throws DocumentException An error has occurred during Document Library execution.
Implementation
double getDocumentWidthRatio() {
Pointer<Float> pDocumentWidthRatio = calloc();
try {
var err = documentSDK.id3DocumentDetector_GetDocumentWidthRatio(_pHandle.value, pDocumentWidthRatio);
if (err != DocumentError.success.value) {
throw DocumentException(err);
}
final vDocumentWidthRatio = pDocumentWidthRatio.value;
return vDocumentWidthRatio;
} finally {
calloc.free(pDocumentWidthRatio);
}
}