An embedded architecture for real-time object detection in digital images based on niching particle swarm optimization