# Korekcja perspektywy online

> Zdjęcie plakatu, szyldu, obrazu, tablicy ogłoszeń lub ściany zrobione z boku? Przyklej do niej kartkę A4 lub Letter (zostanie wykryta automatycznie) albo wskaż narożniki dowolnego prostokąta o znanych wymiarach. Perspektywa zostaje wyprostowana, proporcje są prawdziwe, a skala znana, więc możesz mierzyć na zdjęciu i wydrukować je w skali 1:N.

Human page: https://unmakelabs.com/pl-pl/korekcja-perspektywy-online/. This is the version for AI agents.

## What it does

Korekcja perspektywy online, która podaje też prawdziwe wymiary. Zdjęcie plakatu, szyldu, obrazu, tablicy ogłoszeń lub ściany zrobione z boku? Przyklej do niej kartkę A4 lub Letter (zostanie wykryta automatycznie) albo wskaż narożniki dowolnego prostokąta o znanych wymiarach. Perspektywa zostaje wyprostowana, proporcje są prawdziwe, a skala znana, więc możesz mierzyć na zdjęciu i wydrukować je w skali 1:N.

## Dlaczego potrzebny jest wzorzec

Zwykłe prostowanie perspektywy zdjęcia zgaduje proporcje, więc kwadratowy szyld może wyjść jako prostokąt. Znany prostokąt na tej samej powierzchni ustala prawdziwe proporcje i wymiary, a strona ostrzega, jeśli wpisany rozmiar nie pasuje do narożników (np. gdy zamieniono szerokość z wysokością).

## Wystarczy kartka papieru

Kartka A4 lub Letter przyklejona płasko do powierzchni zostanie wykryta automatycznie razem z narożnikami. Długości w pobliżu kartki wychodzą bardzo dokładnie. Przy dużych powierzchniach użyj większego prostokąta.

## Facts

- **Wzorzec:** Kartka A4 lub Letter albo karta płatnicza wykrywane automatycznie lub dowolny prostokąt o znanych wymiarach
- **Koryguje:** Perspektywę, prawdziwe proporcje i prawdziwe wymiary jednej płaskiej powierzchni
- **Sprawdza:** Wymiary niepasujące do narożników, zamienioną szerokość z wysokością
- **Zapisuje:** PNG, PDF w skali 1:N, DXF, CSV

## How a person does it

1. **Przyklej kartkę i zrób zdjęcie.** Kartka A4 lub Letter płasko na powierzchni, wszystkie cztery narożniki w kadrze; albo dowolny prostokąt o znanych wymiarach.
2. **Poczekaj, aż kartka zostanie wykryta.** Albo wskaż 4 narożniki i wpisz wymiary. Wyprostowany widok otwiera się od razu.
3. **Zapisz.** PNG w potrzebnej rozdzielczości, PDF w skali 1:N, DXF – albo najpierw zmierz wymiary ze zdjęcia.

## 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/pl-pl/korekcja-perspektywy-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

Strona wykrywa kartkę tylko wtedy, gdy zajmuje ona sporą część zdjęcia (ok. 6% kadru); w przeciwnym razie wskaż jej narożniki. Wymiary są prawdziwe tylko na powierzchni, na której leży kartka.

## Not done by this tool

- Nie koryguje zakrzywionych powierzchni (zwinięty plakat, wybrzuszona ściana)
- Nie usuwa odbić ani odblasków
- Nie koryguje zniekształceń obiektywów ultraszerokokątnych

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

Pomiar odbywa się w przeglądarce; zdjęcie zostaje na Twoim urządzeniu i nie jest wysyłane.

## FAQ

- **Czy potrzebuję wzorca?** Do prawdziwych proporcji i wymiarów – tak: kartka papieru, karta płatnicza przy małych przedmiotach albo dowolny prostokąt o znanych wymiarach. Bez wzorca żadne narzędzie nie odróżni kwadratu od prostokąta widzianego pod kątem.
- **W jakiej rozdzielczości mogę zapisać?** Od pełnej szczegółowości zdjęcia w miejscu wzorca po grubsze kroki (np. 1 mm lub 5 mm na piksel), maksymalnie 16 megapikseli. Plik PNG zawiera gęstość druku dla wybranej skali 1:N.
- **Czy działa na telefonie?** Tak: otwórz zdjęcie lub zrób nowe, wskaż narożniki albo poczekaj na wykrycie kartki, powiększaj dwoma palcami i przeciągaj narożniki z lupą.
- **Czy to naprawdę za darmo?** Tak: bez limitu zdjęć i pobrań, bez reklam, bez rejestracji, bez płatnej wersji premium.
- **Czy wysyłacie moje zdjęcie?** Nie. Zdjęcie jest prostowane w przeglądarce i nigdy nie opuszcza Twojego urządzenia.
- **Czy mój agent AI może z tego korzystać?** Agent może otworzyć publiczne zdjęcie w tym narzędziu przez link (dodaj do adresu tej strony ?src= i adres zdjęcia, &unit=m, cm, mm, ft lub in). Planujemy API, które przyjmie zdjęcie, 4 narożniki i wymiary, a zwróci wyprostowany obraz, jego skalę, ± i plik DXF.
- **Kto to tworzy?** Unmake Labs. Kontakt: hello@unmakelabs.com.
