MATLAB Answers

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

62 views (last 30 days)
Robert on 27 Nov 2014
Commented: Walter Roberson on 24 Jul 2018
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.

Answers (2)

Image Analyst
Image Analyst on 28 Nov 2014
That should be a very straightforward adaptation of my video processing tutorial, attached.
Walter Roberson
Walter Roberson on 24 Jul 2018
Ask the VideoReader object for its CurrentTime property. This also takes into account variable framerates.

Sign in to comment.

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