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.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_id": "<image_id>",
"credit_card_pixel_width": "<credit_card_pixel_width>",
"objects": "<objects>"
},
"name": "smartscale__scale_objects_from_credit_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | ||
| image_id | Yes | ||
| payment_ref | No | ||
| credit_card_pixel_width | Yes | ||
| credit_card_pixel_height | No |