Skip to main content

metahb

metahb部署通用框架

1、安装最新版 meta-cv

pip install meta-cv

2、安装最新版 meta-hb

pip install meta-hb

3、目标检测示例(参考detection_demo.py代码)

import platform, cv2
import metahb as mh

Detection = mh.DetectionHB

y = Detection(model_path='models/yolov8m.onnx' if platform.machine() == 'x86_64' else 'models/yolov8m.bin',
              input_width=640,
              input_height=480,
              confidence_thresh=0.5,
              nms_thresh=0.3,
              class_names=classnames,
              device_id=0)

img = cv2.imread('models/bus.jpg')
_dets, _scores, _labels = y.predict(cv2.cvtColor(img, cv2.COLOR_BGR2RGB), use_preprocess=True)

# 显示
y.show(img, _dets, _scores, _labels)
cv2.imwrite("models/bus.png", img)

4、实例分割示例(参考segment_demo.py代码)

import platform, cv2
import metahb as hb

Segment = mr.SegmentHB

y = Segment(model_path='models/yolov8m-seg.onnx' if platform.machine() == 'x86_64' else 'models/yolov8m-seg.bin',
            input_width=640,
            input_height=480,
            confidence_thresh=0.5,
            nms_thresh=0.3,
            class_names=classnames,
            device_id=0)

img = cv2.imread('models/bus.jpg')
_dets, _scores, _labels = y.predict(cv2.cvtColor(img, cv2.COLOR_BGR2RGB), use_preprocess=True)

# 显示
y.show(img, _dets, _scores, _labels)
cv2.imwrite("models/bus.png", img)

Metadata

Release files for meta-hb 0.1.0

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

Source distribution (sdist)

Source distribution for meta-hb 0.1.0
File Size Uploaded Provenance Actions
meta-hb-0.1.0.tar.gz 2.8 kB Without provenance Details for meta-hb-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meta-hb 0.1.0
File Interpreter ABI Platform Actions
meta_hb-0.1.0-py3-none-any.whl Python 3 none any Details for meta_hb-0.1.0-py3-none-any.whl

Total release size: 7.6 kB

Release files / meta-hb-0.1.0.tar.gz

Download URL meta-hb-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1eddded50bd31eb8b1005a54d5f2dbf06848e1849cd4a462939c5235f117cd39
BLAKE2b-256 checksum
How to use checksums
b9bf62e417d68863b928434cbb25ca1279477cc3bcaf284c7e390a8d2c9ffa45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

Release files / meta_hb-0.1.0-py3-none-any.whl

Download URL meta_hb-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d73a9bae613a277b1a85f790a87cb091010a29b67499c7bd7d869b6cc4fb4820
BLAKE2b-256 checksum
How to use checksums
966dbd27e8297ef42ac62187b4ea5e6bd95a6538bac6931163ab09bedb92bee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

Security for meta-hb 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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