| Name | labelme-parse JSON |
| Version |
1.0.9
JSON |
| download |
| home_page | None |
| Summary | Utility functions to parse json file generated by labelme |
| upload_time | 2024-10-20 05:39:22 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3 |
| license | Copyright (c) 2018 The Python Packaging Authority 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 |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# labelme-parse
Utility functions to parse json file generated by labelme
## Installation
You can install the package via pip:
```bash
pip install labelme-parse
```
## Usage
```python
from pathlib import Path
from labelme_parse import get_point
from labelme_parse import get_point_names
from labelme_parse import get_poly
from labelme_parse import get_poly_names
from labelme_parse import get_rect
from labelme_parse import get_rect_names
d = Path("path/to/dir")
print(get_point_names(d))
# ["dp_7_to_dp_0"]
print(get_rect_names(d))
# ["dp_0"]
print(get_poly_names(d))
# ["dp_8"]
print(get_point(d, "dp_7_to_dp_0"))
# (329, 919)
print(get_rect(d, "dp_0"))
# (301, 897, 38, 38)
print(get_poly(d, "dp_8"))
# [(317, 909), (309, 909), (309, 914), (313, 914), (313, 920), (327, 920), (327, 914), (331, 914), (331, 909), (322, 909), (322, 907), (317, 907)]
```
## License
This project is licensed under the terms of the MIT license.
Raw data
{
"_id": null,
"home_page": null,
"name": "labelme-parse",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Pradish Bijukchhe <pradish@sandbox.com.np>",
"download_url": "https://files.pythonhosted.org/packages/ac/26/f849c7c6106f8776dcfb7082c20203a79d51a8876d2529aab70da400066a/labelme_parse-1.0.9.tar.gz",
"platform": null,
"description": "# labelme-parse\n\nUtility functions to parse json file generated by labelme\n\n## Installation\n\nYou can install the package via pip:\n\n```bash\npip install labelme-parse\n```\n\n## Usage\n\n```python\nfrom pathlib import Path\n\nfrom labelme_parse import get_point\nfrom labelme_parse import get_point_names\nfrom labelme_parse import get_poly\nfrom labelme_parse import get_poly_names\nfrom labelme_parse import get_rect\nfrom labelme_parse import get_rect_names\n\nd = Path(\"path/to/dir\")\n\n\nprint(get_point_names(d))\n# [\"dp_7_to_dp_0\"]\nprint(get_rect_names(d))\n# [\"dp_0\"]\nprint(get_poly_names(d))\n# [\"dp_8\"]\nprint(get_point(d, \"dp_7_to_dp_0\"))\n# (329, 919)\nprint(get_rect(d, \"dp_0\"))\n# (301, 897, 38, 38)\nprint(get_poly(d, \"dp_8\"))\n# [(317, 909), (309, 909), (309, 914), (313, 914), (313, 920), (327, 920), (327, 914), (331, 914), (331, 909), (322, 909), (322, 907), (317, 907)]\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n",
"bugtrack_url": null,
"license": "Copyright (c) 2018 The Python Packaging Authority 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": "Utility functions to parse json file generated by labelme",
"version": "1.0.9",
"project_urls": {
"Homepage": "https://github.com/sandbox-pokhara/labelme-parse",
"Issues": "https://github.com/sandbox-pokhara/labelme-parse/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bc89bca743708a3533c31d341badd30fc26b8a793754bc1aae7e723f2cfaa5c9",
"md5": "00b5d783a9621f34b001a40e809f5d08",
"sha256": "0743a9c1c7078b6ced7c565cb1518f580f3dd699cb6948ecae82470633cb0ae8"
},
"downloads": -1,
"filename": "labelme_parse-1.0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00b5d783a9621f34b001a40e809f5d08",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 5669,
"upload_time": "2024-10-20T05:39:20",
"upload_time_iso_8601": "2024-10-20T05:39:20.591900Z",
"url": "https://files.pythonhosted.org/packages/bc/89/bca743708a3533c31d341badd30fc26b8a793754bc1aae7e723f2cfaa5c9/labelme_parse-1.0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ac26f849c7c6106f8776dcfb7082c20203a79d51a8876d2529aab70da400066a",
"md5": "b13f167495a835b09f9bb10010bc02fa",
"sha256": "87054f0c71394538581faaea3be0f6d2b638d8b2e0f2d31ad8cda1641cbff3e8"
},
"downloads": -1,
"filename": "labelme_parse-1.0.9.tar.gz",
"has_sig": false,
"md5_digest": "b13f167495a835b09f9bb10010bc02fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 4340,
"upload_time": "2024-10-20T05:39:22",
"upload_time_iso_8601": "2024-10-20T05:39:22.150945Z",
"url": "https://files.pythonhosted.org/packages/ac/26/f849c7c6106f8776dcfb7082c20203a79d51a8876d2529aab70da400066a/labelme_parse-1.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 05:39:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sandbox-pokhara",
"github_project": "labelme-parse",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "labelme-parse"
}