By George Curta · Last updated 2026-08-12
การปิดบังข้อมูลในภาพ — คู่มือการใช้งาน
ตรวจจับและปิดข้อมูลส่วนบุคคลภายในภาพสแกน ภาพถ่าย และภาพหน้าจอ คู่มือนี้จะแนะนำขั้นตอนการอัปโหลด วิเคราะห์ ปิดบัง และดาวน์โหลด รวมถึงขีดจำกัดขนาดและรูปแบบไฟล์ ภาษาที่ OCR รองรับ และการเรียกใช้ API เบื้องหลัง
ขั้นตอนการทำงาน: อัปโหลด วิเคราะห์ ปิดบัง ดาวน์โหลด
ทุกภาพผ่านขั้นตอนเดียวกันสี่ขั้นตอน ไม่ว่าคุณจะใช้เว็บแอป เรียก API โดยตรง หรือเรียกใช้เครื่องมือ anonym_legal_redact_image ผ่านเซิร์ฟเวอร์ MCP
1. อัปโหลด
เลือกไฟล์ PNG หรือ JPG แอปจะตรวจสอบประเภทและขนาดไฟล์เทียบกับขีดจำกัดการอัปโหลดของแพ็กเกจคุณ ก่อนส่งข้อมูลใด ๆ ไปยังเซิร์ฟเวอร์
2. วิเคราะห์
OCR (Tesseract) จะอ่านข้อความในภาพและบันทึกตำแหน่งของข้อความแต่ละส่วน จากนั้นข้อความที่สกัดได้จะถูกส่งผ่านตัวตรวจจับ PII ตัวเดียวกับที่ใช้กับเอกสาร และส่งคืนเอนทิตีที่พบพร้อมตำแหน่ง — ยังไม่มีการปิดบังใด ๆ ในขั้นตอนนี้
3. ปิดบัง
เรียกใช้คำขออีกครั้งโดยตั้งค่า mode เป็น "redact" เพื่อปิดทุกบริเวณที่ตรวจพบด้วยกล่องสีดำทึบที่วาดลงบนพิกเซลของภาพโดยตรง นี่คือการปิดบังทางภาพแบบทางเดียว ไม่ใช่การเข้ารหัสที่ย้อนกลับได้
4. ดาวน์โหลด
ภาพที่ปิดบังแล้วจะถูกส่งคืนเป็นไฟล์ (PNG หรือประเภทเนื้อหาเดิม) ที่คุณบันทึกไว้ในเครื่อง — จะไม่มีการเก็บข้อมูลใด ๆ ไว้บนเซิร์ฟเวอร์หลังจากส่งการตอบกลับแล้ว
ขีดจำกัดขนาดและพิกเซล
- รองรับเฉพาะ PNG และ JPG (JPEG) เท่านั้น รูปแบบภาพราสเตอร์อื่น เช่น TIFF, BMP, WebP และ GIF ยังไม่รองรับในขณะนี้
- ภาพถูกจำกัดไว้ที่ 20 MB ฝั่งเซิร์ฟเวอร์ ขีดจำกัดของแพ็กเกจคุณอาจต่ำกว่านี้ — แพ็กเกจ Basic จำกัดการอัปโหลดไว้ที่ 5 MB (Pro 10 MB, Business 20 MB) ส่วนแพ็กเกจฟรีไม่รองรับการปิดบังข้อมูลในภาพเลย
- ความละเอียดรวม (กว้าง × สูง) ถูกจำกัดไว้ที่ 150 ล้านพิกเซล ไฟล์ที่อัปโหลดเกินขีดจำกัดนี้จะถูกปฏิเสธก่อนเริ่มประมวลผล
ภาษาที่ OCR รองรับ
OCR ทำงานบน Tesseract ฟิลด์ language ของ API รับรหัส ISO 639-1 (ค่าเริ่มต้นคือ "en" สำหรับภาษาอังกฤษ) ซึ่งจับคู่กับแพ็กภาษาของ Tesseract — มีการจับคู่ไว้ประมาณสามสิบกว่าภาษา รวมถึงเยอรมัน ฝรั่งเศส สเปน อิตาลี โปรตุเกส ดัตช์ โปแลนด์ รัสเซีย ยูเครน อาหรับ ฮีบรู ฮินดี ญี่ปุ่น เกาหลี จีน ไทย เวียดนาม และตุรกี ความพร้อมใช้งานจริงขึ้นอยู่กับแพ็ก Tesseract ที่ติดตั้งอยู่บนเซิร์ฟเวอร์ OCR หากภาษาใดไม่พร้อมใช้งาน ระบบจะใช้ภาษาอังกฤษแทน
เอกสารอ้างอิง API
การลบข้อมูลในภาพสามารถใช้งานได้โดยตรงผ่าน API สำหรับการผสานที่ไม่ได้ผ่านเว็บแอป และผ่านเซิร์ฟเวอร์ MCP ในรูปแบบเครื่องมือ anonym_legal_redact_image (โหมด "analyze" หรือ "redact") สำหรับไคลเอ็นต์ MCP เช่น Claude
POST /api/presidio/imageAuthentication: ยืนยันตัวตนด้วย Bearer token ในเฮดเดอร์ Authorization (โทเค็น API หรือเซสชันที่ยืนยันตัวตนแล้ว เหมือนกับเอนด์พอยต์วิเคราะห์ข้อความ) คำขอที่ไม่มีโทเค็นที่ถูกต้องจะได้รับการตอบกลับ 401
Request body: ส่ง body แบบ multipart/form-data ฟิลด์ที่จำเป็น: file (ภาพ PNG หรือ JPG) และ mode ("analyze" หรือ "redact") ฟิลด์เสริม: language (รหัสภาษา OCR แบบ ISO 639-1 ค่าเริ่มต้นคือ "en"), entities (อาร์เรย์ JSON ของประเภทเอนทิตีที่ต้องการจำกัดการตรวจจับ), score_threshold และ fill_color (สำหรับโหมด redact เท่านั้น ค่าเริ่มต้นคือ "black"), operator (redact mode only: "redact" | "replace" | "mask", default "redact"), and mask_char (redact mode with operator="mask" only, default "*").
Response: ในโหมด analyze การตอบกลับจะเป็น JSON: เอนทิตีที่ตรวจพบ (ประเภท ตำแหน่งข้อความ และค่าความเชื่อมั่น) พร้อมฟิลด์ tokens_charged ในโหมด redact การตอบกลับจะเป็นตัวภาพที่ปิดบังแล้ว (ไบนารี Content-Type เป็น image/png หรือประเภทเดิม) พร้อมต้นทุนโทเค็นที่ส่งคืนในเฮดเดอร์ X-Tokens-Charged
คำถามที่พบบ่อย
รองรับรูปแบบไฟล์ภาพใดบ้าง
รองรับเฉพาะ PNG และ JPG (JPEG) เท่านั้น รูปแบบภาพราสเตอร์อื่น เช่น TIFF, BMP, WebP และ GIF ยังไม่รองรับในขณะนี้
ขีดจำกัดขนาดและความละเอียดคือเท่าใด
20 MB และความละเอียดรวม 150 ล้านพิกเซล และยังถูกจำกัดเพิ่มเติมด้วยขีดจำกัดการอัปโหลดของแพ็กเกจคุณ (5 MB สำหรับ Basic, 10 MB สำหรับ Pro, 20 MB สำหรับ Business)
การปิดบังข้อมูลในภาพต้องใช้แพ็กเกจแบบเสียเงินหรือไม่
ใช่ การปิดบังข้อมูลในภาพต้องใช้แพ็กเกจ Basic ขึ้นไป แพ็กเกจฟรีรองรับเฉพาะการปิดบังข้อความเท่านั้น
การปิดบังนี้ย้อนกลับได้หรือไม่
ไม่ได้ การปิดบังจะปิดบริเวณที่ตรวจพบด้วยกล่องสีดำทึบแสงลงบนพิกเซลของภาพโดยตรง — เป็นการปิดบังทางภาพแบบทางเดียว ไม่ใช่การเข้ารหัสที่ย้อนกลับได้เหมือนที่เครื่องมือปิดบังข้อความมีให้
จะเรียกใช้ API โดยตรงแทนการใช้เว็บแอปได้อย่างไร
ส่งคำขอ POST ไปยัง /api/presidio/image พร้อม Bearer token ในเฮดเดอร์ Authorization และ body แบบ multipart/form-data ที่มี file และ mode ("analyze" หรือ "redact") ดูรายละเอียดฟิลด์และรูปแบบการตอบกลับทั้งหมดได้ในหัวข้อเอกสารอ้างอิง API ด้านบน
ลองใช้การปิดบังข้อมูลในภาพ
อัปโหลดภาพสแกน ภาพถ่าย หรือภาพหน้าจอ แล้วดู PII ที่ตรวจพบถูกปิดบังภายในไม่กี่วินาที
เปิดเว็บแอป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.
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.
Related reading
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
- Open the web app and try a sample file.
- Learn how credits get counted.
- See current plans and limits.
- Meet the team behind the product.
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.