用 pillow 画目标检测的框,支持中文(自带字体)
Project description
用 pillow 画目标检测的框,支持中文(自带字体)
用法见
#!/usr/bin/env python
from imgbox import imgbox
from PIL import Image
from os.path import abspath, dirname, join
DIR = dirname(abspath(__file__))
img = join(DIR, 'test.webp')
img = Image.open(img)
imgbox(img, ('测试', (30, 30, 60, 60)))
img.save(join(DIR, 'box.webp'), quality=80)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
File details
Details for the file imgbox-1.0.8-py3-none-any.whl.
File metadata
- Download URL: imgbox-1.0.8-py3-none-any.whl
- Upload date:
- Size: 5.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284d5d484f64f80b8f79f76ee7df08d92de21286d2a501b977b5c9bc11bbd5b8
|
|
| MD5 |
98a2ff078e633f65552c0d2698e93875
|
|
| BLAKE2b-256 |
ac742e42bdeb3fcf1fc6aa46deb13e3760f3a9988f1bb713d0112a38de5848ad
|