What object recognition software is best for identifying rolling marbles of different colours in real-time?

There are lots of different software programs out there for object recognition but can any of them accurately identify rolling balls or marbles of different colours or patterns in real time? This is assuming that you have been able to fully photograph or scan the marble for machine learning.

Also how much does does computing power and the type of camera used matter?

Thanks. 

More questions in this forum