Skip to main content

A Python library simplifying OpenCV and MediaPipe into simple 20-line APIs.

Project description

YasirVision 🚀

A Python library designed to simplify complex OpenCV + MediaPipe computer vision projects into easy-to-use APIs. Turn 300+ lines of repetitive code into clean, 20-line scripts!

Installation

pip install yasirvision

(Or clone this repository and run pip install .)

Features

YasirVision provides both a highly customizable HandDetector class and out-of-the-box demo functions.

1. Standalone Demo Features

Want to run a feature immediately without writing a while True loop?

import yasirvision as yv

yv.hand_tracking()          # Simple hand tracking
yv.virtual_drawing_canvas() # Draw in the air with your index finger!
yv.gesture_control()        # Modular gesture control (pinch, volume, cursor)
yv.finger_counter()         # Count how many fingers are held up
yv.air_write()              # Simplified air writing canvas

2. Custom Integration (Core API)

Use the HandDetector class to build your own computer vision logic in under 20 lines.

import cv2
from yasirvision import HandDetector

cap = cv2.VideoCapture(0)
detector = HandDetector(detectionCon=0.8)

while True:
    success, img = cap.read()
    img = detector.find_hands(img)
    lmList = detector.find_position(img)
    
    if lmList:
        fingers = detector.fingers_up()
        print(f"Fingers up: {fingers}")

    cv2.imshow("Hand Tracking", img)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

Recording a Demo

To record a showcase video for LinkedIn or GitHub, simply run the included record_demo.py script locally.

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

yasirvision-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

yasirvision-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file yasirvision-0.1.0.tar.gz.

File metadata

  • Download URL: yasirvision-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for yasirvision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbd5646f8479fc139f5599713a8a9ebbae26610a99177716c9f390376d0f0b57
MD5 0d3c36c023a3bb7f256a74a69d6e0b12
BLAKE2b-256 27efe404f25fedca30b7242b096f0ab7687c300d63ff66e3efd887feb111de81

See more details on using hashes here.

File details

Details for the file yasirvision-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yasirvision-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for yasirvision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78b1e002bf885a9984e39aa41b8c36d25157207086e35839bcf68e9aa39a8b6
MD5 f87dc282f82a920293caf87f4c38301d
BLAKE2b-256 d133f09cd7802694a55fb96384d43398752c8196313f4f93220bbdbdcb189014

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