TV station logo training method and identification method

The invention provides a TV station logo training method and an identification method. The TV station logo training method comprises the following steps of: (1) determining the external rectangle of a station logo in a training video according to a frame difference method; (2) carrying out edge detection on the external rectangle of the station logo to obtain edge points of the station logo; and (3) calculating distance transformation matrix Df of the station logo according to the edge points of the station log. According to characteristics obtained by the TV station logo training method, the position of the station logo in the video is determined only by the single-frame video information of the video to be detected not by continuous multiframe video information in the identification process; moreover, under the conditions that the shape and the size of the station logo have subtle changes, the station logo still can be successfully identified.