Color bar screen detection method, device, display device and readable storage medium

By obtaining the color component histogram and brightness histogram of the target film source, we can determine whether it is a color bar picture, which solves the problem of inefficient recognition of color bar picture in the prior art, and achieves more efficient recognition and display effect improvement.

CN116013190BActive Publication Date: 2025-05-27SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211370647.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-05-27
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

The existing methods of identifying color bars are less efficient and cannot improve the display effect of the display device in time.

Method used

By obtaining the color component histogram and brightness histogram of the target film source, determine whether the target film source is a color film source, and determine whether it is a color bar screen based on the brightness histogram.

Benefits of technology

It improves the efficiency of color bar screen recognition, reduces the amount of calculation, improves the recognition accuracy, and can timely improve the display effect of the display device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116013190B_ABST
    Figure CN116013190B_ABST
Patent Text Reader

Abstract

The present invention discloses a color bar screen detection method, device, display device, and computer-readable storage medium. The method includes the steps of: obtaining a color component histogram and a luminance histogram of a target video source; determining whether the target video source is a color video source according to the color component histogram; if the target video source is a color video source, determining whether the target video source is a color bar screen or a non-color bar screen according to the luminance histogram. Through the present invention, it is possible to efficiently and accurately identify whether the video source being played by the display device is a color bar screen, so as to perform corresponding optimization processing on the color bar screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular, to a color bar screen detection method, device, display device, and computer-readable storage medium. Background Art

[0002] A color bar screen can be used as a display test screen, which is composed of bar graphs of multiple different colors, and is mainly used to detect or highlight the display effects of various display devices.

[0003] Currently, for OLED (Organic Light-Emitting Diode) display devices and high-end LED (light-emitting diode) display devices, in order to better display the wide color gamut of OLED and high-end LED screens and technologies such as the 3D LUT (Look Up Table) carried, and accurately restore the original colors of images, color bar screens are often played for display at the mall demonstration end. In order to highlight the display effects of display devices such as televisions, it is necessary to identify the color bar screen. After determining that the currently playing video source is a color bar screen, the brightness, contrast, saturation, color, sharpness, etc. can be automatically adjusted to enhance and optimize the display effects of the display device, highlight the screen quality, and expect to be loved and favored by more users. Regarding the existing methods for identifying color bar screens, they often identify color bars through pixel combinations, but this identification method has a large amount of computation and a relatively low identification efficiency, so the display effects of display devices cannot be improved in a timely manner. Summary of the Invention

[0004] The main purpose of the present invention is to provide a color bar screen detection method, device, display device, and computer-readable storage medium, aiming to solve the technical problem of relatively low efficiency in currently identifying color bar screens.

[0005] To achieve the above purpose, the present invention provides a color bar screen detection method, and the color bar screen detection method includes the following steps:

[0006] Obtain the color component histogram and brightness histogram of the target video source;

[0007] Judge whether the target video source is a color video source according to the color component histogram;

[0008] If the target video source is a color video source, determine whether the target video source is a color bar screen or a non-color bar screen according to the brightness histogram.

[0009] Optionally, the step of judging whether the target video source is a color video source according to the color component histogram includes:

[0010] Determine the color component values of each color in the color component histogram;

[0011] If each of the color component values is less than a preset gray scale value, determine that the target source is a non-color source.

[0012] Optionally, after the step of determining the color component values of each color in the color component histogram, the method further includes:

[0013] If at least one of the color component values is greater than or equal to the preset gray scale value, determine that the target source is a color source, and execute the step of determining whether the target source is a color bar screen or a non-color bar screen according to the luminance histogram.

[0014] Optionally, the step of determining whether the target source is a color bar screen or a non-color bar screen according to the luminance histogram includes:

[0015] Determine the number of peaks in the luminance histogram;

[0016] If the number of peaks is within a preset number range, determine whether the target source is a color bar screen or a non-color bar screen according to the distribution between the peaks;

[0017] If the number of peaks is not within the preset number range, determine that the target source is a non-color bar screen.

