Skip to main content

All Questions

0 votes
0 answers
738 views

opencv starts capture with a big zoom

I am building a stereo vision system, but when I start my videoCapture with opencv, the frame is zoomed. Instead of showing the whole face with background for example, it only shows a big zoom to the ...
j.scho's user avatar
  • 41
0 votes
0 answers
197 views

Freeze after read() 2 times using opencv4 videocapture object on the raspberry pi

Freeze after read() 2 times using opencv4 videocapture object on the raspberry pi. details: - Raspberrypi Jessie - python 2.7 + opencv 4 - python code can be run on windows10 (py2.7 and opencv4) ...
Helihallow's user avatar
0 votes
2 answers
2k views

OpenCV VideoCapture on Large files looping back to the start frame after 4000+ frames

import matplotlib.pyploy as plt import cv2 def getFrame(cap): frameRate = 25 frameId = cap.get(cv2.CAP_PROP_POS_FRAMES) ret, frame = cap.read() if not ret: return None ...
Vincent Setiawan's user avatar
2 votes
3 answers
744 views

OpenCV 2.4.9 VideoCapture() won't Read Video File in Enthought Python 2.7 Environment

I've been having issues getting OpenCV 2.4.9 to read (and show) a video file using python. I know it's not a problem with finding the file because I was able to get cv2.imread() to read an image from ...
Spaceguy44's user avatar
0 votes
2 answers
3k views

Read after Videocapture on opencv always returns false

I cant figure out what the problem is. I am using Ubuntu 17.04 Python 2.7.13 OpenCV Version: 3.3.0 I have gone through all the related problems on internet but have not got the solution for the ...
arjun gupta's user avatar
0 votes
0 answers
993 views

first video frame has huge delay (python opencv)

Some background: I'm reading frames from a video capture device (webcam) and writing it to a video file (out.avi) with OpenCV in python. The script I've written is meant to be called from a Node.js ...
Troy Weber's user avatar
  • 1,085
1 vote
0 answers
4k views

Setting and getting properties of Python cv2.VideoCapture object does not work

I am trying to set the return format for a video stream from an Imaging Source DFK31AU03 USB 2.0 camera. When I get the video format using the following Python2 code: import cv2 # Get a handle to ...
deanshanahan's user avatar
1 vote
0 answers
369 views

OpenCV - Coloring a specific area during video capture?

Here is my code: import cv2 import numpy as np cap = cv2.VideoCapture(1) fourcc = cv2.VideoWriter_fourcc('M','J','P','G') framesize = (640,480) out = cv2.VideoWriter('dump.avi',fourcc,60.0,...
Thomas Paul's user avatar
0 votes
1 answer
1k views

How to acquire video feed in python using a wireless webcam setup on my android device?

Alright, so my basic aim is to do some video processing. But I want to do so in real time using the feed from a camera. I've downloaded this app on my android phone called IP webcam. Using this app I ...
codingCoffee's user avatar
0 votes
0 answers
294 views

Raspberry pi VideoCapture freezes while Recording

I have been trying to save the webcam stream of the raspberry pi using opencv videocapture. My code is: import wx import vlc import os import user import numpy as np import time import cv, cv2 ...
SivamNatesan's user avatar
13 votes
3 answers
14k views

v4l2 Python - streaming video - mapping buffers

I'm working on a video capture script for Python in Raspbian (Raspberry Pi 2) and I'm having trouble using the Python bindings for v4l2, since I have no success on memory-maping the buffers. What I ...
David's user avatar
  • 463
1 vote
2 answers
239 views

Video camera stream does not capture continuously

I have a program that reads from video camera, and finds the maximum color intensity of all the frames. I noticed that there is a dashed line effect when I streak a laser pointer across the camera ...
kkawabat's user avatar
  • 1,717
0 votes
2 answers
896 views

cv2 module is not capturing the image while the code is detecting the webcam

The code I used is: import cv2 camera = cv2.VideoCapture(0) im=camera.read()[1] print im for which I'm getting output as None In some cases it is returning the RGB values but not every time i want....
dinece's user avatar
  • 113
12 votes
2 answers
42k views

Can not Read or Play a Video in OpenCV+Python using VideoCapture

import cv2 import numpy as np cap = cv2.VideoCapture('traffic.avi') retval, frame = cap.read() print retval ================ RESTART: J:\Python For DIP\traffic_video.py ================ False >&...
Tes3awy's user avatar
  • 2,264
0 votes
1 answer
3k views

How do I display multiple webcam feeds side by side using OpenCV Beta 3.0.0 and Python?

I am working on a project that requires that I display 3 (and possibly more) webcam feeds side by side. To tackle this project, I am using OpenCV Beta 3.0.0 and Python 2.7.5 because I am slightly ...
Christian Ermann's user avatar

15 30 50 per page