How to split a video into frames and analyze change in pixel intensities over time.
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all! I am currently working on a project using the raspberry pi camera board with MatLab. I currently have streamed h264 (1920 x 1080p) video from the pi and saved it, however, I need to split the video into the individual frames for analysis.
After splitting the video into frames, I would like to specify a 500x500 pixel section in EACH image and calculate the average pixelation intensity detected for each matrix of pixels. I would then need to be constantly storing this average pixel value as the video streams.
Have any of you worked with this before? Any ideas?
Thank you.
0 Commenti
Risposte (2)
Image Analyst
il 28 Nov 2014
That should be a very straightforward adaptation of my video processing tutorial, attached.
8 Commenti
Image Analyst
il 24 Lug 2018
You'd have to convert the frame index to a time. You need to find out the frame rate (maybe it's a property of the VideoReader object), and then you can figure out the time between frames and then multiply that by the index.
Walter Roberson
il 24 Lug 2018
Ask the VideoReader object for its CurrentTime property. This also takes into account variable framerates.
Abdullah Said
il 14 Nov 2016
i currently doing my final year project in detect suspicious activity in examination hall.Where i already detect skin color in video frames.My question how to detect movement of skin color in certain area that we already decided in video frames.thank you
1 Commento
Image Analyst
il 14 Nov 2016
Check out papers here: http://www.visionbib.com/bibliography/contentsmotion-f.html#Motion%20--%20Feature-Based,%20Long%20Range,%20Motion%20and%20Structure%20Estimates,%20Tracking,%20Surveillance,%20Activities
You might use optical flow or other frame differencing methods to detect motion. Then, on the detected blobs, use color classification to determine if it's skin or note. See my File Exchange or see the attached demo.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!