[0018] Optionally, before the step of determining the number of peaks in the luminance histogram, the method further includes:

[0019] Determine the target luminance quantity corresponding to the luminance data less than the preset gray scale value in the luminance histogram, and determine the total quantity of the luminance data in the luminance histogram;

[0020] If the target luminance quantity is greater than or equal to the luminance quantity threshold corresponding to the total quantity of the luminance data, determine that the target source is a non-color bar screen;

[0021] If the target luminance quantity is less than the luminance quantity threshold corresponding to the total quantity of the luminance data, execute the step of determining the number of peaks in the luminance histogram.

[0022] Optionally, the step of determining the number of peaks in the luminance histogram includes:

[0023] Determine the target luminance data greater than or equal to the preset gray scale value in the luminance histogram, use the target luminance data as the peak, and determine the number of peaks of the peak.

[0024] Optionally, the step of determining the target video source as a color bar screen or a non-color bar screen according to the distribution between each peak includes:

[0025] Filter out the maximum peak among the peaks to obtain each remaining peak, and determine the average peak between each of the remaining peaks;

[0026] Determine the difference between the remaining peak and the average peak, and judge whether each of the differences is within a preset difference interval;

[0027] If each of the differences is within the preset difference interval, determine that the target video source is a color bar screen;

[0028] If at least one of the differences is not within the preset difference interval, determine that the target video source is a non-color bar screen.

[0029] In addition, to achieve the above object, the present invention further provides a color bar screen detection device, and the color bar screen detection device includes:

[0030] A data acquisition module, configured to acquire a color component histogram and a brightness histogram of a target video source;

[0031] A screen recognition module, configured to determine whether the target video source is a color video source according to the color component histogram; if the target video source is a color video source, determine whether the target video source is a color bar screen or a non-color bar screen according to the brightness histogram.

[0032] In addition, to achieve the above object, the present invention further provides a display device, including a processor, a memory, and a color bar screen detection program stored on the memory and executable by the processor. When the color bar screen detection program is executed by the processor, the steps of the color bar screen detection method as described above are implemented.

[0033] The present invention further provides a computer-readable storage medium, on which a color bar screen detection program is stored. When the color bar screen detection program is executed by a processor, the steps of the color bar screen detection method as described above are implemented.

[0034] In the color bar screen detection method of the technical solution of the present invention, the steps are as follows: acquire a color component histogram and a brightness histogram of a target video source; determine whether the target video source is a color video source according to the color component histogram; if the target video source is a color video source, determine whether the target video source is a color bar screen or a non-color bar screen according to the brightness histogram. The present invention solves the technical problem of low efficiency in currently identifying color bar screens.

[0035] Corely, for the target video source being played, the present invention first identifies whether the target video source is a color video source or a non-color video source through the obtained color component histogram. If it is identified as a non-color video source, the target video source can be directly determined as a non-color bar screen, and no other processing needs to be performed on the target video source, greatly simplifying the process of identifying the color bar screen. If it is identified as a color video source, then through the obtained luminance histogram, it is possible to quickly and efficiently identify whether the color video source is a color bar screen or a non-color bar screen by analyzing the luminance values. For the color component histogram and luminance histogram in the present invention, they can be directly generated by reading the video source signal at the front end of the display device. The present invention combines the quickly obtainable color component histogram and luminance histogram to determine whether the target video source is a color bar screen or a non-color bar screen through color analysis and luminance analysis. Compared with the traditional method of identifying the color bar screen by combining pixel points, the data signal reading is convenient and fast, the data processing is particularly simple, the computational amount for identifying the color bar screen is very small, and the identification accuracy is higher, greatly improving the efficiency of identifying the color bar screen, and thus facilitating the timely improvement of the display effect of the display device. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic structural diagram of the hardware operating environment of the display device related to the solution of the embodiment of the present invention;

[0037] Figure 2 It is a schematic flowchart of the first embodiment of the color bar screen detection method of the present invention;

[0038] Figure 3 It is a detailed flowchart of step S20 in the first embodiment of the color bar screen detection method of the present invention;

