Compare drawing with picked image
compare_drawingMeasure your drawing against the picked image: overlay, difference map, pixels off and the shape misses left; candidates score edits before you send them. measure reads the picked image itself (a gridded crop, colour samples, colour runs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ignore | No | Up to 8 {x, y, width, height} in board units: areas of the picked image that are not part of the illustration (a watermark, a stock logo, a caption), left out of every count. | |
| region | No | {x, y, width, height} in board units: the part the two pictures zoom into. Default: the whole picture. | |
| measure | No | Instead of comparing, read the picked image in board units before or while you draw: {grid, samples: up to 64 [x, y], rows: up to 24 y values, columns: up to 24 x values}, with region for the part to zoom into. Returns a gridded crop, the colour at each sample, and where each colour starts and stops along each row and column. Sent on its own, without regions, candidates or ignore. | |
| regions | No | Up to 16 named parts {name, x, y, width, height}, in board units, counted on their own. | |
| artboard | Yes | The illustration's drawing artboard ("Drawing · <illustration>"). | |
| candidates | No | Up to 6 {name, svg}: your whole drawing with one change each, scored against what the board holds now. Nothing is drawn. | |
| reference_id | Yes | The reference_id set_reference_image returned for this illustration. |