Questions related to the "cvzone" library and Murtaza's Workshop (youtube channel)
Questions tagged [cvzone]
57 questions
-1
votes
1 answer
Why doesn't my OpenCV web application using Flask work when hosted on DigitalOcean?
I am having issues hosting a sign language detection application on DigitalOcean. It is supposed to use openCV to access the user's laptop webcam, sends the frames to the model to predict the sign the user is doing and show the translation in text.…

DebbyVerseYT
- 11
-1
votes
1 answer
got a value error while working with opencv
this is my code
import cv2
from cvzone.HandTrackingModule import HandDetector
import keyboard
import time
from pynput.keyboard import Controller
import datetime
import pyautogui
wcam ,hcam = 640,480
framer = 150
cap =…

Rathore Brothers
- 77
- 1
- 9
-1
votes
2 answers
Combining two scripts [ Mirroring the webcam ]
Dear friends in Stack overflow, I have problems in combining these two scripts in my virtual Keyboard project. The project is based on Python 3 and OpenCV. Please help.
Details of import
CVZone 1.41
Mediapipe 0.88
Script 1:
import cv2
from time…

ngkenx98
- 3
- 2
-1
votes
1 answer
Python Hand tracking script crashing with a KeyError: 2 error
I'm testing out a hand tracking volume control script. It runs but when I bring my hand into frame it instantly crashes. I get this error message:
area = (bbox[2] - bbox[0]) * (bbox[3] - bbox[1]) // 100 KeyError: 2
If I comment out area =…

Stevon
- 31
- 1
-1
votes
1 answer
How do I count the number of nonzero pixel using frames in live camera? It works with image but it doesn't in frames. I'm using opencv
import cv2
import pickle
import cvzone
import numpy as np
#video feed
cap = cv2.VideoCapture(0)
with open("CarParkPos", "rb") as f:
posList = pickle.load(f)
width, height = 100, 50
def checkParkingSpace(frameProcess):
for pos in…
-1
votes
1 answer
Even after installing cvzone Im unable to import HandDetector from cvzone.HandTrackingModule
import cv2
from cvzone.HandTrackingModule import HandDetector
web_cam= cv2.VideoCapture(1)
while True:
success,img = web_cam.read()
img = cv2.flip(img,1)
#display image
cv2.imshow('Image', img)
cv2.waitKey(1)

Nandish
- 1
- 1
- 1
-1
votes
2 answers
Python mediapipe handdetector error: create_int(): incompatible function arguments
HandTracking.py (Main Python File) this is my main Python File where I run the code using VSCODE
I'm just following the Youtube Video from
Murtaza's Workshop - Robotics and AI
import cv2
import numpy as np
import HandTrackingModule as htm
import…

ROM -
- 1
- 1
-1
votes
1 answer
Face_recognition list out of range error in python
Hy guys based on then last question that I asked in which I haven't gotten a correct answer.
I want to write a program with face_recognition library. Its purpose is to save an image clip of a new face to a folder, updates the folder so as not to…

KUDOS
- 1
- 2
-2
votes
2 answers
Python Error Traceback (most recent call last):
I am trying the build a hand tracker in python.
there is my code
import cv2
from cvzone.HandTrackingModule import HandDetector
cap = cv2.VideoCapture(0)
detector = HandDetector(detectionCon=0.8, maxHands=1)
while True:
success, img =…

Alzayer70
- 11
- 1
- 3
-2
votes
1 answer
Python, cvzone - why do i get this ValueError?
I am trying to zoom into a picture with usage of two hands (gesture controled image zoom), but when trying to use two hands I get this error but I don't know why. When making my program I followed this tutorial:…

gasper_thebeast101
- 84
- 8
-3
votes
3 answers
How to solve "cv2.error: OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'imshow'"
I'm learning how to use opencv, but I'm running into this problem.
from cvzone.HandTrackingModule import HandDetector
import cv2
cap = cv2.VideoCapture("https://192.168.178.49:8080/video")
detector = HandDetector(maxHands=1,…

Roger Mas
- 47
- 1
- 1
- 6