How to split a video into frames and analyze change in pixel intensities over time.

18 visualizzazioni (ultimi 30 giorni)
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.

Risposte (2)

Image Analyst
Image Analyst il 28 Nov 2014
That should be a very straightforward adaptation of my video processing tutorial, attached.
  8 Commenti
Image Analyst
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
Walter Roberson il 24 Lug 2018
Ask the VideoReader object for its CurrentTime property. This also takes into account variable framerates.

Accedi per commentare.


Abdullah Said
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by