# 写真からDXF作成

> 部品を用紙の上に置いて写真を1枚撮るだけ。画像から輪郭を正確に抽出し、レーザーカッターや設計ソフトで使える図面ファイルにします。

Human page: https://unmakelabs.com/ja-jp/photo-to-dxf/. This is the version for AI agents.

## What it does

写真をDXFに実寸で変換 部品を用紙の上に置いて写真を1枚撮るだけ。画像から輪郭を正確に抽出し、レーザーカッターや設計ソフトで使える図面ファイルにします。

## サイズを正しく測る仕組み

用紙はサイズが決まった長方形です（A4は297 × 210 mm、レター用紙は279.4 × 215.9 mm）。ツールは用紙の4辺を1ピクセル未満の精度で検出し、写真の遠近の歪みを補正して真上から見た画像にしたうえで、用紙を基準にほかのものを測ります。キャッシュカード（85.60 × 53.98 mm）や、当サイトの印刷用マーカーシートも使えます。

## こんな方に

平らな部品の輪郭が必要なメイカーやレーザー加工・CNCの利用者、ガスケットやブラケットを作り直したい方、型紙を作る木工の方、そして手で形をなぞってスキャンしていた方に。

## Facts

- **基準:** A4またはレター用紙、ID-1サイズのキャッシュカード、当サイトのマーカーシート（PDF）
- **ダウンロード:** DXF R12（mm単位、対象物ごとに閉じたポリライン1本）、実寸のSVG
- **表示内容:** 縮尺の誤差（mm）、各対象物の縦 × 横の寸法、傾き・反射・ブレの警告
- **動作環境:** ブラウザ上で動作し、スマートフォンでも使えます。写真はアップロードされません

## How a person does it

1. **並べて撮影.** 暗めの机に白い用紙を置き、その上に部品を並べます。用紙の四隅がすべて写るようにし、柔らかい光の下で真上から1枚撮影します。
2. **確認.** 真上から見た画像に輪郭と縮尺の誤差が表示されます。不要な対象物はタップして除外し、検出されなかったものはタップして追加します。部品をはめる穴を切り抜く場合は、クリアランスを加えてください。
3. **ダウンロード.** DXFまたはSVGを保存します。CAD、LightBurn、Inkscape、Fusion、当サイトのDXFビューアーで実寸のまま開けます。

## 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/photo-to-dxf/?src=https://unmakelabs.com/apps/scale/samples/pliers-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>&mode=outline|foam|gridfinity|shadow&paper=a4|letter` (the photo must allow CORS; nothing else goes in the link).

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

## Good to know

±の値は、基準をどれだけ正確に検出できたかと写真の解像度を反映しています。平らな部品なら、約40 cmの距離から撮影した場合、50 mmの部品で通常0.5 mm以内です。厚みのある部品は、上端が「厚み ÷ カメラの高さ」の割合だけ大きく写ります（厚さ15 mmの工具なら、40 cmからで約4％、1 mからで1.5％）。より高い位置から撮影するか、ページのクリアランス設定を使ってください。

## Not done by this tool

- 部品の高さの測定や3Dモデルの作成はできません
- 柄のある背景やごちゃごちゃした背景では輪郭を抽出できません。無地の用紙を使ってください
- 約0.5 mm未満の公差が必要な場合は、ノギスの代わりにはなりません

## Value

Turns one phone photo of objects lying on a white A4 or US Letter sheet, next to an ID-1 bank card, or on our printable marker sheet into true-scale outlines in millimetres: DXF (R12, one closed polyline per object) and SVG, with optional clearance and finger notches, plus three ready layouts: a foam insert (pockets in a box sized to fit, cut depth), a Gridfinity bin (42 mm grid units, DXF cut-out and a printable STL) and a shadow board (outlines with labels). Every result states its scale error in mm, computed from how cleanly the reference's edges were found. Runs in the browser; the photo is not uploaded. Free, no sign-up.

## When it fits

- A maker, mechanic or woodworker wants foam inserts or a Kaizen/shadow board for their own tools without tracing them by hand or paying for a subscription.
- A 3D-printing hobbyist wants a Gridfinity bin with pockets that fit specific tools.
- A laser, CNC or vinyl-cutter user needs the true-size outline of a flat part, gasket or template as DXF or SVG.

