Intermedia Activity Recognition (in C/C++ language)