How to divide live webcam video into MxN blocks so that input from each block can be read ?

1 view (last 30 days)
I am displaying live video on the axes in GUI. What I want to do is to divide the video into 3x3 blocks so that I can read from each block.
Just like the person did in this video: https://www.youtube.com/watch?v=vSukMaQ4hbs

Accepted Answer

Image Analyst
Image Analyst on 11 Jul 2015
Simply use line() to draw lines over the live video. You will have to call "hold on" first.
then do color segmentation like I show you in my File Exchange and find the centroid of the colored item. Then see which of the "zones" or "boxes" it fits into. It's not a super challenging application. It should be pretty easy.

More Answers (1)

Walter Roberson
Walter Roberson on 11 Jul 2015

Community Treasure Hunt

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

Start Hunting!