Name | forement JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | A collection of unsupervised clustering tools for foreground segmentation |
upload_time | 2024-08-27 21:42:36 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2024 Brandon Hastings Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
foreground segmentation
color clustering
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# FOREground segMENTation
A collection of unsupervised clustering tools for foreground segmentation of an image to isolate an object of interest.
### Requirements:
- ultralytics
- opencv-python
- orchard-bouman
Developed in Python 3.10, but anything over Python 3.7 should work
### Installation:
```
pip install forement
```
### Usage:
To use from the command line use the command:
```
python forement.py -image_path -method -k -channel -output_dir -save_image -show_image
```
Arguments:
- image_path, type=str, help=Input the path to the image to perform clustering on.
- method, type=str, help=Method to segment images by, options include "sam", "kmeans", "ob", "em", "ob-em".
- k, type=int | None, default=None, help=How many clusters to generate. For method "ob" or "ob-em" clusters is 2^k.
- channel, type=int, default=0, help=Color channel to use when running mode counts on images.
- output_dir, type=str | None, default=None, help=Folder to save images to. If None, created images are saved in the folder of the original image.
- save_image, type=bool, default=False, help=Whether or not to save the segmented image.
- show_image, type=bool, default=False, help=Whether or not to display the segmented image.
Available methods:
- kmeans: "kmeans"
- Orchard Bouman: "ob"
- Expectation Maximization: "em"
- Expectation Maximization using Orchard Bouman: "ob-em"
- SAM (Segment anything model): "sam"
In addition to the command line call, all functions can be imported to your own scripts and used as part of a larger program.
Raw data
{
"_id": null,
"home_page": null,
"name": "forement",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "foreground segmentation, color clustering",
"author": null,
"author_email": "Brandon Hastings <bhastings23320@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ed/5e/475944c09d486a925ccd1d1351973a95915ef73d2f76bd97caba0a83f946/forement-0.0.1.tar.gz",
"platform": null,
"description": "# FOREground segMENTation\nA collection of unsupervised clustering tools for foreground segmentation of an image to isolate an object of interest.\n\n### Requirements:\n- ultralytics\n- opencv-python\n- orchard-bouman\n\nDeveloped in Python 3.10, but anything over Python 3.7 should work\n\n### Installation:\n```\npip install forement\n```\n\n### Usage:\nTo use from the command line use the command:\n```\npython forement.py -image_path -method -k -channel -output_dir -save_image -show_image\n```\nArguments:\n- image_path, type=str, help=Input the path to the image to perform clustering on.\n- method, type=str, help=Method to segment images by, options include \"sam\", \"kmeans\", \"ob\", \"em\", \"ob-em\".\n- k, type=int | None, default=None, help=How many clusters to generate. For method \"ob\" or \"ob-em\" clusters is 2^k.\n- channel, type=int, default=0, help=Color channel to use when running mode counts on images.\n- output_dir, type=str | None, default=None, help=Folder to save images to. If None, created images are saved in the folder of the original image.\n- save_image, type=bool, default=False, help=Whether or not to save the segmented image.\n- show_image, type=bool, default=False, help=Whether or not to display the segmented image.\n\nAvailable methods:\n- kmeans: \"kmeans\"\n- Orchard Bouman: \"ob\"\n- Expectation Maximization: \"em\"\n- Expectation Maximization using Orchard Bouman: \"ob-em\"\n- SAM (Segment anything model): \"sam\"\n\n\nIn addition to the command line call, all functions can be imported to your own scripts and used as part of a larger program.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Brandon Hastings Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "A collection of unsupervised clustering tools for foreground segmentation",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/brandon-hastings/forement"
},
"split_keywords": [
"foreground segmentation",
" color clustering"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4f2d153f24ec1c611888b1f253f5b5a525474cd9d999f976322b2f5b69f42c6a",
"md5": "98bb787928dad1fcf9875371177eaed0",
"sha256": "5a122578ded5c16d25b45096b40674b74a47f59a680f4501422ca60d0a096727"
},
"downloads": -1,
"filename": "forement-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "98bb787928dad1fcf9875371177eaed0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 7348,
"upload_time": "2024-08-27T21:42:34",
"upload_time_iso_8601": "2024-08-27T21:42:34.265101Z",
"url": "https://files.pythonhosted.org/packages/4f/2d/153f24ec1c611888b1f253f5b5a525474cd9d999f976322b2f5b69f42c6a/forement-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed5e475944c09d486a925ccd1d1351973a95915ef73d2f76bd97caba0a83f946",
"md5": "d8d5cf283ce8a8270a3b8d97f9fc5fc9",
"sha256": "ec03f54fa4e8d8bde7edb6156256e160ca3c2c1ce0987ab8d6712964cc4f9415"
},
"downloads": -1,
"filename": "forement-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "d8d5cf283ce8a8270a3b8d97f9fc5fc9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 5764,
"upload_time": "2024-08-27T21:42:36",
"upload_time_iso_8601": "2024-08-27T21:42:36.198890Z",
"url": "https://files.pythonhosted.org/packages/ed/5e/475944c09d486a925ccd1d1351973a95915ef73d2f76bd97caba0a83f946/forement-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-27 21:42:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "brandon-hastings",
"github_project": "forement",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "forement"
}