An open API service indexing awesome lists of open source software.

https://github.com/ajkdrag/ocrtoolkit

Experiment and integrate with different OCR frameworks seamlessly
https://github.com/ajkdrag/ocrtoolkit

doctr ocr paddleocr pytorch text-detection text-recognition ultralytics

Last synced: 5 months ago
JSON representation

Experiment and integrate with different OCR frameworks seamlessly

Awesome Lists containing this project

README

          

|docs_badge| |pypi_badge|

.. |docs_badge| image:: https://img.shields.io/github/deployments/ajkdrag/ocrtoolkit/github-pages?label=docs
:alt: GitHub-Pages deployment status
:target: https://ajkdrag.github.io/ocrtoolkit/ocrtoolkit/

.. |pypi_badge| image:: https://img.shields.io/pypi/v/ocrtoolkit?style=flat&color=green
:alt: PyPI - Version
:target: https://pypi.org/project/ocrtoolkit/

ocrtoolkit
############

Versatile Python package for seamlessly integrating and experimenting with various OCR and Object Detection frameworks.

.. contents::
:local:

Quickstart
==========

ocrtoolkit is available on PyPI and can be installed with `pip `_.
Supports integrations with:

- `DocTR `_
- `PaddleOCR `_
- `Ultralytics `_
- `Google Cloud Vision `_

.. code-block:: console

$ pip install ocrtoolkit

After installing ocrtoolkit you can use it like any other Python module.

Here is a simple example:

.. code-block:: python

from ocrtoolkit.models import UL_YOLOV8
from ocrtoolkit.datasets import FileDS
from ocrtoolkit.core import detect

ds = FileDS("some_images_dir")
mini_ds = ds.sample()
model = UL_YOLOV8()

l_results = detect(model, mini_ds, stream=False)

Documentation
==============

The `API Reference `_ provides API-level documentation

Notebooks
==========
Refer `notebooks `_ for examples on how to use the modules.

.. include:: CHANGELOG.rst