I want to remove the thumb from the Hand landmark tracking Mediapipe model to only track my 4 fingers without the thumb. How can I do that? Here’s what I have done so far and I was able to remove the unwanted CONNECTIONS by defining a custom connections list. But still landmark dots/points visible. How can I remove them?. Thank
Tag: opencv
I’m not able to get the correct homography points
I’m trying to create homography matrix from this field: (source image with ids:) To the destination image: The points for the source points are: And the points for destination points (new image): I tried to create homography matrix with the following code: And I got the following homography matrix: I tried to check if the homography matrix is correct, so
Python – OpenCV connectedComponents – user input + selecting feature/label
I have two images, let’s call them image 1 and image 2. I can use the following to select a random feature in image 1 and display it: Which will display an image such as: So the idea is that that is the feature from the previous frame (image 1), and then the user will select where that feature is
Scikit Image load binary image and convert to binary matrix
I have created a numpy array shape(11 x 11) with all pixels 0 excluding one column filled with 1. The array was saved as a png image using matplotlib.imsave yielding the expected image – black background with a white line in the middle. When trying to reimport the saved png image skipy.imread and Pil.Image.Open yield an array of the form
python – check presence of predefined color ranges in image
I would need to verify if and how much of certain predefined color ranges are present in a image file. each color range is defined by 6 variables and a counter in a colorRange class: The image can either be a file, or loaded from the camera. Following code loads the image from the camera buffer: what I would need
Python, crop an image to extract a single side of it
I have an image and the vertexs of each sides of it, meaning that, if we see each side as a segment (A,B) i have both the A and B point coordinates. Now i would like to crop the image so that i have only one segment of the image (which is the side), for example That’s just one side
Constant camera grabbing with OpenCV & Python multiprocessing
I’m after constantly reading images from an OpenCV camera in Python and reading from the main program the latest image. This is needed because of problematic HW. After messing around with threads and getting a very low efficiency (duh!), I’d like to switch to multiprocessing. Here’s the threading version: And – Can someone please help me translate this to multiprocess
OpenCV finding number of rectangles and writing to video
I have a code that detects cars using haar cascade car model, draws rectangles around the detected cars, and generates a video file. I am trying to update the code to show the number of detected cars in each frame. When I execute this, some frames have numbers overlaid on each other. I want only one count written on each
OpenCV(4.5.5) error: (-5:Bad argument) in function ‘putText’
Answer In fact, this is a problem caused by the format of the image itself. There is an incompatibility issue with opencv. I don’t know if it’s a bug. This problem can be solved in two ways. or
Find end point on each line using OpenCV
I’m trying to get the coordinate of every end point on every line, but i couldn’t come up with a solution, this is what I’ve currently got but its finding the outline of the lines not the lines itself Answer The hit-or-miss transform can be used to find end points of a line after skeletonization. Code: