# Corrigir perspectiva de foto online

> Fotografou um cartaz, placa, quadro, mural de avisos ou parede de lado? Cole nela uma folha A4 ou Carta (encontrada automaticamente) ou toque nos cantos de qualquer retângulo cujas medidas você conhece: a perspectiva é desfeita, as proporções ficam reais e a escala fica conhecida. Assim você pode medir sobre a imagem e imprimir em 1:N.

Human page: https://unmakelabs.com/pt-br/corrigir-perspectiva-foto-online/. This is the version for AI agents.

## What it does

Corrija a perspectiva da foto online e acerte o tamanho também. Fotografou um cartaz, placa, quadro, mural de avisos ou parede de lado? Cole nela uma folha A4 ou Carta (encontrada automaticamente) ou toque nos cantos de qualquer retângulo cujas medidas você conhece: a perspectiva é desfeita, as proporções ficam reais e a escala fica conhecida. Assim você pode medir sobre a imagem e imprimir em 1:N.

## Por que uma referência faz diferença

A correção de perspectiva comum adivinha as proporções, e uma placa quadrada pode sair retangular. Um retângulo conhecido na mesma superfície define as proporções e o tamanho reais, e a página avisa se o tamanho digitado não cabe nos cantos (por exemplo, quando largura e altura estão trocadas).

## Uma folha de papel basta

Uma folha A4 ou Carta colada bem esticada na superfície é encontrada automaticamente, com cantos e tudo. Medidas perto da folha saem muito próximas do real. Para superfícies grandes, use um retângulo maior.

## Facts

- **Referência:** Folha A4 ou Carta ou cartão de banco encontrados automaticamente, ou qualquer retângulo de medidas conhecidas
- **Corrige:** Perspectiva, proporções reais e tamanho real de uma superfície plana
- **Verifica:** Tamanho que não cabe nos cantos, largura e altura trocadas
- **Salva:** PNG, PDF em 1:N, DXF, CSV

## How a person does it

1. **Cole uma folha e tire a foto.** Uma folha A4 ou Carta esticada na superfície, com os quatro cantos na foto; ou qualquer retângulo cujas medidas você conhece.
2. **Deixe a página achar a folha.** Ou toque nos 4 cantos e digite o tamanho. A imagem endireitada abre na hora.
3. **Salve.** PNG na resolução que você precisar, PDF em 1:N, DXF, ou meça sobre a imagem antes.

## 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/pt-br/corrigir-perspectiva-foto-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

A página só encontra a folha quando ela ocupa uma boa parte da foto (cerca de 6% da imagem); caso contrário, toque nos cantos dela. Os tamanhos só são reais na superfície da folha.

## Not done by this tool

- Não corrige superfícies curvas (um cartaz enrolado, uma parede abaulada)
- Não remove reflexos nem brilho
- Não corrige a distorção de lentes ultra-angulares

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

Medida no seu navegador; sua foto fica no seu dispositivo e não é enviada.

## FAQ

- **Preciso de uma referência?** Para proporções e tamanho reais, sim: uma folha de papel, um cartão de banco para objetos pequenos ou qualquer retângulo cujas medidas você conhece. Sem ela, nenhuma ferramenta consegue distinguir um quadrado de um retângulo visto em ângulo.
- **Em que resolução posso salvar?** Desde o detalhe da própria foto na referência até passos mais grossos (por exemplo, 1 mm ou 5 mm por pixel), até 16 megapixels. O PNG leva a densidade de impressão para a escala 1:N que você escolher.
- **Funciona no celular?** Sim: abra uma foto ou tire uma, toque nos cantos ou deixe a página achar a folha, dê zoom com dois dedos e arraste os cantos com a lupa.
- **É grátis mesmo?** Sim: sem limite de fotos ou downloads, sem anúncios, sem cadastro, sem plano premium.
- **Vocês enviam a minha foto para algum lugar?** Não. A foto é retificada no seu navegador e nunca sai do seu dispositivo.
- **Meu agente de IA pode usar?** Um agente pode abrir uma foto pública nesta ferramenta por link (adicione ?src= e o endereço da foto a esta página, &unit=m, cm, mm, ft ou in). Está prevista uma API que recebe uma foto, 4 cantos e um tamanho e devolve a imagem retificada, a escala, o ± e um DXF.
- **Quem faz isto?** Unmake Labs. Contato: hello@unmakelabs.com.
