Metadata-Version: 2.1
Name: nkocr
Version: 0.2.2
Summary: This is a module to make specifics OCRs          at food products and nutricional tables.
Home-page: https://github.com/Lucs1590/Nkocr
Author: NK Sistemas de Informacao em Saude
Author-email: ti@nkodontologia.com.br
License: Apache License 2.0
Download-URL: https://github.com/Lucs1590/Nkocr
Keywords: ocr,tesseract-ocr,nk,python3,python-3,food-products
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Topic :: Communications :: Email
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: tesseract (==0.1.3)
Requires-Dist: pytesseract (==0.3.4)
Requires-Dist: requests (==2.24.0)
Requires-Dist: wheel (==0.34.2)
Requires-Dist: pillow (==7.2.0)
Requires-Dist: numpy (==1.19.0)
Requires-Dist: opencv-contrib-python (>=4.3.*)
Provides-Extra: dev
Requires-Dist: pytest (>=3.7) ; extra == 'dev'

# Nkocr

This is a module to make specifics OCRs at food products and nutricional tables.


As a prerequisite of this project, we have the tesseract library which can be found in more detail at

https://github.com/tesseract-ocr/tesseract

# Installation of prerequisite
The installation of tesseract on the **Linux** system can be done in a few commands:

```bash
$ sudo apt install tesseract-ocr
$ sudo apt install libtesseract-dev
```

And the same goes for **macOS**. There is a variation between MacPorts and Homebrew, but in this post I will only quote the version of Homebrew:
```
$ brew install tesseract
```
After performing the tesseract installation, it is possible to perform OCR in just one command, thus already extracting some words from the image.
> The default language is English, depending on the text, it will not be possible to capture the word/phrase.
If you want to work with another language, you need to make some additional installations. (https://github.com/tesseract-ocr/tesseract/wiki#other-languages)
---

# Installation
You can install this package with:
```bash
$ pip install nkocr --user
```

# How to use
To use this package, after do installation, do:
```python
from nkocr import ocr_table, ocr_product
```

# Example
```python
from nkocr import ocr_table

text = ocr_table("paste_image_url_here")
print(text) # or print(text.text)
```