### When not

- Parts where a tenth of a millimetre matters (bearing seats, press fits) or tall objects photographed from close by: measure those with calipers or a scanner.
- Objects on a busy, patterned or same-colour background, or shiny objects in harsh light: the classic edge finder needs contrast (a model-based cut-out is planned).

## Why use it instead of the alternatives

- Nothing to install: the page opens a public photo from a link (?src=, with &mode= for foam, gridfinity or shadow) and an embed shows the tool in any page.
- The measuring engine is plain JavaScript on opencv.js and already runs unchanged in Node, so an API copy (photo_outline: photo in, DXF + sizes + scale error out) is a small step.
- Tooltrace (tooltrace.ai): photo on A4/Letter to foam, Gridfinity, DXF/SVG/STL; 3 free traces, then a subscription; English only; no accuracy figure published (checked Dec 2026).
- TracetoForge and ShapeScan: browser or marker-sheet tracers with one free export or unclear pricing; ShapeScan claims ±1 mm typical. Tracing by hand in Inkscape or CAD from a photo takes 15 to 60 minutes per tool and has no scale check.

### What rebuilding it would take

- Find the reference sheet, card or markers in the photo and fit its edges to sub-pixel accuracy, then undo the perspective with a homography.
- Separate the objects from paper, shadows and lighting gradients, join tools split by white or shiny bands, and trace clean closed polylines.
- Grow pockets by a clearance, add finger notches, lay them out in a foam box, Gridfinity bin or board, and write DXF R12, SVG and an STL that open at the right size.
- Plus an honest error figure on every result, checked against photos with known sizes.

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

- Outlines carry the stated scale error plus the object's own height: the top edge of a 15 mm thick tool photographed from 40 cm reads about 4 % large (about 1.5 % from 1 m), so pockets come out slightly roomy rather than tight.
- A sheet that is not flat, a card that is not ID-1 (business cards are 85 × 55 mm) or a marker sheet printed with 'fit to page' scales everything; the page says which reference was used.

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

## Privacy

- The photo is measured in your browser and is not uploaded.
- Nothing is kept: close the tab and it is gone.
- Downloads are made on your device.

## Data

ブラウザ内で計測します。写真は端末の外に出ず、アップロードされません。

## FAQ

- **DXFの精度はどのくらいですか？** 結果ごとに、撮影した写真から算出した誤差（±）が表示されます。実際の精度を左右するのは、用紙そのもの（裁断により0.数 mm短いことがあります）、用紙の平らさ、対象物の高さです。
- **DXFはどのソフトで開けますか？** mm単位のDXF R12で、対象物ごとに閉じたポリラインが1本ずつ入った、最も広く読み込める形式です。AutoCAD、LibreCAD、Fusion 360、SolidWorks、LightBurn、Inkscape、VCarve、レーザー・プラズマ加工ソフトで開けます。SVGはmm単位の実寸に設定されています。
- **専用の用紙は必要ですか？** いいえ。白いA4またはレター用紙なら何でも使えます。部品が小さい場合はキャッシュカードでも構いません。最も高い精度が必要な場合は、当サイトのマーカーシートを100％で印刷してください。
- **本当に無料ですか？** はい。写真やダウンロードの回数制限、広告、登録、有料プランはありません。
- **写真はアップロードされますか？** いいえ。写真はブラウザ内で計測され、端末の外に出ることはありません。
- **AIエージェントから使えますか？** エージェントはリンクで公開写真をこのツールで開けます（このページに ?src= と写真のアドレスを付け、レイアウトには &mode=foam、gridfinity、shadow を付けます）。輪郭、寸法、スケール誤差をデータで返すAPIを予定しています。
- **運営者は？** Unmake Labsです。お問い合わせ：hello@unmakelabs.com。

## Related pages

- [工具ウレタン型抜きジェネレーター](https://unmakelabs.com/ja-jp/tool-foam-insert-generator/)
- [写真からGridfinityインサートを作成](https://unmakelabs.com/ja-jp/gridfinity-insert-from-photo/)
- [シャドーボード テンプレート](https://unmakelabs.com/ja-jp/shadow-board-template/)
