A Flexible Machine Vision System for Small Parts Inspection Based on a Hybrid SVM/ANN Approach