sauron-doc-rotation


Namesauron-doc-rotation JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/modestoo/sauron-doc-rotation.git
SummaryFix rotation in images
upload_time2024-06-28 21:09:10
maintainerNone
docs_urlNone
authorAugusto Modesto
requires_python==3.10.*
licenseMIT
keywords image-processing image-rotation rotation text
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/modestoo/sauron-doc-rotation.git",
    "name": "sauron-doc-rotation",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "==3.10.*",
    "maintainer_email": null,
    "keywords": "image-processing, image-rotation, rotation, text",
    "author": "Augusto Modesto",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8f/85/40e5a39a58830ff0e9c5cdb2ce8258b1fd3912fc68d23e99786c1e0adb8f/sauron_doc_rotation-0.1.0.tar.gz",
    "platform": null,
    "description": "## Sauron-doc-rotation\n\nThe Sauron DOC rotation is a simple project that aims to rotate a base64 image to keep it in the correct direction.\n\n### How to use?\n\nYou can use the **rotate_image_base64** method in **sauron_rotate** to rotate your base64 image.\n\nThe following code shows how you can use this method.\n\n```python\nfrom sauron_doc_rotate.sauron_rotate import SauronRotate\n\nsr = SauronRotate(enable_logging=False)\n\nsr.rotate_image_base64(img_base64)\n```\n\n* Method / Class parameters\n  * `enable_logging` - whether or not to show logs during code execution \n\n* Method returns\n  * A dict with two values:\n    * `angles_for_rotation` - the angles tuple used to rotate the imagem  \n    * `rotated_img_base64` - the base64 image in the correct direction\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fix rotation in images",
    "version": "0.1.0",
    "project_urls": {
        "Download": "https://github.com",
        "Homepage": "https://github.com/modestoo/sauron-doc-rotation.git"
    },
    "split_keywords": [
        "image-processing",
        " image-rotation",
        " rotation",
        " text"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f8540e5a39a58830ff0e9c5cdb2ce8258b1fd3912fc68d23e99786c1e0adb8f",
                "md5": "34cca6bbe47d982152f4c013a620b5c2",
                "sha256": "5647bfab34d9c10762ab8da586f4eaec357f307c9894f4546db7954900f0cad2"
            },
            "downloads": -1,
            "filename": "sauron_doc_rotation-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "34cca6bbe47d982152f4c013a620b5c2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "==3.10.*",
            "size": 6192,
            "upload_time": "2024-06-28T21:09:10",
            "upload_time_iso_8601": "2024-06-28T21:09:10.421086Z",
            "url": "https://files.pythonhosted.org/packages/8f/85/40e5a39a58830ff0e9c5cdb2ce8258b1fd3912fc68d23e99786c1e0adb8f/sauron_doc_rotation-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-28 21:09:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "modestoo",
    "github_project": "sauron-doc-rotation",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sauron-doc-rotation"
}
        
Elapsed time: 5.05160s