Real Time Motion and Color Detection

Fatima Kamil Faek1 & Velar Hikmet Elyas1

1Faculty of Engineering – Salahaddin University

When using HD video cameras in stores a large storage space is needed. The required
storage space can be decreased using motion and a color detection algorithm that
makes the camera records only when a motion or a lighting change occur. So, in this
work a real time motion and color detection is presented based on the difference of
two successive frames of images after dividing the image into blocks, different block
sizes are tested (2×2, 4×4 , and 8×8).YCbCr color system is used for each case with
different thresholds for Cb, Cr, and Y. Good results for the motion detection can be
obtained using Cb, and Cr other than Y, since the coloring components of an image are
exist in Cr, and Cb, which are important for motion detection. Additionally the
components that produce or reflect bright light can be obtained from Y. Consequently
the result of lightening change detection at different illumination conditions is better
using Y more than Cb, and Cr. This means that the best result for both motion, and
lighting change detection is obtained by combining the chrominance (Cb, Cr) and
luminance (Y) components of a video. The data used in this work are collected in an
indoor environment using a laptop webcam under different illumination conditions.

Key Words: Motion detection. Color detection. Lightening detection. Difference of frames.


[1] Sreedevi, M. , Yaswanth Kumar, A. ,AnjanBabu ,G. Sendhil Kumar ,R. " Real Time Movement Detection for
Human Recognition " World Congress on Engineering and Computer Science (WCECS) , San Francisco, USA
.October 24-26, (2012).
[2] Joshi, D., Purwar, A., SankarDasgupta, M., "Human Detection Based on Explicit Skin Colour Space Thresholding
and Minor Motion Detection", Annual IEEE India Conference (INDICON), India,(2014).
[3] Sung Kim, H., Kurillo, G., Bajcsy, R., "Hand Tracking and Motion Detection from the Sequence of Stereo Color
Image Frames", IEEE. (2008).

[4] Nehme,M.A., Khoury, W., Yameen, B., Al-Alaoui, M.,A. “Real time color based motion detection andtracking”,
3rd IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), pp. 696 – 700, 14-17
Dec,( 2003).
[5] Foggia, P., Saggese, A., and Vento, M.,"Real-time Fire Detection for Video Surveillance Applications using a
Combination of Expertsbased on Color, Shape and Motion". This article has been accepted for publication in a future
issue of IEEE Transaction on Circuit and System for Video Technology. Citation information:
DOI10.1109/TCSVT.2015.2392531, (2015).
[6] Bugeau, A., and Perez, P., "Detection and segmentation of moving objects in highly dynamic scenes", IEEE CVPR,
[7] Aggarwal, A., Biswas, S. ,Singh, S. ,Sural, S., and Majumdar, A.K., "Object Tracking Using \Background
Subtraction and Motion Estimation in MPEG Videos" ACCV , LNCS, vol. 3852, pp.
121-130, Springer, Heidelberg (2006).
[8] Heikkila, M., and Pietikainen, M.,"A texture-based method for modeling the background and detecting moving
objects". IEEE Transaction on Pattern Analysis and Machine Intelligence, 28(4):pp.657–662, April (2006).
[9] QiangZhai, Zhenjiang Miao, Qiang Zhang, "Motion Detection Based on Background Model", ICWMMN ,pp. 205-
208, (2013).
[10] Liu, F/., and Gleicher, M., "Learning color and locality cues for moving object detection and segmentation", IEEE
ICIP , pp. III 449- III 452, (2002).
[11] Mejia, V.,Young Kang, E.,"Automatic Moving Object Detection Using Motion and Color Features and Bi-Modal
Gaussian Approximation ", IEEE ,pp.2922-2927, (2011).
[12] Irani, M., and Anandan, P., "A unified approach to moving object detection in 2d and 3d scenes", IEEE
Transaction on Pattern Analysis and Machine Intelligence, 20(6): pp.577-589, June (1998).
[13] Torr, P.H.S., and Murray, D.W., "Statistical detection of independent movement from a moving camera", Image
and Vision Computing, 11(4), May(1993).

[14] Fablet, R., ,Bouthemy,P., and Gelgon, M., "Moving Object Detection in Color Image Sequences using Region-
Level Graph Labeling" ,6th IEEE International Conference on Image Processing, ICIP, Kobe, October (1999).

[15] Poynton, Charles, A.,"A Technical Introduction to Digital Video", New York: John Wiley & Sons, (1996).