Optical neural network could lead to intelligent cameras