ttttccxxui/DataInfra-RedactionEverything
DataInfra Series. Redact EVERYTHING with local llms and vlms.
What it solves
RedactionEverything is a local-first document anonymization workbench designed to remove sensitive information from unstructured files (PDFs, Word docs, images, and plain text) without sending data to remote APIs. It addresses the challenge of redacting messy, real-world business documents—particularly bilingual Chinese-English files—that contain not only text but also visual elements like stamps, signatures, and faces.
How it works
The system employs a dual-path processing pipeline:
- Text + OCR Path: It uses PP-StructureV3 for layout analysis and OCR, converting images and scanned PDFs into text blocks. A semantic NER model (HaS Text) then identifies sensitive entities based on configurable schemas. It also includes a "red-ink suppression" pass to recover text hidden under red company seals.
- Visual Feature Path: It uses the LocateAnything-3B model to ground visual features such as faces, fingerprints, ID cards, and bank cards. A local OpenCV detector supplements this by finding red binding and edge seals.
Results from both paths are merged and deduplicated, allowing users to review, correct, and export the redacted documents locally.
Who it’s for
It is designed for users handling sensitive business, legal, finance, or healthcare documents who require strict privacy boundaries (local/intranet deployment) and need to redact both text and visual identifiers from complex document layouts.
Highlights
- Local-First Privacy: All inference and file processing happen on a local GPU workstation or intranet.
- Visual Grounding: Detects non-text sensitive elements like signatures, seals, and faces using a single grounding model.
- Industry-Specific Presets: Includes pre-configured schemas for Legal, Finance, and Healthcare domains.
- Comprehensive File Support: Handles TXT, DOCX, scanned PDFs, and various image formats.
- Human-in-the-Loop: Provides a full workbench for reviewing and correcting recognition results before final export.
Related
- Project
- Project
- Project
- Project
- Project