Digital television is set up the method for Chinese station symbol sign
Technical field
The present invention relates to a kind of digital television, particularly a kind of digital television is set up the method for Chinese station symbol sign.
Background technology
China's Digital Television is stepping up to implement " three steps " strategic paces promptly: finished the formulation of terrestrial DTV standard in 2003, Digital Television starts broadcasting in the big city; Satellite transmits all realized digitlization in 2005; Terrestrial television was realized digitlization substantially in 2010, and digital television receiver is popularized, and with the round Realization digitlization, finished the transition of simulation-to-digital to Chinese TV broadcasting in 2015.Digital Television will replace simulated television comprehensively and enter national economy every profession and trade and even each family.The function of exploitation Digital Television also will become the important topic that concerns society and people's lives.Along with developing rapidly of broadcast television industry, domestic, but the channel of outer rating is increasing, and many places so overseas the station symbol of television channel have only significant graphic symbol or foreign language, not Chinese text explanation, as domestic Shandong, Shanghai, platforms such as Zhejiang and Phoenix Satellite TV, Hong Kong are graphic symbol, the external station symbol as the geographical magazine of American National is National Geography, when wanting to seek some television channel, people can only lean on memory, all do not know it is what channel after often having seen certain program, watch TV programme to bring inconvenience to the televiewer.
Summary of the invention
Purpose of the present invention promptly is to overcome above-mentioned deficiency, based on existing digital television on the basis that does not change its structure, be stored in program among the EEPROM by execution, make digital television discern processing, thereby provide a kind of method of setting up Chinese station symbol sign for digital television image.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of digital television is set up the method for Chinese station symbol sign, it is characterized in that comprising the steps:
(1) intercepting N two field picture: at first read the MPEG-2 signal flow information, obtain frame information, then the signal flow of frame information is converted to the still image form of RGB pointwise information, again still image coding is compressed into jpeg format and deposits to memory, repeat the cut-away view picture after the delay of 200-500ms, frequency n=setting frame number N changes step (2) over to until intercepting;
(2) identification station symbol image information: at first read the N frame image information of storage and comply with appointment coordinate zone intercepting station symbol image, then N frame station symbol image is superposeed and the filter out background noise optimization process, again with the image library that sets in advance in the station symbol image compare one by one, established standards similarity δ ref=80%, when its maximum similarity δ max>standard similarity δ ref, be the station symbol image that identifies, otherwise the mark current channel continues to discern next time;
(3) set up Chinese mark information: at first read the sequence number of the maximum similarity δ max station symbol image that identifies, from the Chinese station symbol array that sets in advance, take out the Chinese mark of corresponding station symbol by this sequence number then and deposit among the EEPROM, in order to showing.
Memory described in the step (1) is FLASH Memory.
Appointment coordinate described in the step (2) zone for contain the station symbol figure by coordinate (x1, y1), (x2, y2) definite rectangular area.
Image library described in the step (2) is to desire to add the set of the existing TV station station symbol image of Chinese mark, comprises sequence number and station symbol image.
Chinese station symbol array described in the step (3) comprises sequence number identical with image library and corresponding Chinese mark.
Advantage of the present invention is: set up Chinese station symbol sign for existing digital television channel, provide convenience for people watch TV programme, especially improved serviceability and reached cost-effective purpose on the basis that need not change the digital television structure.
Description of drawings
Fig. 1 is a digital television Video processing brief configuration block diagram;
Fig. 2 is the method flow diagram that digital television is set up Chinese station symbol sign
Fig. 3 is the intercepting schematic diagram of station symbol image
Fig. 4 is Hong Kong Phoenix satellite TV station symbol of having set up Chinese mark
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment to the detailed description of the invention:
Fig. 1 illustrates the Video processing brief configuration schematic diagram of the digital television of the present invention's employing.The control section of digital television adopts microprocessor system, and this system is by central processor CPU, memory and I
2The C bus constitutes.Under the control of microprocessor system, high-frequency tuner is finished tuning to from the high-frequency signal of antenna or cable TV station, the channel of selecting with selected user; Video Decoder is used for demodulating from high-frequency signal the vision signal of needs; Video image is handled and the form transducer is after analog video signal is realized digitized processing, to digital video compress, store and by with internal memory be the exchanges data of Synchronous Dynamic Random Access Memory SDRAM, reach the output of high image quality; Display module is that digital video is carried out D/A switch and exported the RGB analog signal, provides necessary display message to display; EEPROM is used to deposit control program and relevant data, wipes memory FLASH Memory by piece and is used for depositing still image and related data in video image processing and identification process.
Fig. 2 shows the flow process that digital television is set up the method for Chinese station symbol sign, and this program starts when user selected channel automatically, comprises the steps:
(1) intercepting N two field picture, in the present embodiment N is set at 5: at first intercept first two field picture, read the MPEG-2 signal flow information, find qualified original position to extract data and obtain frame information, then the signal flow of frame information is converted to the still image form of RGB pointwise information, again still image coding is compressed into jpeg format and deposits to FLASH Memory, after having intercepted first two field picture, after the delay of 200-500ms, begin to intercept second two field picture again, so repeat frequency n=5 of aforementioned process until the cut-away view picture, at this moment, 5 two field pictures all store among the FLASH Memory.Because signal flow information speed is very fast, if continuous station symbol image and situation about not being easily distinguishable close in the intercepting multiple image that then may occur intercepting with the background image color, therefore, here the intercepting of adjacent two two field pictures is provided with the time delay of 200-500ms, can improve the probability that obtains picture rich in detail like this, get ready for next step station symbol image processing, adopted the time of delay of 400ms in the present embodiment; Carry out step (2) identification station symbol image information then, before carrying out this step, should according to the situation that has TV station's station symbol now image library be set in advance, image library is to desire to add the set of the existing TV station station symbol image of Chinese mark, comprise sequence number and station symbol image, this image library is stored among the FLASH Memory.Step (2) realizes by following process: at first read 5 frame image informations of storage and intercept the station symbol image according to appointment coordinate zone, here said appointment coordinate zone for contain the station symbol figure by coordinate (x1, y1), (x2, y2) rectangular area of Que Dinging, as shown in Figure 3, value is (25 in the present embodiment, 73), (600,490) (is example with 1920 * 1080 digital image format), then 5 frame station symbol images are carried out optimized overlap-add, the defective of each frame station symbol image is remedied mutually, thereby make the station symbol image of acquisition more clear, step of going forward side by side is carried out the filter out background noise optimization process, this frame station symbol image that will obtain then adopts more common image point-to-point comparison method at present, compare one by one with the station symbol image in the image library that sets in advance, in the program standard similarity δ ref is set at 80%, in the comparison procedure, when the maximum similarity δ of station symbol image max>standard similarity δ ref, the station symbol image that then identifies be with its image library relatively in the station symbol image, the station symbol image that intercepts in this example is compared with Hong Kong Phoenix satellite TV station symbol figure and is obtained maximum similarity δ max (90%)>δ ref (80%), Hong Kong Phoenix satellite TV station symbol that is defined as identifying, otherwise, the mark current channel is " the unknown ", to treat continuing identification next time.Last execution in step (3) is set up Chinese mark information: set up Chinese mark information on Hong Kong Phoenix satellite TV station symbol image information that step (2) identifies, before this step, set in advance Chinese station symbol array in the program, it comprises sequence number identical with image library and corresponding Chinese mark; Step (3) realizes by following process: at first read the sequence number of Hong Kong Phoenix satellite TV station symbol image that identifies, take out corresponding Chinese station symbol information by this sequence number from the Chinese station symbol array that sets in advance then and deposit among the EEPROM, in order to showing.As shown in Figure 4, as long as Hong Kong Phoenix satellite TV has been selected in start, the display station also Chinese display station symbol sign of marking on a map in the picture on display screen then.