{"id":17696104,"url":"https://github.com/ovyerus/deeppyer","last_synced_at":"2025-04-12T19:41:36.147Z","repository":{"id":25353262,"uuid":"101618328","full_name":"Ovyerus/deeppyer","owner":"Ovyerus","description":"Image deepfryer written in Python.","archived":false,"fork":false,"pushed_at":"2024-05-06T01:45:54.000Z","size":331,"stargazers_count":43,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T16:34:44.425Z","etag":null,"topics":["asyncio","image-deepfryer","image-processing","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ovyerus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-28T07:53:34.000Z","updated_at":"2024-10-08T16:59:34.000Z","dependencies_parsed_at":"2024-10-24T17:48:36.594Z","dependency_job_id":"fed78b8f-b5fc-4244-8769-32415809b053","html_url":"https://github.com/Ovyerus/deeppyer","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.5,"last_synced_commit":"d4eac586a751cc460d2ce408f92dadcdaedd02df"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ovyerus%2Fdeeppyer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ovyerus%2Fdeeppyer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ovyerus%2Fdeeppyer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ovyerus%2Fdeeppyer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ovyerus","download_url":"https://codeload.github.com/Ovyerus/deeppyer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625017,"owners_count":21135509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","image-deepfryer","image-processing","python"],"created_at":"2024-10-24T14:43:17.329Z","updated_at":"2025-04-12T19:41:36.121Z","avatar_url":"https://github.com/Ovyerus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deeppyer\n[![PyPI](https://img.shields.io/pypi/v/deeppyer.svg)](https://pypi.org/project/deeppyer/)  \n![banner image](https://raw.githubusercontent.com/Ovyerus/deeppyer/master/banner.jpg)\n\ndeeppyer is an image deepfryer written in Python using [Pillow](https://python-pillow.org/)\nand [OpenCV](https://pypi.org/project/opencv-python/).\n\nNOTE: This *requires* at least Python v3.6 in order to run.\n\n## How to use\nYou can either use deeppyer as a module, or straight from the command line.\n\n### Command line usage\n```\n$ python deeppyer.py -h\n\nusage: deeppyer.py [-h] [-v] [-o OUTPUT] [-f] FILE\n\nDeepfry an image.\n\npositional arguments:\n  FILE                  File to deepfry.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -v, --version         Display program version.\n  -o OUTPUT, --output OUTPUT\n                        Filename to output to.\n  -f, --flares          Try and detected faces for adding lens flares.\n```\n\nBy default, flares will try to be added to the image, unless you're using the CLI script,\nin which case it is off by default.\n\n### Program usage\n```py\nfrom PIL import Image\nimport deeppyer, asyncio\n\ndef main():\n    img = Image.open('./foo.jpg')\n    img = deeppyer.deepfry(img)\n    img.save('./bar.jpg')\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## API Documentation\n#### `async deepfry(img: Image, type=DeepfryTypes.RED, *, flares: bool = True)`\nDeepfry a given image.\n\n**Arguments**\n - *img* (PIL.Image) - Image to apply the deepfry effect on.\n - *[type]* (DeepfryTypes) - Colours to apply on the image.\n - *[flares] (bool) - Whether or not to try and detect faces for applying lens flares.\n\nReturns:\n  `PIL.Image` - Deepfried image.\n\n## Why?\n¯\\\\\\_(ツ)_/¯ Why not\n\n## Contributing\nIf you wish to contribute something to this, go ahead! Just please make sure to format it with flake8 + isort, and that the test(s) pass fine.\n\n## Testing\nSimply run `tests/test.py` and make sure that all the images output properly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovyerus%2Fdeeppyer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovyerus%2Fdeeppyer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovyerus%2Fdeeppyer/lists"}