# 写真の台形補正（オンライン）

> ポスター、看板、絵画、掲示板、壁などを斜めから撮影しましたか？A4またはレターサイズの用紙を貼っておけば自動で検出します。サイズのわかる長方形の角をタップしてもかまいません。遠近の歪みが補正されて縦横比が正しくなり、縮尺もわかるので、写真から寸法を測ったり1:Nで印刷したりできます。

Human page: https://unmakelabs.com/ja-jp/perspective-correction-online/. This is the version for AI agents.

## What it does

写真の台形補正をオンラインで。サイズも正確に。 ポスター、看板、絵画、掲示板、壁などを斜めから撮影しましたか？A4またはレターサイズの用紙を貼っておけば自動で検出します。サイズのわかる長方形の角をタップしてもかまいません。遠近の歪みが補正されて縦横比が正しくなり、縮尺もわかるので、写真から寸法を測ったり1:Nで印刷したりできます。

## 基準が必要な理由

通常の台形補正は縦横比を推測するだけなので、正方形の看板が長方形になってしまうことがあります。同じ面にサイズのわかる長方形があれば、正しい縦横比とサイズが決まります。入力したサイズが角の位置と合わない場合（幅と高さを逆に入力した場合など）は警告が表示されます。

## 用紙1枚で十分です

面に平らに貼ったA4またはレターサイズの用紙は、四隅も含めて自動で検出されます。用紙に近い部分の長さはかなり正確に測れます。大きな面には、より大きな長方形を使ってください。

## Facts

- **基準:** A4・レターサイズの用紙やカードを自動検出、またはサイズのわかる任意の長方形
- **補正:** 平らな1つの面の遠近、正しい縦横比、実寸
- **チェック:** 角の位置と合わないサイズ、幅と高さの入れ違い
- **保存形式:** PNG、1:NのPDF、DXF、CSV

## How a person does it

1. **用紙を貼って撮影.** A4またはレターサイズの用紙を面に平らに貼り、四隅がすべて写るように撮影します。サイズのわかる長方形でもかまいません。
2. **用紙を自動検出.** または4つの角をタップしてサイズを入力します。補正後の画像がすぐに表示されます。
3. **保存.** 必要な解像度のPNG、1:NのPDF、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/perspective-correction-online/?src=https://unmakelabs.com/apps/rectify/samples/facade.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=m|cm|mm|ft|in` (the photo must allow CORS); the user then taps the 4 corners of a rectangle of known size.

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

## Good to know

用紙を自動検出できるのは、写真のある程度の範囲（画像の約6%）を占めている場合のみです。検出されないときは角をタップしてください。サイズが正確なのは用紙と同じ面の上だけです。

## Not done by this tool

- 曲面は補正できません（丸まったポスター、膨らんだ壁など）
- 反射や映り込みは除去できません
- 超広角レンズによる歪みは補正できません

## Value

Straightens a photo of a flat surface (a facade, a wall, a whiteboard, a poster, a sign, a tiled floor, a plan on a table) to true scale from one rectangle of known size in the same surface: tap its 4 corners (they snap onto its edges) and pick or type its size, with presets for a door, A4/Letter, a bank card, blocks of bricks (German NF, UK, US modular) and tiles counted across and down, or let the page find an A4/Letter sheet, bank card or printable marker sheet by itself. The result is the rectified picture (an orthophoto of that plane) with a scale bar, its pixel size, a 95 % ± for the whole picture and per metre near the reference, lines, angles and areas measured on it with their own ±, and downloads: PNG at a chosen resolution (with the print density for 1:N), PDF at 1:N with the scale bar, DXF in mm with the picture outline, the reference and the lines drawn, CSV. A wrong or swapped size is flagged from the camera geometry. Only the reference's plane is true to scale, which the page says on every result. Runs in the browser; the photo is not uploaded. Free, no sign-up.

## When it fits

