Generate csv report after each detection finished