Skip to main content

Package dung de inference model yolov5 voi custom object

Install

pip install yolov5-inference==0.6

Use

from yolov5_inference.infer import DetectObject
class_name = {0: 'text', 1: 'title', 2: 'list', 3: 'table', 4: 'figure'}
model = DetectObject(weights='../path/of/weights', classes=class_name)
img_path = '../path/of/img'
img = cv2.imread(img_path)
rs = model.detect(img)
# [x_min, y_min, x_max, y_max, cls]

Metadata

Release files for yolov5-inference 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yolov5-inference 0.8
File Size Uploaded Provenance Actions
yolov5_inference-0.8.tar.gz 63.1 kB Without provenance Details for yolov5_inference-0.8.tar.gz

Release files / yolov5_inference-0.8.tar.gz

Download URL yolov5_inference-0.8.tar.gz
Size 63.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6edb75a25ec2cb0f14f72082326a7f34a7faefe0832d196cdd0cbb5a2eba6f6a
BLAKE2b-256 checksum
How to use checksums
0eb10760a9d5dcf46000826886b1cbabc345213d9d6cc289206124551b5ed158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.13

Security for yolov5-inference 0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page