# tjwmd

## Installation
```shell
pip install tjwmd
```
## Quick Start
```python
from PIL import Image
from tjwmd import TJWMD
from tjwmd.digits_labels import DigitsLabels
dl = DigitsLabels()
dl[0] = ['0', 'Zero']
wmd = TJWMD(
wm_counter_model_path='yolov8_wmc_v1.pt',
wm_digits_model_path='yolov8_wmd_v3s.pt',
digits_labels=dl,
counter_labels=['counter']
)
img = Image.open('6724502e2cec9d702006b6cc.jpeg')
values, bbox_img = wmd.predict(
_image=img,
num_of_digits=6,
wm_digits_conf=0.1,
wm_counter_conf=0.1,
angle=0.0
)
print(values)
bbox_img.show()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/duynguyen02/tjwmd",
"name": "tjwmd",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Duy Nguyen",
"author_email": "duynguyen02.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0a/27/5cf8f4b7908a687d7c45a5eb8fae0e9391b8580aa96c3881cd0e03e6e8fa/tjwmd-2.0.0.tar.gz",
"platform": null,
"description": "# tjwmd\n\n\n\n## Installation\n\n```shell\npip install tjwmd\n```\n\n## Quick Start\n\n```python\nfrom PIL import Image\n\nfrom tjwmd import TJWMD\nfrom tjwmd.digits_labels import DigitsLabels\n\ndl = DigitsLabels()\ndl[0] = ['0', 'Zero']\n\nwmd = TJWMD(\n wm_counter_model_path='yolov8_wmc_v1.pt',\n wm_digits_model_path='yolov8_wmd_v3s.pt',\n digits_labels=dl,\n counter_labels=['counter']\n)\n\nimg = Image.open('6724502e2cec9d702006b6cc.jpeg')\n\nvalues, bbox_img = wmd.predict(\n _image=img,\n num_of_digits=6,\n wm_digits_conf=0.1,\n wm_counter_conf=0.1,\n angle=0.0\n)\nprint(values)\n\nbbox_img.show()\n```",
"bugtrack_url": null,
"license": null,
"summary": "tjwmd",
"version": "2.0.0",
"project_urls": {
"Homepage": "https://github.com/duynguyen02/tjwmd",
"Repository": "https://github.com/duynguyen02/tjwmd"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a083447cd1ab3f573e52bed2dc53135e8d8542ffe95a42968586513dcb826910",
"md5": "48fe7bee3092f018e7abae8f840e006b",
"sha256": "9cb57b25ad1a75779b40892621463882031bc17cb1a0fe06e8ce5a068760f334"
},
"downloads": -1,
"filename": "tjwmd-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "48fe7bee3092f018e7abae8f840e006b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 4185,
"upload_time": "2024-11-01T04:11:08",
"upload_time_iso_8601": "2024-11-01T04:11:08.399227Z",
"url": "https://files.pythonhosted.org/packages/a0/83/447cd1ab3f573e52bed2dc53135e8d8542ffe95a42968586513dcb826910/tjwmd-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0a275cf8f4b7908a687d7c45a5eb8fae0e9391b8580aa96c3881cd0e03e6e8fa",
"md5": "1803c61977cbea330faf7c07c88936ad",
"sha256": "d78851a9d4e72d5227045f80c4df39889472e119a789768b1719fe03713e345a"
},
"downloads": -1,
"filename": "tjwmd-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "1803c61977cbea330faf7c07c88936ad",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3303,
"upload_time": "2024-11-01T04:11:10",
"upload_time_iso_8601": "2024-11-01T04:11:10.103890Z",
"url": "https://files.pythonhosted.org/packages/0a/27/5cf8f4b7908a687d7c45a5eb8fae0e9391b8580aa96c3881cd0e03e6e8fa/tjwmd-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-01 04:11:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "duynguyen02",
"github_project": "tjwmd",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tjwmd"
}