A Resource-Efficient CNN-Based Method for Moving Vehicle Detection