GroupDocs.Redaction supports both types of image documents for Optical Character Recognition (Ocr):
image files, such as printed document scans (PNG, JPG, etc.) embedded images within office documents (PDF, DOCX, etc.) You have to implement IOcrConnector interface and pass the instance to RedactorSettings constructor.
For more details, see Ocr Usage Basics article.
Ocr usage limitations There are the following limitations of the Ocr with GroupDocs.Redaction for Java v21.6:
textual replacements are not supported, so you have to use color box replacements to redact text in images....Security Events Acquisition Using OCR to redact image documents GroupDocs...Optical Character Recognition (OCR): image files, such as printed...