[0039] Figure 4 It is a schematic flowchart of the second embodiment of the color bar screen detection method of the present invention;

[0040] Figure 5 It is a schematic flowchart before step S31 in the second embodiment of the color bar screen detection method of the present invention;

[0041] Figure 6 It is the luminance histogram of the color bar screen in the analog TV channel related to the color bar screen detection method of the present invention;

[0042] Figure 7 It is the luminance histogram of the color bar screen in the digital TV channel related to the color bar screen detection method of the present invention;

[0043] Figure 8 It is the luminance histogram of the color bar screen in the HDMI channel related to the color bar screen detection method of the present invention;

[0044] Figure 9Schematic diagram of the overall integrated process of the color bar screen detection method of the present invention;

[0045] Figure 10 Schematic diagram of the frame structure of the color bar screen detection device of the present invention.

[0046] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments

[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] An embodiment of the present invention provides a display device. The display device can include any type of display device such as a smart TV, mobile phone, tablet, personal computer, etc., which is not limited herein.

[0049] As Figure 1 shown, Figure 1 is a schematic diagram of the hardware operating environment structure of the display device involved in the embodiment of the present invention.

[0050] As Figure 1 shown, the display device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display (Display) and an input unit such as a control panel. Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WIFI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the foregoing processor 1001. The memory 1005, as a computer storage medium, may include a color bar screen detection program.

[0051] Those skilled in the art can understand that Figure 1 the hardware structure shown in

[0052] does not constitute a limitation to the device, and may include more or fewer components than shown, or combine some components, or different component arrangements. Figure 1 , Figure 1 The memory 1005, as a computer-readable storage medium, may include an operating device, a user interface module, a network communication module, and a color bar screen detection program.

[0053] InFigure 1 In this case, the network communication module is mainly used to connect to the server and communicate with the server for data. The processor 1001 can call the color bar screen detection program stored in the memory 1005 and execute the steps in the following embodiments.

[0054] Based on the above hardware structure of the controller, various embodiments of the color bar screen detection method of the present invention are proposed.

[0055] An embodiment of the present invention provides a color bar screen detection method.

[0056] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the first embodiment of the color bar screen detection method of the present invention; in the first embodiment of the present invention, the color bar screen detection method is applied to a display device; the color bar screen detection method includes the following steps:

[0057] Step S10, obtaining a color component histogram and a brightness histogram of a target source.

[0058] In this embodiment, when playing the target source (video image), the brightness and color histograms of the video layer can be directly obtained through data capture, that is, the color component histogram and the brightness histogram. For the target source, it can be a source under an analog TV channel, a source under a digital TV channel, a source under an HDMI (High Definition Multimedia Interface) channel, or a source under a local media channel, which is not limited here.

[0059] Step S20, judging whether the target source is a color source according to the color component histogram.

[0060] In this embodiment, the color component histogram may include 32 color component data (color component values). This quantity is an optimal result obtained through experiments, which can ensure the accuracy and efficiency of identifying both color sources and non-color sources.

[0061] Based on the color component histogram obtained from the target source, it can be directly judged whether the target source is a color source or a non-color source (which can be considered a black-and-white source) through color gray-scale analysis. If it is determined that the target source belongs to a color source, it is further necessary to judge whether the color source is a color bar screen or other screens. The color bar screen can be a standard eight-color bar screen, including bar graphs of eight colors: white, cyan, yellow, magenta, green, blue, red, and black. The other screens can be, for example, some movie screens being played.

[0062] Please refer to Figure 3 ,Figure 3 This is a detailed flowchart of step S20 in the first embodiment of the color bar screen detection method of the present invention; in one embodiment, the step S20 includes:

[0063] Step S21, determining the color component values of each color in the color component histogram;

[0064] Step S22, if each of the color component values is less than a preset gray scale value, determining that the target source is a non-color source.

