Skip to main content

A package to help you utilise landmarks in the face_landmark feature of google open source mediapipe.

Project description

py_face_landmark_helper

A package to help you utilise landmarks in the face_landmark feature of google open source mediapipe.

Installation

To install the mediapipe_helper library, you can use pip:

pip install mediapipe_helper

or

git clone https://github.com/LearningnRunning/py_face_landmark_helper

python setup.py install
from mediapipe_helper import face_landmark_helper

# Create an instance of FaceMeshProcessor
face_mesh_processor = face_landmark_helper.FaceLandmarkProcessor()
img_path = ""

# Call the convert_landmark method to get the face landmarks
face_landmarks = face_mesh_processor.convert_landmark(img_path)

lmk_idx = 170
lmk_invert = face_mesh_processor.invert_landmark(lmk_idx)
# OUTPUT: 395

lmk_idx = [170, 171, 180, 190]
lmk_invert_list = face_mesh_processor.invert_landmark_list(lmk_idx)
# OUTPUT: [395, 396, 404, 414]

License

mediapipe_helper is provided under the Apache License 2.0.

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

mediapipe_helper-0.0.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

mediapipe_helper-0.0.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file mediapipe_helper-0.0.3.tar.gz.

File metadata

  • Download URL: mediapipe_helper-0.0.3.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mediapipe_helper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b26152b5e648e3867715d185c4037e108421492f361907306b9047c20446ce96
MD5 068919f75862cfd212285c0285f6d58d
BLAKE2b-256 e4efa88af3a5e1d9bfb59b0c5c7fe9eef2e11c90a20816f7bcdd51eb15e48b3d

See more details on using hashes here.

File details

Details for the file mediapipe_helper-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mediapipe_helper-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e2dfa17166108724a85cd9bd9e11fbb5826adc92d0a204c9d0ec2569913f7e
MD5 eb44065cd3a334c87e095be16f98d9e2
BLAKE2b-256 366bdf4eaa1eb6c63a0b44f350b437a9a5425e7cb3f43ba5f0dc1c66d8de28f1

See more details on using hashes here.

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