1. add statistics util to main thread and picture/video thread;
   now it seems work well;
2. TODO: when Ctrl + C, remember to finish the last detected motion
   statistics data and dump;