Highlight Texts for Debugging IronOCR includes built‑in support to visually highlight OCR-detected elements (characters, words, lines, or paragraphs) on images or pages, and export them as PNGs for debugging. OCR-based region detection replaces manual rectangle definitions HighlightTextAndSaveAsImages(ocr, prefix, highlightType) overlays red boxes around detected elements — paragraphs, lines, words, or characters — and saves each page as an image. Uses ResultHighlightType to choose what to highlight: Character, Word, Line, or Paragraph. Handles detection and drawing internally — much simpler than manually specifying rectangle coordinates. Optional Manual Approach via StampCropRectangles If you want to manually handle bounding boxes from OCR results: result.WordBounds (or .LineBounds, .ParagraphBounds) yields Rectangle[] with detected regions. StampCropRectanglesAndSaveAs(...) visualizes those rectangles and writes images to disk Explore Computer Vision Techniques with IronOCR Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation OCR Language Packs Download IronOCR DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 5,044,537 | Version: 2025.11 just released Free NuGet Download Total downloads: 5,044,537 View Licenses