Skip to content
Advertisement

Tag: opencv

opencv – videowriter control bitrate

I have a working python script that uses the video writer from opencv. source https://gist.github.com/stanchiang/b4e4890160a054a9c1d65f9152172600 If i take in a file, and regardless of whether I simply pass the video frame through to the writer (effectively duplicating the file) or if i try to edit the frame, the file is always larger. I would like for it to be no

Histogram of my cam in real time

Im trying to show the histogram in real time from grayscale of my webcam, the problem is that histogram is not being update and my cam stop until i close histogram’s window. How can i fix this? I want to show the grayscale img from my webcam and its histogram in same time, is possible do that? Answer I have

Capturing video from two cameras in OpenCV at once

How do you capture video from two or more cameras at once (or nearly) with OpenCV, using the Python API? I have three webcams, all capable of video streaming, located at /dev/video0, /dev/video1, and /dev/video2. Using the tutorial as an example, capturing images from a single camera is simply: And this works fine. However, if I try to initialize a

Removing pixels surrounded by white pixels OpenCV

I have a black and white image which has a lot of noise. I would like to remove only black pixels that are completely surrounded by white ones. I tried doing so with Filter2d, but I could not achieve it. Answer I’d use a convolution (again) 1: As you can see, the result array has changed all “black” pixels (here

Saving a video capture in python with openCV : empty video

I’m new in Python (2.7) and I try to work on video processing (with module openCv “cv2”). Starting with tutorials, I try to use the script of this tutorial : paragraph “Saving a video”. Everything works fine excepting that the video I’m saving is empty. I can find output.avi in my directory but its memory size is 0kb an, of

Advertisement