Image detection method and device, driver chip and electronic device
By performing pixel detection on the image of the display panel to determine whether it conforms to the preset pixel style, the inaccuracy problem of the display panel when displaying a specific image is solved, and the effect of improving display accuracy is achieved.
Patent Information
- Application Number
- CN202210426083.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-04-21
AI Technical Summary
The display panel will have inaccurate display problems when displaying a specific image.
By performing pixel detection on the color channel display data of each pixel of each pixel of the image to be detected separately, it is determined whether the preset pixel style is in line with the preset pixel style, and then the image is determined as the target detection image.
It realizes the rapid detection of the pixel style of the image to be detected, and subsequent adjustments to the display parameters to improve the accuracy of the display.
Smart Images

Figure CN114841936B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to an image detection method and device, a driver chip, and an electronic device. Background Art
[0002] With the continuous development of science and technology and the continuous improvement of people's living standards, various types of electronic devices with display functions are becoming more and more popular. However, when a display panel receives a specific display image, the display panel may have inaccurate display problems when displaying the specific display image. Summary of the invention
[0003] According to one aspect of the present disclosure, there is provided an image detection method, the method comprising:
[0004] Perform pixel detection on each color channel display data of each pixel of the image to be detected, and obtain the detection result;
[0005] When the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, it is determined that the image to be detected is a target detection image.
[0006] In a possible implementation manner, the pixel detection is performed on each color channel display data of each pixel of the image to be detected, including:
[0007] For the color channel display data of the current color channel, multiple columns of color channel display data in the target detection area of the image to be detected are divided to obtain N display blocks, each display block includes K consecutive columns of color channel display data, wherein K and N are ≥ 1 and are both integers;
[0008] If the number of target blocks in the display block reaches P, it is determined that the color channel display data of the current color channel conforms to the corresponding preset pixel style, wherein the color channel display data in the target block that conforms to the preset pixel style reaches L columns, wherein L≤K, P≤N and L and P are both integers.
[0009] In a possible implementation, the method further includes:
[0010] Determine the brightness of each color channel of each pixel;
[0011] Among them, the preset pixel pattern includes a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, and the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
[0012] In a possible implementation, the method further includes:
[0013] Receive target detection area indication information to determine the target detection area of the image to be detected.
[0014] In a possible implementation, the method further includes:
[0015] Configure multiple preset pixel styles and synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected.
[0016] In a possible implementation, the method further includes:
[0017] When it is determined that the image to be detected is a target detection image, display parameters of the target detection image are adjusted.
[0018] According to one aspect of the present disclosure, there is provided an image detection device, the device comprising:
[0019] A detection module, used for performing pixel detection on each color channel display data of each pixel of the image to be detected;
[0020] The first determination module is connected to the detection module and is used to determine that the image to be detected is a target detection image when the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern.
[0021] In a possible implementation, the detection module includes a plurality of detection units, each detection unit is used to perform pixel detection on color channel display data of each color channel of the image to be detected, wherein each detection unit includes:
[0022] A region division unit, used for dividing a plurality of columns of color channel display data in a target detection region of the image to be detected to obtain N display blocks, each display block including K consecutive columns of color channel display data, wherein K and N are ≥ 1 and are both integers;
[0023] A determination unit is used to: if the number of target blocks in the display block reaches P, determine that the color channel display data of the current color channel conforms to the corresponding preset pixel pattern, wherein the color channel display data that conforms to the preset pixel pattern in the target block reaches L columns, wherein L≤K, P≤N and L and P are both integers.
[0024] In a possible implementation, each detection unit further includes:
[0025] A brightness determination unit, for the brightness of each color channel of each pixel;
[0026] The preset pixel pattern includes a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
[0027] In a possible implementation, the determining unit includes:
[0028] The first judging subunit is used to judge whether there are L columns of color channel display data in each display block with color channel brightness conforming to the preset pixel pattern;
[0029] The second determination subunit is used to determine whether there are P display blocks, and in each display block there are L columns of color channel display data whose color channel brightness conforms to the preset pixel pattern.
[0030] In a possible implementation, the first judgment subunit is further configured to: if there are more than a preset number of target pixel pairs in the pixels corresponding to any column of color channel display data, determine whether the color channel brightness of the column of color channel display data conforms to the preset pixel pattern;
[0031] The target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
[0032] In a possible implementation, the device further includes:
[0033] At least one second determination module, each second determination module is connected to at least two of the detection modules, and the second determination module is used to output a pattern determination signal according to the detection results of the connected detection modules, wherein each detection module is configured with a different preset pixel pattern, and each detection module is used to synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected;
[0034] The decoder is connected to at least one second determination module and the first determination module, and is used to output a corresponding style indication signal according to the style judgment signal of each second determination module and / or the detection module.
[0035] According to one aspect of the present disclosure, a driving chip is provided, wherein the chip includes the image detection device.
[0036] In a possible implementation manner, the chip is any one of a timing controller chip, a display driver chip, and a touch display integrated chip.
[0037] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes the driving chip and a display panel.
[0038] In a possible implementation, the display panel includes any one or more of LED, MiniLED, MicroLED, and OLED.
[0039] In a possible implementation, the electronic device includes any one of a display, a smart phone, a smart watch, a smart bracelet, a tablet computer, a laptop computer, an all-in-one computer, an access control device, and an electronic door lock.
[0040] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0041] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0042] The disclosed embodiment obtains a detection result by performing pixel detection on each color channel display data of each pixel of the image to be detected. When the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, the image to be detected is determined to be a target detection image. The pixel pattern detection of the image to be detected can be quickly realized so that the display parameters can be adjusted subsequently to improve the display accuracy.
[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0045] Figure 1 A flow chart of an image detection method according to an embodiment of the present disclosure is shown.
[0046] Figure 2 A flow chart of an image detection method according to an embodiment of the present disclosure is shown.
[0047] Figure 3 A schematic diagram of a target detection area according to an embodiment of the present disclosure is shown.
[0048] Figure 4 A brightness diagram according to an embodiment of the present disclosure is shown.
[0049] Figure 5 A schematic diagram showing color channel display data according to an embodiment of the present disclosure is shown.
[0050] Figure 6a and Figure 6b A schematic diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0051] Figure 7 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0052] Figure 8 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0053] Fig. 9 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0054] Fig.10 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0055] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0056] In the description of the present disclosure, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present disclosure.
[0057] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0058] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0059] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0060] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0061] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0062] See also Figure 1 , Figure 1 A flow chart of an image detection method according to an embodiment of the present disclosure is shown.
[0063] like Figure 1 As shown, the method includes:
[0064] Step S11, performing pixel detection on the display data of each color channel of each pixel of the image to be detected to obtain a detection result;
[0065] Step S12, when the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, determining that the image to be detected is a target detection image.
[0066] The disclosed embodiment obtains a detection result by performing pixel detection on each color channel display data of each pixel of the image to be detected. When the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, the image to be detected is determined to be a target detection image. The pixel pattern detection of the image to be detected can be quickly realized so that the display parameters can be adjusted subsequently to improve the display accuracy.
[0067] The image detection method of the disclosed embodiment can be executed by a processing component or an electronic device such as a terminal or a server including a processing component, so as to realize pixel detection of each color channel display data of each pixel of the image to be detected, and obtain a detection result. In the case where the color channel display data of at least one color channel of the detection result indicates that it conforms to the corresponding preset pixel pattern, the image to be detected is determined to be a target detection image. In one example, the processing component includes but is not limited to a separate processor, or a discrete component, or a combination of a processor and a discrete component. The processor may include a controller having an execution instruction function in an electronic device, and the processor may be implemented in any appropriate manner, for example, by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components. Inside the processor, the executable instructions may be executed by hardware circuits such as logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers.
[0068] In one example, the terminal is also called User Equipment (UE), Mobile Station (MS), Mobile Terminal (MT), etc., which is a device that provides voice and / or data connectivity to users, for example, a handheld device with wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: mobile phones, tablet computers, laptops, PDAs, mobile Internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control (Industrial Control), wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid (Smart Grid), wireless terminals in transportation safety (Transportation Safety), wireless terminals in smart cities (Smart City), wireless terminals in smart homes (Smart Home), wireless terminals in Internet of Vehicles, etc.
[0069] The embodiments of the present disclosure do not limit the specific color channels of each pixel of the image to be detected. The embodiments of the present disclosure can convert the image to be detected into the required color space (Color Space). In different color spaces, color channels have different classifications, for example, RGB (red, green, blue) color space, HSV (hue, saturation, value) color space, HSL (hue, saturation, lightness / luminance) color space, YUV (Y represents brightness, UV represents chromaticity) color space, etc. For example, for the RGB color space, each pixel of the image to be detected can include a red channel R, a green channel G, and a blue channel B. Corresponding to the display panel, a pixel can include a red pixel light, a green pixel light, and a blue pixel light. The embodiments of the present disclosure will be introduced exemplarily using the RGB color space.
[0070] Exemplarily, the image to be detected in the embodiment of the present disclosure may include M×N pixels, where M and N are both integers greater than 1, wherein M represents columns and N represents rows, and each pixel of the image to be detected may include red channel display data, green channel display data, and blue channel display data. Correspondingly, the red channel display data, green channel display data, and blue channel display data of the image to be detected each include M columns and N rows.
[0071] See also Figure 2 , Figure 2 A flow chart of an image detection method according to an embodiment of the present disclosure is shown.
[0072] In a possible implementation, Figure 2 As shown, step S11 performs pixel detection on each color channel display data of each pixel of the image to be detected, which may include:
[0073] Step S111, for the color channel display data of the current color channel, dividing multiple columns of color channel display data in the target detection area of the image to be detected to obtain N display blocks, each display block includes K consecutive columns of color channel display data, wherein K and N are ≥ 1 and are both integers;
[0074] Step S112, if the number of target blocks in the display block reaches P, determine that the color channel display data of the current color channel conforms to the corresponding preset pixel style, wherein the color channel display data that conforms to the preset pixel style in the target block reaches L columns, wherein L≤K, P≤N and L and P are both integers.
[0075] The disclosed embodiment divides multiple columns of color channel display data in the target detection area of the image to be detected for the color channel display data of the current color channel to obtain N display blocks, each display block includes K consecutive columns of color channel display data. If there are at least P display blocks and at least L columns of color channel display data in each display block conform to the preset pixel pattern, it can be quickly determined that the color channel display data of the current color channel conforms to the corresponding preset pixel pattern.
[0076] The embodiments of the present disclosure do not limit the specific size of the target detection area. For example, the target detection area can be the entire display area of the display panel (correspondingly, it can be the entire display data of the image to be detected), or it can be a partial display area in the display panel (correspondingly, it can be a partial display data of the image to be detected).
[0077] See also Figure 3 , Figure 3 A schematic diagram of a target detection area according to an embodiment of the present disclosure is shown.
[0078] In one example, if Figure 3As shown, the target detection area can be determined using four corner coordinates (reg_hs, reg_vs), (reg_he, reg_vs), (reg_hs, reg_ve) and (reg_he, reg_ve). According to the specific detection requirements of the target detection area, the embodiment of the present disclosure can adaptively set the above four corner coordinates.
[0079] In a possible implementation, Figure 2 As shown, the method may also include:
[0080] Step S115: receiving target detection area indication information to determine the target detection area of the image to be detected.
[0081] The embodiment of the present disclosure receives target detection area indication information to determine the target detection area of the image to be detected, thereby achieving adaptive configuration of the target detection area. Exemplarily, the target detection area indication information may include four corner coordinates (reg_hs, reg_vs), (reg_he, reg_vs), (reg_hs, reg_ve) and (reg_he, reg_ve) in the display panel or the image to be detected.
[0082] The embodiments of the present disclosure do not limit the specific implementation method of indicating the target detection area indication information. Those skilled in the art can implement it in a suitable manner according to actual conditions and needs. For example, the embodiments of the present disclosure can use a valid data selection signal DE to indicate the target detection area indication information, wherein the valid data selection signal DE can be a composite signal of signals such as a line synchronization signal (Hsync) and a field synchronization signal (Vsync). Since in the video signal input to the display panel, the valid video signal (valid RGB signal) only occupies a part of the signal cycle, and the line blanking and field blanking periods of the signal do not contain valid video data. Therefore, when the relevant circuits in the display panel process the video signal, it is necessary to distinguish the interval containing the valid video signal from the blanking interval not containing the valid video signal. In order to distinguish between valid and invalid video signals, a valid data selection signal DE is set in the display panel. The above introduction to the valid data selection signal DE is exemplary and should not be regarded as a limitation to the embodiments of the present disclosure. For the specific introduction of the valid data selection signal DE, please refer to the description of the relevant technology. Of course, the embodiments of the present disclosure are not limited to only using the valid data selection signal DE to indicate the target detection area. Those skilled in the art can select a suitable method according to actual conditions and needs.
[0083] When the embodiment of the present disclosure divides the display blocks for multiple columns of color channel display data, the number of columns K included in the display blocks can be set according to actual conditions and needs. The embodiment of the present disclosure does not limit the specific size of K. For example, each display block can include 3 or 4 columns of color channel display data.
[0084] The preset pixel pattern may include the setting or arrangement of preset pixel parameters (such as brightness, chromaticity, etc.). The present disclosure does not limit the specific type of the preset pixel pattern, and those skilled in the art may set it according to actual conditions and needs. For example, the preset pixel pattern may include the number of brightness cycles of the color channel in each column of color channel display data, such as the number of cyclic changes of bright and dark levels. For example, the preset pixel pattern may include a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: of two adjacent pixels, the color channel brightness of one pixel is less than the first brightness, the color channel brightness of the other pixel is greater than the second brightness, and the second brightness is greater than the first brightness.
[0085] See also Figure 4 , Figure 4 A brightness diagram according to an embodiment of the present disclosure is shown.
[0086] In one example, if Figure 4 As shown, the brightness less than the first brightness GSD can be called dark-level data, the brightness greater than the second brightness GSB can be called bright-level data, and the brightness between the first brightness GSD and the second brightness GSB can be called invalid data. It should be noted that the invalid data here refers to the brightness data ignored in the pixel detection of the preset pixel pattern of this example, that is, in this example, the embodiment of the present disclosure only detects the bright-level data and the dark-level data, and ignores the brightness data between the first brightness GSD and the second brightness GSB. Of course, the embodiment of the present disclosure is not limited to this, and those skilled in the art can set other preset pixel patterns. In other preset pixel patterns, there may be specific circumstances, so that the brightness data between the first brightness GSD and the second brightness GSB is also in the preset pixel pattern. The specific values of the first brightness and the second brightness can be set as needed.
[0087] Exemplarily, the disclosed embodiment can perform brightness detection on each column of color channel display data, take two adjacent pixels as a group (the pixels of each group do not overlap), and count the number of target pixel pairs in each column of color channel display data to determine whether there are target pixel pairs greater than a preset number in the pixels corresponding to each column of color channel display data. Exemplarily, the disclosed embodiment can count each color channel display data separately. For example, the bright level data is represented by "1" and the dark level data is represented by "0", then the target pixel pairs can be pixels corresponding to consecutive "10" or "01", for example, in "101001", there are three target pixel pairs of "10", "10", and "01". The disclosed embodiment can store the bright level data and the dark level data through registers. For example, the distinguished dark level data and bright level data are respectively stored in two registers, and the output value 1 represents the bright level data, and the output value 0 represents the dark level data. By counting the number of target pixel pairs (corresponding to brightness data "10" or "01") in each column and comparing it with the preset number, the disclosed embodiment can determine whether there are more than the preset number of target pixel pairs in the pixels corresponding to the color channel display data in each column of each display block. If there are P display blocks, and each display block has L columns of color channel display data that conform to the preset pixel pattern, it is determined that the color channel display data of the current color channel conforms to the corresponding preset pixel pattern. The disclosed embodiment does not limit the specific size of the preset number, and those skilled in the art can set it according to actual conditions and needs. For example, the preset number can be any value between 0 and 16.
[0088] See also Figure 5 , Figure 5 A schematic diagram showing color channel display data according to an embodiment of the present disclosure is shown.
[0089] In one example, if Figure 5As shown, taking the color channel as the red channel as an example, taking the target detection area as the entire image as an example, the red channel display data includes M (0-m) columns and N (0-n) rows, a total of M×N red channel display data, arranged into M×N red channel display data (grayscale values), on this basis, the data type of the preset pixel style of each column (LINE0-LINEm) is defined as: two red channel display data for one cycle + two red channel display data are dark level data (i.e., the output value is 0) and bright level data (i.e., the output value is 1), that is, a target pixel pair. For example, if R0_0=reg_type00 (dark level 0) and R0_1=reg_type01 (bright level 1), the data type of the preset pixel style is consistent with the definition, and the statistical counter (counter) is accumulated by 1. Further, if R0_2=reg_type00 and R0_3=reg_type01, the counter is accumulated by 1 again. If the display panel is 1920 (columns) × 1080 (rows), then the same logic is used until all values are calculated, and finally whether the horizontal style hit is met (i.e., the pixels corresponding to each column of color channel display data have a target pixel pair greater than the preset number) is determined based on whether the accumulated value of the counter corresponding to each column exceeds the preset number. Furthermore, the disclosed embodiment can perform vertical style hit statistics (i.e., determine whether there are at least P display blocks, and each display block has at least L columns of color channel display data that meet the preset pixel style), and count whether the number of display blocks that meet the horizontal style hit in the 1920 columns exceeds the critical value P. If so, it is determined that the color channel display data of the current color channel meets the corresponding preset pixel style.
[0090] The disclosed embodiments do not limit the manner in which display blocks are divided; display blocks may be divided in advance, or they may be divided when detecting a preset pixel pattern for each column of color channel display data; for example, the preset pixel pattern may be determined for each column of color channel display data in turn, and K consecutive columns of color channel display data may be defined as a block; if the color access display data that meets the corresponding preset pixel pattern (also referred to as meeting the horizontal pattern hit) in the K columns of color channel display data reaches L columns, the number of target blocks is increased by 1; if the number of target blocks reaches P, it is determined that the color channel display data of the current color channel meets the corresponding preset pixel pattern.
[0091] The embodiment of the present disclosure can determine that the image to be detected is a target detection image when it is determined that the color channel display data of at least one color channel conforms to the corresponding preset pixel style. Exemplarily, if it is determined that the color channel display data of each color channel conforms to the corresponding preset pixel style, the embodiment of the present disclosure can further improve the accuracy of determining that the image to be detected is a target detection image.
[0092] In a possible implementation, the method may further include:
[0093] Determines the brightness of each color channel for each pixel.
[0094] In a possible implementation, Figure 2 As shown, the method may also include:
[0095] Step S21, configure multiple preset pixel patterns, and synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected. The image to be detected can be detected based on different preset pixel patterns.
[0096] The disclosed embodiment configures a plurality of preset pixel styles and synchronously performs pixel detection on the display data of each color channel of each pixel of the image to be detected, thereby improving the efficiency of pixel detection and avoiding missed detection. Moreover, for different preset pixel styles, the disclosed embodiment can adaptively adjust the parameters of the display panel (such as driving voltage, etc.) to solve the problem of inaccurate display when the display panel displays images corresponding to these preset pixel styles.
[0097] In a possible implementation, Figure 2 As shown, the method may also include:
[0098] Step S22: When it is determined that the image to be detected is a target detection image, the display parameters of the target detection image are adjusted.
[0099] The embodiment of the present disclosure can solve the problem of inaccurate display when the display panel displays images corresponding to these preset pixel patterns by adjusting the display parameters of the target detection image when determining that the image to be detected is a target detection image, thereby improving the accuracy of the image displayed by the display panel.
[0100] Of course, the embodiments of the present disclosure do not limit specific display parameters, and those skilled in the art can adaptively select display parameters that need to be adjusted according to different types and properties of display panels and problems caused by corresponding preset pixel styles.
[0101] See also Figure 6a and Figure 6b , Figure 6a and Figure 6b A schematic diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0102] In one example, if Figure 6aAs shown, the electronic device may include, for example, a display panel 11a, a timing controller 121a (TCON, Timing Contoller), a gate driver 122a (or scan driver), and a source driver 123a (or data driver), wherein the display panel 11a includes M×N pixels, and each pixel includes a red sub-pixel (Red sub-pixel), a green sub-pixel (Green sub-pixel) and a blue sub-pixel (Blue sub-pixel).
[0103] In one example, in order to save circuit area and reduce power consumption, as Figure 6b As shown, the timing controller 121a, the gate driver 122a and the source driver 123a can be integrated into a single driver chip 12a, for example, the driver chip 12a can be a display driver chip (Display Driver IC, referred to as "DDIC"). Furthermore, the touch circuit, the timing controller 121a, the gate driver 122a and the source driver 123a can also be integrated into a single driver chip, for example, the driver chip 12a can be a touch display integrated chip (Touch and Display Driver Integration, TDDI).
[0104] In one example, during normal operation, the timing controller 121a receives display data transmitted by a host computer (such as an application processor of a mobile phone), and then controls the gate driver 122a and the source driver 123a according to the display data, thereby driving the display panel 11a to display images.
[0105] In the case where the image to be detected is determined to be a target detection image, the embodiment of the present disclosure adjusts the display parameters of the target detection image, for example, the driver chip 12a can be controlled to adjust the display parameters of the target detection image, so that the display of the display panel is more accurate. Of course, the embodiment of the present disclosure does not limit the specific parameters, and those skilled in the art can select appropriate parameters for control according to actual conditions and needs.
[0106] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0107] In addition, the present disclosure also provides an image detection device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any image detection method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.
[0108] See also Figure 7 , Figure 7 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0109] like Figure 7 As shown, the device comprises:
[0110] Detection module 1, used for performing pixel detection on each color channel display data of each pixel of the image to be detected;
[0111] The first determination module 2 is connected to the detection module, and is used to determine that the image to be detected is a target detection image when the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern.
[0112] The disclosed embodiment obtains a detection result by performing pixel detection on each color channel display data of each pixel of the image to be detected. When the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, the image to be detected is determined to be a target detection image. The pixel pattern detection of the image to be detected can be quickly realized so that the display parameters can be adjusted subsequently to improve the display accuracy.
[0113] See also Figure 8 , Figure 8 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0114] In a possible implementation, Figure 8 As shown, the detection module may include a plurality of detection units 10, each detection unit 10 is used to perform pixel detection on the color channel display data of each color channel of the image to be detected, wherein each detection unit 10 includes:
[0115] The area division unit 110 is used to divide the multiple columns of color channel display data in the target detection area of the image to be detected to obtain N display blocks, each display block includes K consecutive columns of color channel display data, where K and N are ≥ 1 and are both integers;
[0116] The determination unit 120 is used to: if the number of target blocks in the display block reaches P, determine that the color channel display data of the current color channel conforms to the corresponding preset pixel style, wherein the color channel display data that conforms to the preset pixel style in the target block reaches L columns, wherein L≤K, P≤N and L and P are both integers.
[0117] The embodiment of the present disclosure does not limit the number of detection units. For example, the number of detection units may correspond to the number of color channels. For example, for the RGB color space, the color channels may include a red channel R, a green channel G, and a blue channel B. Accordingly, the number of detection units may be 3, corresponding to the red channel R, the green channel G, and the blue channel B. Each detection unit is used to perform pixel detection on the corresponding color channel display data.
[0118] In a possible implementation, Figure 8 As shown, each detection unit may further include:
[0119] A brightness determination unit 130, for determining the brightness of each color channel of each pixel;
[0120] The preset pixel pattern may include a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
[0121] In a possible implementation, Figure 8 As shown, the determining unit 120 may include:
[0122] The first judging subunit 1210 is used to judge whether there are L columns of color channel display data in each display block with color channel brightness conforming to the preset pixel pattern;
[0123] The second determination subunit 1220 is used to determine whether there are P display blocks, and in each display block there are L columns of color channel display data whose color channel brightness conforms to the preset pixel pattern.
[0124] In a possible implementation, the first judgment subunit 1210 is further configured to: if there are more than a preset number of target pixel pairs in the pixels corresponding to any column of color channel display data, determine whether the color channel brightness of the column of color channel display data conforms to the preset pixel pattern;
[0125] The target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
[0126] See also Fig. 9 , Fig. 9 A block diagram of an image detection device according to an embodiment of the present disclosure is shown.
[0127] In a possible implementation, the device further includes:
[0128] At least one second determination module, each second determination module is connected to at least two of the detection modules, and the second determination module is used to output a pattern determination signal according to the detection results of the connected detection modules, wherein each detection module is configured with a different preset pixel pattern, and each detection module is used to synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected;
[0129] The decoder is connected to at least one second determination module and the first determination module, and is used to output a corresponding style indication signal according to the style judgment signal of each second determination module and / or the detection module.
[0130] The embodiment of the present disclosure sets each detection module to be configured with a different preset pixel style, and configures each detection module to synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected. After detecting the corresponding preset pixel style, the embodiment of the present disclosure can output a style indication signal corresponding to the corresponding preset pixel style to the display driver chip of the display panel, so as to adaptively adjust the display parameters according to the preset pixel style.
[0131] Exemplarily, in the embodiments of the present disclosure, a detection module can detect a preset pixel style. In some images, there may be two or more pixel styles. Therefore, the embodiments of the present disclosure set at least one second determination module connected to at least two of the detection modules, so that the second determination module outputs a style judgment signal (pattern_flag) according to the detection results of the connected detection modules, so as to realize the detection of any number of preset pixel styles in the same image to be detected. In addition, the embodiments of the present disclosure set the correspondence between the style indication signal and the style judgment signal in the decoder. The decoder only needs to determine which Pattern flag is raised (asserted) or is set to be valid, and then it can output the style indication signal corresponding to the pixel style to the display driver chip, so that the display driver chip can take corresponding parameter compensation actions to enable the display panel to display an accurate picture and overcome the actual defects caused by these pixel styles.
[0132] According to one aspect of the present disclosure, a driving chip is provided, wherein the chip includes the image detection device.
[0133] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes the driving chip and a display panel.
[0134] In a possible implementation, the display panel includes any one or more of LED, MiniLED, MicroLED, and OLED.
[0135] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0136] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0137] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0138] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0139] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0140] See also Fig.10 , Fig.10 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0141] For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0142] For example, the electronic device 1900 may be provided as a server.
[0143] Reference Fig.10, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0144] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM ), a graphical user interface operating system launched by Apple (Mac OSX TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.
[0145] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0146] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0147] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0148] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0149] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0150] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0151] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0152] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0153] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0154] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0155] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. An image detection method, characterized in that: The method comprises: Perform pixel detection on each color channel display data of each pixel of the image to be detected, and obtain the detection result; In the case where the detection result indicates that the color channel display data of at least one color channel conforms to the corresponding preset pixel pattern, determining that the image to be detected is a target detection image, wherein the preset pixel pattern includes a setting or arrangement of preset pixel parameters, The pixel detection is performed on each color channel display data of each pixel of the image to be detected, including: For the color channel display data of the current color channel, multiple columns of color channel display data in the target detection area of the image to be detected are divided to obtain N display blocks, each display block includes K consecutive columns of color channel display data, wherein K and N are ≥ 1 and are both integers; If the number of target blocks in the display block reaches P, it is determined that the color channel display data of the current color channel conforms to the corresponding preset pixel pattern, wherein the color channel display data conforming to the preset pixel pattern in the target block reaches L columns, wherein L≤K, P≤N and L and P are both integers, The method further comprises: Determine the brightness of each color channel of each pixel; Among them, the preset pixel pattern includes a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, and the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
2. The method according to claim 1, characterized in that: The method further comprises: Receive target detection area indication information to determine the target detection area of the image to be detected.
3. The method according to claim 1, characterized in that The method further comprises: Configure multiple preset pixel styles and synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When it is determined that the image to be detected is a target detection image, display parameters of the target detection image are adjusted.
5. An image detection device, characterized in that: The device comprises: A detection module, used for performing pixel detection on each color channel display data of each pixel of the image to be detected; a first determination module, connected to the detection module, for determining that the image to be detected is a target detection image when the color channel display data of at least one color channel conforms to a corresponding preset pixel pattern, wherein the preset pixel pattern includes a preset setting or arrangement of pixel parameters, The detection module includes a plurality of detection units, each detection unit is used to perform pixel detection on the color channel display data of each color channel of the image to be detected, wherein each detection unit includes: A region division unit, used for dividing a plurality of columns of color channel display data in a target detection region of the image to be detected to obtain N display blocks, each display block including K consecutive columns of color channel display data, wherein K and N are ≥ 1 and are both integers; a determining unit, configured to: if the number of target blocks in the display block reaches P, determine that the color channel display data of the current color channel conforms to the corresponding preset pixel pattern, wherein the color channel display data conforming to the preset pixel pattern in the target block reaches L columns, wherein L≤K, P≤N and L and P are both integers, Each test unit also includes: A brightness determination unit, for the brightness of each color channel of each pixel; The preset pixel pattern includes a target pixel pair having a number greater than a preset number in the pixels corresponding to each column of color channel display data, wherein the target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
6. The device according to claim 5, characterized in that The determining unit comprises: The first judging subunit is used to judge whether there are L columns of color channel display data in each display block with color channel brightness conforming to the preset pixel pattern; The second determination subunit is used to determine whether there are P display blocks, and in each display block there are L columns of color channel display data whose color channel brightness conforms to the preset pixel pattern.
7. The device according to claim 6, characterized in that The first judgment subunit is further used to: if there are more than a preset number of target pixel pairs in the pixels corresponding to any column of color channel display data, determine whether the color channel brightness of the column of color channel display data conforms to the preset pixel pattern, The target pixel pair is: among two adjacent pixels, the color channel brightness of one pixel is less than a first brightness, the color channel brightness of the other pixel is greater than a second brightness, and the second brightness is greater than the first brightness.
8. The device according to claim 5, characterized in that The device also includes: At least one second determination module, each second determination module is connected to at least two of the detection modules, and the second determination module is used to output a pattern determination signal according to the detection results of the connected detection modules, wherein each detection module is configured with a different preset pixel pattern, and each detection module is used to synchronously perform pixel detection on each color channel display data of each pixel of the image to be detected; The decoder is connected to at least one second determination module and the first determination module, and is used to output a corresponding style indication signal according to the style judgment signal of each second determination module and / or the detection module.
9. A driver chip, characterized in that: The chip includes the image detection device as described in any one of claims 5-8.
10. The chip according to claim 9, characterized in that: The chip is any one of a timing controller chip, a display driver chip and a touch display integrated chip.
11. An electronic device, characterized in that: The electronic device comprises the driving chip according to claim 9 or 10, and a display panel.
12. The electronic device according to claim 11, characterized in that: The display panel includes any one or more of LED, MiniLED, MicroLED, and OLED.
13. The electronic device according to claim 12, characterized in that: The electronic device includes any one of a display, a smart phone, a smart watch, a smart bracelet, a tablet computer, a laptop computer, an all-in-one computer, an access control device, and an electronic door lock.
Citation Information
Patent Citations
Image adjusting method and device, electronic equipment and storage medium
CN110855958A