I am trying to stream frames using OpenCV and Gstreamer in Python. I’m on a 64 bit Bulseye Raspberry Pi 4. This is the pipeline I am using on the Raspberry: It seems to be some problem with v4l2h264enc. Enabling GST_DEBUG=4 gives me These two errors look most important to me, but you can see the full log here. Using
Tag: opencv
OpenCV text and shapes look vague on my PC compared to other PC
I have a python script that draws text and shapes using the OpenCV library. The text and shapes look great on my Ubuntu PC (ran in VirtualBox) with 1920×1080 resolution. When I run the exact script on my own Windows 11 system with the same 1920×1080 resolution it looks really vague. This is is the main part of the OpenCV
cv2.boundingRect creating issue
I am working on preprocessing images of digits. Each image contains a single number and some unwanted contours . This noise or contours can be in the form of lines or small dots. My task is to remove these contours. So I decided to use the following algorithm Find all contours Sort the contours according to the area in descending
Unable to generate contour on segmented image using OpenCV based on a specific color(cv2.inRange)
I have a segmented image, which is output of an AI model.The next step is to create contour and overlay on the original image(non segmented)using OpenCV around a specific color on the segmented image. I tried with the below code snippet. But unfortunately I am unable to generate mask and contour which returns empty array. Any leads would be appreciated
Get PIXEL VALUES of a circle located?
I have parameters of circle on a image: radius and coordinates of center. Is it possible to return the location of pixels along a circle? I need to get the all pixel values along the circle line. I tried get coordinates by next solution: But if angle is not agreed with radius I miss neighboring pixsels: Answer You can get
Why does thresholding on image give a different result compared to when it is in an image with other things?
I have an image that when I apply a binary threshold on it, it gives a different result compared to when it is in an image with other things. I’m not sure if I’m setting the parameters for the thresholding function incorrectly as I took the example from the OpenCV documentation. Link to documentation: https://docs.opencv.org/4.x/d7/d4d/tutorial_py_thresholding.html In my test program, I
Simultaneously map video and data streams to one subprocess pipeline in real-time
I need to process the video stream and the klvdata streams simultaneously in real-time in OpenCV/Python. I’m using FFMPEG to read the file or stream as OpenCV does not retain the klvdata. I pass the data to OpenCV with the subprocess module. My problem is I cannot figure out how to map both the video and klvdata to the same
NameError: name ‘VideoCapture’ is not defined [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 11 months ago. Improve this question
OpenCV transform image shape transformation into a given contour
Does anyone know whether it’s possible to transform image A into image B contour if their shapes are random, using OpenCV or any other python libraries that work with images? Here is what I have so far with 2 images: I’ve been able to find draw contours of the bulb and insert a fox in it using bitwise_and method, but
plt.imshow() display the image inside another image
I am new to Python and I apologize if this is very basic. I am doing image processing but when I read a png image using cv2 and then display the image using plt.imshow() it gives me strange images(Image with extra boundries). I did the following. I am attaching the resulting images here. [the original image] [After displaying the image