Skip to main content

Towards a subset reimplmention of Mediapipe with OpenVINO tool.

Reason this release was yanked:

Bug version

Project description

MediapipeOpenvino

This is a subset reimplemention of Mediapipe with OpenVINO tool.

Usage Example

Face Detection

import cv2
import numpy as np
from MediapipeOpenvino.face_detection import FaceDetection

frame = cv2.imread("xx") ## Currently, we only support HWC format.
fd = FaceDetection()

re = fd(frame)

for batch in re: ## This version only support one image. This is a dummy loop.
    for dec in batch:
        img = cv2.rectangle(frame, (int(dec.xmin*w),int(dec.ymin*h)), (int(dec.xmax*w),int(dec.ymax*h)), (255, 0, 0), 1)
cv2.imwrite("test.jpg",frame)

Copyright

All the copyright in this code lies on the Mediapipe. We just follow the original implementation and use Python to achieve the same result.

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

MediapipeOpenvino-0.0.1-1.tar.gz (1.7 MB view hashes)

Uploaded Source

Built Distribution

MediapipeOpenvino-0.0.1-1-py3-none-any.whl (1.7 MB view hashes)

Uploaded Python 3

Supported by

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