All Questions
12 questions
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 ...
2
votes
0
answers
2k
views
Detect and Count vehicle and people in opencv python
I am new to OpenCV and have got a project to detect and count the number of vehicles and people in a video taken from a still camera. From Google, I found out that background subtractor helps but have ...
0
votes
2
answers
1k
views
Find mean position of blackpixels using python
I have a binary image and I need to find the mean values of x and y of the black region. These values are calculated for a set of binary images and their mean values of x and y are plotted I don't ...
0
votes
3
answers
3k
views
Saving multiples images with iterative numbering using .save in python
I am trying to detect the closed eye movement in a thermal video to study sleep state. I am able to detect the closed eye region in a face then I am able to save each eye frame later it's converted to ...
1
vote
0
answers
43
views
Poor Performance and Strange Array Behavior when run on Linux
So I am working on a script to do some video processing. It will read a video file searching for red dots that are a certain size then find the center of each and return the x/y coordinates. Initially ...
0
votes
1
answer
582
views
Video Processing frame-by-frame at user prompt
I am looking to process some video data, and would like to do it frame-by-frame. I wish to see results of each frame, so would want there to be pause between frame-processing, broken by user input (...
1
vote
1
answer
1k
views
Saving videos doesnt work in opencv2-python
I am trying to run this example code for saving a video:
cap = cv2.VideoCapture('input.mp4')
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
...
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
>&...
0
votes
0
answers
517
views
error: <destination> color.cpp:3650: error: (-215) scn == 3 || scn == 4 in function cvtColor
I'm trying to record a video using cv2.VideoWriter but my frames are only 2 channels rather than 3 or 4, as the error describes. How can I fix the frames so that they are able to be part of a video?
...
1
vote
2
answers
6k
views
Counting the point which intercept in a line with opencv python
I am working in vehicle counting with opencv and python programming, I already complete step:
1. Detect moving vehicle with BackgroundSubtractorMOG2
2. Draw rectangle on it, then poin a centroid of ...
0
votes
0
answers
2k
views
Python - Facial Tracking H.264 video leads to extensive Lag and errors
Can someone help me with this one ? I have written this code in Python to perform facial tracking on a HD IP Camera feed using the H.264 format. The script works as it should except:
When I execute ...
1
vote
0
answers
1k
views
Background Subtraction using a control image in Python
I am using Python 2.7 and OpenCV 2.4 library to preform a human action recognition application. The first step in the process is to extract the background and leave only the human figure as the ...