# Measure an object from a photo

> Need the size of a bracket, gasket, washer or broken clip to order a replacement? Lay it next to a Letter or A4 sheet or a bank card, take one photo from above, and get its length × width at once; tap to measure holes, hole spacing and angles. Each value carries its own ± error.

Human page: https://unmakelabs.com/en-us/measure-object-from-photo/. This is the version for AI agents.

## What it does

Measure an object from a photo: measure a part from one photo, with the error shown Need the size of a bracket, gasket, washer or broken clip to order a replacement? Lay it next to a Letter or A4 sheet or a bank card, take one photo from above, and get its length × width at once; tap to measure holes, hole spacing and angles. Each value carries its own ± error.

## Why a sheet of paper is enough

A Letter sheet is exactly 279.4 × 215.9 mm, A4 297 × 210 mm, a bank card 85.60 × 53.98 mm. The tool finds the reference's edges to a fraction of a pixel, undoes the photo's perspective and measures everything on the same flat surface against it, so the photo doesn't have to be perfectly straight.

## Made for replacement parts

Every object on the paper is sized automatically. Tap a washer or a hole for its diameter, tap two holes for their spacing, tap three points for a corner angle. Labels and a CSV make it easy to send the sizes to a shop or a supplier.

## Facts

- **Reference:** Letter or A4 sheet, ID-1 bank card, or our marker sheet (PDF)
- **Measures:** Length × width of each object, distances, corner angles, circle diameters, areas
- **Shows:** A ± error on every value, worked out from how cleanly the reference was found
- **Saves:** Picture with the measurements, CSV, a link with the values only

## How a person does it

1. **Lay it down.** Put the part flat on a white sheet on a darker table, or next to a bank card. Keep the whole reference in the picture.
2. **Take one photo.** From roughly straight above, in soft light. The page finds the reference and sizes each object.
3. **Tap and save.** Tap for hole diameters, spacings or angles, label them, then save the picture, the CSV or a link with the values.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/en-us/measure-object-from-photo/?src=https://unmakelabs.com/apps/measure/samples/parts-on-a4.jpg`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `?src=<public photo URL>&unit=mm|cm|in&paper=a4|letter` (the photo must allow CORS); `#m=<values>` opens a shared list of measurements without any photo.

