tjwmd
Project description
tjwmd
Installation
pip install tjwmd
Quick Start
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tjwmd-2.0.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tjwmd-2.0.0-py3-none-any.whl
(4.2 kB
view details)
File details
Details for the file tjwmd-2.0.0.tar.gz.
File metadata
- Download URL: tjwmd-2.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78851a9d4e72d5227045f80c4df39889472e119a789768b1719fe03713e345a
|
|
| MD5 |
1803c61977cbea330faf7c07c88936ad
|
|
| BLAKE2b-256 |
0a275cf8f4b7908a687d7c45a5eb8fae0e9391b8580aa96c3881cd0e03e6e8fa
|
File details
Details for the file tjwmd-2.0.0-py3-none-any.whl.
File metadata
- Download URL: tjwmd-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cb57b25ad1a75779b40892621463882031bc17cb1a0fe06e8ce5a068760f334
|
|
| MD5 |
48fe7bee3092f018e7abae8f840e006b
|
|
| BLAKE2b-256 |
a083447cd1ab3f573e52bed2dc53135e8d8542ffe95a42968586513dcb826910
|