All Questions
1,583 questions
2
votes
0
answers
44
views
Can't set seeker in GSTREAMER cv2, python
I want to skip n seconds forward and backward in gstreamer cv2 capture for recorded videos. But when I use cap_gstreamer.set(cv2.CAP_PROP_POS_FRAMES, fps*skip_second) it resets seeker to beginning of ...
1
vote
1
answer
77
views
Connect neighbouring curves that are less than 5 pixels of each other
I have an image like the following:
This is an image with pixel width of just 1 pixel. At places where the curve can go continuously either vertically or horizontally, I need the curves to be joined ...
0
votes
1
answer
90
views
I have shuffled detections from a grid. How do I order them into a grid?
I created a Python code that recognizes and crops faces. But the problem is that it crops the faces randomly and not in the order in the original image that contains all the faces.
What is required ...
1
vote
3
answers
125
views
What does '[' after an argument in a call function signify in Python?
I have been going through the opencv wiki when I came across the resize function defined as:
dst = resize( src, dsize[, dst[, fx[, fy[, interpolation]]]] )
I am unable to understand what the [ after ...
0
votes
0
answers
272
views
Python OpenCV VideoCapture Color Differs from ffmpeg and Other Media Players
I’m working on video processing in Python and have noticed a slight color difference when using cv2.VideoCapture to read videos compared to other media players.
I then attempted to read the video ...
0
votes
0
answers
312
views
Opencv VideoCapture() for Raspberry Pi cam working with Python 3.6 but not with Python 3.7
I am writing a little Python script in which I want to use OpenCV to capture images from my Raspberry Pi camera. I am initializing video capturing with the following line.
cam=cv2.VideoCapture("...
2
votes
0
answers
7k
views
FFMPEG RTSP Stream timeout triggered after 30015.187000 ms
I am trying to read several RTSP streams using opencv cv2.VideoCapture(URL). It has FFMPEG backend. Sometimes for few streams it is throwing timeout warning after 30 seconds.
[ WARN:[email protected]] global ...
3
votes
2
answers
369
views
Python Find Contours white region only OpenCV
I am currently learning Python and OpenCV, and I'm attempting to locate the center of each shape in an image using contours. However, when I implement the code, I'm obtaining multiple cx and cy values ...
0
votes
1
answer
212
views
'NoneType' object has no attributee 'encoding'
I am having a prom trying to create and exe file from py file. I'm using pyinstaller to create the exe file with the parameters --onefile --noconsole.
Error:
this is the message on the terminal ...
-4
votes
1
answer
4k
views
pip install "cv2"? [duplicate]
import cv2
import argparse
import pytesseract
in above code snippet, I want to specifically install cv2 module.
So I tried this command,
pip install cv2 #but it shows that there is no module exists
...
0
votes
2
answers
282
views
Converting the black color in the binary image to the RGB color green
So I have created a binary image of a forest picture. My goal is to fill
the black areas of the binary image with the RGB color green whilst maintaining the white areas of the binary image.
I am still ...
1
vote
1
answer
1k
views
I am trying to install opencv on mac and keep on getting errors
i am trying to install the opencv libary on mac on vs code but keep on getting this error
there might an isuue in the way that i installed it but i don't know what.
Collecting opencv_contrib_python
...
0
votes
0
answers
38
views
cv2 module not found when when auto-launching python script inside a docker image
I need to auto-launch my script - test.py when I run the image test_image:latest. This image has all the libraries installed and even the python script. I tried three ways of auto-launching it
but ...
3
votes
0
answers
101
views
Highlighting defect/s on a image of toothed wheel
I'm working on a project where I need to find out if image (toothed wheel) is OK or NOK. It is determined by minimum possible defect (in pixels) of teeth. So far I wrote code which will find the ...
0
votes
0
answers
89
views
Detect shapes in image using Python
I have little experience using Python and its libraries, and I need to develop a method to detect and count squares, triangles and circles from an image. The problem is, these shapes could be ...