The counting technology based on real-time video is applied in the liangan steel counting system. In order to count bar real time, This paper advances a segmentation algorithm based on muti factor to improve the efficiency of segmentation.According to the experimental result, the object is segmente...