In this paper, the deep convolutional neural networks (DCNNs) are studied to perform the complex feature extraction on the image in the convolution layer and to improve the final test accuracy of the network. By improving the DCNNs algorithm and framework, it can enhance the accurate extraction of the image features. We replace the fully connection layer of the original network with the global average pooling layer. In the absence of the large number of calculations of network parameters, the final effect is not changed; thereby, it increases the speed of the network. The simulation result is given to show the effectiveness of the DCNNs algorithm by comparing the training accuracy and test accuracy of the five improvement algorithms.