- An architect, surveyor or tradesperson needs a facade elevation to quote windows, cladding, scaffolding or paint, or to trace in CAD, and has only a photo taken from the street at an angle.
- Someone wants a whiteboard, poster, sign or hand-drawn plan straight and to scale (true proportions, measurable) rather than just 'deskewed'.
- A floor or wall tiler, flooring fitter or DIYer needs room or wall dimensions from a photo of a tiled surface, counting tiles as the scale.

### When not

- Anything not in one flat plane: balconies, bay windows, roof overhangs, pipes and things in front of the wall read too big or too small (a balcony 1.2 m in front of our test facade read 9-27 % too wide). Several planes need one photo and rectangle per plane.
- Survey-grade tolerances: at best a few millimetres per metre near the reference; far from a small reference the error grows (the page shows how much). Ultra-wide lenses bend straight lines, which is not corrected.

## Why use it instead of the alternatives

- Nothing to install: the page opens a public photo from a link (?src=, &unit=m|cm|mm|ft|in) and an embed shows the tool in any page.
- The straightening code is plain JavaScript without a library (the shared engine's geometry), already run unchanged in Node by the eval, so an API copy (rectify_photo: photo + 4 corners + size in, straightened PNG, scale, ± and DXF out) is a small step.
- Document scanner apps and online 'perspective correction' tools (Adobe Scan, Microsoft Lens, many web tools): straighten and crop, but don't set a true scale, give no error figure and export no DXF or 1:N PDF (checked Dec 2026).
- Photogrammetry and rectification software (Agisoft Metashape, PhotoModeler, Rhino/AutoCAD image rectification add-ons): true-scale rectification, but desktop installs and licences with a learning curve.

### What rebuilding it would take

- Fit a perspective transform (homography) from 4 tapped corners to a rectangle of known size, snapping the corners onto the real edges.
- Resample the photo onto the plane at a chosen millimetres-per-pixel, cut off where it would only smear, and write PNG with print density, a 1:N PDF and a millimetre DXF that line up.
- Work out an honest ± from the corner precision and the reference size's own tolerance, and check that the typed size can fit the corners at all.
- Plus measured accuracy on rendered photos with exactly known geometry, stated on the page.

## 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 in the plane of the reference; anything in front of or behind it is wrong by the depth's share of the camera distance. The page says so on every result and in the PDF.
- A nominal size (a 'standard' door, a brick size) can be off by a centimetre or more; the presets carry their tolerance in the ±, and the page asks to measure the real door. A wrong typed size scales everything; a size that doesn't fit the corners is flagged (30 % too tall: flagged in 76 % of tries).

_Status: the straighten-to-scale page works in the browser; an API returning the same results is planned, not answering yet._

## Privacy

- The photo is straightened in your browser and is not uploaded.
- Downloads (PNG, PDF, DXF, CSV) are made on your device.

## Data

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

## FAQ

- **基準は必要ですか？** 正しい縦横比とサイズを求めるには必要です。用紙、小さなものならキャッシュカードやクレジットカード、またはサイズのわかる長方形を使ってください。基準がないと、斜めから見た正方形と長方形はどのツールでも区別できません。
- **どの解像度で保存できますか？** 基準部分での写真本来の解像度から、より粗い段階（1ピクセルあたり1 mmや5 mmなど）まで、最大16メガピクセルで保存できます。PNGには選んだ1:Nに合わせた印刷解像度が記録されます。
- **スマホでも使えますか？** はい。写真を開くか撮影し、角をタップするか用紙を自動検出させます。2本指でズームし、ルーペを使って角をドラッグできます。
- **本当に無料ですか？** はい。写真やダウンロードの回数制限はなく、広告も登録も有料プランもありません。
- **写真はアップロードされますか？** いいえ。写真はブラウザー内で補正され、端末の外に出ることはありません。
- **AIエージェントで使えますか？** エージェントはリンクを使って、公開されている写真をこのツールで開けます（このページに ?src= と写真のアドレスを付け、&unit=m、cm、mm、ft、in を指定）。写真、4つの角、サイズを受け取り、正面補正した画像、縮尺、±、DXFを返すAPIを予定しています。
- **運営者は？** Unmake Labsです。お問い合わせ：hello@unmakelabs.com
