Real-time target recognition with all-optical neural networks for ghost imaging | Synapse