Convolution Neural Networks (CNN) are artificial networks able to extract features from large dataset by spatial filtering. Here we propose an optical coprocessor able to perform large image filtering and convolutions based on a two stage 4F system and digital micromirror arrays, outperforming current architectures.