Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cvzone/cvzone
/ functions
Functions
49 in github.com/cvzone/cvzone
⨍
Functions
49
◇
Types & classes
11
↓ 6 callers
Method
sendData
Send data to the Serial device :param data: list of values to send
cvzone/SerialModule.py:63
↓ 5 callers
Method
findDistance
Find the distance between two landmarks input should be (x1,y1) (x2,y2) :param p1: Point1 (x1,y1) :param p2: Point2
cvzone/PoseModule.py:97
↓ 5 callers
Method
update
Update the frame rate and optionally display it on the image. :param img: Image to display FPS on. If None, just returns the FPS val
cvzone/FPS.py:32
↓ 4 callers
Method
findFaces
Find faces in an image and return the bbox info :param img: Image to find the faces in. :param draw: Flag to draw the output
cvzone/FaceDetectionModule.py:37
↓ 4 callers
Method
fingersUp
Finds how many fingers are open and returns in a list. Considers left and right hands separately :return: List of which finge
cvzone/HandTrackingModule.py:104
↓ 4 callers
Function
rotateImage
Rotates an image around it's center while optionally keeping the original image dimensions. :param imgInput: The input image to be rotated.
cvzone/Utils.py:179
↓ 2 callers
Method
angleCheck
(self, myAngle, targetAngle, offset=20)
cvzone/PoseModule.py:157
↓ 2 callers
Function
downloadImageFromUrl
Download an image from a given URL and return it as an OpenCV image. :param url: The URL of the image to download :param keep_transparen
cvzone/Utils.py:255
↓ 2 callers
Method
draw
(self, img, cVal)
cvzone/PIDModule.py:35
↓ 2 callers
Method
findAngle
Finds angle between three points. :param p1: Point1 - (x1,y1) :param p2: Point2 - (x2,y2) :param p3: Point3 - (x3,y3
cvzone/PoseModule.py:121
↓ 2 callers
Function
findContours
Finds Contours in an image. Sorts them based on area Can use filtration to get based on x corner points e.g. filter = [3,4] will retu
cvzone/Utils.py:86
↓ 2 callers
Method
findDistance
Find the distance between two landmarks input should be (x1,y1) (x2,y2) :param p1: Point1 (x1,y1) :param p2: Point2 (x2,y2)
cvzone/HandTrackingModule.py:135
↓ 2 callers
Method
findFaceMesh
Finds face landmarks in BGR Image. :param img: Image to find the face landmarks in. :param draw: Flag to draw the output on t
cvzone/FaceMeshModule.py:38
↓ 2 callers
Method
findHands
Finds hands in a BGR image. :param img: Image to find the hands in. :param draw: Flag to draw the output on the image.
cvzone/HandTrackingModule.py:47
↓ 2 callers
Method
findPose
Find the pose landmarks in an Image of BGR color space. :param img: Image to find the pose in. :param draw: Flag to draw the
cvzone/PoseModule.py:50
↓ 2 callers
Method
findPosition
(self, img, draw=True, bboxWithHands=False)
cvzone/PoseModule.py:65
↓ 2 callers
Method
getData
Retrieve data from the serial device. :return: list of data received, or None if an error occurred
cvzone/SerialModule.py:77
↓ 2 callers
Method
getPrediction
Classifies the image and optionally draws the result on the image. :param img: image to classify :param draw: whether to dra
cvzone/ClassificationModule.py:44
↓ 2 callers
Method
removeBG
:param img: image to remove background from :param imgBg: Background Image. can be a color (255,0,255) or an image . must be same si
cvzone/SelfiSegmentationModule.py:19
↓ 2 callers
Method
update
(self, cVal)
cvzone/PIDModule.py:18
↓ 1 callers
Function
cornerRect
:param img: Image to draw on. :param bbox: Bounding box [x, y, w, h] :param l: length of the corner line :param t: thickness of the c
cvzone/Utils.py:54
↓ 1 callers
Method
drawBackground
Draw the static background elements of the plot.
cvzone/PlotModule.py:78
↓ 1 callers
Method
findDistance
Find the distance between two landmarks based on their index numbers. :param p1: Point1 :param p2: Point2 :pa
cvzone/FaceMeshModule.py:61
↓ 1 callers
Method
getTrackbarValues
Get the current HSV values set by the trackbars. :return: A dictionary containing the current HSV values from the trackbars.
cvzone/ColorModule.py:38
↓ 1 callers
Method
initTrackbars
Initialize the OpenCV trackbars for dynamic HSV value adjustment.
cvzone/ColorModule.py:27
↓ 1 callers
Function
main
()
cvzone/PIDModule.py:49
↓ 1 callers
Function
main
()
cvzone/HandTrackingModule.py:160
↓ 1 callers
Function
main
()
cvzone/SelfiSegmentationModule.py:40
↓ 1 callers
Function
main
()
cvzone/FaceMeshModule.py:89
↓ 1 callers
Function
main
()
cvzone/PoseModule.py:161
↓ 1 callers
Function
main
()
cvzone/Utils.py:278
↓ 1 callers
Function
main
()
cvzone/FaceDetectionModule.py:69
↓ 1 callers
Function
overlayPNG
Overlay a PNG image with transparency onto another image using alpha blending. The function handles out-of-bound positions, including negat
cvzone/Utils.py:136
↓ 1 callers
Function
putTextRect
Creates Text with Rectangle Background :param img: Image to put text rect on :param text: Text inside the rect :param pos: Starting p
cvzone/Utils.py:224
↓ 1 callers
Function
stackImages
Stack Images together to display in a single window :param _imgList: list of images to stack :param cols: the num of img in a row :pa
cvzone/Utils.py:13
↓ 1 callers
Method
update
Find a specified color in the given image. :param img: The image in which to find the color. :param myColor: The color to fi
cvzone/ColorModule.py:56
↓ 1 callers
Method
update
Update the plot with a new y-value. :param y: The new y-value to plot :param color: RGB color for the plot line :re
cvzone/PlotModule.py:40
Method
__init__
:param trackBar: Whether to use OpenCV trackbars to dynamically adjust HSV values. Default is False.
cvzone/ColorModule.py:15
Method
__init__
(self, pidVals, targetVal, axis=0, limit=None)
cvzone/PIDModule.py:9
Method
__init__
:param mode: In static mode, detection is done on each image: slower :param maxHands: Maximum number of hands to detect :para
cvzone/HandTrackingModule.py:21
Method
__init__
:param model: model type 0 or 1. 0 is general 1 is landscape(faster)
cvzone/SelfiSegmentationModule.py:10
Method
__init__
Initialize FPS class. :param avgCount: Number of frames over which to average the FPS, default is 30.
cvzone/FPS.py:22
Method
__init__
Initialize the LivePlot object. :param w: Width of the plotting window :param h: Height of the plotting window :para
cvzone/PlotModule.py:13
Method
__init__
:param staticMode: In static mode, detection is done on each image: slower :param maxFaces: Maximum number of faces to detect
cvzone/FaceMeshModule.py:18
Method
__init__
:param mode: In static mode, detection is done on each image: slower :param upBody: Upper boy only flag :param smooth: Smooth
cvzone/PoseModule.py:17
Method
__init__
Initialize the serial object. :param portNo: Port Number :param baudRate: Baud Rate :param digits: Number of digits
cvzone/SerialModule.py:18
Method
__init__
Initializes the Classifier with the model and labels. :param modelPath: str, path to the Keras model :param labelsPath: str,
cvzone/ClassificationModule.py:18
Method
__init__
:param minDetectionCon: Minimum confidence value ([0.0, 1.0]) for face detection to be considered successful. See details in
cvzone/FaceDetectionModule.py:19
Method
empty
An empty function to pass as a parameter when creating trackbars.
cvzone/ColorModule.py:23