Questions related to the "cvzone" library and Murtaza's Workshop (youtube channel)
Questions tagged [cvzone]
57 questions
3
votes
1 answer
How to print every x seconds while rest of code runs without being stopped?
I've seen ways of using the time.sleep() function, however that stops the rest of the code from running.
I'm making a hand recognition script and want the video output to be hindered by a certain value being printed every second.
This is my…

Roger Mas
- 47
- 1
- 1
- 6
2
votes
1 answer
error while running the opencv python hand tracking module
I'm learning Opencv-Python and i was following a tutorial of Hand Tracking Module from Murtaza's Workshop - Robotics and AI
here is the code I wrote in Pycharm Community Edition (if that helps):
import cv2
import mediapipe as mp
import time
class…

Aryan GS
- 39
- 5
1
vote
0 answers
PoseModule.py Method detector.findAngle ValueError: too many values to unpack (expected 2)
i have a problem using PoseModule in Pose Estimation app
while True:
img = detector.findPose(img)
lmList = detector.findPosition(img, False)
if len(lmList) != 0:
detector.findAngle(img, 11, 13, 15)
And i have this message:
--->…

leo_nidas300
- 11
- 1
1
vote
2 answers
Cannot import cvzone in VSCode though correctly installed
I am trying to work with cvzone library in Python using VSCode. I have installed the library using
pip install cvzone. But when trying to import the library, ModuleNotFoundError is being raised.
import cvzone
Output
ModuleNotFoundError: No module…

soucs
- 35
- 5
1
vote
2 answers
ModuleNotFoundError: No module named 'cvzone' in visual studio code
I was trying to import cvzone and cv2 library in vs code but it gives this error no matter what I do.
Tried to install this through cmd with pip and vs code (again, with pip) but nothing changes
python version 3.11.2
pip version 22.3.1

Miras Zhumazhan
- 31
- 3
1
vote
0 answers
Why pre-trained SSD mobilenet V3 model works but not pre-trained SSD mobilenet V2?
Recently I successfully wrote a python script utilizing SSD mobilenet V3 model (2020_01_14) that later was incorporated into the Raspberry Pi to detect objects in real time with voice feedback utilizing an external webcam (piCamera for the Raspberry…

LovePlayingChess
- 33
- 3
1
vote
2 answers
can't find findposition :AttributeError: 'HandDetector' object has no attribute 'findPosition'
version('cvzone')=1.5.0
the code is below:
while True:
success, img = cap.read()
img= detector.findHands(img)
lmlist,_=detector.findPosition(img)
cv2.imshow("Image", img)
if cv2.waitKey(1) & 0xFF == ord('q'):
…

ysfjoe
- 51
- 2
- 2
- 4
0
votes
0 answers
Uncaught DOMException while using Opencv
I have been trying to deploy my computer vision project on web, but when using OpenCV package for showing up the image through JavaScript file, it prompts an error
Uncaught DOMException DOMException: Failed to execute 'getImageData' on…

Tony Alosius
- 11
- 3
0
votes
0 answers
OpenCV Error: 215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
I do not use to work with python, and I a need your help.
This is my code:
import cv2
from cvzone.PoseModule import PoseDetector
cap = cv2.VideoCapture('Video.mp4')
detector = PoseDetector()
posList = []
while True:
success, img = cap.read()
…
0
votes
1 answer
How can I fix this error? ValueError: too many values to unpack (expected 2)
import cv2 as cv
import csv
from cvzone.HandTrackingModule import HandDetector
import cvzone as cvz
# Declaring the cap variable to start Camera activity
cap = cv.VideoCapture(0)
cap.set(3, 1280)
cap.set(4, 720)
detector =…

Roshan
- 11
- 4
0
votes
0 answers
(arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
TypeError: create_int(): incompatible function arguments. The following argument types are supported:
1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
I'm getting this error when I try and run a virtual keyboard code
Traceback…

Carol Dsilva
- 1
- 2
0
votes
0 answers
How to save faces detected by cv zone
I have code that detects a face. All I want to do is save the detected face as a jpg
Here is the code f
import cv2 as cv
import numpy as np
from cvzone.FaceDetectionModule import FaceDetector
from cvzone.FaceMeshModule import FaceMeshDetector
cap…

mahdi m
- 1
0
votes
1 answer
unable to install lap==0.4.0 library in python
I was trying to install lap for object detection but i cloud not do it.
I have try to installed it on python version 9 , 10 and 11 also but i cant do it
I am learning object detection from
Murtaza's Workshop - Robotics and AI.
or is there any way…
0
votes
1 answer
module 'cvzone' has no attributed 'Classifier'
Trying to make a program identifying sign language but encountered this problem. Im expecting it to use my webcam to see which ASL sign I am showing on the webcam.
0
votes
1 answer
How to implement a OpenCV code on ROS Melodic
I made on Ubuntu an OpenCV code to detect a person, now I'm trying to pass this code to ROS Melodic but this gives me the next error:
File "/ws/src/vision-car/scripts/yolo-cam.py", line 70
cvzone.putTextRect(img,f"{currentClass}…

MikeyFlores
- 1
- 2