{
  "id": "task_libraries:ocr/python",
  "path": "/exapedia/python-ocr-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python OCR libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python OCR (optical character recognition) libraries extract text from images and scanned documents. "
    },
    {
      "t": "link",
      "href": "#pytesseract",
      "label": [
        {
          "t": "text",
          "text": "pytesseract"
        }
      ]
    },
    {
      "t": "text",
      "text": " passes each image to Tesseract, an OCR engine installed separately from Python. "
    },
    {
      "t": "link",
      "href": "#easyocr",
      "label": [
        {
          "t": "text",
          "text": "EasyOCR"
        }
      ]
    },
    {
      "t": "text",
      "text": " and "
    },
    {
      "t": "link",
      "href": "#paddleocr",
      "label": [
        {
          "t": "text",
          "text": "PaddleOCR"
        }
      ]
    },
    {
      "t": "text",
      "text": " install with pip and bring their own deep learning models. The models download on first use and run faster on a GPU. These libraries turn scanned forms, receipts, and screenshots into text that search systems and AI agents can read."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python OCR libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pytesseract",
                  "label": [
                    {
                      "t": "text",
                      "text": "pytesseract"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F1"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F2"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F5"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F3"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rapidocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F29"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F33"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F31"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#easyocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "EasyOCR"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F51"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F52"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F53"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#paddleocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F78"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F79"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F80"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ocrmypdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "OCRmyPDF"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F106"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F107"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F110"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F108"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tesserocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "tesserocr"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#doctr",
                  "label": [
                    {
                      "t": "text",
                      "text": "doctr"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#keras-ocr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most installs, while "
        },
        {
          "t": "link",
          "href": "#paddleocr",
          "label": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most GitHub stars."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Detects tables",
            "Detects page layout",
            "Returns word boxes",
            "Reads handwriting",
            "Runs on a GPU",
            "Output formats"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pytesseract",
                  "label": [
                    {
                      "t": "text",
                      "text": "pytesseract"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F7"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F8"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F9"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F10"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rapidocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F311"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#easyocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "EasyOCR"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#paddleocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ocrmypdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "OCRmyPDF"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F312"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tesserocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "tesserocr"
                    }
                  ]
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#doctr",
                  "label": [
                    {
                      "t": "text",
                      "text": "doctr"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F314"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#keras-ocr",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              []
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pytesseract",
          "name": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/madmaze/pytesseract"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pytesseract/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "pytesseract is a Python wrapper for "
            },
            {
              "t": "link",
              "href": "#what-is-tesseract",
              "label": [
                {
                  "t": "text",
                  "text": "Tesseract"
                }
              ]
            },
            {
              "t": "text",
              "text": ", Google's open source OCR engine. The wrapper passes each image to the Tesseract command-line program, which has to be installed separately and be on the system path. For plain text, "
            },
            {
              "t": "code",
              "text": "image_to_string"
            },
            {
              "t": "text",
              "text": " returns everything Tesseract read as one string. A second function, "
            },
            {
              "t": "code",
              "text": "image_to_data"
            },
            {
              "t": "text",
              "text": ", returns one row per word with its position on the image, a confidence value, and its line and page. Other functions turn the same image into a searchable PDF, hOCR, or ALTO XML."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F1"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F2"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F4"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F3"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/madmaze/pytesseract",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "pytesseract"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "One process per call"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each call starts a new Tesseract process. "
                },
                {
                  "t": "link",
                  "href": "#tesserocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "tesserocr"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " calls the engine's C++ API directly instead."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Installed languages only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Each language needs its Tesseract language pack, selected with the "
                },
                {
                  "t": "code",
                  "text": "lang"
                },
                {
                  "t": "text",
                  "text": " argument, such as "
                },
                {
                  "t": "code",
                  "text": "lang='fra'"
                },
                {
                  "t": "text",
                  "text": " for French."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gramps-project/gramps-web-api",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "runs OCR on a stored image and returns text, boxes, word data, or hOCR with pytesseract."
                }
              ],
              "language": "python",
              "code": "def get_ocr(self, lang: str, output_format: str = \"string\"):\n    # ...\n    if not self.mime.startswith(\"image\"):\n        return {}\n    try:\n        import pytesseract\n    except ImportError:\n        abort_with_message(501, \"pytesseract is not installed\")\n\n    try:\n        pytesseract.get_tesseract_version()\n    except pytesseract.TesseractNotFoundError:\n        abort_with_message(501, \"Tesseract is not installed\")\n    fobj = self.get_file_object()\n    image = open_image(fobj)\n    if output_format == \"string\":\n        data = pytesseract.image_to_string(image, lang=lang)\n    elif output_format == \"boxes\":\n        data = pytesseract.image_to_boxes(image, lang=lang, output_type=\"dict\")\n    elif output_format == \"data\":\n        data = pytesseract.image_to_data(image, lang=lang, output_type=\"dict\")\n    elif output_format == \"hocr\":\n        data = pytesseract.image_to_pdf_or_hocr(\n            image, lang=lang, extension=\"hocr\"\n        ).decode(\"utf-8\")\n    else:\n        raise ValueError(f\"Unknown output format: {output_format}\")\n    return data",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gramps-project/gramps-web-api/blob/57618907ce0529a893a02207115e3a3db79e0628/gramps_webapi/api/file.py#L161-L188",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pytesseract%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "pytesseract"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gavrielc/Nano-PDF",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "turns a page image into a searchable PDF with a hidden text layer using pytesseract."
                }
              ],
              "language": "python",
              "code": "def rehydrate_image_to_pdf(image: Image.Image, output_pdf_path: str):\n    \"\"\"\n    Converts an image to a single-page PDF with a hidden text layer using Tesseract.\n    This is the 'State Preservation' step.\n    \"\"\"\n    pdf_bytes = pytesseract.image_to_pdf_or_hocr(image, extension='pdf')\n    with open(output_pdf_path, 'wb') as f:\n        f.write(pdf_bytes)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gavrielc/Nano-PDF/blob/9b9ddae5833c72d19a28ce2a5712a2e6f35870be/nano_pdf/pdf_utils.py#L88-L95",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pytesseract%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "pytesseract"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from PIL import Image\nimport pytesseract\n\n# Simple image to string\nprint(pytesseract.image_to_string(Image.open('test.png')))",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/madmaze/pytesseract/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F14"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rapidocr",
          "name": [
            {
              "t": "text",
              "text": "RapidOCR"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/RapidAI/RapidOCR"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/rapidocr/"
            },
            {
              "label": "Docs",
              "href": "https://rapidai.github.io/RapidOCRDocs"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "RapidOCR runs PaddleOCR's models after converting them to ONNX, a portable model format, so no PaddlePaddle install is needed. A single command, "
            },
            {
              "t": "code",
              "text": "pip install rapidocr onnxruntime"
            },
            {
              "t": "text",
              "text": ", installs everything. Calling the engine on an image path or URL returns the text it found with each box and score."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F29"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F31"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/RapidAI/RapidOCR/blob/main/python/rapidocr/main.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Chinese and English by default"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Other languages need a different model from the project's model list."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Training happens elsewhere"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Custom models are fine-tuned in "
                },
                {
                  "t": "link",
                  "href": "#paddleocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " and then converted for RapidOCR."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "runs RapidOCR on each page image and collects every word with its confidence and box."
                }
              ],
              "language": "python",
              "code": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    ocrs = cast(\"list[RapidOCROutput]\", [self.engine(img) for img in document.images])\n    content = [\n        {\n            \"texts\": res.txts,\n            \"scores\": res.scores,\n            \"boxes\": res.boxes,\n        }\n        if res.txts is not None and res.scores is not None and res.boxes is not None\n        else {}\n        for res in ocrs\n    ]\n\n    # Create dict of elements by page\n    records = {}\n    for page, ocr_result in enumerate(content):\n        for idx, (word, conf, bbox) in enumerate(\n            zip(\n                cast(\"tuple[str, ...]\", ocr_result[\"texts\"]),\n                cast(\"tuple[float, ...]\", ocr_result[\"scores\"]),\n                cast(\"npt.NDArray\", ocr_result[\"boxes\"]),\n                strict=True,\n            )\n        ):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word,\n                \"confidence\": int(100 * conf),\n                \"x1\": int(min(bbox[:, 0])),\n                \"y1\": int(min(bbox[:, 1])),\n                \"x2\": int(max(bbox[:, 0])),\n                \"y2\": int(max(bbox[:, 1])),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/rapidocr.py#L39-L76",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20rapidocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/marouane53/GeoINT",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "reads text from an image with RapidOCR and returns each line with its confidence and box."
                }
              ],
              "language": "python",
              "code": "def run(self, im: Image.Image) -> list[dict]:\n    import numpy as np\n    res, _ = self.ocr(np.array(im.convert(\"RGB\"))[:, :, ::-1])\n    out = []\n    for box, text, conf in res or []:\n        xs = [p[0] for p in box]\n        ys = [p[1] for p in box]\n        out.append({\"text\": str(text), \"conf\": round(float(conf), 3), \"box\": [int(min(xs)), int(min(ys)), int(max(xs)), int(max(ys))]})\n    return out",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/marouane53/GeoINT/blob/53ea6623153ee3aec9aa732d29a547776f13fd8c/scripts/ocr.py#L92-L100",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20rapidocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from rapidocr import RapidOCR\n\nengine = RapidOCR()\n\nimg_url = \"https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/master/resources/test_files/ch_en_num.jpg\"\nresult = engine(img_url)\nprint(result)\n\nresult.vis(\"vis_result.jpg\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/RapidAI/RapidOCR/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "easyocr",
          "name": [
            {
              "t": "text",
              "text": "EasyOCR"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/JaidedAI/EasyOCR"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/easyocr/"
            },
            {
              "label": "Docs",
              "href": "https://www.jaided.ai"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "EasyOCR reads text with deep learning models built on PyTorch and supports more than eighty languages, including Latin, Chinese, Arabic, Devanagari, and Cyrillic scripts. Model weights for each language download automatically the first time a reader is created. Its main method, "
            },
            {
              "t": "code",
              "text": "readtext"
            },
            {
              "t": "text",
              "text": ", returns a list in which each item holds a bounding box, the detected text, and a confidence level, which "
            },
            {
              "t": "link",
              "href": "#pytesseract",
              "label": [
                {
                  "t": "text",
                  "text": "pytesseract"
                }
              ]
            },
            {
              "t": "text",
              "text": " gives only through "
            },
            {
              "t": "code",
              "text": "image_to_data"
            },
            {
              "t": "text",
              "text": ". Setting "
            },
            {
              "t": "code",
              "text": "detail"
            },
            {
              "t": "text",
              "text": " to zero returns the text alone."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F51"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F52"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F54"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F53"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F56"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/easyocr/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "EasyOCR"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "GPU by default"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Machines without a GPU, or with little GPU memory, need "
                },
                {
                  "t": "code",
                  "text": "gpu=False"
                },
                {
                  "t": "text",
                  "text": " when the reader is created."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "No handwriting yet"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The README lists handwritten text support as coming next."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "PyTorch first on Windows"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Windows needs PyTorch installed from the PyTorch site, with the matching CUDA version, before EasyOCR."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "runs EasyOCR readtext on each page image and turns the results into words with boxes."
                }
              ],
              "language": "python",
              "code": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    # ...\n    # Get OCR of all images\n    content = [self.reader.readtext(image) for image in document.images]\n\n    # Create dict of elements by page\n    records = {}\n\n    for page, ocr_result in enumerate(content):\n        for idx, word in enumerate(ocr_result):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word[1],\n                \"confidence\": round(100 * word[2]),\n                \"x1\": round(min([edge[0] for edge in word[0]])),\n                \"y1\": round(min([edge[1] for edge in word[0]])),\n                \"x2\": round(max([edge[0] for edge in word[0]])),\n                \"y2\": round(max([edge[1] for edge in word[0]])),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/easyocr.py#L47-L74",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20easyocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "EasyOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/docling-project/docling",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F248"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "reads text from each page region with EasyOCR readtext and keeps cells above a confidence threshold."
                }
              ],
              "language": "python",
              "code": "def __call__(\n    self, conv_res: ConversionResult, page_batch: Iterable[Page]\n) -> Iterable[Page]:\n    # ...\n    for page in page_batch:\n        assert page._backend is not None\n        if not page._backend.is_valid():\n            yield page\n        else:\n            with TimeRecorder(conv_res, \"ocr\"):\n                ocr_rects = self.get_ocr_rects(page)\n\n                all_ocr_cells = []\n                for ocr_rect in ocr_rects:\n                    # ...\n                    high_res_image = page._backend.get_page_image(\n                        scale=self.scale, cropbox=ocr_rect\n                    )\n                    im = numpy.asarray(high_res_image)\n\n                    with warnings.catch_warnings():\n                        # ...\n                        result = self.reader.readtext(im)\n\n                    # ...\n                    cells = [\n                        TextCell(\n                            # ...\n                        )\n                        for ix, line in enumerate(result)\n                        if line[2] >= self.options.confidence_threshold\n                    ]\n                    all_ocr_cells.extend(cells)\n\n                # ...\n                self.post_process_cells(all_ocr_cells, page, conv_res)\n\n            # ...\n            yield page",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/docling-project/docling/blob/75a7dbc75caadddbdb1c283c8141fb1857ff8bc6/docling/models/stages/ocr/easyocr_model.py#L308-L375",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F251"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20easyocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "EasyOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import easyocr\nreader = easyocr.Reader(['ch_sim','en']) # this needs to run only once to load the model into memory\nresult = reader.readtext('chinese.jpg')",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/JaidedAI/EasyOCR/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "paddleocr",
          "name": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/PaddlePaddle/PaddleOCR"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/paddleocr/"
            },
            {
              "label": "Docs",
              "href": "https://www.paddleocr.com"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "PaddleOCR is Baidu's OCR toolkit, built on the PaddlePaddle deep learning framework. Beyond reading lines of text, the toolkit converts PDFs and images into structured Markdown or JSON. Its PP-OCR models also read text in photos, such as IDs, street views, books, and industrial parts, and the README lists more than a hundred supported languages."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F78"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F79"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F80"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/PaddlePaddle/PaddleOCR/blob/main/docs/version3.x/module_usage/table_structure_recognition.en.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F98"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Two installs"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The PaddlePaddle framework is installed separately from the "
                },
                {
                  "t": "code",
                  "text": "paddleocr"
                },
                {
                  "t": "text",
                  "text": " package, in a CPU or GPU build."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Lighter alternative"
                }
              ],
              "body": [
                {
                  "t": "link",
                  "href": "#rapidocr",
                  "label": [
                    {
                      "t": "text",
                      "text": "RapidOCR"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " runs the same models without PaddlePaddle."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "extracts text from a PDF or image with PaddleOCR, rendering PDF pages to images first."
                }
              ],
              "language": "python",
              "code": "def to_text(\n    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any\n) -> str:\n    # ...\n    if not paddleocr_available():\n        logger.warning(\n            \"PaddleOCR is not available. \"\n            \"Install with 'pip install invoice2data[paddleocr]'\"\n        )\n        return \"\"\n    ocr = _get_ocr(kwargs.get(\"lang\", \"en\"))\n    sources = _page_arrays(path) if path.lower().endswith(\".pdf\") else [path]\n    pages = [_extract_text(ocr.ocr(source)) for source in sources]\n    return \"\\n\".join(page for page in pages if page)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/paddleocr.py#L101-L124",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20paddleocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "runs PaddleOCR predict on page images and collects each recognized word with its score and box."
                }
              ],
              "language": "python",
              "code": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    ocrs = self.ocr.predict(input=document.images)\n    content = [\n        {\n            \"rec_texts\": res[\"rec_texts\"],\n            \"rec_scores\": res[\"rec_scores\"],\n            \"rec_boxes\": [bbox.tolist() for bbox in res[\"rec_boxes\"]],\n        }\n        for res in ocrs\n    ]\n\n    # Create dict of elements by page\n    records = {}\n\n    for page, ocr_result in enumerate(content):\n        for idx, (word, conf, bbox) in enumerate(\n            zip(\n                ocr_result[\"rec_texts\"],\n                ocr_result[\"rec_scores\"],\n                ocr_result[\"rec_boxes\"],\n                strict=True,\n            )\n        ):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word,\n                \"confidence\": int(100 * conf),\n                \"x1\": int(bbox[0]),\n                \"y1\": int(bbox[1]),\n                \"x2\": int(bbox[2]),\n                \"y2\": int(bbox[3]),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/paddle.py#L44-L80",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F265"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20paddleocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "PaddleOCR"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "# 使用 PaddlePaddle 进行推理\nfrom paddleocr import TextDetection\n\nmodel = TextDetection(engine=\"paddle\")\noutput = model.predict(\"general_ocr_001.png\")\nfor res in output:\n    res.print()\n    res.save_to_img(save_path=\"./output/\")\n    res.save_to_json(save_path=\"./output/res.json\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/PaddlePaddle/PaddleOCR/blob/b03f46425e8ff4442b268ce449e3eef758146cd4/docs/quick_start.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F91"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ocrmypdf",
          "name": [
            {
              "t": "text",
              "text": "OCRmyPDF"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ocrmypdf/OCRmyPDF"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/ocrmypdf/"
            },
            {
              "label": "Docs",
              "href": "http://ocrmypdf.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "OCRmyPDF is a command-line program, also callable from Python, that adds a hidden text layer to scanned PDF files so they can be searched and copied. Tesseract reads each page, and OCRmyPDF places that text beneath the page image while keeping the original images at their exact resolution. Options rotate misaligned pages, straighten crooked scans with "
            },
            {
              "t": "code",
              "text": "--deskew"
            },
            {
              "t": "text",
              "text": ", and spread the work across every CPU core."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F106"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F107"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F109"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F108"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F111"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ocrmypdf.readthedocs.io/_/downloads/en/v16.0.1/pdf/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "OCRmyPDF"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "PDF output"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The result is a searchable PDF/A file. Plain text needs the "
                },
                {
                  "t": "code",
                  "text": "--sidecar"
                },
                {
                  "t": "text",
                  "text": " option."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "System install"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Tesseract and its language packs are system programs, so the README recommends a package manager, such as "
                },
                {
                  "t": "code",
                  "text": "apt install ocrmypdf"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pd3f/pd3f",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F271"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "adds an OCR text layer to chosen PDF pages with ocrmypdf, straightening and rotating them first."
                }
              ],
              "language": "python",
              "code": "def ocr(path, output, pages, language, progress=None):\n    \"\"\"Write `path` to `output` with the 0-based `pages` OCRed; their old text is replaced.\n    Pages are straightened and turned upright first. `progress(step, done, total)` follows\n    OCRmyPDF's steps; `done` and `total` count pages or are None.\"\"\"\n    token = PROGRESS.set(progress)\n    try:\n        ocrmypdf.ocr(\n            path,\n            output,\n            language=language,\n            pages=\",\".join(str(i + 1) for i in pages),\n            mode=\"force\",\n            rotate_pages=True,\n            rotate_pages_threshold=TURN_CONFIDENCE,\n            deskew=True,\n            clean=True,\n            # PDF/A sends the pages kept as they are through Ghostscript, which drops\n            # the text of ligatures in some versions\n            output_type=\"pdf\",\n            progress_bar=progress is not None,\n            plugins=[__name__],\n        )\n    finally:\n        PROGRESS.reset(token)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pd3f/pd3f/blob/8fb928801c4b28d2070135fdf6ccd5a394b59413/pd3f/ocr.py#L103-L126",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20ocrmypdf%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "OCRmyPDF"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "cleans and OCRs a scanned invoice PDF with ocrmypdf and returns the new file path."
                }
              ],
              "language": "python",
              "code": "def pre_process_pdf(path: str, pre_conf: dict[str, Any] | None = None) -> str | None:\n    # ...\n    import ocrmypdf\n\n    ocrmypdf_conf = OPTIONS_DEFAULT.copy()\n    if pre_conf:\n        ocrmypdf_conf.update(pre_conf)\n    # ...\n\n    if \"output_file\" not in ocrmypdf_conf:\n        # ...\n        out_dir = tempfile.mkdtemp(prefix=\"invoice2data_ocrmypdf_\")\n        ocrmypdf_conf[\"output_file\"] = str(Path(out_dir) / Path(path).name)\n        # ...\n    exit_code = ocrmypdf.ocr(path, **ocrmypdf_conf)\n    if exit_code == 0:\n        logger.info(\"Text extraction performed with ocrmypdf\")\n        pre_proc_output = ocrmypdf_conf[\"output_file\"]\n        # ...\n        return pre_proc_output  # Return the output file path\n    logger.warning(\"ocrmypdf failed, stopping processing of this file\")\n    return None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/ocrmypdf.py#L90-L146",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F279"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20ocrmypdf%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "OCRmyPDF"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import ocrmypdf\nfrom ocrmypdf import OcrOptions\n\nif __name__ == '__main__':  # To ensure correct behavior on Windows and macOS\n    options = OcrOptions(\n        input_file='input.pdf',\n        output_file='output.pdf',\n        deskew=True,\n        languages=['eng'],\n    )\n    ocrmypdf.ocr(options)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/ocrmypdf/OCRmyPDF/blob/6588e91a4eedce40f140dda9fdae9f7235419b40/docs/api.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F117"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tesserocr",
          "name": [
            {
              "t": "text",
              "text": "tesserocr"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sirfz/tesserocr"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/tesserocr/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "tesserocr also runs Tesseract, but calls its C++ API directly through Cython instead of starting the command-line program. Unlike "
            },
            {
              "t": "link",
              "href": "#pytesseract",
              "label": [
                {
                  "t": "text",
                  "text": "pytesseract"
                }
              ]
            },
            {
              "t": "text",
              "text": ", the library releases Python's global interpreter lock while Tesseract works, so several threads can read images at the same time. Pillow images and image files both work as input."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/tesserocr/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "tesserocr"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Builds against Tesseract"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Installing from source needs the Tesseract and Leptonica development libraries, such as "
                },
                {
                  "t": "code",
                  "text": "libtesseract-dev"
                },
                {
                  "t": "text",
                  "text": " and "
                },
                {
                  "t": "code",
                  "text": "libleptonica-dev"
                },
                {
                  "t": "text",
                  "text": " on Debian and Ubuntu."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/alephdata/memorious",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F283"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "reads text from an image with a shared tesserocr PyTessBaseAPI, guarded by a lock."
                }
              ],
              "language": "python",
              "code": "def read_text(image, languages=None):\n    \"\"\"OCR text from an image.\"\"\"\n    with lock:\n        api = None\n        currlocale = locale.getlocale()\n        try:\n            locale.setlocale(locale.LC_CTYPE, \"C\")\n            api = get_ocr()\n            if api is None or image is None:\n                return \"\"\n            api.SetImage(image)\n            return api.GetUTF8Text() or \"\"\n        finally:\n            if api is not None:\n                api.Clear()\n            locale.setlocale(locale.LC_CTYPE, currlocale)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/alephdata/memorious/blob/ec817fe43c433f7a3707b02e29c3c94252185268/memorious/helpers/ocr.py#L28-L43",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F286"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tesserocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "tesserocr"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/WeblateOrg/weblate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F288"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "recognizes the lines and words in a screenshot with tesserocr and keeps each one's bounding box."
                }
              ],
              "language": "python",
              "code": "def ocr_get_lines(\n    api: PyTessBaseAPI, *, image: Image.Image, filename: str, resolution: int\n) -> tuple[list[OCRLine], bool]:\n    \"\"\"Recognize lines and their words without losing original image coordinates.\"\"\"\n    from tesserocr import RIL, iterate_level  # ruff: ignore[import-outside-top-level]\n\n    lines: list[OCRLine] = []\n    truncated = False\n    try:\n        try:\n            api.SetImage(image)\n        except RuntimeError:\n            return lines, truncated\n        api.SetSourceResolution(resolution)\n        with start_span(op=\"ocr.recognize\", name=filename):\n            api.Recognize()\n        iterator = api.GetIterator()\n        # ...\n        for word_number, word in enumerate(iterate_level(iterator, RIL.WORD)):\n            # ...\n            try:  # ruff: ignore[too-many-statements-in-try-clause]\n                if not lines or word.IsAtBeginningOf(RIL.TEXTLINE):\n                    # ...\n                    lines.append(\n                        {\n                            \"text\": word.GetUTF8Text(RIL.TEXTLINE)[\n                                :OCR_TEXT_LENGTH_LIMIT\n                            ],\n                            \"box\": word.BoundingBox(RIL.TEXTLINE),\n                            \"words\": [],\n                        }\n                    )\n                # ...\n            except RuntimeError:\n                continue\n    finally:\n        api.Clear()\n    return lines, truncated",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/WeblateOrg/weblate/blob/da5749c4d04fad0132c4b4068979cfa358005902/weblate/screenshots/ocr.py#L388-L436",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F291"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tesserocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "tesserocr"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import tesserocr\nfrom PIL import Image\n\nimage = Image.open('sample.jpg')\nprint(tesserocr.image_to_text(image))  # print ocr text from image\n# or\nprint(tesserocr.file_to_text('sample.jpg'))",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/sirfz/tesserocr/blob/b93b93fa622313c981dabb3aa422672ffccc8085/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "doctr",
          "name": [
            {
              "t": "text",
              "text": "doctr"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mindee/doctr"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/python-doctr/"
            },
            {
              "label": "Docs",
              "href": "https://mindee.github.io/doctr/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "docTR reads documents in two stages: a detection model finds each word, and a recognition model reads its characters. Both stages run on PyTorch, and "
            },
            {
              "t": "code",
              "text": "ocr_predictor"
            },
            {
              "t": "text",
              "text": " lets a project choose the architecture for each one. PDFs and images both work as input, and the output groups words into lines, blocks, and pages."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mindee.github.io/doctr/latest/user_guide/layout_and_tables.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "text",
                      "text": "doctr"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F293"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "extracts text from a PDF or image with a docTR OCR predictor."
                }
              ],
              "language": "python",
              "code": "def to_text(\n    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any\n) -> str:\n    # ...\n    if not doctr_available():\n        logger.warning(\n            \"docTR is not available. Install with 'pip install invoice2data[doctr]'\"\n        )\n        return \"\"\n    from doctr.io import DocumentFile\n\n    if path.lower().endswith(\".pdf\"):\n        document = DocumentFile.from_pdf(path)\n    else:\n        document = DocumentFile.from_images(path)\n    result = _get_model()(document)\n    return _render(result)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/doctr.py#L74-L99",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F296"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20python-doctr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "doctr"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F299"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F298"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "runs a docTR predictor on page images and collects each word with its confidence and box."
                }
              ],
              "language": "python",
              "code": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    # ...\n    # Apply OCR\n    content = self.model(document.images)\n\n    # Create dict of elements by page\n    records = {}\n\n    for page_id, page in enumerate(content.pages):\n        dimensions = page.dimensions\n        word_id = 0\n        for block in page.blocks:\n            for line_id, line in enumerate(block.lines):\n                for word in line.words:\n                    word_id += 1\n                    dict_word = {\n                        \"id\": f\"word_{page_id + 1}_{line_id}_{word_id}\",\n                        \"parent\": f\"word_{page_id + 1}_{line_id}\",\n                        \"value\": word.value,\n                        \"confidence\": round(100 * word.confidence),\n                        \"x1\": round(word.geometry[0][0] * dimensions[1]),\n                        \"y1\": round(word.geometry[0][1] * dimensions[0]),\n                        \"x2\": round(word.geometry[1][0] * dimensions[1]),\n                        \"y2\": round(word.geometry[1][1] * dimensions[0]),\n                    }\n\n                    records.setdefault(page_id, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/doctr.py#L34-L66",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F301"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20python-doctr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "text",
                      "text": "doctr"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from doctr.io import DocumentFile\nfrom doctr.models import ocr_predictor\n\nmodel = ocr_predictor(pretrained=True)\n# PDF\ndoc = DocumentFile.from_pdf(\"path/to/your/doc.pdf\")\n# Analyze\nresult = model(doc)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mindee/doctr/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "keras-ocr",
          "name": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/faustomorales/keras-ocr"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/keras-ocr/"
            },
            {
              "label": "Docs",
              "href": "https://keras-ocr.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "keras-ocr packages the CRAFT text detection model and a CRNN recognition model behind one TensorFlow pipeline. Creating a "
            },
            {
              "t": "code",
              "text": "Pipeline"
            },
            {
              "t": "text",
              "text": " downloads pretrained weights for both models. "
            },
            {
              "t": "link",
              "href": "#easyocr",
              "label": [
                {
                  "t": "text",
                  "text": "EasyOCR"
                }
              ]
            },
            {
              "t": "text",
              "text": " uses the same CRAFT detector on PyTorch, while keras-ocr also provides an API for training a custom detector and recognizer."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://keras-ocr.readthedocs.io/en/latest/api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F304"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Altaflux/agent-mimir",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F303"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                },
                {
                  "t": "text",
                  "text": "reads text from a screenshot with a keras-ocr pipeline and returns each word with its box."
                }
              ],
              "language": "python",
              "code": "def extract_text(img, pipeline):\n\n    prediction_groups = pipeline.recognize([img])\n    textAreas = []\n    for box in prediction_groups[0]:\n        x0, y0 = box[1][0]\n        x1, y1 = box[1][1] \n        x2, y2 = box[1][2]\n        x3, y3 = box[1][3] \n        textAreas.append({\n            \"text\": box[0],\n            \"bbox\": {'x0': x0, 'y0': y0, 'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'x3': x3, 'y3': y3}\n        })\n\n    return textAreas",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Altaflux/agent-mimir/blob/ca002a70220b608cc7c2b718f5ec93dd77c1a94b/tools/desktop-control/python/server.py#L75-L89",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F306"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " · pushed "
                },
                {
                  "t": "fact",
                  "fact": "F305"
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20keras-ocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import keras_ocr\n\npipeline = keras_ocr.pipeline.Pipeline()\n\nimages = [\n    keras_ocr.tools.read(url) for url in [\n        'https://upload.wikimedia.org/wikipedia/commons/b/bd/Army_Reserves_Recruitment_Banner_MOD_45156284.jpg',\n        'https://upload.wikimedia.org/wikipedia/commons/e/e8/FseeG2QeLXo.jpg',\n        'https://upload.wikimedia.org/wikipedia/commons/b/b4/EUBanana-500x112.jpg'\n    ]\n]\n\n# Each list of predictions in prediction_groups is a list of\n# (word, box) tuples.\nprediction_groups = pipeline.recognize(images)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/faustomorales/keras-ocr/blob/9661d6f29c063eb1c9261029d3593e583b0abdac/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "the README"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is the best Python OCR library?",
      "a": [
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": " has "
        },
        {
          "t": "fact",
          "fact": "F1"
        },
        {
          "t": "text",
          "text": " downloads a month and suits clean typed documents. "
        },
        {
          "t": "link",
          "href": "#paddleocr",
          "label": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " handles many languages, tables, and complex layouts, and "
        },
        {
          "t": "link",
          "href": "#ocrmypdf",
          "label": [
            {
              "t": "text",
              "text": "OCRmyPDF"
            }
          ]
        },
        {
          "t": "text",
          "text": " turns scanned PDFs into searchable ones."
        }
      ]
    },
    {
      "q": "What is Tesseract?",
      "a": [
        {
          "t": "text",
          "text": "Tesseract "
        },
        {
          "t": "fact",
          "fact": "F213"
        },
        {
          "t": "text",
          "text": " "
        },
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#ocrmypdf",
          "label": [
            {
              "t": "text",
              "text": "OCRmyPDF"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#tesserocr",
          "label": [
            {
              "t": "text",
              "text": "tesserocr"
            }
          ]
        },
        {
          "t": "text",
          "text": " all run it to read text. See the "
        },
        {
          "t": "link",
          "href": "https://tesseract-ocr.github.io/",
          "label": [
            {
              "t": "text",
              "text": "Tesseract documentation"
            }
          ]
        },
        {
          "t": "text",
          "text": " and the "
        },
        {
          "t": "link",
          "href": "https://github.com/tesseract-ocr/tesseract",
          "label": [
            {
              "t": "text",
              "text": "Tesseract repository"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "PaddleOCR vs Tesseract: which is better?",
      "a": [
        {
          "t": "link",
          "href": "#paddleocr",
          "label": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads hard images more accurately, and it returns tables and layout as Markdown or JSON. Tesseract, through "
        },
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": ", suits clean typed pages and needs no deep-learning framework."
        }
      ]
    },
    {
      "q": "EasyOCR vs Tesseract: which is better?",
      "a": [
        {
          "t": "link",
          "href": "#easyocr",
          "label": [
            {
              "t": "text",
              "text": "EasyOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads messy photos more accurately, with little image cleanup. Tesseract, through "
        },
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": ", runs on a CPU without the large PyTorch install that EasyOCR needs."
        }
      ]
    },
    {
      "q": "PaddleOCR vs EasyOCR: which is faster?",
      "a": [
        {
          "t": "link",
          "href": "#paddleocr",
          "label": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads each image faster: "
        },
        {
          "t": "fact",
          "fact": "F309"
        },
        {
          "t": "text",
          "text": " images a second against "
        },
        {
          "t": "fact",
          "fact": "F310"
        },
        {
          "t": "text",
          "text": " for "
        },
        {
          "t": "link",
          "href": "#easyocr",
          "label": [
            {
              "t": "text",
              "text": "EasyOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " in one benchmark. EasyOCR starts up faster, so a script that reads a single image can finish first."
        }
      ]
    },
    {
      "q": "Which Python OCR libraries work without installing Tesseract?",
      "a": [
        {
          "t": "link",
          "href": "#rapidocr",
          "label": [
            {
              "t": "text",
              "text": "RapidOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#easyocr",
          "label": [
            {
              "t": "text",
              "text": "EasyOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#paddleocr",
          "label": [
            {
              "t": "text",
              "text": "PaddleOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#doctr",
          "label": [
            {
              "t": "text",
              "text": "docTR"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#keras-ocr",
          "label": [
            {
              "t": "text",
              "text": "keras-ocr"
            }
          ]
        },
        {
          "t": "text",
          "text": " run their own deep-learning models and never call Tesseract. "
        },
        {
          "t": "link",
          "href": "#tesserocr",
          "label": [
            {
              "t": "text",
              "text": "tesserocr"
            }
          ]
        },
        {
          "t": "text",
          "text": " installs from prebuilt wheels that bundle Tesseract. "
        },
        {
          "t": "link",
          "href": "#pytesseract",
          "label": [
            {
              "t": "text",
              "text": "pytesseract"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#ocrmypdf",
          "label": [
            {
              "t": "text",
              "text": "OCRmyPDF"
            }
          ]
        },
        {
          "t": "text",
          "text": " need the Tesseract program installed first."
        }
      ]
    },
    {
      "q": "How to extract text from an image in Python?",
      "a": [
        {
          "t": "text",
          "text": "Open the image with Pillow and pass it to pytesseract.image_to_string(), which returns the text as a string. See the "
        },
        {
          "t": "link",
          "href": "#pytesseract-quickstart",
          "label": [
            {
              "t": "text",
              "text": "pytesseract quickstart"
            }
          ]
        },
        {
          "t": "text",
          "text": ". "
        },
        {
          "t": "link",
          "href": "#easyocr",
          "label": [
            {
              "t": "text",
              "text": "EasyOCR"
            }
          ]
        },
        {
          "t": "text",
          "text": " needs no Tesseract: create a Reader with a language list, then call readtext() on the image."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Monthly downloads, pytesseract",
      "display": "17.0M",
      "asOf": "2026-11-10"
    },
    "F2": {
      "label": "GitHub stars, madmaze/pytesseract",
      "display": "6.4K",
      "asOf": "2026-11-10"
    },
    "F3": {
      "label": "License, madmaze/pytesseract",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F4": {
      "label": "Latest release, pytesseract",
      "display": "0.3.13, Aug 2024",
      "asOf": "2024-08-16"
    },
    "F5": {
      "label": "Latest release date, pytesseract",
      "display": "Aug 2024",
      "asOf": "2024-08-16"
    },
    "F6": {
      "label": "Runs on, pytesseract",
      "display": "Tesseract, installed separately",
      "asOf": "2026-11-10"
    },
    "F7": {
      "label": "Detects tables, pytesseract",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F8": {
      "label": "Detects page layout, pytesseract",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F9": {
      "label": "Returns word boxes, pytesseract",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F10": {
      "label": "Reads handwriting, pytesseract",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F11": {
      "label": "Runs on a GPU, pytesseract",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F12": {
      "label": "Output formats, pytesseract",
      "display": "Text, TSV, PDF, hOCR",
      "asOf": "2026-11-10"
    },
    "F13": {
      "label": "Recommended for, pytesseract",
      "display": "clean typed docs, high volume",
      "asOf": "2026-11-10"
    },
    "F14": {
      "label": "Install, pytesseract",
      "display": "pip install pytesseract",
      "asOf": "2026-11-10"
    },
    "F15": {
      "label": "What it is, pytesseract",
      "display": "pytesseract is a Python wrapper for Google's Tesseract OCR engine. It reads text from images and returns plain text, word boxes, or hOCR.",
      "asOf": "2026-11-10"
    },
    "F16": {
      "label": "Strength lead, pytesseract",
      "display": "Widely used",
      "asOf": "2026-11-10"
    },
    "F17": {
      "label": "Strength, pytesseract",
      "display": "Tesseract OCR is an open-source engine that is widely used with a large community, and PyTesseract provides its Python API.",
      "asOf": "2026-11-10"
    },
    "F18": {
      "label": "Strength lead, pytesseract",
      "display": "Reads over 100 languages",
      "asOf": "2026-11-10"
    },
    "F19": {
      "label": "Strength, pytesseract",
      "display": "Tesseract language packs cover more than 100 languages.",
      "asOf": "2026-11-10"
    },
    "F20": {
      "label": "Strength lead, pytesseract",
      "display": "Text, boxes, or a searchable PDF",
      "asOf": "2026-11-10"
    },
    "F21": {
      "label": "Strength, pytesseract",
      "display": "One call returns plain text, word boxes, TSV, or a searchable PDF.",
      "asOf": "2026-11-10"
    },
    "F22": {
      "label": "Caution lead, pytesseract",
      "display": "Less accurate than deep-learning OCR",
      "asOf": "2026-11-10"
    },
    "F23": {
      "label": "Caution, pytesseract",
      "display": "EasyOCR, PaddleOCR, and doctr read hard images more accurately.",
      "asOf": "2026-11-10"
    },
    "F24": {
      "label": "Caution lead, pytesseract",
      "display": "Configuration limits",
      "asOf": "2026-11-10"
    },
    "F25": {
      "label": "Caution, pytesseract",
      "display": "Limited configuration options for some advanced use cases.",
      "asOf": "2026-11-10"
    },
    "F26": {
      "label": "Caution lead, pytesseract",
      "display": "Slow on large batches",
      "asOf": "2026-11-10"
    },
    "F27": {
      "label": "Caution, pytesseract",
      "display": "Runs on one CPU core at a time.",
      "asOf": "2026-11-10"
    },
    "F28": {
      "label": "Quickstart, pytesseract",
      "display": "from PIL import Image\nimport pytesseract\n\n# Simple image to string\nprint(pytesseract.image_to_string(Image.open('test.png')))",
      "asOf": "2026-11-10"
    },
    "F29": {
      "label": "Monthly downloads, rapidocr",
      "display": "3.8M",
      "asOf": "2026-11-10"
    },
    "F30": {
      "label": "GitHub stars, RapidAI/RapidOCR",
      "display": "8.5K",
      "asOf": "2026-11-10"
    },
    "F31": {
      "label": "License, RapidAI/RapidOCR",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F32": {
      "label": "Latest release, rapidocr",
      "display": "3.10.0, Oct 2026",
      "asOf": "2026-10-08"
    },
    "F33": {
      "label": "Latest release date, rapidocr",
      "display": "Oct 2026",
      "asOf": "2026-10-08"
    },
    "F34": {
      "label": "Runs on, rapidocr",
      "display": "ONNX Runtime",
      "asOf": "2026-11-10"
    },
    "F35": {
      "label": "Returns word boxes, rapidocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F36": {
      "label": "Runs on a GPU, rapidocr",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F37": {
      "label": "Output formats, rapidocr",
      "display": "Markdown, JSON",
      "asOf": "2026-11-10"
    },
    "F38": {
      "label": "Install, rapidocr",
      "display": "pip install rapidocr",
      "asOf": "2026-11-10"
    },
    "F39": {
      "label": "What it is, rapidocr",
      "display": "RapidOCR reads text from images with PaddleOCR models converted to ONNX. It runs on a CPU through ONNX Runtime by default.",
      "asOf": "2026-11-10"
    },
    "F40": {
      "label": "Strength lead, rapidocr",
      "display": "Choice of runtimes",
      "asOf": "2026-11-10"
    },
    "F41": {
      "label": "Strength, rapidocr",
      "display": "Runs on ONNX Runtime, OpenVINO, PaddlePaddle, or PyTorch.",
      "asOf": "2026-11-10"
    },
    "F42": {
      "label": "Strength lead, rapidocr",
      "display": "Ease of use",
      "asOf": "2026-11-10"
    },
    "F43": {
      "label": "Strength, rapidocr",
      "display": "Pip install rapidocr onnxruntime and three lines of Python read an image, with default models bundled in the wheel.",
      "asOf": "2026-11-10"
    },
    "F44": {
      "label": "Strength lead, rapidocr",
      "display": "Cost of ownership",
      "asOf": "2026-11-10"
    },
    "F45": {
      "label": "Strength, rapidocr",
      "display": "Free, and the mobile models run on a CPU through ONNX Runtime, so a small server or laptop is enough.",
      "asOf": "2026-11-10"
    },
    "F46": {
      "label": "Caution lead, rapidocr",
      "display": "Text lines only",
      "asOf": "2026-11-10"
    },
    "F47": {
      "label": "Caution, rapidocr",
      "display": "Tables, layout, and reading order need another tool.",
      "asOf": "2026-11-10"
    },
    "F48": {
      "label": "Caution lead, rapidocr",
      "display": "System requirements",
      "asOf": "2026-11-10"
    },
    "F49": {
      "label": "Caution, rapidocr",
      "display": "Requires Python >=3.8 and <4, and lists various runtime dependencies.",
      "asOf": "2026-11-10"
    },
    "F50": {
      "label": "Quickstart, rapidocr",
      "display": "from rapidocr import RapidOCR\n\nengine = RapidOCR()\n\nimg_url = \"https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/master/resources/test_files/ch_en_num.jpg\"\nresult = engine(img_url)\nprint(result)\n\nresult.vis(\"vis_result.jpg\")",
      "asOf": "2026-11-10"
    },
    "F51": {
      "label": "Monthly downloads, easyocr",
      "display": "1.9M",
      "asOf": "2026-11-10"
    },
    "F52": {
      "label": "GitHub stars, JaidedAI/EasyOCR",
      "display": "30.1K",
      "asOf": "2026-11-10"
    },
    "F53": {
      "label": "License, JaidedAI/EasyOCR",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F54": {
      "label": "Latest release, easyocr",
      "display": "1.7.2, Sep 2024",
      "asOf": "2024-09-24"
    },
    "F55": {
      "label": "Latest release date, easyocr",
      "display": "Sep 2024",
      "asOf": "2024-09-24"
    },
    "F56": {
      "label": "Runs on, easyocr",
      "display": "PyTorch",
      "asOf": "2026-11-10"
    },
    "F57": {
      "label": "Detects tables, easyocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F58": {
      "label": "Detects page layout, easyocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F59": {
      "label": "Returns word boxes, easyocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F60": {
      "label": "Reads handwriting, easyocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F61": {
      "label": "Runs on a GPU, easyocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F62": {
      "label": "Output formats, easyocr",
      "display": "JSON",
      "asOf": "2026-11-10"
    },
    "F63": {
      "label": "Install, easyocr",
      "display": "pip install easyocr",
      "asOf": "2026-11-10"
    },
    "F64": {
      "label": "What it is, easyocr",
      "display": "EasyOCR reads text from images in 80+ languages with PyTorch detection and recognition models.",
      "asOf": "2026-11-10"
    },
    "F65": {
      "label": "Strength lead, easyocr",
      "display": "Works on messy images",
      "asOf": "2026-11-10"
    },
    "F66": {
      "label": "Strength, easyocr",
      "display": "Finds and reads text in one call, with little image cleanup.",
      "asOf": "2026-11-10"
    },
    "F67": {
      "label": "Strength lead, easyocr",
      "display": "Reads 80+ languages",
      "asOf": "2026-11-10"
    },
    "F68": {
      "label": "Strength, easyocr",
      "display": "Covers Latin, Chinese, Arabic, Devanagari, and Cyrillic scripts.",
      "asOf": "2026-11-10"
    },
    "F69": {
      "label": "Strength lead, easyocr",
      "display": "Short API",
      "asOf": "2026-11-10"
    },
    "F70": {
      "label": "Strength, easyocr",
      "display": "Create a Reader with a language list, then call readtext() on the image.",
      "asOf": "2026-11-10"
    },
    "F71": {
      "label": "Caution lead, easyocr",
      "display": "Downloads models on first run",
      "asOf": "2026-11-10"
    },
    "F72": {
      "label": "Caution, easyocr",
      "display": "The first call fetches the model files before reading anything.",
      "asOf": "2026-11-10"
    },
    "F73": {
      "label": "Caution lead, easyocr",
      "display": "Failure modes",
      "asOf": "2026-11-10"
    },
    "F74": {
      "label": "Caution, easyocr",
      "display": "Two distinct failure modes: detector misses a box vs. recognizer gets wrong text; each needs different fixes.",
      "asOf": "2026-11-10"
    },
    "F75": {
      "label": "Caution lead, easyocr",
      "display": "Misses small or rotated text",
      "asOf": "2026-11-10"
    },
    "F76": {
      "label": "Caution, easyocr",
      "display": "Small text and rotated images cause the biggest accuracy drops.",
      "asOf": "2026-11-10"
    },
    "F77": {
      "label": "Quickstart, easyocr",
      "display": "import easyocr\nreader = easyocr.Reader(['ch_sim','en']) # this needs to run only once to load the model into memory\nresult = reader.readtext('chinese.jpg')",
      "asOf": "2026-11-10"
    },
    "F78": {
      "label": "Monthly downloads, paddleocr",
      "display": "1.2M",
      "asOf": "2026-11-10"
    },
    "F79": {
      "label": "GitHub stars, PaddlePaddle/PaddleOCR",
      "display": "92.4K",
      "asOf": "2026-11-10"
    },
    "F80": {
      "label": "License, PaddlePaddle/PaddleOCR",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F81": {
      "label": "Latest release, paddleocr",
      "display": "3.7.0, Jun 2026",
      "asOf": "2026-06-11"
    },
    "F82": {
      "label": "Latest release date, paddleocr",
      "display": "Jun 2026",
      "asOf": "2026-06-11"
    },
    "F83": {
      "label": "Runs on, paddleocr",
      "display": "PaddlePaddle",
      "asOf": "2026-11-10"
    },
    "F84": {
      "label": "Detects tables, paddleocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F85": {
      "label": "Detects page layout, paddleocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F86": {
      "label": "Returns word boxes, paddleocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F87": {
      "label": "Reads handwriting, paddleocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F88": {
      "label": "Runs on a GPU, paddleocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F89": {
      "label": "Output formats, paddleocr",
      "display": "Markdown, JSON",
      "asOf": "2026-11-10"
    },
    "F90": {
      "label": "Recommended for, paddleocr",
      "display": "multilingual, complex layouts",
      "asOf": "2026-11-10"
    },
    "F91": {
      "label": "Install, paddleocr",
      "display": "pip install paddleocr",
      "asOf": "2026-11-10"
    },
    "F92": {
      "label": "What it is, paddleocr",
      "display": "PaddleOCR reads text from images and PDFs and can return the result as Markdown or JSON with layout.",
      "asOf": "2026-11-10"
    },
    "F93": {
      "label": "Strength lead, paddleocr",
      "display": "Reads 100+ languages",
      "asOf": "2026-11-10"
    },
    "F94": {
      "label": "Strength, paddleocr",
      "display": "One model reads 50 languages, including Chinese, English, and Japanese.",
      "asOf": "2026-11-10"
    },
    "F95": {
      "label": "Strength lead, paddleocr",
      "display": "Markdown or JSON with layout",
      "asOf": "2026-11-10"
    },
    "F96": {
      "label": "Strength, paddleocr",
      "display": "PP-StructureV3 turns PDFs and images into Markdown or JSON, with positions.",
      "asOf": "2026-11-10"
    },
    "F97": {
      "label": "Strength lead, paddleocr",
      "display": "Small models",
      "asOf": "2026-11-10"
    },
    "F98": {
      "label": "Strength, paddleocr",
      "display": "Light enough for edge devices as well as servers.",
      "asOf": "2026-11-10"
    },
    "F99": {
      "label": "Caution lead, paddleocr",
      "display": "Ease of use",
      "asOf": "2026-11-10"
    },
    "F100": {
      "label": "Caution, paddleocr",
      "display": "Once PaddlePaddle is installed, one pip package and a few lines of Python run OCR.",
      "asOf": "2026-11-10"
    },
    "F101": {
      "label": "Caution lead, paddleocr",
      "display": "Weak on single-category tops",
      "asOf": "2026-11-10"
    },
    "F102": {
      "label": "Caution, paddleocr",
      "display": "It rarely tops a single category, and it never collapses in one.",
      "asOf": "2026-11-10"
    },
    "F103": {
      "label": "Caution lead, paddleocr",
      "display": "Version 3 broke old code",
      "asOf": "2026-11-10"
    },
    "F104": {
      "label": "Caution, paddleocr",
      "display": "ocr.ocr() is deprecated and results changed shape, so 2.x code needs edits.",
      "asOf": "2026-11-10"
    },
    "F105": {
      "label": "Quickstart, paddleocr",
      "display": "# 使用 PaddlePaddle 进行推理\nfrom paddleocr import TextDetection\n\nmodel = TextDetection(engine=\"paddle\")\noutput = model.predict(\"general_ocr_001.png\")\nfor res in output:\n    res.print()\n    res.save_to_img(save_path=\"./output/\")\n    res.save_to_json(save_path=\"./output/res.json\")",
      "asOf": "2026-11-10"
    },
    "F106": {
      "label": "Monthly downloads, ocrmypdf",
      "display": "1.1M",
      "asOf": "2026-11-10"
    },
    "F107": {
      "label": "GitHub stars, ocrmypdf/OCRmyPDF",
      "display": "35.3K",
      "asOf": "2026-11-10"
    },
    "F108": {
      "label": "License, ocrmypdf/OCRmyPDF",
      "display": "MPL-2.0",
      "asOf": "2026-11-10"
    },
    "F109": {
      "label": "Latest release, ocrmypdf",
      "display": "17.13.0, Sep 2026",
      "asOf": "2026-09-28"
    },
    "F110": {
      "label": "Latest release date, ocrmypdf",
      "display": "Sep 2026",
      "asOf": "2026-09-28"
    },
    "F111": {
      "label": "Runs on, ocrmypdf",
      "display": "Tesseract, installed separately",
      "asOf": "2026-11-10"
    },
    "F112": {
      "label": "Detects tables, ocrmypdf",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F113": {
      "label": "Detects page layout, ocrmypdf",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F114": {
      "label": "Reads handwriting, ocrmypdf",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F115": {
      "label": "Runs on a GPU, ocrmypdf",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F116": {
      "label": "Output formats, ocrmypdf",
      "display": "Text, PDF",
      "asOf": "2026-11-10"
    },
    "F117": {
      "label": "Install, ocrmypdf",
      "display": "pip install ocrmypdf",
      "asOf": "2026-11-10"
    },
    "F118": {
      "label": "What it is, ocrmypdf",
      "display": "OCRmyPDF adds a searchable text layer to scanned PDFs with Tesseract. It writes a new PDF, PDF/A by default.",
      "asOf": "2026-11-10"
    },
    "F119": {
      "label": "Strength lead, ocrmypdf",
      "display": "Searchable PDF plus a text file",
      "asOf": "2026-11-10"
    },
    "F120": {
      "label": "Strength, ocrmypdf",
      "display": "One run writes the searchable PDF and a separate text file.",
      "asOf": "2026-11-10"
    },
    "F121": {
      "label": "Strength lead, ocrmypdf",
      "display": "Multi-language support",
      "asOf": "2026-11-10"
    },
    "F122": {
      "label": "Strength, ocrmypdf",
      "display": "Uses Tesseract to recognize more than 100 languages and supports multiple languages per job.",
      "asOf": "2026-11-10"
    },
    "F123": {
      "label": "Strength lead, ocrmypdf",
      "display": "Focused conversion tool",
      "asOf": "2026-11-10"
    },
    "F124": {
      "label": "Strength, ocrmypdf",
      "display": "OCRmyPDF fixes a document problem: scanned PDFs are pictures of words, so search, copy and paste, and indexing cannot treat them as text.",
      "asOf": "2026-11-10"
    },
    "F125": {
      "label": "Caution lead, ocrmypdf",
      "display": "Language availability depends on document",
      "asOf": "2026-11-10"
    },
    "F126": {
      "label": "Caution, ocrmypdf",
      "display": "Installing OCRmyPDF does not guarantee availability of all languages needed by a document; language choice is document-specific.",
      "asOf": "2026-11-10"
    },
    "F127": {
      "label": "Caution lead, ocrmypdf",
      "display": "Weak on tables",
      "asOf": "2026-11-10"
    },
    "F128": {
      "label": "Caution, ocrmypdf",
      "display": "Table and cell structure comes out poorly in the text.",
      "asOf": "2026-11-10"
    },
    "F129": {
      "label": "Caution lead, ocrmypdf",
      "display": "Needs Ghostscript and Tesseract",
      "asOf": "2026-11-10"
    },
    "F130": {
      "label": "Caution, ocrmypdf",
      "display": "Both are separate programs that pip doesn't install.",
      "asOf": "2026-11-10"
    },
    "F131": {
      "label": "Quickstart, ocrmypdf",
      "display": "import ocrmypdf\nfrom ocrmypdf import OcrOptions\n\nif __name__ == '__main__':  # To ensure correct behavior on Windows and macOS\n    options = OcrOptions(\n        input_file='input.pdf',\n        output_file='output.pdf',\n        deskew=True,\n        languages=['eng'],\n    )\n    ocrmypdf.ocr(options)",
      "asOf": "2026-11-10"
    },
    "F132": {
      "label": "Monthly downloads, tesserocr",
      "display": "429.3K",
      "asOf": "2026-11-10"
    },
    "F133": {
      "label": "GitHub stars, sirfz/tesserocr",
      "display": "2.2K",
      "asOf": "2026-11-10"
    },
    "F134": {
      "label": "License, sirfz/tesserocr",
      "display": "MIT",
      "asOf": "2026-11-10"
    },
    "F135": {
      "label": "Latest release, tesserocr",
      "display": "2.12.0, Oct 2026",
      "asOf": "2026-10-22"
    },
    "F136": {
      "label": "Latest release date, tesserocr",
      "display": "Oct 2026",
      "asOf": "2026-10-22"
    },
    "F137": {
      "label": "Runs on, tesserocr",
      "display": "Tesseract, installed separately",
      "asOf": "2026-11-10"
    },
    "F138": {
      "label": "Detects page layout, tesserocr",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F139": {
      "label": "Returns word boxes, tesserocr",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F140": {
      "label": "Runs on a GPU, tesserocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F141": {
      "label": "Output formats, tesserocr",
      "display": "Text",
      "asOf": "2026-11-10"
    },
    "F142": {
      "label": "Install, tesserocr",
      "display": "pip install tesserocr",
      "asOf": "2026-11-10"
    },
    "F143": {
      "label": "What it is, tesserocr",
      "display": "tesserocr calls Tesseract's C++ API from Python through Cython. It reads text from images and releases the GIL so threads can run OCR in parallel.",
      "asOf": "2026-11-10"
    },
    "F144": {
      "label": "Strength lead, tesserocr",
      "display": "Runs OCR in parallel threads",
      "asOf": "2026-11-10"
    },
    "F145": {
      "label": "Strength, tesserocr",
      "display": "Python threads can read several images at the same time.",
      "asOf": "2026-11-10"
    },
    "F146": {
      "label": "Strength lead, tesserocr",
      "display": "Faster on many images",
      "asOf": "2026-11-10"
    },
    "F147": {
      "label": "Strength, tesserocr",
      "display": "PyTessBaseAPI keeps Tesseract loaded between images.",
      "asOf": "2026-11-10"
    },
    "F148": {
      "label": "Strength lead, tesserocr",
      "display": "Tesseract included",
      "asOf": "2026-11-10"
    },
    "F149": {
      "label": "Strength, tesserocr",
      "display": "Prebuilt wheels for Linux, macOS, and Windows bundle Tesseract.",
      "asOf": "2026-11-10"
    },
    "F150": {
      "label": "Caution lead, tesserocr",
      "display": "Python version support",
      "asOf": "2026-11-10"
    },
    "F151": {
      "label": "Caution, tesserocr",
      "display": "Requires Python 3.10+; no longer supports Python 2.",
      "asOf": "2026-11-10"
    },
    "F152": {
      "label": "Caution lead, tesserocr",
      "display": "Some settings are global",
      "asOf": "2026-11-10"
    },
    "F153": {
      "label": "Caution, tesserocr",
      "display": "Some Tesseract settings apply to every instance in the process.",
      "asOf": "2026-11-10"
    },
    "F154": {
      "label": "Caution lead, tesserocr",
      "display": "Installation complexity",
      "asOf": "2026-11-10"
    },
    "F155": {
      "label": "Caution, tesserocr",
      "display": "tesserocr may require compiling against the C++ API, while Pytesseract only requires the Python wrapper and a separate Tesseract binary installation.",
      "asOf": "2026-11-10"
    },
    "F156": {
      "label": "Monthly downloads, python-doctr",
      "display": "204.7K",
      "asOf": "2026-11-10"
    },
    "F157": {
      "label": "GitHub stars, mindee/doctr",
      "display": "6.4K",
      "asOf": "2026-11-10"
    },
    "F158": {
      "label": "License, mindee/doctr",
      "display": "Apache-2.0",
      "asOf": "2026-11-10"
    },
    "F159": {
      "label": "Latest release, python-doctr",
      "display": "1.1.0, Aug 2026",
      "asOf": "2026-08-21"
    },
    "F160": {
      "label": "Latest release date, python-doctr",
      "display": "Aug 2026",
      "asOf": "2026-08-21"
    },
    "F161": {
      "label": "Runs on, python-doctr",
      "display": "PyTorch",
      "asOf": "2026-11-10"
    },
    "F162": {
      "label": "Detects tables, python-doctr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F163": {
      "label": "Detects page layout, python-doctr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F164": {
      "label": "Returns word boxes, python-doctr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F165": {
      "label": "Runs on a GPU, python-doctr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F166": {
      "label": "Output formats, python-doctr",
      "display": "Markdown, JSON",
      "asOf": "2026-11-10"
    },
    "F167": {
      "label": "Recommended for, python-doctr",
      "display": "tables and layout",
      "asOf": "2026-11-10"
    },
    "F168": {
      "label": "Install, python-doctr",
      "display": "pip install python-doctr",
      "asOf": "2026-11-10"
    },
    "F169": {
      "label": "What it is, python-doctr",
      "display": "docTR reads text from images and PDFs with deep-learning detection and recognition models.",
      "asOf": "2026-11-10"
    },
    "F170": {
      "label": "Strength lead, python-doctr",
      "display": "Finds and reads words",
      "asOf": "2026-11-10"
    },
    "F171": {
      "label": "Strength, python-doctr",
      "display": "One predictor locates the words on a page, then reads them.",
      "asOf": "2026-11-10"
    },
    "F172": {
      "label": "Strength lead, python-doctr",
      "display": "Exports searchable PDFs",
      "asOf": "2026-11-10"
    },
    "F173": {
      "label": "Strength, python-doctr",
      "display": "Results export as text, JSON, hOCR, or a searchable PDF.",
      "asOf": "2026-11-10"
    },
    "F174": {
      "label": "Strength lead, python-doctr",
      "display": "Active maintenance",
      "asOf": "2026-11-10"
    },
    "F175": {
      "label": "Strength, python-doctr",
      "display": "The library is actively maintained, permissively licensed, and well-documented.",
      "asOf": "2026-11-10"
    },
    "F176": {
      "label": "Caution lead, python-doctr",
      "display": "Latin scripts only",
      "asOf": "2026-11-10"
    },
    "F177": {
      "label": "Caution, python-doctr",
      "display": "Other scripts need custom training data.",
      "asOf": "2026-11-10"
    },
    "F178": {
      "label": "Caution lead, python-doctr",
      "display": "Server availability",
      "asOf": "2026-11-10"
    },
    "F179": {
      "label": "Caution, python-doctr",
      "display": "No official server is offered; Python-only with local runs.",
      "asOf": "2026-11-10"
    },
    "F180": {
      "label": "Caution lead, python-doctr",
      "display": "Large install",
      "asOf": "2026-11-10"
    },
    "F181": {
      "label": "Caution, python-doctr",
      "display": "Needs PyTorch and torchvision, and runs best on a GPU.",
      "asOf": "2026-11-10"
    },
    "F182": {
      "label": "Quickstart, python-doctr",
      "display": "from doctr.io import DocumentFile\nfrom doctr.models import ocr_predictor\n\nmodel = ocr_predictor(pretrained=True)\n# PDF\ndoc = DocumentFile.from_pdf(\"path/to/your/doc.pdf\")\n# Analyze\nresult = model(doc)",
      "asOf": "2026-11-10"
    },
    "F183": {
      "label": "Name, faustomorales/keras-ocr",
      "display": "keras-ocr",
      "asOf": "2026-11-10"
    },
    "F184": {
      "label": "Monthly downloads, keras-ocr",
      "display": "8.7K",
      "asOf": "2026-11-10"
    },
    "F185": {
      "label": "GitHub stars, faustomorales/keras-ocr",
      "display": "1.5K",
      "asOf": "2026-11-10"
    },
    "F186": {
      "label": "License, faustomorales/keras-ocr",
      "display": "MIT",
      "asOf": "2026-11-10"
    },
    "F187": {
      "label": "Latest release, keras-ocr",
      "display": "0.9.3, Nov 2023",
      "asOf": "2023-11-06"
    },
    "F188": {
      "label": "Latest release date, keras-ocr",
      "display": "Nov 2023",
      "asOf": "2023-11-06"
    },
    "F189": {
      "label": "Returns word boxes, keras-ocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F190": {
      "label": "Runs on a GPU, keras-ocr",
      "display": "Built-in",
      "asOf": "2026-11-10"
    },
    "F191": {
      "label": "Install, keras-ocr",
      "display": "pip install keras-ocr",
      "asOf": "2026-11-10"
    },
    "F192": {
      "label": "What it is, keras-ocr",
      "display": "keras-ocr detects and reads text in images with a CRAFT detector and a CRNN recognizer, and ships pretrained weights.",
      "asOf": "2026-11-10"
    },
    "F193": {
      "label": "Strength lead, keras-ocr",
      "display": "Train custom models",
      "asOf": "2026-11-10"
    },
    "F194": {
      "label": "Strength, keras-ocr",
      "display": "Includes a pipeline for training new detection and recognition models.",
      "asOf": "2026-11-10"
    },
    "F195": {
      "label": "Strength lead, keras-ocr",
      "display": "Finds and reads text in one pipeline",
      "asOf": "2026-11-10"
    },
    "F196": {
      "label": "Strength, keras-ocr",
      "display": "One pipeline object runs detection and recognition.",
      "asOf": "2026-11-10"
    },
    "F197": {
      "label": "Strength lead, keras-ocr",
      "display": "Works on first run",
      "asOf": "2026-11-10"
    },
    "F198": {
      "label": "Strength, keras-ocr",
      "display": "Downloads pretrained models automatically, with no training needed.",
      "asOf": "2026-11-10"
    },
    "F199": {
      "label": "Caution lead, keras-ocr",
      "display": "Needs TensorFlow",
      "asOf": "2026-11-10"
    },
    "F200": {
      "label": "Caution, keras-ocr",
      "display": "Runs on TensorFlow, not PyTorch.",
      "asOf": "2026-11-10"
    },
    "F201": {
      "label": "Caution lead, keras-ocr",
      "display": "Unverified accuracy numbers",
      "asOf": "2026-11-10"
    },
    "F202": {
      "label": "Caution, keras-ocr",
      "display": "The published benchmarks come with no guarantees.",
      "asOf": "2026-11-10"
    },
    "F203": {
      "label": "Need, easyocr",
      "display": "Many languages",
      "asOf": "2026-11-10"
    },
    "F204": {
      "label": "Why, easyocr",
      "display": "model coverage",
      "asOf": "2026-11-10"
    },
    "F205": {
      "label": "Need, pytesseract",
      "display": "Many languages",
      "asOf": "2026-11-10"
    },
    "F206": {
      "label": "Why, pytesseract",
      "display": "free offline",
      "asOf": "2026-11-10"
    },
    "F207": {
      "label": "Need, rapidocr",
      "display": "No Tesseract install",
      "asOf": "2026-11-10"
    },
    "F208": {
      "label": "Why, rapidocr",
      "display": "ONNX Runtime only",
      "asOf": "2026-11-10"
    },
    "F209": {
      "label": "Need, easyocr",
      "display": "No Tesseract install",
      "asOf": "2026-11-10"
    },
    "F210": {
      "label": "Why, easyocr",
      "display": "PyTorch only",
      "asOf": "2026-11-10"
    },
    "F211": {
      "label": "Need, paddleocr",
      "display": "Tables and layout",
      "asOf": "2026-11-10"
    },
    "F212": {
      "label": "Need, ocrmypdf",
      "display": "Searchable PDFs",
      "asOf": "2026-11-10"
    },
    "F213": {
      "label": "Definition, Tesseract",
      "display": "is an optical character recognition engine maintained by Google.",
      "asOf": "2026-11-10"
    },
    "F214": {
      "label": "Caution lead, pytesseract",
      "display": "Needs Tesseract installed",
      "asOf": "2026-11-10"
    },
    "F215": {
      "label": "Caution, pytesseract",
      "display": "Install the tesseract program separately; pip doesn't include it.",
      "asOf": "2026-11-10"
    },
    "F216": {
      "label": "Code, gramps-project/gramps-web-api",
      "display": "def get_ocr(self, lang: str, output_format: str = \"string\"):\n    # ...\n    if not self.mime.startswith(\"image\"):\n        return {}\n    try:\n        import pytesseract\n    except ImportError:\n        abort_with_message(501, \"pytesseract is not installed\")\n\n    try:\n        pytesseract.get_tesseract_version()\n    except pytesseract.TesseractNotFoundError:\n        abort_with_message(501, \"Tesseract is not installed\")\n    fobj = self.get_file_object()\n    image = open_image(fobj)\n    if output_format == \"string\":\n        data = pytesseract.image_to_string(image, lang=lang)\n    elif output_format == \"boxes\":\n        data = pytesseract.image_to_boxes(image, lang=lang, output_type=\"dict\")\n    elif output_format == \"data\":\n        data = pytesseract.image_to_data(image, lang=lang, output_type=\"dict\")\n    elif output_format == \"hocr\":\n        data = pytesseract.image_to_pdf_or_hocr(\n            image, lang=lang, extension=\"hocr\"\n        ).decode(\"utf-8\")\n    else:\n        raise ValueError(f\"Unknown output format: {output_format}\")\n    return data",
      "asOf": "2026-11-10"
    },
    "F217": {
      "label": "Repository, gramps-project/gramps-web-api",
      "display": "gramps-project/gramps-web-api",
      "asOf": "2026-11-10"
    },
    "F218": {
      "label": "GitHub stars, gramps-project/gramps-web-api",
      "display": "231",
      "asOf": "2026-11-10"
    },
    "F219": {
      "label": "Last push, gramps-project/gramps-web-api",
      "display": "Nov 2026",
      "asOf": "2026-11-05"
    },
    "F220": {
      "label": "File, gramps-project/gramps-web-api",
      "display": "file.py · get_ocr()",
      "asOf": "2026-11-10"
    },
    "F221": {
      "label": "Code, gavrielc/Nano-PDF",
      "display": "def rehydrate_image_to_pdf(image: Image.Image, output_pdf_path: str):\n    \"\"\"\n    Converts an image to a single-page PDF with a hidden text layer using Tesseract.\n    This is the 'State Preservation' step.\n    \"\"\"\n    pdf_bytes = pytesseract.image_to_pdf_or_hocr(image, extension='pdf')\n    with open(output_pdf_path, 'wb') as f:\n        f.write(pdf_bytes)",
      "asOf": "2026-11-10"
    },
    "F222": {
      "label": "Repository, gavrielc/Nano-PDF",
      "display": "gavrielc/Nano-PDF",
      "asOf": "2026-11-10"
    },
    "F223": {
      "label": "GitHub stars, gavrielc/Nano-PDF",
      "display": "1.3K",
      "asOf": "2026-11-10"
    },
    "F224": {
      "label": "Last push, gavrielc/Nano-PDF",
      "display": "Dec 2025",
      "asOf": "2025-12-03"
    },
    "F225": {
      "label": "File, gavrielc/Nano-PDF",
      "display": "pdf_utils.py · rehydrate_image_to_pdf()",
      "asOf": "2026-11-10"
    },
    "F226": {
      "label": "Strength lead, rapidocr",
      "display": "Runs on a CPU",
      "asOf": "2026-11-10"
    },
    "F227": {
      "label": "Strength, rapidocr",
      "display": "A laptop or small server is enough.",
      "asOf": "2026-11-10"
    },
    "F228": {
      "label": "Strength lead, rapidocr",
      "display": "Models included",
      "asOf": "2026-11-10"
    },
    "F229": {
      "label": "Strength, rapidocr",
      "display": "pip install rapidocr onnxruntime, and three lines of Python read an image.",
      "asOf": "2026-11-10"
    },
    "F230": {
      "label": "Code, xavctn/img2table",
      "display": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    ocrs = cast(\"list[RapidOCROutput]\", [self.engine(img) for img in document.images])\n    content = [\n        {\n            \"texts\": res.txts,\n            \"scores\": res.scores,\n            \"boxes\": res.boxes,\n        }\n        if res.txts is not None and res.scores is not None and res.boxes is not None\n        else {}\n        for res in ocrs\n    ]\n\n    # Create dict of elements by page\n    records = {}\n    for page, ocr_result in enumerate(content):\n        for idx, (word, conf, bbox) in enumerate(\n            zip(\n                cast(\"tuple[str, ...]\", ocr_result[\"texts\"]),\n                cast(\"tuple[float, ...]\", ocr_result[\"scores\"]),\n                cast(\"npt.NDArray\", ocr_result[\"boxes\"]),\n                strict=True,\n            )\n        ):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word,\n                \"confidence\": int(100 * conf),\n                \"x1\": int(min(bbox[:, 0])),\n                \"y1\": int(min(bbox[:, 1])),\n                \"x2\": int(max(bbox[:, 0])),\n                \"y2\": int(max(bbox[:, 1])),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
      "asOf": "2026-11-10"
    },
    "F231": {
      "label": "Repository, xavctn/img2table",
      "display": "xavctn/img2table",
      "asOf": "2026-11-10"
    },
    "F232": {
      "label": "GitHub stars, xavctn/img2table",
      "display": "903",
      "asOf": "2026-11-10"
    },
    "F233": {
      "label": "Last push, xavctn/img2table",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F234": {
      "label": "File, xavctn/img2table",
      "display": "rapidocr.py · of()",
      "asOf": "2026-11-10"
    },
    "F235": {
      "label": "Code, marouane53/GeoINT",
      "display": "def run(self, im: Image.Image) -> list[dict]:\n    import numpy as np\n    res, _ = self.ocr(np.array(im.convert(\"RGB\"))[:, :, ::-1])\n    out = []\n    for box, text, conf in res or []:\n        xs = [p[0] for p in box]\n        ys = [p[1] for p in box]\n        out.append({\"text\": str(text), \"conf\": round(float(conf), 3), \"box\": [int(min(xs)), int(min(ys)), int(max(xs)), int(max(ys))]})\n    return out",
      "asOf": "2026-11-10"
    },
    "F236": {
      "label": "Repository, marouane53/GeoINT",
      "display": "marouane53/GeoINT",
      "asOf": "2026-11-10"
    },
    "F237": {
      "label": "GitHub stars, marouane53/GeoINT",
      "display": "228",
      "asOf": "2026-11-10"
    },
    "F238": {
      "label": "Last push, marouane53/GeoINT",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F239": {
      "label": "File, marouane53/GeoINT",
      "display": "ocr.py · run()",
      "asOf": "2026-11-10"
    },
    "F240": {
      "label": "Caution lead, easyocr",
      "display": "Large install",
      "asOf": "2026-11-10"
    },
    "F241": {
      "label": "Caution, easyocr",
      "display": "Pulls in about 2 GB of PyTorch and uses about 1 GB of memory.",
      "asOf": "2026-11-10"
    },
    "F242": {
      "label": "Code, xavctn/img2table",
      "display": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    # ...\n    # Get OCR of all images\n    content = [self.reader.readtext(image) for image in document.images]\n\n    # Create dict of elements by page\n    records = {}\n\n    for page, ocr_result in enumerate(content):\n        for idx, word in enumerate(ocr_result):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word[1],\n                \"confidence\": round(100 * word[2]),\n                \"x1\": round(min([edge[0] for edge in word[0]])),\n                \"y1\": round(min([edge[1] for edge in word[0]])),\n                \"x2\": round(max([edge[0] for edge in word[0]])),\n                \"y2\": round(max([edge[1] for edge in word[0]])),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
      "asOf": "2026-11-10"
    },
    "F243": {
      "label": "Repository, xavctn/img2table",
      "display": "xavctn/img2table",
      "asOf": "2026-11-10"
    },
    "F244": {
      "label": "GitHub stars, xavctn/img2table",
      "display": "903",
      "asOf": "2026-11-10"
    },
    "F245": {
      "label": "Last push, xavctn/img2table",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F246": {
      "label": "File, xavctn/img2table",
      "display": "easyocr.py · of()",
      "asOf": "2026-11-10"
    },
    "F247": {
      "label": "Code, docling-project/docling",
      "display": "def __call__(\n    self, conv_res: ConversionResult, page_batch: Iterable[Page]\n) -> Iterable[Page]:\n    # ...\n    for page in page_batch:\n        assert page._backend is not None\n        if not page._backend.is_valid():\n            yield page\n        else:\n            with TimeRecorder(conv_res, \"ocr\"):\n                ocr_rects = self.get_ocr_rects(page)\n\n                all_ocr_cells = []\n                for ocr_rect in ocr_rects:\n                    # ...\n                    high_res_image = page._backend.get_page_image(\n                        scale=self.scale, cropbox=ocr_rect\n                    )\n                    im = numpy.asarray(high_res_image)\n\n                    with warnings.catch_warnings():\n                        # ...\n                        result = self.reader.readtext(im)\n\n                    # ...\n                    cells = [\n                        TextCell(\n                            # ...\n                        )\n                        for ix, line in enumerate(result)\n                        if line[2] >= self.options.confidence_threshold\n                    ]\n                    all_ocr_cells.extend(cells)\n\n                # ...\n                self.post_process_cells(all_ocr_cells, page, conv_res)\n\n            # ...\n            yield page",
      "asOf": "2026-11-10"
    },
    "F248": {
      "label": "Repository, docling-project/docling",
      "display": "docling-project/docling",
      "asOf": "2026-11-10"
    },
    "F249": {
      "label": "GitHub stars, docling-project/docling",
      "display": "70.3K",
      "asOf": "2026-11-10"
    },
    "F250": {
      "label": "Last push, docling-project/docling",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F251": {
      "label": "File, docling-project/docling",
      "display": "easyocr_model.py · __call__()",
      "asOf": "2026-11-10"
    },
    "F252": {
      "label": "Caution lead, paddleocr",
      "display": "Tricky GPU install",
      "asOf": "2026-11-10"
    },
    "F253": {
      "label": "Caution, paddleocr",
      "display": "The PaddlePaddle build must match the installed CUDA version.",
      "asOf": "2026-11-10"
    },
    "F254": {
      "label": "Caution lead, paddleocr",
      "display": "Second framework",
      "asOf": "2026-11-10"
    },
    "F255": {
      "label": "Caution, paddleocr",
      "display": "A PyTorch project has to add and maintain PaddlePaddle too.",
      "asOf": "2026-11-10"
    },
    "F256": {
      "label": "Code, invoice-x/invoice2data",
      "display": "def to_text(\n    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any\n) -> str:\n    # ...\n    if not paddleocr_available():\n        logger.warning(\n            \"PaddleOCR is not available. \"\n            \"Install with 'pip install invoice2data[paddleocr]'\"\n        )\n        return \"\"\n    ocr = _get_ocr(kwargs.get(\"lang\", \"en\"))\n    sources = _page_arrays(path) if path.lower().endswith(\".pdf\") else [path]\n    pages = [_extract_text(ocr.ocr(source)) for source in sources]\n    return \"\\n\".join(page for page in pages if page)",
      "asOf": "2026-11-10"
    },
    "F257": {
      "label": "Repository, invoice-x/invoice2data",
      "display": "invoice-x/invoice2data",
      "asOf": "2026-11-10"
    },
    "F258": {
      "label": "GitHub stars, invoice-x/invoice2data",
      "display": "2.2K",
      "asOf": "2026-11-10"
    },
    "F259": {
      "label": "Last push, invoice-x/invoice2data",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F260": {
      "label": "File, invoice-x/invoice2data",
      "display": "paddleocr.py · to_text()",
      "asOf": "2026-11-10"
    },
    "F261": {
      "label": "Code, xavctn/img2table",
      "display": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    ocrs = self.ocr.predict(input=document.images)\n    content = [\n        {\n            \"rec_texts\": res[\"rec_texts\"],\n            \"rec_scores\": res[\"rec_scores\"],\n            \"rec_boxes\": [bbox.tolist() for bbox in res[\"rec_boxes\"]],\n        }\n        for res in ocrs\n    ]\n\n    # Create dict of elements by page\n    records = {}\n\n    for page, ocr_result in enumerate(content):\n        for idx, (word, conf, bbox) in enumerate(\n            zip(\n                ocr_result[\"rec_texts\"],\n                ocr_result[\"rec_scores\"],\n                ocr_result[\"rec_boxes\"],\n                strict=True,\n            )\n        ):\n            dict_word = {\n                \"id\": f\"word_{page + 1}_{idx + 1}\",\n                \"parent\": f\"word_{page + 1}_{idx + 1}\",\n                \"value\": word,\n                \"confidence\": int(100 * conf),\n                \"x1\": int(bbox[0]),\n                \"y1\": int(bbox[1]),\n                \"x2\": int(bbox[2]),\n                \"y2\": int(bbox[3]),\n            }\n\n            records.setdefault(page, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
      "asOf": "2026-11-10"
    },
    "F262": {
      "label": "Repository, xavctn/img2table",
      "display": "xavctn/img2table",
      "asOf": "2026-11-10"
    },
    "F263": {
      "label": "GitHub stars, xavctn/img2table",
      "display": "903",
      "asOf": "2026-11-10"
    },
    "F264": {
      "label": "Last push, xavctn/img2table",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F265": {
      "label": "File, xavctn/img2table",
      "display": "paddle.py · of()",
      "asOf": "2026-11-10"
    },
    "F266": {
      "label": "Strength lead, ocrmypdf",
      "display": "Uses every CPU core",
      "asOf": "2026-11-10"
    },
    "F267": {
      "label": "Strength, ocrmypdf",
      "display": "Spreads pages across cores, so long scans finish faster.",
      "asOf": "2026-11-10"
    },
    "F268": {
      "label": "Strength lead, ocrmypdf",
      "display": "Keeps image quality",
      "asOf": "2026-11-10"
    },
    "F269": {
      "label": "Strength, ocrmypdf",
      "display": "Adds the text layer without lowering image resolution.",
      "asOf": "2026-11-10"
    },
    "F270": {
      "label": "Code, pd3f/pd3f",
      "display": "def ocr(path, output, pages, language, progress=None):\n    \"\"\"Write `path` to `output` with the 0-based `pages` OCRed; their old text is replaced.\n    Pages are straightened and turned upright first. `progress(step, done, total)` follows\n    OCRmyPDF's steps; `done` and `total` count pages or are None.\"\"\"\n    token = PROGRESS.set(progress)\n    try:\n        ocrmypdf.ocr(\n            path,\n            output,\n            language=language,\n            pages=\",\".join(str(i + 1) for i in pages),\n            mode=\"force\",\n            rotate_pages=True,\n            rotate_pages_threshold=TURN_CONFIDENCE,\n            deskew=True,\n            clean=True,\n            # PDF/A sends the pages kept as they are through Ghostscript, which drops\n            # the text of ligatures in some versions\n            output_type=\"pdf\",\n            progress_bar=progress is not None,\n            plugins=[__name__],\n        )\n    finally:\n        PROGRESS.reset(token)",
      "asOf": "2026-11-10"
    },
    "F271": {
      "label": "Repository, pd3f/pd3f",
      "display": "pd3f/pd3f",
      "asOf": "2026-11-10"
    },
    "F272": {
      "label": "GitHub stars, pd3f/pd3f",
      "display": "336",
      "asOf": "2026-11-10"
    },
    "F273": {
      "label": "Last push, pd3f/pd3f",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F274": {
      "label": "File, pd3f/pd3f",
      "display": "ocr.py · ocr()",
      "asOf": "2026-11-10"
    },
    "F275": {
      "label": "Code, invoice-x/invoice2data",
      "display": "def pre_process_pdf(path: str, pre_conf: dict[str, Any] | None = None) -> str | None:\n    # ...\n    import ocrmypdf\n\n    ocrmypdf_conf = OPTIONS_DEFAULT.copy()\n    if pre_conf:\n        ocrmypdf_conf.update(pre_conf)\n    # ...\n\n    if \"output_file\" not in ocrmypdf_conf:\n        # ...\n        out_dir = tempfile.mkdtemp(prefix=\"invoice2data_ocrmypdf_\")\n        ocrmypdf_conf[\"output_file\"] = str(Path(out_dir) / Path(path).name)\n        # ...\n    exit_code = ocrmypdf.ocr(path, **ocrmypdf_conf)\n    if exit_code == 0:\n        logger.info(\"Text extraction performed with ocrmypdf\")\n        pre_proc_output = ocrmypdf_conf[\"output_file\"]\n        # ...\n        return pre_proc_output  # Return the output file path\n    logger.warning(\"ocrmypdf failed, stopping processing of this file\")\n    return None",
      "asOf": "2026-11-10"
    },
    "F276": {
      "label": "Repository, invoice-x/invoice2data",
      "display": "invoice-x/invoice2data",
      "asOf": "2026-11-10"
    },
    "F277": {
      "label": "GitHub stars, invoice-x/invoice2data",
      "display": "2.2K",
      "asOf": "2026-11-10"
    },
    "F278": {
      "label": "Last push, invoice-x/invoice2data",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F279": {
      "label": "File, invoice-x/invoice2data",
      "display": "ocrmypdf.py · pre_process_pdf()",
      "asOf": "2026-11-10"
    },
    "F280": {
      "label": "Caution lead, tesserocr",
      "display": "One instance per thread",
      "asOf": "2026-11-10"
    },
    "F281": {
      "label": "Caution, tesserocr",
      "display": "Each worker thread needs its own PyTessBaseAPI.",
      "asOf": "2026-11-10"
    },
    "F282": {
      "label": "Code, alephdata/memorious",
      "display": "def read_text(image, languages=None):\n    \"\"\"OCR text from an image.\"\"\"\n    with lock:\n        api = None\n        currlocale = locale.getlocale()\n        try:\n            locale.setlocale(locale.LC_CTYPE, \"C\")\n            api = get_ocr()\n            if api is None or image is None:\n                return \"\"\n            api.SetImage(image)\n            return api.GetUTF8Text() or \"\"\n        finally:\n            if api is not None:\n                api.Clear()\n            locale.setlocale(locale.LC_CTYPE, currlocale)",
      "asOf": "2026-11-10"
    },
    "F283": {
      "label": "Repository, alephdata/memorious",
      "display": "alephdata/memorious",
      "asOf": "2026-11-10"
    },
    "F284": {
      "label": "GitHub stars, alephdata/memorious",
      "display": "316",
      "asOf": "2026-11-10"
    },
    "F285": {
      "label": "Last push, alephdata/memorious",
      "display": "May 2026",
      "asOf": "2026-05-20"
    },
    "F286": {
      "label": "File, alephdata/memorious",
      "display": "ocr.py · read_text()",
      "asOf": "2026-11-10"
    },
    "F287": {
      "label": "Code, WeblateOrg/weblate",
      "display": "def ocr_get_lines(\n    api: PyTessBaseAPI, *, image: Image.Image, filename: str, resolution: int\n) -> tuple[list[OCRLine], bool]:\n    \"\"\"Recognize lines and their words without losing original image coordinates.\"\"\"\n    from tesserocr import RIL, iterate_level  # ruff: ignore[import-outside-top-level]\n\n    lines: list[OCRLine] = []\n    truncated = False\n    try:\n        try:\n            api.SetImage(image)\n        except RuntimeError:\n            return lines, truncated\n        api.SetSourceResolution(resolution)\n        with start_span(op=\"ocr.recognize\", name=filename):\n            api.Recognize()\n        iterator = api.GetIterator()\n        # ...\n        for word_number, word in enumerate(iterate_level(iterator, RIL.WORD)):\n            # ...\n            try:  # ruff: ignore[too-many-statements-in-try-clause]\n                if not lines or word.IsAtBeginningOf(RIL.TEXTLINE):\n                    # ...\n                    lines.append(\n                        {\n                            \"text\": word.GetUTF8Text(RIL.TEXTLINE)[\n                                :OCR_TEXT_LENGTH_LIMIT\n                            ],\n                            \"box\": word.BoundingBox(RIL.TEXTLINE),\n                            \"words\": [],\n                        }\n                    )\n                # ...\n            except RuntimeError:\n                continue\n    finally:\n        api.Clear()\n    return lines, truncated",
      "asOf": "2026-11-10"
    },
    "F288": {
      "label": "Repository, WeblateOrg/weblate",
      "display": "WeblateOrg/weblate",
      "asOf": "2026-11-10"
    },
    "F289": {
      "label": "GitHub stars, WeblateOrg/weblate",
      "display": "6.2K",
      "asOf": "2026-11-10"
    },
    "F290": {
      "label": "Last push, WeblateOrg/weblate",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F291": {
      "label": "File, WeblateOrg/weblate",
      "display": "ocr.py · ocr_get_lines()",
      "asOf": "2026-11-10"
    },
    "F292": {
      "label": "Code, invoice-x/invoice2data",
      "display": "def to_text(\n    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any\n) -> str:\n    # ...\n    if not doctr_available():\n        logger.warning(\n            \"docTR is not available. Install with 'pip install invoice2data[doctr]'\"\n        )\n        return \"\"\n    from doctr.io import DocumentFile\n\n    if path.lower().endswith(\".pdf\"):\n        document = DocumentFile.from_pdf(path)\n    else:\n        document = DocumentFile.from_images(path)\n    result = _get_model()(document)\n    return _render(result)",
      "asOf": "2026-11-10"
    },
    "F293": {
      "label": "Repository, invoice-x/invoice2data",
      "display": "invoice-x/invoice2data",
      "asOf": "2026-11-10"
    },
    "F294": {
      "label": "GitHub stars, invoice-x/invoice2data",
      "display": "2.2K",
      "asOf": "2026-11-10"
    },
    "F295": {
      "label": "Last push, invoice-x/invoice2data",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F296": {
      "label": "File, invoice-x/invoice2data",
      "display": "doctr.py · to_text()",
      "asOf": "2026-11-10"
    },
    "F297": {
      "label": "Code, xavctn/img2table",
      "display": "def of(self, document: Document | MockDocument) -> OCRData | None:\n    # ...\n    # Apply OCR\n    content = self.model(document.images)\n\n    # Create dict of elements by page\n    records = {}\n\n    for page_id, page in enumerate(content.pages):\n        dimensions = page.dimensions\n        word_id = 0\n        for block in page.blocks:\n            for line_id, line in enumerate(block.lines):\n                for word in line.words:\n                    word_id += 1\n                    dict_word = {\n                        \"id\": f\"word_{page_id + 1}_{line_id}_{word_id}\",\n                        \"parent\": f\"word_{page_id + 1}_{line_id}\",\n                        \"value\": word.value,\n                        \"confidence\": round(100 * word.confidence),\n                        \"x1\": round(word.geometry[0][0] * dimensions[1]),\n                        \"y1\": round(word.geometry[0][1] * dimensions[0]),\n                        \"x2\": round(word.geometry[1][0] * dimensions[1]),\n                        \"y2\": round(word.geometry[1][1] * dimensions[0]),\n                    }\n\n                    records.setdefault(page_id, []).append(dict_word)\n\n    return OCRData(records=records) if records else None",
      "asOf": "2026-11-10"
    },
    "F298": {
      "label": "Repository, xavctn/img2table",
      "display": "xavctn/img2table",
      "asOf": "2026-11-10"
    },
    "F299": {
      "label": "GitHub stars, xavctn/img2table",
      "display": "903",
      "asOf": "2026-11-10"
    },
    "F300": {
      "label": "Last push, xavctn/img2table",
      "display": "Nov 2026",
      "asOf": "2026-11-08"
    },
    "F301": {
      "label": "File, xavctn/img2table",
      "display": "doctr.py · of()",
      "asOf": "2026-11-10"
    },
    "F302": {
      "label": "Code, Altaflux/agent-mimir",
      "display": "def extract_text(img, pipeline):\n\n    prediction_groups = pipeline.recognize([img])\n    textAreas = []\n    for box in prediction_groups[0]:\n        x0, y0 = box[1][0]\n        x1, y1 = box[1][1] \n        x2, y2 = box[1][2]\n        x3, y3 = box[1][3] \n        textAreas.append({\n            \"text\": box[0],\n            \"bbox\": {'x0': x0, 'y0': y0, 'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'x3': x3, 'y3': y3}\n        })\n\n    return textAreas",
      "asOf": "2026-11-10"
    },
    "F303": {
      "label": "Repository, Altaflux/agent-mimir",
      "display": "Altaflux/agent-mimir",
      "asOf": "2026-11-10"
    },
    "F304": {
      "label": "GitHub stars, Altaflux/agent-mimir",
      "display": "112",
      "asOf": "2026-11-10"
    },
    "F305": {
      "label": "Last push, Altaflux/agent-mimir",
      "display": "Jun 2026",
      "asOf": "2026-06-20"
    },
    "F306": {
      "label": "File, Altaflux/agent-mimir",
      "display": "server.py · extract_text()",
      "asOf": "2026-11-10"
    },
    "F307": {
      "label": "Quickstart, tesserocr",
      "display": "import tesserocr\nfrom PIL import Image\n\nimage = Image.open('sample.jpg')\nprint(tesserocr.image_to_text(image))  # print ocr text from image\n# or\nprint(tesserocr.file_to_text('sample.jpg'))",
      "asOf": "2026-11-10"
    },
    "F308": {
      "label": "Quickstart, keras-ocr",
      "display": "import keras_ocr\n\npipeline = keras_ocr.pipeline.Pipeline()\n\nimages = [\n    keras_ocr.tools.read(url) for url in [\n        'https://upload.wikimedia.org/wikipedia/commons/b/bd/Army_Reserves_Recruitment_Banner_MOD_45156284.jpg',\n        'https://upload.wikimedia.org/wikipedia/commons/e/e8/FseeG2QeLXo.jpg',\n        'https://upload.wikimedia.org/wikipedia/commons/b/b4/EUBanana-500x112.jpg'\n    ]\n]\n\n# Each list of predictions in prediction_groups is a list of\n# (word, box) tuples.\nprediction_groups = pipeline.recognize(images)",
      "asOf": "2026-11-10"
    },
    "F309": {
      "label": "FAQ, paddle_fps",
      "display": "12.7",
      "asOf": "2026-11-10"
    },
    "F310": {
      "label": "FAQ, easy_fps",
      "display": "4.2",
      "asOf": "2026-11-10"
    },
    "F311": {
      "label": "Detects page layout, RapidOCR",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F312": {
      "label": "Returns word boxes, OCRmyPDF",
      "display": "Via plugin",
      "asOf": "2026-11-10"
    },
    "F313": {
      "label": "Reads handwriting, tesserocr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    },
    "F314": {
      "label": "Reads handwriting, doctr",
      "display": "Unsupported",
      "asOf": "2026-11-10"
    }
  },
  "dataCheckedAt": "2026-11-10",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "open source Python libraries for OCR, extracting text from images and scanned documents",
        "numResults": 20,
        "type": "auto",
        "includeDomains": [
          "github.com"
        ]
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": [
      {
        "endpoint": "/search",
        "body": {
          "query": "Python OCR library package",
          "numResults": 20,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/madmaze/pytesseract",
            "https://pypi.org/project/pytesseract/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about pytesseract, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what pytesseract does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of pytesseract that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of pytesseract that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says pytesseract handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pytesseract (pytesseract on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pytesseract (pytesseract on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pytesseract (pytesseract on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pytesseract (pytesseract on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library pytesseract (pytesseract on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library pytesseract (pytesseract) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses pytesseract for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/robocorp/rpaframework/blob/2b6085a881712397d550d98b407e76fcb876fa3c/packages/recognition/src/RPA/recognition/ocr.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function read() in this file, which uses the pytesseract library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What read() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pytesseract calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/python-geeks/Automation-scripts/blob/126b00fb84293fa800e0093f41f00117bc5fd882/auto_searcher/autosearcher.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function capture() in this file, which uses the pytesseract library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What capture() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the pytesseract calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/RapidAI/RapidOCR",
            "https://rapidai.github.io/RapidOCRDocs",
            "https://pypi.org/project/rapidocr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about RapidOCR, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what RapidOCR does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of RapidOCR that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of RapidOCR that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says RapidOCR handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library RapidOCR (rapidocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library RapidOCR (rapidocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library RapidOCR (rapidocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library RapidOCR (rapidocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library RapidOCR (rapidocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library RapidOCR (rapidocr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses rapidocr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/weixin-omni/omni-bot-sdk-oss/blob/91abcc603112e0a4c3b6c3db6efe4374da5123eb/src/omni_bot_sdk/rpa/ocr_processor.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function _process_local() in this file, which uses the RapidOCR library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What _process_local() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the RapidOCR calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/JaidedAI/EasyOCR",
            "https://www.jaided.ai",
            "https://pypi.org/project/easyocr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about EasyOCR, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what EasyOCR does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of EasyOCR that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of EasyOCR that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says EasyOCR handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library EasyOCR (easyocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library EasyOCR (easyocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library EasyOCR (easyocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library EasyOCR (easyocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library EasyOCR (easyocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library EasyOCR (easyocr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses easyocr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/yqchilde/JDMemberCloseAccount/blob/0f99decd00ae092b00253e7cfa87bfd75c49259d/captcha/easy_ocr.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function easy_ocr() in this file, which uses the EasyOCR library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What easy_ocr() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the EasyOCR calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/PaddlePaddle/PaddleOCR",
            "https://www.paddleocr.com",
            "https://pypi.org/project/paddleocr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about PaddleOCR, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what PaddleOCR does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of PaddleOCR that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of PaddleOCR that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says PaddleOCR handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library PaddleOCR (paddleocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library PaddleOCR (paddleocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library PaddleOCR (paddleocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library PaddleOCR (paddleocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library PaddleOCR (paddleocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library PaddleOCR (paddleocr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses paddleocr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/ctripcorp/flybirds/blob/c2365d1495a6d2676a04899d5e833a7ff73f815f/flybirds/core/plugin/plugins/default/screen.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function image_ocr() in this file, which uses the PaddleOCR library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What image_ocr() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the PaddleOCR calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/ocrmypdf/OCRmyPDF",
            "http://ocrmypdf.readthedocs.io/",
            "https://pypi.org/project/ocrmypdf/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about OCRmyPDF, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what OCRmyPDF does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of OCRmyPDF that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of OCRmyPDF that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says OCRmyPDF handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library OCRmyPDF (ocrmypdf on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library OCRmyPDF (ocrmypdf on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library OCRmyPDF (ocrmypdf on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library OCRmyPDF (ocrmypdf on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library OCRmyPDF (ocrmypdf on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library OCRmyPDF (ocrmypdf) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses ocrmypdf for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/sirfz/tesserocr",
            "https://pypi.org/project/tesserocr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about tesserocr, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what tesserocr does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of tesserocr that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of tesserocr that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says tesserocr handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library tesserocr (tesserocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library tesserocr (tesserocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library tesserocr (tesserocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library tesserocr (tesserocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library tesserocr (tesserocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library tesserocr (tesserocr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses tesserocr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/apirrone/Memento/blob/378d4aa2d32d51b91f8a977978107794d8e86e79/memento/OCR.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function process_image() in this file, which uses the tesserocr library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What process_image() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the tesserocr calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/charslab/TranscriberBot/blob/59fbc21b39a729e8b5a6b0cb81179ef4ef17abc2/src/phototools/ocr.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function image_ocr_tesserocr() in this file, which uses the tesserocr library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What image_ocr_tesserocr() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the tesserocr calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/mindee/doctr",
            "https://mindee.github.io/doctr/",
            "https://pypi.org/project/python-doctr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about doctr, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what doctr does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of doctr that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of doctr that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says doctr handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library doctr (python-doctr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library doctr (python-doctr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library doctr (python-doctr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library doctr (python-doctr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library doctr (python-doctr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library doctr (python-doctr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses python-doctr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/jolibrain/colette/blob/1ed439e64f2d2dbed4afea214f29a7866a187a84/tools/calibrate_vllm_ocr.py"
          ],
          "text": {
            "maxCharacters": 30000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "The function detect_words() in this file, which uses the doctr library",
            "schema": {
              "type": "object",
              "properties": {
                "sentence": {
                  "type": "string",
                  "description": "What detect_words() does, in one plain sentence of at most thirty words, third person, present tense. Shape: a verb phrase naming the job (for example 'Extracts the text of every page'), a colon, then the doctr calls it makes, by name, in the order it makes them. Do not name the function, the file, or the repository. Only this function."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://github.com/faustomorales/keras-ocr",
            "https://keras-ocr.readthedocs.io/",
            "https://pypi.org/project/keras-ocr/"
          ],
          "text": {
            "maxCharacters": 40000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "Facts about keras-ocr, a Python OCR library",
            "schema": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string",
                  "description": "One or two sentences on what keras-ocr does and how it works (its engine, models, or approach), in plain third person. Not what it is best for. Never address the reader."
                },
                "what_quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports the description, copied exactly."
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Concrete strengths of keras-ocr that this page states."
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lead": {
                        "type": "string",
                        "description": "A lead of two to five words that names the point, in sentence case, without a final period."
                      },
                      "detail": {
                        "type": "string",
                        "description": "One plain sentence, in the third person, on why the point matters or when it bites, using the page's own facts. Never address the reader."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that states the point, copied exactly."
                      }
                    }
                  },
                  "description": "Limitations, requirements, or caveats of keras-ocr that this page itself states, such as a system dependency or a removed API."
                },
                "needs": {
                  "type": "array",
                  "description": "The developer needs from the list that this page says keras-ocr handles, each with its sentence.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "need": {
                        "type": "string",
                        "enum": [
                          "Printed text at volume",
                          "No Tesseract install",
                          "Many languages",
                          "Tables and layout",
                          "Searchable PDFs",
                          "Photos and scene text",
                          "None"
                        ],
                        "description": "Which one of these developer needs the recommendation answers, or None: Printed text at volume; No Tesseract install; Many languages; Tables and layout; Searchable PDFs; Photos and scene text."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Why this library fits that need, in two to four words of the page's own terms: a property of the library such as its runtime, its API, its models, or its maturity, not a test result. Empty when the page gives no reason."
                      },
                      "quote": {
                        "type": "string",
                        "description": "The page's sentence that says so, copied exactly."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library keras-ocr (keras-ocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library keras-ocr (keras-ocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library keras-ocr (keras-ocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library keras-ocr (keras-ocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "Can the Python library keras-ocr (keras-ocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "required": [
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "unclear"
                ]
              },
              "how": {
                "type": "string",
                "description": "Two to five words: built in, via plugin, needs an OCR engine, or not supported"
              },
              "evidence": {
                "type": "string",
                "description": "The documentation sentence that supports the answer"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/answer",
        "body": {
          "query": "What output formats can the Python library keras-ocr (keras-ocr) return or write as OCR results? Answer from its own documentation.",
          "outputSchema": {
            "type": "object",
            "properties": {
              "formats": {
                "type": "string",
                "description": "The output formats the library's docs say it returns or writes, one to four names separated by commas"
              },
              "evidence": {
                "type": "string"
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/reference/answer"
      },
      {
        "endpoint": "/search",
        "body": {
          "query": "Python project that uses keras-ocr for OCR, extracting text from images and scanned documents, application code",
          "numResults": 15,
          "type": "auto",
          "includeDomains": [
            "github.com"
          ]
        },
        "docsUrl": "https://exa.ai/docs/reference/search"
      },
      {
        "endpoint": "/contents",
        "body": {
          "ids": [
            "https://tesseract-ocr.github.io/"
          ],
          "text": {
            "maxCharacters": 20000
          },
          "maxAgeHours": 24,
          "summary": {
            "query": "What is Tesseract?",
            "schema": {
              "type": "object",
              "properties": {
                "definition": {
                  "type": "string",
                  "description": "One or two plain sentences on what Tesseract is and who maintains it, written to follow the name: start with the word 'is' and leave the name out. Never address the reader."
                },
                "quote": {
                  "type": "string",
                  "description": "The page's sentence that best supports it, copied exactly."
                }
              }
            }
          }
        },
        "docsUrl": "https://exa.ai/docs/contents/quickstart"
      }
    ]
  }
}