[0065] The color component histogram includes the color component values of the three primary colors red, green, and blue. If the color component values of each color are all less than the preset gray scale value, that is, all the color component values in the color component histogram are less than the preset gray scale value, then it can be determined that the target source is not a color source, that is, a non-color source. Since it does not belong to the color source, it is no longer possible to be a color bar screen, because the color bar screen has multiple colors and belongs to the color source. Therefore, at this time, it is not necessary to perform the next step of identifying the color bar screen of the target source, and the process of identifying the color bar screen is exited. It should be noted that the preset gray scale value in this embodiment can be 20. If the color component values of the three colors red, green, and blue in the color component histogram are all less than 20, then the video screen played by the target source will not present colors, that is, it can be considered a black-and-white source.

[0066] In one embodiment, after step S21 of determining the color component values of each color in the color component histogram, the method further includes:

[0067] Step a, if at least one of the color component values is greater than or equal to the preset gray scale value, determining that the target source is a color source, and performing the step of determining whether the target source is a color bar screen or a non-color bar screen according to the luminance histogram.

[0068] In this embodiment, if there is one or more color component values greater than or equal to the preset gray scale value in the color component histogram, it means that the video screen played by the target source has colors and is not pure black and white, and the target source is a color source. For example, if the color component value of blue is greater than 20 and the color component values of other colors are less than 20, then the video screen of the target source will be a pure blue screen. If the color component values of two or three colors are both greater than 20, then more and richer color screens will be presented based on the superposition of the three primary colors.

[0069] After determining that the current target source is a color source, it is still not possible to determine whether the target source is a video image with regular program content or a simple color bar image. It is also necessary to further determine whether the target source is a color bar image or other non-color bar color sources by analyzing the individual luminance data obtained from the target source through the luminance histogram obtained from the target source. That is, it is also necessary to continue to execute the step of determining whether the target source is a color bar image or a non-color bar image according to the luminance histogram.

[0070] Step S30, if the target source is a color source, determine whether the target source is a color bar image or a non-color bar image according to the luminance histogram.

[0071] In this embodiment, the luminance histogram may include 32 luminance data (luminance values). This quantity is an optimal result obtained through experiments, which can balance the accuracy and efficiency of identifying both color bar images and non-color bar images.

[0072] If the target source is determined to be a color source after being identified and analyzed by the color component histogram, further identify the color source. Specifically, determine whether the target source is a color bar image or other non-color bar images by analyzing the individual luminance values through the luminance histogram. If it is a color bar image, it often means that some merchants or users are displaying or testing the display effect of the display device through the color bar image. Then, the color bar image can be adjusted according to a preset optimization algorithm to improve the display effect when the display device displays the color bar image, thereby increasing the user's purchase intention and improving the sales volume and economic benefits of the display device. If the target source is not a color bar image, the currently displayed image can be adjusted according to other optimization algorithms, or no adjustment can be made.

[0073] In addition, the reason why the target source can be identified as a color bar image or a non-color bar image through the luminance histogram in the present invention lies in:

[0074] Please refer to Figures 6 - 8 , Figure 6 which is the luminance histogram of the color bar image under the analog TV channel involved in the color bar image detection method of the present invention; Figure 7 which is the luminance histogram of the color bar image under the digital TV channel involved in the color bar image detection method of the present invention; Figure 8 which is the luminance histogram of the color bar image under the HDMI channel involved in the color bar image detection method of the present invention. As Figures 6 - 8 shown, the abscissa of each luminance histogram represents the luminance data corresponding to the standard eight-color bar, including 32, that is, serial numbers 1-32. The ordinate of each luminance histogram represents the luminance data (luminance values) of the eight-color bar images corresponding to the abscissa 1-32 respectively.

[0075] Taking the playback of a color bar image in three channels: analog TV, digital TV, and HDMI channel as an example, the luminance histogram data under the analog TV channel, the luminance histogram data under the digital TV channel, and the luminance histogram data under the HDMI channel are obtained respectively.

