smartscale__scale_objects_from_credit_card
Convert pixel measurements to real-world sizes using a known CR80 credit card reference. Quantify object dimensions from photos containing a credit card.
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 | ||
| payment_ref | No | ||
| credit_card_pixel_width | Yes | ||
| credit_card_pixel_height | No |