Skip to main content

All Questions

Tagged with
0 votes
1 answer
31 views

OpenCV GStreamer VideoWriter write hangs in a Python multiprocessing Process

I'm working on real-time image processing using a Raspberry Pi camera. To optimize processing times, I'm trying to separate some image transformations and video encoding in a separate Process: import ...
Aurelien Montmejat's user avatar
-1 votes
0 answers
44 views

how to use OpenCvSharp record video,10 minute per file

I use OpenCvSharp to record video, 10 minute per file,but the code I wrote must be somewhere wrong, when I see the video,the video takes 12 minutes 29 seconds.here is the code. using OpenCvSharp; ...
ying's user avatar
  • 1
1 vote
0 answers
42 views

Python opencv/cv2 video generation - FPS/Frames desync

I have a weird problem related to fps/sync of frames. Firstly, I have an input .mkv video in 30fps. cap: cv2.VideoCapture = cv2.VideoCapture(example_video.mkv) Then I break it into frames and work ...
Neruay's user avatar
  • 31
0 votes
0 answers
54 views

Doesn't generate any file when use VideoWriter in JupyterLab (there is no any error on console)

I use Jetson Nano to connect my camera, I'm sure the camera can show on my windows. cap = cv2.VideoCapture(2) frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2....
Chun Wei Huang's user avatar
0 votes
0 answers
42 views

How much latency does the operating system add transferring video over USB to the host application?

I am transferring raw uncompressed video from an image sensor to a C++ OpenCV application running on Linux. The signal chain is this: MIPI output Image sensor -> MIPI to USB 3.0 chip -> USB 3.0 ...
Rocketmagnet's user avatar
  • 5,829
1 vote
1 answer
111 views

OpenCV-Python overlapping boundingRect()

I'm trying to fix a bug where when two rects collide in a video, they merge into one big rectangle for the remaining frames that they collide, instead of keeping the rectangles as before: Before ...
banan's user avatar
  • 33
0 votes
2 answers
89 views

I am not able to display and save a video from my Flir hadron camera using Gstreamer command in python3 Opencv

I'm trying to display and save my Flir Hadron camera videos using gstreamer pipelines in Python 3 OpenCV. I have a perfectly working Gstreamer pipelines that are able to display and save videos with ...
Ihssane Oubari's user avatar
0 votes
1 answer
49 views

cv2 VideoWriter writes small file with no video. Frames come from mss screen capture

I am writing a python script to capture the screen to a video but the resulting video file is only 8k long and there is no video in it. My code looks fine to me and I can see the captured frames which ...
Michael McLaughlin's user avatar
0 votes
0 answers
111 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 ...
cliffsu's user avatar
  • 71
0 votes
0 answers
50 views

Emulate YUV420 stream for OpenCV

I'm working on a project that will treat the images coming from a camera in YUV420 format connected by ethernet. During the development, we can't have constant access to the camera so I wanted to ...
Ivan's user avatar
  • 1,423
0 votes
0 answers
43 views

What is the correct approach to always use the latest camera frame in OpenCV [duplicate]

I am trying to take stills from a webcam and do some processing on the images I am using Python 3.10.9 and opencv-python==4.9.0.80 This is pretty much how I set up a USB webcam camera = cv2....
RedRum69's user avatar
1 vote
0 answers
55 views

Splitting a video into pieces

I am trying to split a video in to different sections and have them saved in a array. I found this code, but when I run it I get: type error: 'none type' object is not subscriptable. I can't see ...
Sophia Tatarek's user avatar
0 votes
1 answer
108 views

OpenCV Python tracking rectangle not moving with chosen person in video

I am trying to track a person who appears for part of a 53-second video I found on YouTube as shown in frame #1 from the video: Frame #1 from Video by Price (2020) The tracking rectangle is (supposed ...
charlesumesi's user avatar
0 votes
0 answers
47 views

Can I pass a parameter to a trackbar to set the context of the trackbar update?

I have a Python application which displays a video using OpenCV. It is practical to have a trackbar present so the user can select a point in the video and see how much of the video has elapsed. The ...
R. Mitchell's user avatar
0 votes
0 answers
33 views

Emgu.CV Error `Object reference not set to an instance of an object` When Fetching Frame C#

I'm trying to use Emgu.CV to load frames from a .mp4 file, but I can't get it working. For whatever reason I'm getting an Object reference not set to an instance of an object error on a different line ...
Jack Newport's user avatar

15 30 50 per page
1
2 3 4 5
81