[0076] Each color bar of the standard eight-color bar corresponds to a "peak", that is, the peak value. Plotting the above three groups of data as line charts respectively is as Figure 6 , Figure 7 , Figure 8 . It can be seen from the figure that there are 32 luminance histogram data for analog TV, digital TV, and HDMI channel. From Figure 6 the luminance histogram of analog TV and Figure 7 digital TV, it can be seen that there are 8 "peaks", and the height of each peak is not much different; while Figure 8 the luminance histogram of HDMI is quite different from the luminance histograms in Figure 6 and Figure 7 . This is because when playing with other non-TV devices such as a computer, the ratio of the target source stream is inconsistent with the TV ratio, resulting in black edges or edges of other colors on both sides of the display screen when the TV plays the target source (the edge colors of different players may also be different, taking black edges as an example). Therefore, the proportion of the black part is very high, that is, the peak value corresponding to black is significantly higher than the peak values of the other 7 colors, and the heights of the remaining 7 "peaks" are not much different, that is, evenly distributed.

[0077] Based on this, when the display device plays the target source, each "peak" can be extracted from the luminance histogram of the target source, and the total number of "peaks" is judged. If it is between 7 and 9, it may be a standard eight-color bar image. Then, the luminance value with the highest proportion, that is, the highest peak value, is removed, and the remaining "peaks" are judged whether they are evenly distributed, so as to screen out the color bar signal and determine whether the target source is a color bar image or a non-color bar image.

[0078] For the target video source being played, the present invention first identifies whether the target video source is a color video source or a non-color video source through the obtained color component histogram. If it is identified as a non-color video source, the target video source can be directly determined as a non-color bar screen, and no other processing needs to be performed on the target video source, greatly simplifying the process of identifying the color bar screen. If it is identified as a color video source, then through the obtained luminance histogram, it is possible to quickly and efficiently identify whether the color video source is a color bar screen or a non-color bar screen by analyzing the luminance values. For the color component histogram and the luminance histogram in the present invention, they can be directly generated by reading the video source signal at the front end of the display device. The present invention combines the easily obtained color component histogram and luminance histogram to determine whether the target video source is a color bar screen or a non-color bar screen through color analysis and luminance analysis. Compared with the traditional method of identifying the color bar screen by combining pixel points, the data signal reading is convenient and fast, the data processing is particularly simple, the computational amount of identifying the color bar screen is very small, and the identification accuracy is higher, greatly improving the efficiency of identifying the color bar screen, and thus facilitating the timely improvement of the display effect of the display device.

[0079] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of the second embodiment of the color bar screen detection method of the present invention; further, based on the first embodiment of the color bar screen detection method of the present invention, the second embodiment of the color bar screen detection method of the present invention is proposed. In this embodiment, step S30 includes:

[0080] Step S31, determining the number of peaks in the luminance histogram;

[0081] In this embodiment, the peaks in the luminance histogram of the target video source refer to those luminance values greater than the preset gray level value. The preset gray level value can be 20, that is, the luminance values greater than 20 are peaks. After determining the peaks, that is, the "peaks", the number of peaks in the luminance histogram is then counted.

[0082] Please refer to Figure 5 , in one embodiment, before step S31, the method further includes:

[0083] Step S100, determining the number of target luminance corresponding to the luminance data less than the preset gray level value in the luminance histogram, and determining the total amount of luminance data in the luminance histogram;

[0084] Taking the preset gray level value as the dividing line, each luminance value in the luminance histogram is divided into luminance data less than the preset gray level value and luminance data greater than or equal to the preset gray level value. In this embodiment, the number of target luminance of the luminance data less than the preset gray level value is counted, and at the same time, the total amount of luminance data in the entire luminance histogram is determined.

[0085] Step S200, if the number of target brightness levels is greater than or equal to the brightness level threshold corresponding to the total amount of brightness data, then determine that the target video source is a non-color bar screen;

[0086] The brightness level threshold corresponding to the total amount of brightness data can be determined based on the total amount of brightness data according to a certain preset ratio. For example, if the ratio is 3 / 5 and the total amount of brightness data is 32, then the brightness level threshold can be 20 (rounded up). That is, when the number of target brightness levels is greater than or equal to 20, it is determined that the target video source is a non-color bar screen.

