By · Last updated 2026-08-12

Sākumlapa/Dokumentācija/breadcrumb.imageRedaction
Atpakaļ uz dokumentāciju

Attēlu rediģēšana — lietošanas ceļvedis

Atklājiet un nosedziet personas datus skenējumos, fotoattēlos un ekrānuzņēmumos. Šis ceļvedis apraksta augšupielādes, analīzes, rediģēšanas un lejupielādes darbplūsmu, izmēra un formāta ierobežojumus, OCR valodu atbalstu un pamatā esošo API izsaukumu.

Darbplūsma: augšupielāde, analīze, rediģēšana, lejupielāde

Katrs attēls iziet cauri tiem pašiem četriem soļiem neatkarīgi no tā, vai izmantojat tīmekļa lietotni, izsaucat API tieši vai izsaucat rīku anonym_legal_redact_image caur MCP serveri.

1. Augšupielāde

Izvēlieties PNG vai JPG failu. Lietotne pārbauda faila veidu un izmēru pret jūsu plāna augšupielādes ierobežojumu, pirms kaut kas tiek nosūtīts uz serveri.

2. Analīze

OCR (Tesseract) nolasa tekstu attēlā un reģistrē katras teksta daļas novietojumu. Iegūtais teksts pēc tam iziet caur to pašu PII detektoru, ko izmanto dokumentiem, atgriežot atrastās entitātes un to novietojumus — vēl nekas netiek rediģēts.

3. Rediģēšana

Atkārtoti izpildiet pieprasījumu ar mode iestatītu uz "redact", lai nosegtu katru atklāto reģionu ar viengabala melnu lodziņu, kas uzzīmēts tieši uz attēla pikseļiem. Šī ir vienvirziena vizuāla rediģēšana, nevis atgriezeniska šifrēšana.

4. Lejupielāde

Rediģētais attēls tiek atgriezts kā fails (PNG vai oriģinālais satura tips), ko saglabājat lokāli — pēc atbildes nosūtīšanas serverī nekas netiek saglabāts.

Izmēra un pikseļu ierobežojumi

  • Tiek atbalstīti tikai PNG un JPG (JPEG). Citi rastra formāti, piemēram, TIFF, BMP, WebP un GIF, šobrīd netiek atbalstīti.
  • Attēli serverī tiek ierobežoti līdz 20 MB. Jūsu plāna paša ierobežojums var būt zemāks — Basic plāns ierobežo augšupielādes līdz 5 MB (Pro 10 MB, Business 20 MB); bezmaksas plāns neietver attēlu rediģēšanu vispār.
  • Kopējā izšķirtspēja (platums × augstums) ir ierobežota līdz 150 megapikseļiem. Augšupielādes virs šī ierobežojuma tiek noraidītas pirms apstrādes.

OCR valodu atbalsts

OCR darbojas uz Tesseract bāzes. API valodas lauks pieņem ISO 639-1 kodu (noklusējums "en" angļu valodai), kas tiek kartēts uz Tesseract valodas pakotni — ir kartētas apmēram trīs desmitas valodu, tostarp vācu, franču, spāņu, itāļu, portugāļu, holandiešu, poļu, krievu, ukraiņu, arābu, ebreju, hindi, japāņu, korejiešu, ķīniešu, taju, vjetnamiešu un turku. Faktiskā pieejamība ir atkarīga no tā, kuras Tesseract pakotnes ir instalētas OCR resursdatorā; nepieejama valoda atgriežas pie angļu valodas.

API atsauce

Attēlu rediģēšana ir pieejama tieši caur API integrācijām, kas neizmanto tīmekļa lietotni, kā arī caur MCP serveri kā rīks anonym_legal_redact_image (režīms "analyze" vai "redact") MCP klientiem, piemēram, Claude.

POST /api/presidio/image

Authentication: Autentificējieties ar Bearer tokenu Authorization galvenē (API tokens vai autentificēta sesija, tāpat kā teksta analīzes galapunktos). Pieprasījumi bez derīga tokena atgriež 401.

Request body: Nosūtiet multipart/form-data pamattekstu. Obligātie lauki: file (PNG vai JPG attēls) un mode ("analyze" vai "redact"). Neobligātie lauki: language (ISO 639-1 OCR valodas kods, noklusējums "en"), entities (JSON masīvs ar entitāšu veidiem, uz kuriem ierobežot atklāšanu), score_threshold un fill_color (tikai redact režīmā, noklusējums "black"), operator (redact mode only: "redact" | "replace" | "mask", default "redact"), and mask_char (redact mode with operator="mask" only, default "*").

Response: imageRedactionDocs.api.response

BUJ

Kuri attēlu formāti tiek atbalstīti?

Tikai PNG un JPG (JPEG). Citi rastra formāti, piemēram, TIFF, BMP, WebP un GIF, šobrīd netiek atbalstīti.

Kādi ir izmēra un izšķirtspējas ierobežojumi?

20 MB un 150 megapikseļu kopējā izšķirtspēja, papildus ierobežota ar jūsu plāna paša augšupielādes limitu (5 MB Basic, 10 MB Pro, 20 MB Business).

Vai attēlu rediģēšanai nepieciešams maksas plāns?

Jā. Attēlu rediģēšanai nepieciešams Basic plāns vai augstāks. Bezmaksas plāns atbalsta tikai teksta anonimizāciju.

Vai rediģēšana ir atgriezeniska?

Nē. Rediģēšana nosedz atklāto reģionu ar necaurspīdīgu melnu lodziņu tieši uz attēla pikseļiem — tā ir vienvirziena vizuāla rediģēšana, nevis atgriezeniska šifrēšana, ko piedāvā teksta anonimizētājs.

Kā izsaukt API tieši, neizmantojot tīmekļa lietotni?

Nosūtiet POST pieprasījumu uz /api/presidio/image ar Bearer tokenu Authorization galvenē un multipart/form-data pamattekstu, kas satur file un mode ("analyze" vai "redact"). Skatiet API atsauces sadaļu iepriekš pilnam lauku sarakstam un atbildes formai.

Izmēģiniet attēlu rediģēšanu

Augšupielādējiet skenējumu, fotoattēlu vai ekrānuzņēmumu un dažu sekunžu laikā redziet atklāto PII nosegtu.

Atvērt tīmekļa lietotni

Limitations / Important note

  • OCR-based text extraction is probabilistic; low-quality scans and handwriting lower detection recall.
  • Redaction is a visual, one-way black box over the detected region — not reversible encryption.
  • This page is informational and is not legal advice.

How we measure — our methodology

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022, held by our hosting provider.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our company HQ is in Saarbrücken, Germany. Our servers run in Hetzner's Falkenstein datacenter.

Hetzner holds ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

Automated checks run on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We test detection against sample documents before each release.

A failing unit or integration run stops the release.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

Paid plans can buy top-up credits.

Credits reset at the end of each cycle.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.