Skip to main content

Direct Implementation of computer vision with just a line of code

Project description

More about coterie

It is a package having pre-built codes of face recognition, hands tracking module and body pose tracking. Implemented with a single line of code.

https://www.lakshaykumar.tech/

What Is This?

Implement the power of Computer Vision in your program with just few simple lines of code. Hand detection, Body Pose and face Recognition modules are included in this package

faceProcessor(image, draw=False)

This function returns a 1D list of 3 items. Image (with rectangular box, if drawArea=True), area of face and [x,y,w,h]

bodyProcessor(image, draw=False)

This function returns a list of 3 items i.e. Image (with rectangular box, if drawArea=True), list of body points and area of body.

handProcessor(image, draw=False)

This function returns a list having image (with hand connections, if drawArea=True) and points in handlandmarks

Usage

faceProcessor(image, draw=True)

from coterie import faceProcessor
import cv2
cap = cv2.VideoCapture(0)
while True:
    success, image = cap.read()
    funValues = faceProcessor(image,draw=True)
    image = funValues[0]
    area = funValues[1]
    x,y,w,h = funValues[2]
    cv2.imshow('Faces', image)
    cv2.waitKey(1)
cap.release()

bodyProcessor(image, draw=True)

from coterie import bodyProcessor
import cv2
cap = cv2.VideoCapture(0)
while True:
    success, image = cap.read()
    funValues = bodyProcessor(image,draw=True)
    image = funValues[0]
    poseList = funValues[1]
    area = funValues[2]
    cv2.imshow('Body Posture Detection', image)
    cv2.waitKey(1)
cap.release()

handProcessor(image,draw=True)

from coterie import handProcessor
import cv2
cap = cv2.VideoCapture(0)
while True:
    success, image = cap.read()
    funValues = handProcessor(image,draw=True)
    image = funValues[0]
    handLms = funValues[1]
    cv2.imshow('Hand Gesture Controller', image)
    cv2.waitKey(1)
cap.release()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cvindrones-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvindrones-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for cvindrones-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b1cd862b1cc47e4511c10a7aa5aedf06265ec02fb8f6c1564a5266dbc0116e3
MD5 4dcd9dcf2a3944ce08a877de5afdd723
BLAKE2b-256 2071746ba41b8e9b9153768082eee7a7036e195d92b6318c4e883fee805e9e74

See more details on using hashes here.

Supported by

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