[0087] When the number of target brightness levels is greater than or equal to the brightness level threshold corresponding to the total amount of brightness data, it indicates that the brightness distribution is relatively dense; otherwise, it indicates that the brightness distribution is relatively discrete. In the case of a relatively dense brightness distribution, it indicates that the target video source is a non-color bar screen. In the case of a relatively discrete brightness distribution, it indicates that the target video source may be a color bar screen and further judgment is required. Through this judgment process, most of the non-color bar screen video source pictures can be initially and efficiently screened out.

[0088] Step S300, if the number of target brightness levels is less than the brightness level threshold corresponding to the total amount of brightness data, then execute the step of determining the number of peaks in the brightness histogram.

[0089] If the number of target brightness levels is less than the brightness level threshold corresponding to the total amount of brightness data, it indicates that the brightness distribution is relatively discrete and the target video source may be a color bar screen. Whether it is a color bar screen or not still requires further judgment and complete determination through a series of steps such as determining the number of peaks in the brightness histogram.

[0090] In one embodiment, step S31 includes:

[0091] Step b, determine the target brightness data in the brightness histogram that is greater than or equal to a preset gray level value, use the target brightness data as a peak, and determine the number of peaks of the peak.

[0092] In this embodiment, each brightness value in the brightness histogram that is greater than or equal to the preset gray level value is used as the target brightness data, and the target brightness data is used as a peak, so that the number of peaks can be determined. Furthermore, the non-color bar screen can be directly screened out according to the number of peaks.

[0093] Step S32, if the number of peaks is within a preset number range, then determine whether the target video source is a color bar screen or a non-color bar screen according to the distribution between each peak;

[0094] The preset quantity range can be [7, 9]. If the number of peaks in the luminance histogram is within the preset quantity range, it indicates that the target source is very likely to be a color bar picture. To more accurately determine that the target source is a color bar picture, it is further possible to determine whether the target source is a color bar picture or a non-color bar picture according to the distribution (uniform distribution) among the peaks.

[0095] In one embodiment, step S32 of determining whether the target source is a color bar picture or a non-color bar picture according to the distribution among the peaks includes:

[0096] Step c: Filter out the maximum peak among the peaks to obtain each remaining peak, and determine the average peak among the remaining peaks.

[0097] Step d: Determine the difference between the remaining peak and the average peak, and judge whether each difference is within a preset difference range.

[0098] Step e: If each difference is within the preset difference range, determine that the target source is a color bar picture.

[0099] Step f: If at least one difference is not within the preset difference range, determine that the target source is a non-color bar picture.

[0100] In this embodiment, filtering out the maximum peak among the peaks in the luminance histogram is to exclude the influence of the appearance of black edges in channels such as HDMI on the recognition of color bar pictures, thereby improving the accuracy of recognizing color bar pictures. After filtering out the maximum peak among the peaks, each remaining peak is obtained. For example, after filtering out the maximum peak among 8 peaks, there are 7 remaining peaks. The average value among the remaining peaks is taken as the average peak, and then the difference between each remaining peak and this average value is calculated. It is judged whether all the differences are within the preset difference range. This difference range can be set according to actual needs and is not limited here. If each difference is within the preset difference range, this exactly reflects that each remaining peak is basically on the same level, with no great difference from each other, presenting a uniform distribution, regarded as a color bar signal, thus accurately determining that the target source is a color bar picture. If one or more of the differences are not within the preset difference range, it can also accurately determine that the target source is a non-color bar picture.

[0101] Step S33: If the number of peaks is not within the preset quantity range, determine that the target source is a non-color bar picture.

[0102] If the number of peaks in the luminance histogram is not within the preset quantity range, then it can be undoubtedly determined that the target source is a non-color bar picture, and the process of recognizing the color bar picture is exited.

[0103] To further understand the above various embodiments of the present invention, please refer to Figure 9 , Figure 9 which is a schematic diagram of the overall comprehensive process of the color bar screen detection method of the present invention.

[0104] In accordance with the process sequence of the present invention, the present invention can be implemented through the following various links:

