Input Schema
{
"body": {
"image_url": "https://bild.halowerk.com/beispiel/scale-reference-detect-image.png"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Coins, hands, people, cards and everyday objects are not recognised as size references; this needs an object detector.",
"Rulers must lie roughly horizontally or vertically (within a few degrees) and show at least 16 ticks; strongly tilted or curved tapes are missed.",
"Pixels per millimetre are valid only in the plane of the ruler; perspective changes the scale elsewhere."
],
"result": {
"image": {
"height": 300,
"width": 1000
},
"measurements": [],
"not_detected": [
"coins",
"hands",
"people",
"cards",
"everyday objects"
],
"px_per_mm": 8,
"rulers": [
{
"across_from": 54,
"across_to": 140,
"along_from": 100.5,
"along_to": 900.5,
"confidence": "high",
"label_step": 1,
"longest_tick_px": 36,
"major_every": 10,
"major_positions": [
100.5,
180.5,
260.5,
340.5,
420.5,
500.5,
580.5,
660.5,
740.5,
820.5,
900.5
],
"numbers_matched": 11,
"orientation": "horizontal",
"px_per_label_unit": 80,
"px_per_mm": 8,
"shortest_tick_px": 15,
"tick_period_px": 8,
"ticks": 101,
"unit": "cm"
}
],
"scale_reference_found": true
},
"service": "scale-reference-detect",
"status": "success"
},
"type": "json"
}