Metadata-Version: 2.1
Name: sauron-doc-rotation
Version: 0.1.0
Summary: Fix rotation in images
Home-page: https://github.com/modestoo/sauron-doc-rotation.git
Download-URL: https://github.com
Author: Augusto Modesto
License: MIT
Keywords: image-processing,image-rotation,rotation,text
Classifier: Intended Audience :: Information Technology
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.10
Requires-Python: ==3.10.*
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: numpy==2.0.0
Requires-Dist: scikit-image==0.24.0
Requires-Dist: scipy==1.14.0
Requires-Dist: matplotlib==3.9.0
Requires-Dist: pytesseract==0.3.10
Requires-Dist: opencv-python==4.10.0.84
Requires-Dist: imutils==0.5.4
Requires-Dist: loguru==0.7.2

## Sauron-doc-rotation

The Sauron DOC rotation is a simple project that aims to rotate a base64 image to keep it in the correct direction.

### How to use?

You can use the **rotate_image_base64** method in **sauron_rotate** to rotate your base64 image.

The following code shows how you can use this method.

```python
from sauron_doc_rotate.sauron_rotate import SauronRotate

sr = SauronRotate(enable_logging=False)

sr.rotate_image_base64(img_base64)
```

* Method / Class parameters
  * `enable_logging` - whether or not to show logs during code execution 

* Method returns
  * A dict with two values:
    * `angles_for_rotation` - the angles tuple used to rotate the imagem  
    * `rotated_img_base64` - the base64 image in the correct direction
