{"id":22865048,"url":"https://github.com/bglezseoane/monoshape","last_synced_at":"2025-10-24T05:01:28.282Z","repository":{"id":43247656,"uuid":"194495047","full_name":"bglezseoane/monoshape","owner":"bglezseoane","description":"Extracts a monochromatic shape in the desired color from an image. Works as final TUI app and as Python library","archived":false,"fork":false,"pushed_at":"2023-10-03T21:34:39.000Z","size":549,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T04:15:49.326Z","etag":null,"topics":["image","image-processing","shapes"],"latest_commit_sha":null,"homepage":"","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/bglezseoane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-06-30T08:52:11.000Z","updated_at":"2020-12-06T16:59:40.000Z","dependencies_parsed_at":"2024-12-13T11:43:29.943Z","dependency_job_id":null,"html_url":"https://github.com/bglezseoane/monoshape","commit_stats":null,"previous_names":["glezseoane/monoshape"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fmonoshape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fmonoshape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fmonoshape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fmonoshape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bglezseoane","download_url":"https://codeload.github.com/bglezseoane/monoshape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450402,"owners_count":20779406,"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":["image","image-processing","shapes"],"created_at":"2024-12-13T11:32:31.751Z","updated_at":"2025-10-24T05:01:28.149Z","avatar_url":"https://github.com/bglezseoane.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monoshape\n\nThis program takes an image that has well differentiated light and dark tones and extracts its monochromatic shape in the desired colour with a transparent background.\n\n![Use demonstration](docs/demo.png?raw=true \"Use demonstration\")\n\nThis sofware can be used as final TUI app or as Python library.\n\n\n## To set up\n\nYou can use Homebrew to install this program via my tap repository:\n\n```sh\nbrew install glezseoane/homebrew-tap/monoshape\n```\n\nYou also can use PyPI to install this program:\n\n```sh\npip install monoshape\n```\n\nAlternative, clone and go to this repository home directory, and then run:\n\n```sh\npython setup.py install\n```\n\nBoth methods install last **monoshape** stable version on your machine.\n\n\n## Use as final app\n\nSimple use:\n\n```sh\nmonoshape image.png desired_shape.png\n```\n\nDraw a red shape:\n\n```sh\nmonoshape image.png desired_shape.png -rgb 255 0 0\n```\n\nExplore the man page to know all possible functionalities.\n\n\n## Use as library\n\nSimply import main module and use export function:\n\n```python\nimport monoshape.__main__ as monoshape\n\ndrawn = monoshape.extract_shape(path=source,\n                                black_background=False,\n                                white_shape=False,\n                                rgb_shape=False,\n                                red=None,\n                                green=None,\n                                blue=None)\n```\n\n\n\u003cbr\u003e\n\nRead the man of this tool to known more about its use.\n\n\u003e Note about man pages: if you use `pip` method to install this program, assert that man directories of your python environment are added to your `MANPATH` to can get this program's man pages with the `man` command. Python might install man pages in default machine level directories.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbglezseoane%2Fmonoshape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbglezseoane%2Fmonoshape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbglezseoane%2Fmonoshape/lists"}