executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
image-redactionOperate Presidio image OCR redaction for standard images and DICOM pixel PHI.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about Presidio Image Redactor package workflows: OCR text detection in images, redacting image pixels, returning or validating bounding boxes, choosing the OCR engine, or handling DICOM burnt-in text redaction.
ImageRedactorEngine.redact() or redact_and_return_bbox() on a PIL image, image-like object, NumPy array, or image file path accepted by the image preprocessor.ImageAnalyzerEngine.analyze() to run OCR, feed extracted text through Presidio Analyzer, and map analyzer spans back to image bounding boxes.ImagePiiVerifyEngine.verify() for an annotated verification image showing OCR/PII boxes.DicomImageRedactorEngine for DICOM pixel redaction from a loaded pydicom instance, one file, or a directory tree.DicomImagePiiVerifyEngine to create DICOM verification overlays or compute precision/recall against ground-truth bounding boxes.TesseractOCR versus optional DocumentIntelligenceOCR.ImageRecognizerResult, bbox coordinate semantics, color/fill choices, ocr_kwargs, or analyzer kwargs passed through image workflows.../analyze-text/SKILL.md.../anonymize-text/SKILL.md.../../references/service-and-rest-api.md.references/api-reference.md for constructors, methods, return values, bbox shape, fill values, and kwarg routing.references/ocr-and-dicom-workflows.md for standard image, custom analyzer, Azure Document Intelligence, DICOM file/directory, and verification recipes.references/troubleshooting.md for missing Tesseract, empty OCR, analyzer/model failures, Azure credentials, pydicom/GDCM, and bbox/fill surprises.scripts/image_ocr_smoke.py for a no-source-path smoke check that imports the package, checks Tesseract, creates an in-memory image, and verifies at least one redaction bbox.presidio-image-redactor is importable; Tesseract is on PATH for the default TesseractOCR; the default analyzer path has en_core_web_lg unless you inject a custom analyzer that does not need it.TesseractOCR by default for local image and DICOM workflows.DocumentIntelligenceOCR only when Azure Document Intelligence credentials and one-page document constraints are acceptable.language, entities, score_threshold, allow_list, allow_list_match, and context through to the underlying AnalyzerEngine.analyze().../analyze-text/SKILL.md.ImageRedactorEngine.redact() when only the image is needed; choose redact_and_return_bbox() when you need ImageRecognizerResult objects for validation or downstream review.redact_and_return_bbox() for loaded instances and redact_from_file()/redact_from_directory() for filesystem workflows. Use save_bboxes=True when you need sidecar bbox JSON.use_metadata=True as a pixel-detection aid only: it uses DICOM metadata terms to find matching burnt-in pixel text, but it does not remove or alter metadata PHI.ocr_threshold, analyzer kwargs/entities/language/model, then bbox mapping.fill is an integer grayscale value or an RGB tuple, for example 1, 255, or (255, 0, 0).fill is "contrast"/"invert"/"inverted"/"inverse" for a contrasting mask, or "background"/"bg" for a background-like mask.ocr_kwargs is forwarded to the OCR backend after image code strips ocr_threshold; ocr_threshold accepts values from -1 through 100.../analyze-text/SKILL.md and inject the resulting AnalyzerEngine into ImageAnalyzerEngine.ImageRecognizerResult has text span fields plus pixel fields: entity_type, start, end, score, left, top, width, height.