In recent year, surveillance system is widely used in our daily life. The surveillance system is usually applied to monitor specify target for some purpose. Intelligence surveillance system can helps us to get interested information from the monitor screen. In addition to applied to security monitor in our living environment and people or traffic flow statistics, it also widely used in management. Therefore, how to use existing surveillance system to improve the accuracy rate with reducing the human resources is an important issue. Most of the current surveillance systems focus on license plate detection, and we try to extend the detect object to the containers. The existing license plate detection algorithm would face some difficulties with using on container codes detection. This paper presents a character region extraction method for containers. We also improved projection method to reduce the effect caused by bars or marks on container and make it can be used to detect irregular rows of characters.