Nowadays, along with the higher requirement of the customer and the standardization of enterprise management, the finished product of steel bar production must be standardization packaged by root number; management requirements of bar fixed bundle of sticks are more stringent. The artificial count is used into the most of the steel bar production recently. So there are many problems. Such as labor intensity, easy fatigue, less efficient, and error-prone. The image recognition technology for online automatic counting system for a given period of time. It also can improve the speed and make the product more accuracy. This paper mainly talks about the system composition and image processing algorithm.