Are the parts oriented in the box (nested in a fixture) or are they just loosely piled in there?
Having parts like this, which are intended to eventually have a quality painted finish, loosely banging against each other in a box, is not a good idea.
What is the upstream process which is putting the parts into that box?
If you want to automate this, the parts should really be stored in a nest in that box, so that they are all oriented (and prevented from rattling around against each other). If they are stored in a nest, you can have a robot pick parts out pretty easily. And the parts could have pretty easily been put into that nest in the upstream process if that process was also automated.
Don't forget that anything you want to automate, has to be done in accordance with applicable safety standards such as ISO 10218 if there is a robot involved.
You have to look at the complete picture. Or, more specifically, as suggested above, a custom automation integrator needs to have a look at the complete picture.