Questions tagged [cvzone]

Questions related to the "cvzone" library and Murtaza's Workshop (youtube channel)

57 questions
0
votes
0 answers

CV2 full screen with background overlay

Hey python friends. Sorry for the long code. Am doing a pong hand tracking for a project and need a full screen, the full screen works but i have an error with img = cv2.addWeighted(img, 0.2, imgBackground, 0.8, 0) Regarding the background…
Yoan Tufel
  • 45
  • 9
0
votes
1 answer

cvzone PoseDetector: Python OpenCV and mediapipe - ValueError: too many values to unpack

I'm trying to run the cvzone gesturedetection.py code using OpenCV (version 4.4.0.4). When I run the code, I see my webcam image for 2 seconds and then it closes immediately. I then get an error stating that there are issues with capturing the…
sos.cott
  • 435
  • 3
  • 17
0
votes
2 answers

cvzone WARNING:root:Serial Device Not Connected

I'm trying to use the cvzone module to connect my python file to arduino but i cant seem to connect to my port "COM3" even though i made sure that it's turned on (arduino shows Port: "COM3") from cvzone.SerialModule import SerialObject import…
0
votes
1 answer

How can I add a white background to a pre-recorded video using OpenCV

How can I add a white background to a video using OpenCV? I used this youtube video to get a white background for a real-time video using this code: import cv2 import cvzone from cvzone.SelfiSegmentationModule import SelfiSegmentation cap =…
0
votes
1 answer

my code is not working i am trying to make a hand operated game but showing error

here is MY code: import math import random import cvzone import cv2 import numpy as np from cvzone.HandTrackingModule import HandDetector cap = cv2.VideoCapture(2) cap.set(3, 1280) cap.set(4, 720) detector = HandDetector(detectionCon=0.8,…
0
votes
4 answers

OpenCV python: ValueError: too many values to unpack , img

I am writing an opencv project which is a fingers distance finder and making an image(its complicated to explain but I try my best. When i run the script, I get this error Traceback (most recent call last): File…
goodcoder
  • 33
  • 3
0
votes
2 answers

Why does python say that there is an attribute error for cvzone.Classifier()

I am trying to make object recognition in python and I am having this error message come up when I run my code: AttributeError: module 'cvzone' has no attribute 'Classifier' This is my code: import cvzone import cv2 cap =…
AstroGuy
  • 56
  • 6
0
votes
1 answer

How to find co-ordinates of a specific Landmark point in Opencv Python

I want to get the coordinates of a moving landmark point where an object is moving. I tried to detect select a point first. I am a beginner at OpenCV and python. Don't know any function exist or not. import cvzone import numpy as np from…
0
votes
1 answer

The code I wrote with hand tracking module and mediapipe gives an error

I was making the sound off/on video when I closed my hand, but I got an error in the first code, what is the reason? I get the following error: raceback (most recent call last): File "c:\Users\yegen\Desktop\ses denemeeeeee\sesdeneme2.py", line 15,…
apr yegn
  • 1
  • 1
0
votes
0 answers

Overlaying 2 transparent png to get another transparent png

I am using cvzone to overlay one transparent image onto another image and then saving them using PIL, but the resultant image does not have a transparent background import cvzone import cv2 import numpy as np import PIL from PIL import…
0
votes
1 answer

Import error:DLL load failed:The specific module could not be found

I am trying to execute handtracking module program,but I am getting this dll error while trying to import handtracking module Program code: import cv2 from cvzone.HandTrackingModule import HandDetector detector=HandDetector(detectionCon=0.8) cap…
0
votes
1 answer

Python cvzone - error when making AR paint

I am trying to make an AR paint program using python and opencv library, but for some reason when I run my code the program does not draw the line and I don't know why. I followed this tutorial on yt:…
0
votes
1 answer

I am having a problem regarding the type error in python. I am trying to create a virtual mouse. I have created a module for it

**I am trying to create a virtual mouse. I am using packages like opencv-python, mediapipe, time, numpy, And also my own package. But seems to have some error. Can you help me on it. At first I have created the Module. Then the mouse itself. But I…
0
votes
1 answer

Python opencv/cvzone - UnboundLocalError

I am trying to make a ar mouse (camera vould detect your hand and than your finger vould be the mouse). But when checking which fingers are up I get an error. When making this program I followed this tutorial:…
0
votes
0 answers

Problem with python binary_graph_path in Pycharm Windows 10 computer

I am trying to run a facedetector program from cvzone in PyCharm. This is a brand new PC and I installed mediapipe in Pycharm as I have done in other computers. for a reason I do not understand I get this…