Real-time cup detection with machine learning technology