Questions related to the "cvzone" library and Murtaza's Workshop (youtube channel)
Questions tagged [cvzone]
57 questions
0
votes
1 answer
How do I fix my camera and that the image does not stay static?
I'm working on a project where I have to use a tstopwatch and at the same time open the camera and detect the hands, I already have both codes separately, but when I put them together, the camera doesn't work, it stays static, only the timer works,…
0
votes
0 answers
I have been facing a traceback error while running a cvzone module in python (cvzone hand detection project (asl))
given below is the code that is available on the website as well as on the tutorial videohttps://www.youtube.com/watch?v=wa2ARoUUdU8&t=118s
import cv2
from cvzone.HandTrackingModule import HandDetector
import numpy as np
import math
import time
cap…

Titas Kundu
- 9
- 2
0
votes
0 answers
How to resolve "AttributeError: 'HandDetector' object has no attribute 'findPosition'"?
I am getting an error:
Traceback (most recent call last):
File "d:\buh\DynamicTextReader.py", line 68, in
lmList, bboxInfo = detector.findPosition(img)
AttributeError: 'HandDetector' object has no attribute 'findPosition'
When…

Pratyush Dighade
- 1
- 1
0
votes
0 answers
Using cvzone HandDetector with a webcam in Django
I am working on a Django project that involves using a webcam to play a rock-paper-scissors game against a computer. I have implemented the HandDetector algorithm to detect a hand in the webcam video feed, and a Keras classifier to classify the hand…

Seppe Willems
- 126
- 6
0
votes
1 answer
ModuleNotFoundError: No module named 'cvzone'
I'm stuck on a probably stupid thing.
I try to run my code with cvzone but I get the following error:
ModuleNotFoundError: No module named 'cvzone'
Although I have installed this package. I use Spyder.
My conf:
python 3.9.1
cvzone…

Protektor
- 31
- 5
0
votes
2 answers
React native Application with Tensorflow , mediapippe, cvzone
I am going to create a sign language recognition mobile application using React Native. I have already trained the model using Mediapipe and cvzone. but media pipe can not use directly for react native application? how can I do it? I am a beginner…

Tiran Jayasekara
- 39
- 1
0
votes
0 answers
Error: create_int(): incompatible function arguments
I've Been Recently Learning Computer Vision using python to my robotic arm project. So when making a hand detector project, I encountered this error :
Traceback (most recent call last):
File "C:\Users\lenovo…

Raneem
- 1
0
votes
0 answers
AttributeError: module 'HandTrackingModule' has no attribute 'handDetector'
why AttributeError: module 'HandTrackingModule' has no attribute 'handDetector'
cap = cv2.VideoCapture(2)
cap.set(3, 1280)
cap.set(4, 720)
detector = htm.handDetector(detectionCon=0.85)
while True:
#1 Import gambar
success, img = cap.read()
…

Xorizn
- 1
0
votes
0 answers
Program shows all positions of hand landmarks instead of the particular one I'm asking for
I'm following a tutorial and got to 43:45 where the instructor's output shows the positions of landmark no.4 only while mine displays the positions of all landmarks. I've tried copying the solution code for this from the tutorial's website and it…

Tran Bui
- 1
0
votes
1 answer
How to fix an OpenCV AI Hands critical code error in Python?
So I have been watching a video online and was trying to replicate the same project with the same code. It worked in the beginning but after I added another script to my VS Code project folder it completely broke and throws an error every time I run…

Karen Movsesyan
- 1
- 1
0
votes
1 answer
finding and printing bounding box coordinates
I am working on a project involving a face tracker able to follow my face, printing the X-axis coordinate wherever I am on the screen. I have figured out how to get the bounding box to follow my face but have been struggling, with being able to…
0
votes
0 answers
How do I extract the coordinates of the center of each square(bounding box)?
So I need coordinates of centers (blue dots in the bounding box) of each orange squares.
It would be good to put them into the list of tuples.
Here is the code I used to get this image:
import cv2 as cv
import numpy as np
from cvzone.ColorModule…

noca951
- 41
- 2
0
votes
0 answers
Getting the following error c/arithm.cpp:214: error: (-209:Sizes of input arguments do not match)
import cv2
import cvzone
cap = cv2.VideoCapture(0)
cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
overlay = cv2.imread('santa_hat.png', cv2.IMREAD_UNCHANGED)
while True:
_, frame = cap.read()
gray_scale =…

Sakshi Desai
- 1
- 1
0
votes
0 answers
I am developing a program that detects faces and distances and i want to play audio info of the distance at the same time
I have an object detection code, in which i calculate the distance from the face to the camera ? What functions can I use and how to play an audio that says every 2-3 seconds the distance? Thank you
below is the code
import cv2
import cvzone
from…
0
votes
1 answer
No attribute found HandTrackingModule in PyCham
I am working on a mini-project (AI VIRTUAL MOUSE)
I'm using Python 3.8.0(x86 64-bit) & Pycham(2022.1)
I've Installed Libraries & modules such as: NumPy,autopy,OpenCV-python,HandTrackingModule & media pipe
after writing the code I got this…