Skip to content

Tag: opencv

multi-threading, what is wrong with my code

I was trying to make faster my frames in opencv, it was so slow using it normal, so I decided to ask it here Make faster videocapture opencv the answer was to use multi threading to make it faster, so I code it like this it give me no errors, but compared to my other code that is on the

Saving an image as jpg gives me plain black

I am implementing gabor kernels, when I display the kernels while running the code (before saving them) they give me a picture like this But after saving the kernels as jpg images using cv2.imwrite, I get like that Any explanations? and how to save the kernels as in the first image? Answer There could be diff…

Import “cv2” could not be resolved

I’ve installed python and opencv by using the correct commands in the cmd, but when I type in ‘import cv2’ in a python then I get the error in visual studio code and I can’t find any solution online how to fix this More of the error in the terminal Answer I noticed that Visual Studio d…