Towards a subset reimplmention of Mediapipe with OpenVINO tool.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file MediapipeOpenvino-0.0.2.tar.gz
.
File metadata
- Download URL: MediapipeOpenvino-0.0.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa847830ecdbc0c2409d4f96d321cafcfe03e897759e15494c39af4acdfd65f3 |
|
MD5 | c6f88f6704647268cf3a55ed298e7106 |
|
BLAKE2b-256 | ff26bdda477e095fba1fb343de668bf58a428e1dd267fff68b86cacda77038b6 |
File details
Details for the file MediapipeOpenvino-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: MediapipeOpenvino-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f5e0aa471983ed8d5db321b3cee2a372a9eea9c2e0b49c97be486f942df089f |
|
MD5 | 73da55159d5e832de6df383220b7e2db |
|
BLAKE2b-256 | 0c775c4bbc85d28fbd2719689f4331910cadae3d98375ba9321b027c29aab502 |