[0105] 1. Play the color bar screen under analog TV, digital TV, HDMI, and local media channels respectively, and read the luminance histogram data of the color bar screen played on the current channel;

[0106] 2. Analyze the luminance histogram data of the color bar screen played under each channel and summarize the rules;

[0107] 3. Construct an algorithm (please refer to the second embodiment of the present invention above), and comprehensively analyze the target source through the luminance histogram and the color component histogram to identify the color bar signal.

[0108] In addition, referring to Figure 10 , the present invention also proposes a color bar screen detection device, and the color bar screen detection device includes:

[0109] A data acquisition module A10 for obtaining the color component histogram and the luminance histogram of the target source;

[0110] A screen recognition module A20 for judging whether the target source is a color source according to the color component histogram; if the target source is a color source, determining whether the target source is a color bar screen or a non-color bar screen according to the luminance histogram.

[0111] Optionally, the screen recognition module A20 is further configured to:

[0112] Determine the color component values of each color in the color component histogram;

[0113] If each of the color component values is less than a preset gray scale value, determine that the target source is a non-color source.

[0114] Optionally, the screen recognition module A20 is further configured to:

[0115] If at least one of the color component values is greater than or equal to the preset gray scale value, determine that the target source is a color source, and execute the step of determining whether the target source is a color bar screen or a non-color bar screen according to the luminance histogram.

[0116] Optionally, the screen recognition module A20 is further configured to:

[0117] Determine the number of peaks of the peak in the luminance histogram;

[0118] If the number of peaks is within a preset number range, determine whether the target video source is a color bar screen or a non-color bar screen according to the distribution between the peaks;

[0119] If the number of peaks is not within the preset number range, determine that the target video source is a non-color bar screen.

[0120] Optionally, the video source recognition module A20 is further configured to:

[0121] Determine the number of target brightness data corresponding to the brightness data less than the preset gray level value in the brightness histogram, and determine the total amount of brightness data in the brightness histogram;

[0122] If the number of target brightness data is greater than or equal to the brightness quantity threshold corresponding to the total amount of brightness data, determine that the target video source is a non-color bar screen;

[0123] If the number of target brightness data is less than the brightness quantity threshold corresponding to the total amount of brightness data, perform the step of determining the number of peaks in the brightness histogram.

[0124] Optionally, the video source recognition module A20 is further configured to:

[0125] Determine the target brightness data greater than or equal to the preset gray level value in the brightness histogram, use the target brightness data as peaks, and determine the number of peaks of the peaks.

[0126] Optionally, the video source recognition module A20 is further configured to:

[0127] Filter out the maximum peak among the peaks to obtain each remaining peak, and determine the average peak between the remaining peaks;

[0128] Determine the difference between the remaining peak and the average peak, and determine whether each difference is within a preset difference range;

[0129] If each difference is within the preset difference range, determine that the target video source is a color bar screen;

[0130] If at least one difference is not within the preset difference range, determine that the target video source is a non-color bar screen.

[0131] The specific implementation of the color bar screen detection device of the present invention is basically the same as that of the above embodiments of the color bar screen detection method, and will not be repeated here.

[0132] In addition, the present invention also provides a computer-readable storage medium. A color bar screen detection program is stored on the computer-readable storage medium of the present invention. When the color bar screen detection program is executed by a processor, the steps of the color bar screen detection method as described above are implemented.

[0133] The method implemented when the color bar screen detection program is executed can refer to the various embodiments of the color bar screen detection method of the present invention, which will not be elaborated here.

[0134] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0135] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0136] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0138] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words may be interpreted as names.

[0139] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn the basic inventive concept. Therefore, the appended claims are intended to be construed to cover the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.

[0140] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structural transformation made by using the specification and drawings of the present invention under the inventive concept of the present invention, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present invention.

Claims

