X11 Window System : Motion Detection uses the Block Matching and Color Luminance method


NameMotion Detection
Operating systemCentOS release 6.10 (Final)
RHEL base6.10
Kernel release2.6.32-754.el6.x86_64
Kernel version#1 SMP Tue Jun 19 21:26:04 UTC 2018
GNOME version2.28.2
Window System versionxorg-x11-server-1.17.4-17.el6.centos.x86_64
Web browserMozilla Firefox version: 52.8.0 64-bit
Compilergcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
IDELazarus Integrated Development Environment version: 2.0.0
ProcessorHyper Threads 8x Intel Xeon W3565 3.20 GHz
MemoryECC DDR3 1066 MHz 20 GB
Storage DeviceMirror RAID-1 Array 2x Seagate Baracuda 4 TB
Graphics Processor 1PixelView NVidia GeForce GT 440 2 GB
Graphics Processor 2Leadtek NVidia Quadro 2000 1 GB
Display Devices2x DELL U3011

Description :

Motion Detection is the process of detecting a change in the position of an object.
In video surveillance, motion detection refers to the capability of the surveillance system to detect motion and capture the events.
An advanced motion detection surveillance system can analyze the type of motion to see if it warrants an alarm.
A simple algorithm for motion detection by a fixed camera compares the current image with a reference image and simply counts the number of different pixels.
A Block Matching Algorithm is a way of locating matching macroblocks in a sequence of digital video frames for the purposes of motion estimation.

Matrix Calculation :

Matrix obtained from International Telecommunication Union, Radiocommunication Sector, Broadcasting service (television).
The user can choose which matrix is used to calculate the conversion from RGB to YCbCr.
1.ITU-R BT.601-7Studio encoding parameters of digital television for standard 4:3 and wide-screen 16:9 aspect ratios.Geneva, 2017
2.ITU-R BT.709-6Parameter values for the HDTV standards for production and international programme exchange.Geneva, 2015
3.ITU-R BT.2020-2Parameter values for ultra-high definition television systems for production and international programme exchange.Geneva, 2015

Cost Function :

A algorithm for matching a macroblock with another block is based on a cost function.
The most popular in terms of cost function is :
1.Mean difference or Mean Absolute Difference (MAD).
2.Mean Squared Error (MSE) or Mean Squared Deviation (MSD).
3.Peak Signal to Noise Ratio (PSNR).

Viewer Window :

The program will capture a 1000 x 750 area at posision 0 x 0 and will be replayed inViewer Window.
How to change the size of the capture area ? Please resize of theViewer Window, it will be change the size of the capture area.
How to change the position of the capture area ? Please click and dark inside of theViewer Window, it will be change the position of the capture area.

X11 Window Server configuration :

Bits per Pixel32
Byte OrderLSB First
Bit OrderLSB First
Red Mask00FF0000
Green Mask0000FF00
Blue Mask000000FF

Requires dependencies :

librt.so.1 (GLIBC_2.3.3)
libm.so.6 (GLIBC_2.2.5)
libpthread.so.0 (GLIBC_2.2.5)
libc.so.6 (GLIBC_2.4)
libdl.so.2 (GLIBC_2.2.5)
ld-linux-x86-64.so.2 (GLIBC_2.3)

Example :

Menu window :

Wait ... Loading