# 写真から物のサイズを測る

> 交換部品を注文するのに、ブラケット、ガスケット、ワッシャー、折れたクリップのサイズが知りたいときに使えます。レターサイズかA4の用紙、またはキャッシュカードやクレジットカードの横に置いて真上から1枚撮るだけで、長さ×幅がすぐにわかります。タップすれば穴の直径、穴の間隔、角度も測れます。どの値にも±の誤差が表示されます。

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

## What it does

写真1枚で部品のサイズを測る。誤差も表示します。 交換部品を注文するのに、ブラケット、ガスケット、ワッシャー、折れたクリップのサイズが知りたいときに使えます。レターサイズかA4の用紙、またはキャッシュカードやクレジットカードの横に置いて真上から1枚撮るだけで、長さ×幅がすぐにわかります。タップすれば穴の直径、穴の間隔、角度も測れます。どの値にも±の誤差が表示されます。

## 用紙1枚で足りる理由

レターサイズの用紙はちょうど279.4×215.9mm、A4は297×210mm、カードは85.60×53.98mmです。ツールは基準物の縁を1ピクセル未満の精度で検出し、写真の遠近の歪みを補正したうえで、同じ平面上のものをすべてこの基準に対して測ります。そのため、写真が完全にまっすぐでなくても大丈夫です。

## 交換部品のために作りました

用紙の上にある物は、すべて自動でサイズを測ります。ワッシャーや穴をタップすると直径、穴を2つタップすると間隔、3点をタップすると角の角度がわかります。ラベルとCSVで、測ったサイズを販売店や仕入れ先に簡単に送れます。

## Facts

- **基準物:** レターサイズまたはA4の用紙、ID-1規格のカード、または専用のマーカーシート（PDF）
- **測れるもの:** 各物体の長さ×幅、距離、角の角度、円の直径、面積
- **表示:** すべての値に±の誤差（基準物をどれだけきれいに検出できたかから算出）
- **保存:** 測定値入りの画像、CSV、値だけを含むリンク

## How a person does it

1. **置く.** 暗めの机の上に白い用紙を敷いて部品を平らに置くか、カードの横に置きます。基準物全体が写真に入るようにしてください。
2. **1枚撮る.** やわらかい光の下で、ほぼ真上から撮ります。ページが基準物を見つけ、それぞれの物のサイズを測ります。
3. **タップして保存.** タップして穴の直径、間隔、角度を測り、ラベルを付けたら、画像、CSV、または値を含むリンクとして保存します。

## 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/ja-jp/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

±の数値は、基準物と写真の解像度による誤差です。部品に厚みがあると上面はカメラに近くなるため誤差が増えます。平らな面や、用紙に接している穴の部分を測ってください。

## Not done by this tool

- 高さや奥行きは測れません（写真1枚では上からしか見えないため）
- 約0.5mm未満の公差ではノギスの代わりになりません
- 柄のある背景や物が多い背景では物を検出できません。無地の用紙を使ってください

## 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

ブラウザ内で測定します。写真は端末に残り、アップロードされません。

## FAQ

- **交換部品を選ぶのに十分な精度ですか？** 用紙の上で測った場合、私たちのテストでは距離も円の直径も誤差0.5mm以内でした。カタログからワッシャー、ボルトのサイズ、ガスケット、ブラケットを選ぶには十分です。0.5mm未満のはめあいにはノギスを使ってください。
- **穴の直径は測れますか？** はい。「円 Ø」を選んで穴をタップすると、ツールが縁に合わせて円を当てはめます。影や部品同士の接触などで縁がはっきりしない場合は、代わりに縁の上の3点をタップするよう案内します。
- **インチとミリ、どちらで測れますか？** どちらも使えます。センチメートルにも対応しています。単位はいつでも切り替えられ、CSVと画像には選んだ単位が使われます。
- **本当に無料ですか？** はい。写真の枚数やダウンロード数に制限はなく、広告も、登録も、有料プランもありません。
- **写真はアップロードされますか？** いいえ。写真はブラウザ内で測定され、端末の外に出ることはありません。
- **AIエージェントから使えますか？** エージェントは、このページのURLに ?src= と写真のアドレス（単位は &unit=mm、cm、in）を付けることで公開写真をこのツールで開けます。また、#m= リンクから共有された一覧を読み取れます。基準、スケール誤差、対象物のサイズをデータとして返すAPIも予定しています。
- **運営者は？** Unmake Labsです。お問い合わせ：hello@unmakelabs.com
