Abstract:A new way for detecting the targets through images is proposed, and then using it, a new method for extracting texts is proposed. This method can be used not only to index the image database and the video, but also to invert the documents in papers to electrical text format. It can be divided into two steps. In the first step, the candidate regions, which can include texts, are extracted, in the second step the candidate regions are verified by analyzing the distribution of gray value of the scan lines by Hough transform method. The shape of the extracted regions is also pruned to contain texts compactly. This new method can be used to extract texts with different sizes, orientations, fonts and gray values or colorsBecause all operations of the new method are based on pixels, the new method can be realized by hardware easily. The experiments we have done justify its validity.