UR5e for quality inspection with vision system

We are developing a solution where UR5e will have a camera in its TCP. The robot will take pictures around the product in order to approve/reject it.
Please let me know if you had any similar solution - I’m looking for lessons learned of that, I mean, what was good, main challenges, what was improvement opportunity, etc…