Embedded Real-Time Detection of Vehicles and Pedestrians Based on Minimal Networks