Skip to main content

Basic Pose estimation Module

Project description

Pose Estimation

import cv2

import time

from PoseDetector.PoseModule import PoseDetector  #posedetector module



cap = cv2.VideoCapture(0)

pTime = 0

detector = PoseDetector()

while True:

    success, img = cap.read()

    img = detector.findPose(img)

    lmList = detector.getPosition(img)

    print(lmList)



    cTime = time.time()

    fps = 1 / (cTime - pTime)

    pTime = cTime



    cv2.putText(img, str(int(fps)), (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 3)

    cv2.imshow("Image", img)

    cv2.waitKey(1)

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

PoseEstimator-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PoseEstimator-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file PoseEstimator-0.0.1.tar.gz.

File metadata

  • Download URL: PoseEstimator-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.0

File hashes

Hashes for PoseEstimator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ce88e136eaaca798f02ced1f905893dbcd93dd5af6490244bc8e0ec6e8ee601
MD5 4d8234d4e0348867b7f14a8bcb376da8
BLAKE2b-256 fbf3879dbd7eb91a4a4f750e933882163b0118838507fc919433c3bd0549e8f4

See more details on using hashes here.

File details

Details for the file PoseEstimator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: PoseEstimator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.0

File hashes

Hashes for PoseEstimator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7ce87072e7a2ab7f71c8f31816a195e2213c4b90e8f3e6bfb3ab438cfaffae
MD5 743984f82230effdd0687269c1ee4678
BLAKE2b-256 e09268866f3c5830ea1ccd4be6304f20c862d9797b06a884d795216f140483ab

See more details on using hashes here.

Supported by

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