crop_drawing
Save a selected drawing region as a PNG at a readable scale and get the pixel transform between crop and source, keeping coordinates usable for CAD workflows.
Instructions
Save one model-selected raster drawing region at readable scale. bbox_px is exact source-image [x0,y0,x1,y1]; scale is 0.25..12. Returns the saved PNG path and an exact crop-pixel→source-pixel transform, so coordinates read from the enlargement remain usable. This is a mechanical crop only: it performs no OCR, feature recognition, or geometry inference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| bbox_px | Yes | ||
| image_path | Yes | ||
| output_path | No | drawing_crop.png | |
| autocontrast | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |