Measuring or differentiating between tube and cap sizes, shapes and colors are now feasible functions using image analysis technology. However, there are some nuances and challenges of tube and cap detection and analysis that should be considered before implementing a machine vision solution.