This paper presents a novel approach for accurate barcodes detection in real and challenging environments using compact deep neural networks. Our approach is based on Convolutional Neural Network ( CNN ) and neural network compression, which can detect the four vertexes coordinates of a barcode accurately and quickly. Our approach consists of four stages: ( i ) feature extraction by a base network, ( ii ) region proposal network ( RPN ) training, ( iii ) barcode classification and coordinates regression, and ( iv ) weights pruning and recoding.