Optimization of Convolutional Neural Networks for Real-Time Pedestrian Detection in Image Processing