First commit, working for images and videos (avi,mp4), opencv must be compiled with ffmpeg flags on, default detector is for face detection