Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Vision.RectifyDocument

Performs document detection and segmentation in an image.

Component Version macOS Windows Linux Server iOS SDK
Vision 14.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "Vision.RectifyDocument"; Image { ; ImageType; FileName } )   More

Parameters

Parameter Description Example Flags
Image The image to analyze.
Can be container value with JPEG, PNG or other image formats supported by Vision framework.
$image
ImageType The type of image to return.
Either JPEG, PNG or TIFF. Default is JPEG.
"JPEG" Optional
FileName The filename to use for the picture.
Default is "image" with the extension matching the image type.
"test.jpg" Optional

Result

Returns container or error.

Description

Performs document detection and segmentation in an image.
The first document we find is rectified and returned.

Examples

Rectify an image:

Set Variable [ $InputImage ; Value: Assets::Image ]
Set Variable [ $outputImage ; Value: MBS("Vision.RectifyDocument"; $InputImage) ]
Set Field [ Assets::NewImage ; $outputImage ]

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 11st October 2024, last changed 11st October 2024


Vision.RecognizeTextJSON - Vision.SupportedRecognitionLanguages