analyze pic every 5 seconds