ComfyUI Node
Auto Watermark Mask (OCR)
A ComfyUI node in image/mask with 17 inputs and 3 outputs.
Auto Watermark Mask (OCR)
- image
- watermark_template
- symbol_reference
- mask
- mask_preview
- detected_text
◄languagesen►
◄detection_modeocr_then_cv2►
◄regionfull_image►
◄min_confidence0.25►
◄padding12►
◄dilate10►
◄blur7►
◄cv2_sensitivity0.55►
◄corner_fallbackoff►
◄corner_width_ratio0.12►
◄corner_height_ratio0.08►
◄gputrue►
◄detail_detectornone►
◄symbol_match_threshold0.45►
Categoryimage/mask
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| languages | STRING | en | EasyOCR language codes separated by commas, e.g. en,de. |
| detection_mode | COMBO | ocr_then_cv2 | How to build the mask. Start with cv2_only for logos and faint symbols, or ocr_then_cv2 for readable text watermarks. |
| region | COMBO | full_image | Limits the search area. Use corners or edges when the watermark is near the border for fewer false positives and faster matching. |
| min_confidence | FLOAT | 0.250–1 | Minimum OCR confidence before a text hit is added to the mask. Higher values are stricter. |
| padding | INT | 120–256 | Extra pixels added around each detected region. Increase if the mask clips the watermark edges. |
| dilate | INT | 100–256 | Expands the mask after detection. Useful when thin strokes or glow edges are missed. |
| blur | INT | 70–255 | Softens mask edges before preview and inpainting. Lower values keep the mask tighter. |
| cv2_sensitivity | FLOAT | 0.550–1 | Controls how aggressively the CV2 fallback grabs low-contrast regions. Raise it for faint overlays, lower it to reduce false positives. |
| corner_fallback | COMBO | off | Adds a simple corner mask when the watermark is pinned to a corner and automatic detection misses it. |
| corner_width_ratio | FLOAT | 0.120.02–0.5 | Corner fallback width as a fraction of image width. |
| corner_height_ratio | FLOAT | 0.080.02–0.5 | Corner fallback height as a fraction of image height. |
| gpu | BOOLEAN | true | Use GPU for EasyOCR when available. Turn off if OCR startup is unstable in your environment. |
| detail_detector | COMBO | none | Extra detector for hard cases. Use decomposition for faint blended overlays, or symbol_template when you can connect a watermark_template image. |
| symbol_match_threshold | FLOAT | 0.450–1 | Template match confidence threshold for symbol_template. Raise it to avoid lookalikes; lower it if the right watermark is being missed. |
| watermark_templateopt | IMAGE | Optional reference image of the watermark you want to find. Best results come from a tight clean crop of the watermark on a similar background. | |
| symbol_referenceopt | IMAGE | Legacy alias for watermark_template. You only need one of these inputs connected. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| mask_preview | IMAGE | — |
| detected_text | STRING | — |