1. A method for detecting a color bar screen, characterized in that, the method for detecting a color bar screen includes the following steps: Obtain the color component histogram and the brightness histogram of the target source; Judge whether the target source is a color source according to the color component histogram; If the target source is a color source, determine whether the target source is a color bar screen or a non-color bar screen according to the brightness histogram; The step of determining whether the target source is a color bar screen or a non-color bar screen according to the brightness histogram includes: Determine the number of peaks of the peaks in the brightness histogram; If the number of peaks is within a preset number range, determine whether the target source is a color bar screen or a non-color bar screen according to the distribution between the peaks; If the number of peaks is not within a preset number range, determine that the target source is a non-color bar screen; The step of determining the number of peaks of the peaks in the brightness histogram includes: Determine the target brightness data greater than or equal to the preset gray level value in the brightness histogram, use the target brightness data as the peak, and determine the number of peaks of the peak; The step of determining whether the target source is a color bar screen or a non-color bar screen according to the distribution between the peaks includes: Filter out the maximum peak among the peaks to obtain each remaining peak, and determine the average peak between the remaining peaks; Determine the difference between the remaining peak and the average peak, and judge whether each difference is within a preset difference range; If each difference is within a preset difference range, determine that the target source is a color bar screen; If at least one of the differences is not within a preset difference range, determine that the target source is a non-color bar screen.

2. The method for detecting a color bar screen according to claim 1, characterized in that, the step of judging whether the target source is a color source according to the color component histogram includes: Determine the color component values of each color in the color component histogram; If each color component value is less than the preset gray level value, determine that the target source is a non-color source.

3. The method for detecting a color bar screen according to claim 2, characterized in that, after the step of determining the color component values of each color in the color component histogram, the method further includes: If at least one of the color component values is greater than or equal to the preset gray level value, determine that the target source is a color source, and execute the step of determining whether the target source is a color bar screen or a non-color bar screen according to the brightness histogram.

4. The method for detecting a color bar screen according to claim 1, characterized in that, before the step of determining the number of peaks of the peaks in the brightness histogram, the method further includes: Determine the target brightness quantity corresponding to the brightness data less than the preset gray level value in the brightness histogram, and determine the total quantity of the brightness data in the brightness histogram; If the target brightness quantity is greater than or equal to the brightness quantity threshold corresponding to the total quantity of the brightness data, determine that the target source is a non-color bar screen; If the number of target brightness levels is less than the brightness level threshold corresponding to the total amount of brightness data, then perform the step of determining the number of peaks in the brightness histogram.

5. A color bar screen detection device, characterized in that the color bar screen detection device includes: a data acquisition module configured to obtain a color component histogram and a brightness histogram of a target video source; a screen recognition module configured to determine whether the target video source is a color video source according to the color component histogram; if the target video source is a color video source, then determine whether the target video source is a color bar screen or a non-color bar screen according to the brightness histogram; The screen recognition module is further configured to: determine the number of peaks in the brightness histogram; if the number of peaks is within a preset number range, then determine whether the target video source is a color bar screen or a non-color bar screen according to the distribution between each peak; if the number of peaks is not within the preset number range, then determine that the target video source is a non-color bar screen; The screen recognition module is further configured to: determine the target brightness data in the brightness histogram that is greater than or equal to a preset gray level value, use the target brightness data as a peak, and determine the number of peaks of the peak; The screen recognition module is further configured to: filter out the maximum peak in the peaks to obtain each remaining peak, and determine the average peak between each of the remaining peaks; determine the difference between the remaining peak and the average peak, and determine whether each of the differences is within a preset difference range; if each of the differences is within the preset difference range, then determine that the target video source is a color bar screen; if at least one of the differences is not within the preset difference range, then determine that the target video source is a non-color bar screen.

6. A display device, characterized in that the display device includes a processor, a memory, and a color bar screen detection program stored on the memory and executable by the processor, wherein when the color bar screen detection program is executed by the processor, the steps of the color bar screen detection method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, characterized in that a color bar screen detection program is stored on the computer-readable storage medium, wherein when the color bar screen detection program is executed by a processor, the steps of the color bar screen detection method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Image identification method and device

    CN101599122A

  • Video color bar detecting method and video color bar detecting device

    CN104754324A