smartscale__scale_objects_from_credit_card
Scale object dimensions in an image by referencing the pixel width (and optionally height) of a standard CR80 credit card. Convert pixel measurements to real-world units for any detected objects.
Instructions
[smartscale — credit-card-calibrated visual measurement] Scale object pixel dimensions using a standard CR80 credit card reference.
Args:
image_id: Unique photo identifier.
credit_card_pixel_width: Pixel width of the visible credit/debit card.
objects: Objects to scale. Each object needs pixel_width and pixel_height;
label, pixel_area, pixel_perimeter, and confidence are optional.
credit_card_pixel_height: Optional card pixel height for distortion check.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | ||
| image_id | Yes | ||
| credit_card_pixel_width | Yes | ||
| credit_card_pixel_height | No |