Skip to main content

A patch for Ultralytics YOLO to optimize label layout using labellayout.

Project description

ultralytics 画图补丁

这是一个用于 Ultralytics YOLO 的补丁工具,用于解决密集目标检测时的标签重叠问题。

安装

pip install smart-label-plotter

如何使用

from smart_label_plotter import SmartLabelPlotter
from ultralytics import YOLO

# 1. 初始化并注册补丁
plotter = SmartLabelPlotter()
plotter.register()

# 2. 正常运行 YOLO 推理
model = YOLO("yolov8n.pt")
results = model("path/to/image.jpg")

# 3. 绘制结果 (补丁会自动生效)
res_plotted = results[0].plot()

效果图

效果图

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_label_plotter-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

smart_label_plotter-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file smart_label_plotter-0.0.2.tar.gz.

File metadata

  • Download URL: smart_label_plotter-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for smart_label_plotter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bd39135c78436fca17f6528c79632c18c546eb9c08235493622fdee55b1aec52
MD5 bf280f4dea35cf72c5ff86409ad16cb2
BLAKE2b-256 285dbfd2f85c088c86ffc073480959b15f1c82a91a5d2f79a0e1652b0854a49d

See more details on using hashes here.

File details

Details for the file smart_label_plotter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_label_plotter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec2b3b2a848e4c870441461cf6f56e10881e4f8eea91b13cec4576694af8a92
MD5 f879f8275afb30415706bfaa011cbba1
BLAKE2b-256 88ef18a9ebbff4eeee7edaad0fbeb05737c97c448ca2dd234ea6abc24612cd7a

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