Actions2
Extract Paper
AI-generatedSummary
Extract and undistort a rectangular paper document from an input image binary, resizing it to the specified width and height in pixels.
Inputs
- Input Binary Field (required) — Name of the binary property containing the input image to process.
- Output Binary Field (required) — Name of the binary property where the extracted and undistorted paper image will be stored.
- Paper Width — Width in pixels of the output extracted paper image.
- Paper Height — Height in pixels of the output extracted paper image.
Output shape
a single item per input containing the extracted paper image as binary data under the specified output field
If a paper rectangle is detected, the node outputs an undistorted perspective-corrected paper image resized to the specified dimensions. If no paper is detected, the input image is resized to the given dimensions and output instead. The output binary maintains the original file name and MIME type if present; otherwise defaults to PNG format.