Extraction of pedestrian data to be training by a CNN