tesserocr VS doctr

Compare tesserocr vs doctr and see what are their differences.

doctr

docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning. (by mindee)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
tesserocr doctr
17 12
1,928 3,005
- 8.6%
5.9 8.9
5 days ago 6 days ago
Python Python
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tesserocr

Posts with mentions or reviews of tesserocr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-08.
  • Tesserocr
    1 project | /r/pycharm | 25 Jan 2023
    Did you read the instructions for windows? https://github.com/sirfz/tesserocr
  • [Question] I am trying to segment the image using python.
    1 project | /r/opencv | 9 Aug 2021
    If you’re using tesserocr then you can use OpenCV images directly, so you can just extract the relevant image rows (e.g. query_image = main_image[prev_line:this_line]) and process then without needing to save each image.
  • Python app that will take a picture, scan it and upload that information into a excel file.
    1 project | /r/learnpython | 29 Jul 2021
    This tutorial is a good start towards getting the data from an image of a form with a known structure. I’d personally recommend using tesserocr (actual library binding, more efficient, more functionality) instead of pytesseract (requires images to be saved before processing, uses command-line options in a subprocess instead of binding to the library), but both should work (that tutorial uses pytesseract, which is also what u/Iceberg_Bart_Simpson linked to).
  • [Question] Working on a simple OCR program but the text from the image is returned in a backward order and it has trouble reading multiple words on a line
    1 project | /r/opencv | 11 May 2021
    Side note, but I’d suggest using tesserocr over pytesseract. It’s an actual binding to the tesseract library, so comes with numerous efficiency and interface benefits, and can operate on OpenCV images directly (whereas pytesseract saves them to disk first).
  • Optimizing ImageGrab and pytesseract
    3 projects | /r/learnpython | 8 May 2021
    If you’re after speed I’d recommend mss for screenshots/recording, and tesserocr instead of pytesseract (note in particular the OpenCV option.
  • Is pytesseract the only option for OCR in python?
    2 projects | /r/Python | 2 May 2021
    tesserocr is an actual binding to the tesseract library, and is better in practically every way than pytesseract (more efficient, more options for usage, doesn’t require saving images to disk before they can be processed, and more).
  • OCR with Python
    2 projects | /r/learnpython | 15 Apr 2021
    If you have an electronically created pdf (not scanned) and you’re just wanting to run OCR on embedded images then you’ll want a pdf library that can extract the figure images for you, and then you can use tesserocr to run OCR on those images.
  • Pytesseract/OCR: RuntimeError: can't start new thread when no multi-threading
    1 project | /r/learnpython | 24 Mar 2021
    If you want a suggestion, use tesserocr instead of Pytesseract. It’s an actual binding to the tesseract library (Python talks to it directly, instead of calling a program as a subprocess), which means it runs more efficiently, you can process multiple images sequentially with the same OCR engine (pytesseract has to start a process and a new engine for every image that gets processed), you get access to more functionality options, and a bunch of other beneficial stuff. If you’re doing preprocessing with OpenCV it’s even possible to pass those arrays directly to tesseract in memory, whereas Pytesseract requires that you save each image to a file before it can process it.
  • Can´t get part of this REGEX-pattern to work?
    1 project | /r/learnpython | 17 Mar 2021
    As a somewhat unrelated side note, I’d strongly suggest using tesserocr instead of pytesseract, and even more so if you’re working with opencv as well. It’s a true library binding which means it’s more efficient, you have more functionality available to you, you can process multiple images with the same Tesseract engine, and you can process opencv images directly (compared to pytesseract which saves them as a file first and then calls the tesseract CLI as a subprocess).
  • OCR Video Game Text
    1 project | /r/learnpython | 6 Mar 2021
    In Python the library PyTesseract constructs a command to run and calls Tesseract via the command-line as a subprocess, which is inefficient if you have more than one image to process, because it has to reinitialize the OCR engine for every image. tesserocr is a different library which came around a bit later, which is a direct binding to the Tesseract library, so you can initialise the engine once and process several images with it, and for images that are stored in memory (e.g. OpenCV arrays that you’ve done some processing on) you can process them directly instead of having to save them as individual files (which PyTesseract requires).

doctr

Posts with mentions or reviews of doctr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-02.
  • Show HN: How do you OCR on a Mac using the CLI or just Python for free
    6 projects | news.ycombinator.com | 2 Jan 2024
    https://github.com/mindee/doctr/issues/1049

    I am looking for something this polished and reliable for handwriting, does anyone have any pointers? I want to integrate it in a workflow with my eink tablet I take notes on. A few years ago, I tried various models, but they performed poorly (around 80% accuracy) on my handwriting, which I can read almost 90% of the time.

  • Show HN: BetterOCR combines and corrects multiple OCR engines with an LLM
    8 projects | news.ycombinator.com | 28 Oct 2023
    Yup! But I'm still exploring options. (any recommendations would be welcomed!) Here are some candidates I'm considering:

    - https://github.com/mindee/doctr

    - https://github.com/open-mmlab/mmocr

    - https://github.com/PaddlePaddle/PaddleOCR (honestly I don't know Mandarin so I'm a bit stuck)

    - https://github.com/clovaai/donut - While it's primarily an "OCR-free document understanding transformer," I think it's worth experimenting with. Think I can sort this out by letting the LLM reason through it multiple times (although this will impact performance)

    - yesterday got a suggestion to consider https://github.com/kakaobrain/pororo - I don't think development is still active but the results are pretty great on Korean text

  • OCR at Edge on Cloudflare Constellation
    3 projects | news.ycombinator.com | 3 Jul 2023
    EasyOCR is a popular project if you are in an environment where you can use run Python and PyTorch (https://github.com/JaidedAI/EasyOCR). Other open source projects of note are PaddleOCR (https://github.com/PaddlePaddle/PaddleOCR) and docTR (https://github.com/mindee/doctr).
  • DeepDoctection
    4 projects | news.ycombinator.com | 26 Apr 2023
    Last I checked I saw a grocery bill example using https://github.com/mindee/doctr and was fairly accurate. Bear in mind that was last year, hopefully it got even better or there are other libraries
  • Confidential Optical Character Recognition Service With Cape
    6 projects | dev.to | 10 Mar 2023
    For its OCR service, Cape uses the excellent Python docTR library. Some of the critical benefits of docTR are its ease of use, flexibility, and matching state-of-the-art performance. The OCR model consists of two steps: text detection and text recognition. Cape uses a pre-trained DB Resnet50 architecture for detection, and for recognition, it uses a MobileNetV3 Small architecture. To learn more about the level of OCR accuracy you can expect for your document, you can consult these benchmarks provided by docTR. As you will see, model performance is very competitive compared to other commercial services.
  • 👋 Unstable Diffusion here, We're excited to announce our Kickstarter to create a sustainable, community-driven future.
    2 projects | /r/StableDiffusion | 9 Dec 2022
  • Frog: OCR Tool for Linux
    7 projects | news.ycombinator.com | 22 Nov 2022
    There's also DocTR which can do text detection and extraction out of the box.

    It's command line driven but can display the detected text as an overlay of the document.

    https://github.com/mindee/doctr

  • OCRmyPDF: Add an OCR text layer to scanned PDF file
    7 projects | news.ycombinator.com | 8 Jul 2022
    If you want to OCR a document image, modern versions of Tesseract can work well. If you last used it a few years ago, the recognition has improved since due to a new text recognition algorithm that uses modern (deep learning) techniques. Browser demo using a modern version: https://robertknight.github.io/tesseract-wasm/.

    OCR processing typically consist of two major steps: detecting/locating words or lines of text on the page, and recognizing lines of text.

    Tesseract's text recognition uses modern methods, but the text detection phase is still based on classical methods involving a lot of heuristics, and you may need to experiment with various configuration variables to get the best results. As a result it can fail to detect text if you present it with something other than a reasonably clean document image.

    Doctr (https://github.com/mindee/doctr) is a new package that uses modern methods for both text detection and recognition. It is pretty new however and I expect will take more time and effort to mature.

  • DocTR: Open-Source OCR Based on TensorFlow or PyTorch
    1 project | news.ycombinator.com | 8 Dec 2021
  • DocTR: A seamless, high-performing and accessible library for OCR-related tasks
    1 project | news.ycombinator.com | 23 Sep 2021

What are some alternatives?

When comparing tesserocr and doctr you can also consider the following projects:

EasyOCR - Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.

pytesseract - A Python wrapper for Google Tesseract

keras-ocr - A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.

OCRmyPDF - OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched

mmocr - OpenMMLab Text Detection, Recognition and Understanding Toolbox

OpenCV - Open Source Computer Vision Library

react-native-tesseract-ocr - Tesseract OCR wrapper for React Native

Face Recognition - The world's simplest facial recognition api for Python and the command line

deep-text-recognition-benchmark - Text recognition (optical character recognition) with deep learning methods, ICCV 2019

Kornia - Geometric Computer Vision Library for Spatial AI

CRAFT-pytorch - Official implementation of Character Region Awareness for Text Detection (CRAFT)