Skip to main content

用 pillow 画目标检测的框,支持中文(自带字体)

Project description

用 pillow 画目标检测的框,支持中文(自带字体)

用法见

→ test.py

#!/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

If you're not sure about the file name format, learn more about wheel file names.

imgbox-1.0.8-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

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

Hashes for imgbox-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 284d5d484f64f80b8f79f76ee7df08d92de21286d2a501b977b5c9bc11bbd5b8
MD5 98a2ff078e633f65552c0d2698e93875
BLAKE2b-256 ac742e42bdeb3fcf1fc6aa46deb13e3760f3a9988f1bb713d0112a38de5848ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page