Embed: `<iframe src="https://unmakelabs.com/embed/measure/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Good to know

The ± figure covers the reference and the photo's resolution. A part's own thickness adds error at its top edge (it is closer to the camera), so measure flat faces and holes where they touch the paper.

## Not done by this tool

- Doesn't measure height or depth (one photo sees from above only)
- Doesn't replace calipers for tolerances under about 0.5 mm
- Doesn't find objects on busy, patterned backgrounds: use plain paper

## Value

Measures anything lying flat in one photo against a reference in the same photo: a white A4 or US Letter sheet, an ID-1 bank card (85.60 × 53.98 mm) or our printable marker sheet. The perspective is undone from the reference, every object found is sized at once (length × width, area), and taps give point-to-point distances, corner angles, circle diameters (a circle fitted to the whole outline, or three rim taps) and areas of any tapped shape, in mm, cm or inches. Every value carries a 95 % ± error worked out from how cleanly the reference was found and the photo's resolution. Measurements can be labelled and saved as an annotated PNG or CSV, or shared as a link holding the values only. No reference: a plain message says why, and one typed known length gives a hand scale (stated as without perspective correction). Runs in the browser; the photo is not uploaded. Free, no sign-up.

## When it fits

- Someone needs the size of a bracket, washer, gasket, clip or hole spacing to order a replacement part and has no calipers at hand (or the part is far away and only a photo exists).
- A furniture buyer or seller needs the width of a drawer front, panel or tabletop: a bank card on that face is the scale.
- A maker, teacher or seller needs diameters, angles or areas of flat things (coins, cut-outs, tiles, leaves) with an honest error, from one photo.

### When not

- Heights, depths or anything standing up: one photo measures only the flat surface the reference lies on; the top of a tall part reads too big (the page shows by how much for each photo).
- Tolerances under about half a millimetre (bearing seats, press fits): use calipers. Objects on busy patterned backgrounds or touching each other may merge outlines (visible on screen).

## Why use it instead of the alternatives

- Nothing to install: the page opens a public photo from a link (?src=, with &unit=mm|cm|in) and an embed shows the tool in any page; a #m= link reopens a list of values without any photo.
- The measuring engine is plain JavaScript on opencv.js and already runs unchanged in Node (the eval uses exactly the page's code), so an API copy (measure_photo: photo in, reference, scale error and object sizes out) is a small step.
- Phone ruler and AR measure apps (Apple Measure, Google Measure): estimate depth from the phone's sensors, need the object in front of you, give no error figure and no reference check (checked Dec 2026).
- Image tools such as ImageJ/Fiji or online pixel rulers: measure in pixels after you calibrate a scale by hand, with no perspective correction unless you set it up yourself; ImageJ is a desktop install.

### What rebuilding it would take

- Find a sheet, card or marker sheet in the photo and fit its edges to sub-pixel accuracy, then undo the perspective with a homography.
- Turn each tap into plane millimetres, fit circles to outlines, separate objects from paper and shadows, and handle areas with holes.
- Work out an honest ± for every value (reference refits plus pixel size), and warn when the photo is blurred, dark, tilted or the reference is cut off.
- Plus a measured error figure on every value, checked against photos with known geometry.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Values are true only on the reference's surface: a part 10 mm thick photographed from 40 cm reads about 2.5 % long along its top edge. The page states the camera height and this share for each photo.
- A card that is not ID-1 (business cards are 85 × 55 mm or 3.5 × 2 in), a sheet that is not flat or a marker sheet printed with 'fit to page' scales everything; the page names the reference used. With a card the error grows with distance from the card, so its stated ± is wider than a sheet's (it covered 31 of 31 test distances).

_Status: the measure-from-photo page works in the browser; an API returning the same values as data is planned, not answering yet._

## Privacy

- The photo is measured in your browser and is not uploaded.
- A share link holds the values and labels only (in the part after #, which browsers don't send to servers).
- Downloads are made on your device.

## Data

Measured in your browser; your photo stays on your device and is not uploaded.

## FAQ

- **How exact is it for a replacement part?** On a sheet of paper, distances and circle diameters came out within half a millimetre in our tests. That is enough to pick a washer, bolt size, gasket or bracket from a catalogue; for fits under half a millimetre use calipers.
- **Can I measure a hole's diameter?** Yes: choose Circle Ø and tap the hole. The tool fits a circle to its edge. If the edge isn't clean (shadow, touching parts) it asks you to tap three points on the rim instead.
- **Inches or millimetres?** Both, and centimetres: switch units at any time; the CSV and the picture use the unit you chose.
- **When is it the right tool, and when not?** Right for: Someone needs the size of a bracket, washer, gasket, clip or hole spacing to order a replacement part and has no calipers at hand (or the part is far away and only a photo exists). A furniture buyer or seller needs the width of a drawer front, panel or tabletop: a bank card on that face is the scale. A maker, teacher or seller needs diameters, angles or areas of flat things (coins, cut-outs, tiles, leaves) with an honest error, from one photo. Not for: Heights, depths or anything standing up: one photo measures only the flat surface the reference lies on; the top of a tall part reads too big (the page shows by how much for each photo). Tolerances under about half a millimetre (bearing seats, press fits): use calipers. Objects on busy patterned backgrounds or touching each other may merge outlines (visible on screen).
- **Is it really free?** Yes: no limit on photos or downloads, no ads, no sign-up, no premium tier.
- **Do you upload my photo?** No. The photo is measured in your browser and never leaves your device.
- **Can my AI agent use it?** An agent can open a public photo in this tool with a link (add ?src= and the photo's address to this page, &unit=mm, cm or in), and read a shared list from a #m= link. An API that returns the reference, scale error and object sizes as data is planned.
- **Who makes this?** Unmake Labs. Contact: hello@unmakelabs.com.
