Display terminal color depth test method and related equipment
By generating a color depth test screen containing multiple display areas, the highest color depth level supported by the display terminal can be directly determined, solving the problem of low efficiency in existing technologies and achieving fast and accurate color depth testing.
Patent Information
- Application Number
- CN202512023166.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-03-20
AI Technical Summary
Existing color depth testing methods for display terminals are inefficient and cannot meet the testing needs of high-efficiency production lines. The testing process is cumbersome and time-consuming.
By acquiring multiple candidate color depth levels supported by the display terminal under test, converting them into their corresponding grayscale ranges, generating a color depth test screen containing multiple display areas, and defining different display areas for different candidate color depth levels in the screen, the highest color depth level actually supported by the display terminal under test can be directly determined.
It enables fast and accurate color depth testing, shortens testing time, improves testing efficiency, ensures signal compatibility and the accuracy of test results, and supports human eye observation and equipment analysis.
Smart Images

Figure CN121708836A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display terminal testing technology, and in particular to a method and related equipment for testing the color depth of a display terminal. Background Technology
[0002] Currently, testing the color depth support capability of display terminals is a crucial step in evaluating their display performance. Color depth refers to the number of discrete grayscale levels that each color channel of a display device can produce; common levels include 6-bit, 8-bit, and 10-bit color depth. Higher color depth results in smoother color transitions. The basic principle of testing is to input a set of grayscale signals with subtle differences into the display device and observe whether the device can correctly reproduce these differences. However, in scenarios with high efficiency requirements, such as batch testing on production lines, how to complete the test quickly, intuitively, and accurately has become a pressing technical problem to be solved.
[0003] To address the aforementioned testing requirements, existing technologies typically employ a "sequential color depth gradient test method." This method first generates a series of static images or dynamic video sequences, each sequence specifically designed to test a particular color depth level, such as generating a grayscale gradient sequence from 0 to 255 at an 8-bit color depth. These test images or videos are then sequentially sent to the display device under test for playback. During playback, the tester uses optical measurement equipment to measure and record the brightness value of each frame. The recorded brightness values are then input into a data analysis device for statistical analysis, generating a grayscale-brightness relationship curve. Finally, the smoothness of the curve is analyzed to determine the result: if the curve is smooth without breaks, it proves that the display terminal supports the currently tested color depth; if the curve exhibits regular, stepped breaks, it proves that it does not support the color depth.
[0004] The aforementioned existing technical solutions have significant drawbacks. Because they employ a "serialized" testing mode, a separate test signal sequence must be generated, switched, and displayed for each color depth level under test. The entire testing process is cumbersome and time-consuming. Especially during large-scale quality inspections on production lines, this inefficient testing method severely restricts the overall production cycle time, increases time and labor costs, and fails to meet the application requirements for high-efficiency testing.
[0005] Therefore, there is an urgent need for a new solution for color depth testing of display terminals that can significantly improve testing efficiency and is more intuitive and convenient, in order to overcome the inherent defects of existing serialization testing methods. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to address the shortcomings of the prior art, and specifically provides a method and related equipment for testing the color depth of a display terminal, as detailed below: 1) In a first aspect, the present invention provides a method for testing the color depth of a display terminal, the specific technical solution of which is as follows: Obtain multiple candidate color depth levels supported by the display terminal under test; Convert each of the multiple candidate color depth levels into its corresponding grayscale range; Based on the entire grayscale range obtained by conversion, a color depth test image is generated. In the color depth test image, different display areas are defined for at least two candidate color depth levels, so that the color depth test image includes at least two display areas corresponding to different candidate color depth levels, and each display area is filled with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The test signal containing the color depth test image is sent to the display terminal under test for display. Based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, the highest color depth level actually supported by the display terminal under test is determined.
[0007] The beneficial effects of the color depth testing method for display terminals provided by this invention are as follows: By acquiring multiple candidate color depth levels supported by the display terminal under test in one go and generating a color depth test screen containing multiple corresponding display areas, parallel testing is achieved. This directly overcomes the inefficiency caused by the need for sequential generation, switching, and displaying signals in existing serialized testing methods, significantly shortening the overall testing time. The technology of converting and mapping multiple candidate color depth levels to the grayscale space of the highest color depth level ensures that the test signal is generated in a unified, high-quality format, effectively avoiding signal degradation and ensuring test accuracy and signal compatibility. The design of defining independent display areas for different candidate color depth levels in the test screen and filling them with corresponding grayscale values allows all test targets to be presented intuitively on the same screen, making the discrimination process clear and straightforward. The method of directly determining the discrimination of the highest color depth level based on the visual distinguishability between different areas in the display screen is fast and yields clear conclusions. It supports multiple methods, including human observation and device analysis, and can flexibly adapt to different testing scenarios and needs.
[0008] Based on the above scheme, the color depth testing method for display terminals of the present invention can be further improved as follows.
[0009] Furthermore, obtain multiple candidate color depth levels supported by the display terminal under test, including: Read and obtain multiple candidate color depth levels supported by the display terminal under test based on the device specification parameters of the display terminal under test.
[0010] The advantages of adopting the above-mentioned further approach are: by reading and obtaining multiple candidate color depth levels based on the device specifications of the display terminal under test, standard performance data explicitly recorded in product documentation or internal storage provided by the manufacturer can be directly utilized. This method ensures the high reliability and authority of the obtained candidate color depth level list, establishing an accurate benchmark for subsequent testing procedures. It avoids the uncertainty or error caused by inferring potentially supported levels from other dynamic signals, thereby improving the standardization of the overall testing process and the reliability of the results from the source.
[0011] Furthermore, multiple candidate color depth levels supported by the display terminal under test are obtained, including: obtaining multiple candidate color depth levels supported by the display terminal under test by parsing the extended display identifier data in the video interface protocol supported by the display terminal under test.
[0012] The advantages of adopting the above-mentioned further solution are as follows: By parsing the extended display identifier data in the video interface protocol supported by the display terminal under test to obtain multiple candidate color depth levels, the standardized and structured performance information provided by the display terminal itself is utilized. This method enables direct detection of the actual communication capability of the display terminal in real-time connection status. The obtained candidate color depth level list can accurately reflect the color depth options supported after the current interface link negotiation, exhibiting high real-time performance and accuracy. The automated parsing process also improves information acquisition efficiency and reduces reliance on external documents or manual input.
[0013] Furthermore, based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, the actual color depth levels supported by the display terminal under test are determined, including: A pre-established correspondence is established between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth level supported by the display terminal under test. Based on this correspondence, the highest candidate color depth level actually supported by the display terminal under test is determined by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display image.
[0014] The beneficial effects of adopting the above-mentioned further solution are as follows: By pre-establishing the correspondence between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth levels supported by the display terminal under test, a systematic logical foundation is provided for the entire discrimination process. Based on this correspondence, by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display image, the highest color depth level actually supported by the display terminal under test can be directly and efficiently derived. This method makes the discrimination criteria clear and the process standardized, effectively improving the objectivity and accuracy of the judgment results and the consistency of the testing process.
[0015] 2) In a second aspect, the present invention also provides a color depth testing system for display terminals, the specific technical solution of which is as follows: It includes a candidate color depth level acquisition module, a conversion module, a generation module, a display module, and a determination module; The candidate color depth level acquisition module is used to: acquire multiple candidate color depth levels supported by the display terminal under test; The conversion module is used to convert multiple candidate color depth levels into their respective grayscale ranges. The generation module is used to: generate a color depth test image based on the entire grayscale range obtained by conversion, wherein different display areas are defined for at least two candidate color depth levels in the color depth test image, such that the color depth test image includes at least two display areas corresponding to different candidate color depth levels, and each display area is filled with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The display module is used to send the test signal containing the color depth test image to the display terminal under test for display. The determination module is used to: determine the highest color depth level actually supported by the display terminal under test based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal.
[0016] Based on the above solution, the color depth testing system for display terminals of the present invention can be further improved as follows.
[0017] Furthermore, the candidate color depth level acquisition module is specifically used to: read and obtain multiple candidate color depth levels supported by the display terminal under test based on the device specification parameters of the display terminal under test.
[0018] Furthermore, the candidate color depth level acquisition module is specifically used to: obtain multiple candidate color depth levels supported by the display terminal under test by parsing the extended display identifier data in the video interface protocol supported by the display terminal under test.
[0019] Furthermore, the determination module is specifically used to: pre-establish the correspondence between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test screen and the actual color depth level supported by the display terminal under test; based on this correspondence, by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display screen, determine the highest color depth level actually supported by the display terminal under test.
[0020] 3) In a third aspect, the present invention also provides an electronic device, the electronic device including a processor coupled to a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor, so that the electronic device implements any of the above-mentioned display terminal color depth testing methods.
[0021] 4) In a fourth aspect, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described display terminal color depth testing methods.
[0022] It should be noted that the beneficial effects of the technical solutions of the second to fourth aspects of the present invention and their corresponding possible implementations can be found in the above description of the technical effects of the first aspect and its corresponding possible implementations, and will not be repeated here. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments of the present invention will be briefly introduced below: Figure 1 This is a flowchart illustrating a color depth testing method for a display terminal according to an embodiment of the present invention; Figure 2 Example of a color depth test image; Figure 3 This is a schematic diagram of the structure of a display terminal color depth testing system according to an embodiment of the present invention. Detailed Implementation
[0024] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0025] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0026] like Figure 1 As shown, an embodiment of the present invention provides a method for testing the color depth of a display terminal, comprising the following steps: S1. Obtain multiple candidate color depth levels supported by the display terminal under test; Candidate color depth levels refer to a series of color depth levels identified from the technical specifications of a display terminal, which the device claims to support. A color depth level defines the number of discrete grayscale levels that each color channel can represent, and is an important indicator of the fineness of a display device's color performance. For example, a display terminal may support multiple candidate color depth levels, including 6-bit, 8-bit, 10-bit, 12-bit, and 16-bit color depths. Each candidate color depth level corresponds to a specific grayscale range; for example, 8-bit color depth corresponds to a grayscale range of 0 to 255, and 10-bit color depth corresponds to a grayscale range of 0 to 1023. These candidate color depth levels collectively constitute the set of possible targets that need to be verified during the testing phase.
[0027] S1 is implemented in the following way: 1) First implementation method: Read and obtain multiple candidate color depth levels supported by the display terminal under test according to the device specification parameters of the display terminal under test; Device specifications are a set of technical characteristics and performance indicators defined and recorded during the design and manufacturing process of a display terminal. This data is typically provided by the device manufacturer and exists in the form of written documents, electronic tags, or embedded firmware information, clearly describing the display terminal's technical capabilities and functional scope. Device specifications are extensive, covering physical dimensions, resolution, refresh rate, supported video interface types, and color processing capabilities. Regarding color processing capabilities, the device specifications explicitly list the color depth levels the display terminal can handle. This information is crucial for judging the device's basic performance and can usually be found in product manuals, official technical white papers, or identification information stored internally within the device.
[0028] The specific implementation process of the first implementation method is as follows: 1) The test system needs to have the ability to interact with the display terminal under test (DUT). This is usually achieved through physical connection cables, such as high-definition multimedia interface cables, display port cables, or universal serial bus cables, connecting the signal output or control terminal of the test system to the corresponding interface of the DUT. After the connection is established, the communication protocol is initialized to ensure that commands and data can be accurately sent and received.
[0029] 2) Send a formatted device information query request to the display under test (DUT). This request is a digital instruction conforming to a specific industry standard or manufacturer-defined protocol, intended to command the DUT to return its internally stored device specification parameter data. For many standard video interfaces, there are common query instruction sets; for example, for high-definition multimedia interfaces, a request can be sent to read extended display identifier data. However, current implementations focus on obtaining this information directly from the device specification parameters. Therefore, the request instruction points to a memory area or firmware module that stores the complete specification parameter table.
[0030] 3) Receive and parse response data from the display under test (DUT). Upon receiving a query request, the DUT reads a pre-stored block of device specification parameters from its non-volatile memory and returns the block via the communication link. Upon receiving this raw data block, the built-in parsing algorithm is invoked. The parsing process requires identifying the structure of the data block and, based on the known device specification parameter data format, locating the specific field or section describing color processing capabilities.
[0031] 4) Extract color depth support information from the parsed structured data. After successfully parsing the device specification data, look for explicit descriptions or encoded lists related to color depth within the data. This information lists the supported color depth levels in text form, such as "supports 8-bit / 10-bit color depth," or it can be represented as a specific set of identifiers or bitmasks. Correctly interpret this information and convert it into a series of discrete color depth level values.
[0032] 5) Each extracted color depth level value, such as 6, 8, 10, 12, 16, etc., is standardized to ensure they are represented in a uniform "bit color depth" format. These standardized color depth levels are then integrated into an ordered list. This list is defined as the multiple candidate color depth levels supported by the display terminal under test. It serves as input for subsequent testing processes, guiding the generation of test images and the final determination of color depth support capabilities. The entire implementation process ensures logical coherence and technical feasibility from physical connection to information extraction, providing accurate basic data for subsequent testing steps.
[0033] 2) The second implementation method: By parsing the extended display identifier data in the video interface protocol supported by the display terminal under test, multiple candidate color depth levels supported by the display terminal under test can be obtained.
[0034] The Extended Display Identifier (EDI) data in the video interface protocol is a standardized data structure stored in the non-volatile memory of compatible digital display devices. This data structure contains basic identification information and detailed performance parameters of the display terminal, used to report its display capabilities to the signal source device. The EDI data follows a standard format defined by the Video Electronics Standards Association (VESA), and its content typically includes manufacturer information, product model, serial number, a list of supported display resolutions, refresh rate range, and color capabilities. The color capability section explicitly describes the various color formats and corresponding color depth levels that the display terminal can handle, providing crucial information for the signal source device to configure the optimal output signal.
[0035] The specific implementation process of the second implementation method is as follows: 1) Connect the device to a video input port of the display under test (DUT) using a compliant video cable, such as a High Definition Multimedia Interface (HMI) cable or a DisplayPort cable. After establishing the connection, initialize communication with the DUT. This process includes powering the connection link and performing link training and negotiation to ensure that both parties establish a stable digital communication channel that conforms to the specific video interface protocol.
[0036] 2) Initiate a request to the display under test (DUT) to read the extended display identifier data. The video interface protocol defines standard commands for reading extended display identifier data, generating a query command that conforms to the protocol specifications. This command is sent to the DUT via the established physical link. Essentially, the command is a digital signal requesting the DUT to return a complete block of extended display identifier data stored internally.
[0037] 3) Receive the raw byte stream of extended display identifier data returned from the display terminal under test. After receiving the read request, the display terminal under test accesses the specific area storing the extended display identifier data from its memory and returns the entire data block via the communication link. Receive these consecutive raw data bytes and temporarily store them in a buffer in memory, preparing for subsequent parsing operations.
[0038] 4) The raw byte stream is parsed according to the standard structure of the extended display identifier data. The extended display identifier data has a publicly defined, hierarchical data structure. A pre-programmed parsing algorithm is invoked to sequentially identify each part of the data block according to the data structure definition. The parsing process requires identifying the version number, basic display parameters, and one or more detailed timing descriptor blocks. All detailed timing descriptor blocks are traversed because color depth support information is typically encoded within these descriptor blocks, especially those describing video display modes or declaring display color characteristics.
[0039] 5) Extract color depth support information from the parsed structured data. After successfully parsing the descriptor blocks of the extended display identifier data, the focus shifts to searching for data fields related to color characteristics. These fields may exist as "color bit depth support" bitmasks, where each bit represents support for a specific color depth level; or they may exist in descriptions of specific video formats, explicitly listing the available color depth options for that format. These bitmasks or lists need to be decoded to convert them into specific color depth level values, for example, deciphering support for 8-bit and 10-bit color depths from the bitmasks.
[0040] 6) All extracted color depth level values are organized and standardized. If the extended display identifier data explicitly lists supported levels, these levels are directly adopted. In some cases, the data is given in the form of the maximum supported color depth, and a set of commonly used levels from low to high can be derived according to industry conventions. Finally, a list containing all color depth levels reliably inferred from the extended display identifier data is generated. This list represents the multiple candidate color depth levels supported by the display terminal under test. This list provides a direct basis for subsequently generating color depth test screens covering these levels. The entire implementation process fully utilizes industry standard data interfaces, ensuring the automation and reliability of information acquisition.
[0041] S2. Convert the multiple candidate color depth levels into their respective grayscale ranges.
[0042] In this context, multiple candidate color depth levels are converted into their respective grayscale ranges, which refer to the set of all discrete brightness values that each specific color depth level can uniquely represent. This range starts from zero, representing the darkest value, and ends at a maximum value determined by the number of bits used in that color depth level. For example, a 6-bit color depth uses 6 bits to represent the brightness of each color channel, thus each channel can produce 2 to the power of 6, or 64, different brightness levels, corresponding to a grayscale range from 0 to 63. As another example, an 8-bit color depth uses 8 bits to produce 256 levels, corresponding to a grayscale range of 0 to 255. A 10-bit color depth corresponds to a grayscale range of 0 to 1023, a 12-bit color depth corresponds to 0 to 4095, and a 16-bit color depth corresponds to a wide range of 0 to 65535. Each grayscale range has a strict and unique correspondence with a candidate color depth level.
[0043] The specific implementation process of S2 is as follows: S20. Receive or hold the list of multiple candidate color depth levels obtained in the previous steps, such as a list containing 6-bit color depth, 8-bit color depth, and 10-bit color depth. This list needs to be traversed, comparing the bit values of each candidate color depth level. Using a simple comparison algorithm, find the level with the largest bit value. For example, from 6-bit, 8-bit, and 10-bit, identify 10-bit color depth as the highest candidate color depth level in the current list. This highest level will serve as the reference space for subsequent conversions and mappings.
[0044] S21. Calculate the theoretical full grayscale range for each candidate color depth level. Process each candidate color depth level in the list sequentially. For each level, calculate 2 raised to the power of n based on its bit value n. Subtracting 1 from this result gives the maximum grayscale range for that level, while the minimum value is fixed at 0. For example, for an 8-bit color depth, 2 to the power of 8 equals 256, then subtracting 1 from 256 gives 255, thus determining the grayscale range to be 0 to 255. Perform this calculation independently for each candidate color depth level, generating a numerical range from the lowest brightness value of 0 to the maximum brightness value of that level.
[0045] S22. Map the grayscale range of all lower candidate color depth levels to the numerical space of the highest candidate color depth level. To generate a unified test image, the grayscale values of all areas in the image must be encoded based on the same color depth, typically the highest candidate color depth level. Therefore, it is necessary to linearly map the lower-level grayscale values to the numerical range of the highest level. The principle of mapping is to preserve the relative relationships and step characteristics between values within the lower-level grayscale ranges. Specifically, a scaling factor or step size is calculated for each lower-level grayscale range. For example, when mapping the 0-255 range of an 8-bit color depth to the 0-1023 space of a 10-bit color depth, a step size value is determined for the 10-bit color depth. This step size is equal to the highest level maximum value plus 1 divided by the lowest level maximum value plus 1, i.e., 1024 divided by 256 equals 4. This means that each grayscale value of an 8-bit color depth corresponds to a new value in the 10-bit color depth space equal to its original value multiplied by 4.
[0046] S23. Generate a specific and non-overlapping grayscale value representative for each candidate color depth level in the target numerical space. When creating the test image, each region representing a different candidate color depth level is typically assigned a specific grayscale value, rather than filling the entire gradient. A representative grayscale value needs to be selected for each level; this value is usually chosen from the maximum value of the mapped range of that level or a high value close to the maximum value. It must be ensured that the representative values selected for different levels are distinct from each other in the numerical space of the highest level, and that the difference between them is large enough for visual or instrumental differentiation. For example, in a 16-bit color depth space, a value close to the upper limit of its mapped range can be selected for the 8-bit color depth level, while another higher value, but within the 10-bit mapped range, can be selected for the 10-bit color depth level, and the existence of sufficient intervals between these values can be calculated and verified.
[0047] S24. Output the final conversion result data structure. Organize the processing results from the above steps into a structured output. This output clearly lists the candidate color depth levels for each input, along with two key pieces of information: the theoretical native grayscale range of that level, and the mapping relationship of that level in the numerical space of the highest candidate color depth level, along with the selected representative grayscale value. This complete data structure provides precise and operable grayscale information input for the next step, "generating the color depth test screen," ensuring that the test signal accurately reflects the characteristics of each color depth level to be tested.
[0048] S3. Based on the entire grayscale range obtained from the conversion, generate a color depth test image. In the color depth test image, define different display areas for at least two candidate color depth levels, such that the color depth test image includes at least two display areas corresponding to different candidate color depth levels. Fill each display area with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The specific implementation process is as follows: S30. Determine the overall layout and display area division strategy for the color depth test screen. Based on the number of candidate color depth levels to be tested, plan the composition of a static digital image. This image will be the color depth test screen. It is necessary to decide how to create multiple independent display areas on the screen. Common division strategies include dividing the screen into side-by-side rectangular strips, regular grid squares, or concentric rings. Each display area will be assigned a unique candidate color depth level. It is necessary to calculate the pixel coordinate range occupied by each display area in the entire image, ensuring that all areas do not overlap spatially and are large enough for subsequent observation and identification.
[0049] S31. Assign a specific display area to each candidate color depth level and calculate its spatial coordinates. Iterate through the list obtained from the transformation step, which contains multiple candidate color depth levels and their corresponding grayscale range information. For each candidate color depth level in the list, assign a specific display area to it within the pre-planned screen layout. For example, the first rectangular strip on the left side of the image can be assigned to the highest candidate color depth level, the adjacent second rectangular strip to the second highest candidate color depth level, and so on. Next, based on the total resolution of the image and the region division strategy, accurately determine the starting x-coordinate, ending x-coordinate, starting y-coordinate, and ending y-coordinate of each rectangular strip through pixel calculation, thereby mathematically defining the boundary of each display area.
[0050] S32. From the grayscale range corresponding to each candidate color depth level, determine a representative grayscale value to fill its display area. Based on the results of the conversion step, each candidate color depth level has a mapped, specific grayscale range in the highest color depth level value space used as a reference. A single, representative grayscale value needs to be selected from this range. Typically, to achieve the best test comparison effect, the upper limit of the mapped grayscale range or a high grayscale value close to the upper limit is selected. For example, for an 8-bit color depth level mapped to a 16-bit space, its mapping range can be 0, 256, 512, …, 65280; the value 65280 can be selected as the grayscale value to fill the corresponding display area of that level.
[0051] S33. Generate image data according to the format of the highest candidate color depth level and fill each display area. Create a digital image buffer in memory, with the color depth format set to the highest of all candidate color depth levels, such as 16-bit color depth. This means that the red, green, and blue color channels of each pixel in the image will be stored with 16-bit precision. Then, perform a loop operation, traversing each display area. For the currently processed display area, obtain its corresponding representative grayscale value determined in step three. Next, set the values of the red, green, and blue channels of all pixels within the boundary of the display area to this determined grayscale value. Since it is a grayscale image, the values of the red, green, and blue channels are set to the same value. Repeat this filling operation for each display area until all display areas are filled with their respective different grayscale values.
[0052] S34. Integrate the data and output a complete color depth test image file. Once all display areas are filled with pixels, the image buffer in memory stores a complete test image. This image is characterized by containing multiple display areas, each displaying a uniform but varying shade of gray, with each grayscale value precisely corresponding to a specific candidate color depth level. Finally, the data in this image buffer is encoded according to a standard lossless image format, such as Portable Network Graphics or Bitmap format, and the encoded data is saved as an image file. This final image file contains at least two color depth test images, each corresponding to a different candidate color depth level, and can be used for subsequent transmission and display tests.
[0053] S4. The test signal containing the color depth test image is sent to the display terminal under test for display. The specific implementation process is as follows: S40. After generating the color depth test image, load the image file into a dedicated video signal source device. This device can be a computer with video output capabilities, a dedicated image generator, or an embedded test module. Inside the device, the output signal format needs to be manually or automatically set according to the expected receiving capability of the display terminal under test. The settings include selecting a video output port that matches the physical interface of the display terminal under test, such as a high-definition multimedia interface or a display port; specifying the resolution of the output signal, typically selecting a common resolution supported by the display terminal under test; and most importantly, setting the color depth format of the output signal to the highest candidate color depth level used when generating the color depth test image, such as 16-bit color depth, to ensure that all grayscale information contained in the test image can be losslessly carried in the transmitted signal.
[0054] S41. Using a data cable conforming to the interface standard specification, such as a high-definition multimedia interface cable, firmly connect the video output port of the signal source device to the corresponding video input port of the display terminal under test. After the connection is established, the signal source device will send an initial communication signal to the display terminal under test through this link to perform link training and capability negotiation. This process is part of the digital video interface protocol. The two devices will exchange capability information. The signal source device will confirm whether the display terminal under test is ready to receive the upcoming video signal with a specific format and negotiate a transmission mode supported by both parties.
[0055] S42. The complete pixel data of the color depth test image is read from memory. Then, the device's video encoding and transmission module begins to work, converting the parallel pixel data into a serial data stream according to the previously configured output format and the video interface protocol specifications being used. This conversion process includes packaging the color information of each pixel into a data packet and adding control information such as uplink synchronization and field synchronization. Finally, this continuous video data stream conforming to the standard protocol specifications is converted into an electrical signal and continuously transmitted at high speed to the display terminal under test through a physical cable.
[0056] S44. The video receiver interface chip of the display terminal under test receives the electrical signal from the cable. The interface chip first performs clock recovery and data alignment on the signal, then unpacks the serial data stream to recover the original parallel pixel data and synchronization timing information. This data is transmitted to the image processing unit of the display terminal under test. The image processing unit interprets the pixel data according to the color depth format indicated in the signal and outputs the processed frame buffer data to the drive circuit of the display panel.
[0057] S45. The driving circuit controls the brightness of each pixel on the control panel based on the received frame buffer data, thereby presenting a color depth test image composed of different grayscale areas on the screen. The operator can confirm that the color depth test image has been displayed completely, clearly, and stably, without any flickering, distortion, or misalignment, by directly observing the screen of the display terminal under test or by monitoring the screen image through an auxiliary camera. This indicates that the test signal containing the color depth test image has been successfully sent and displayed, preparing for subsequent observation and judgment steps.
[0058] S5. Based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, determine the highest color depth level actually supported by the display terminal under test. Specifically: A pre-established correspondence is established between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth level supported by the display terminal under test. Based on this correspondence, the highest candidate color depth level actually supported by the display terminal under test is determined by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display image.
[0059] Distinguishing ability refers to the characteristic that, in a color depth test image, display areas corresponding to different candidate color depth levels can be distinguished as independent entities through visual perception or instrument measurement. This characteristic relies on sufficient differences in the grayscale values filled between display areas. When this difference can be reliably detected by the observer's visual system or external image acquisition equipment, these display areas are considered distinguishable. Distinguishing ability is a fundamental physical quantity for establishing the relationship between the display effect of the test image and the intrinsic performance of the display terminal under test.
[0060] Sharp distinction is a clear and unambiguous manifestation of distinguishability. Specifically, it refers to the existence of a sharp, easily identifiable boundary line between adjacent display areas corresponding to different candidate color depth levels on the final image displayed by the test display terminal. This boundary line is formed because the display terminal correctly reproduces the preset grayscale step between the two areas. Sharp distinction can be determined when an observer can determine that the two areas are separate without arduous comparison, or when an image analysis algorithm can easily detect a significant edge. The existence of sharp distinction directly suggests that the test display terminal can process and display the minimum difference between the two grayscale values involved in the boundary.
[0061] The specific implementation process of S5 is as follows: S50. Based on the color depth theory model, derive the expected pattern of distinguishability. During the test method design phase, model each candidate color depth level based on digital image processing principles. The model states that a display terminal capable of supporting a specific color depth level must be able to reproduce the minimum difference between all grayscale levels defined by that level. Therefore, in the test image, if the display terminal under test supports a higher candidate color depth level, it should be able to clearly distinguish the display area corresponding to that level from any display area corresponding to a lower candidate color depth level. Formalize these logical relationships, and pre-calculate the theoretically required distinguishability state between all display areas for each possible combination of candidate color depth levels.
[0062] S51. Organize and encode all the theoretically distinguishable patterns obtained, and create an electronic database or built-in data table as a discrimination rule lookup table. This lookup table is indexed by the order and number of candidate color depth levels. Each row of the table records a specific scenario, describing in detail whether each display area in the color depth test screen should be clearly distinguishable from other display areas under that scenario. More importantly, each row is associated with a clear conclusion, namely, which is the highest color depth level actually supported by the display terminal under test under this distinguishable pattern. For example, for a screen containing five levels, there will be a record in the table indicating that: if and only if the display areas corresponding to the lowest four levels are clearly distinguishable from each other, while the highest level area is indistinguishable from the second highest level area, then the highest color depth level actually supported by the display terminal under test is the second highest level.
[0063] S52. Acquire the actual display screen on the display terminal under test. After the test signal is sent and displayed, use an image capture device to take a frontal photograph of the screen of the display terminal under test to obtain a digital photograph that truly reflects its display effect. The image capture device needs to be calibrated to ensure that the color and brightness information of the image it captures is accurate. This captured digital photograph is the display screen that needs to be judged, which includes the final visual state of each display area in the color depth test image after processing by the display terminal under test.
[0064] S53. Automatically analyze the sharpness of distinction between regions in the displayed image using image processing technology. The captured displayed image is input into the image analysis module. The analysis module first locates the precise position of the display area corresponding to each candidate color depth level in the image based on a pre-known test image layout template. Next, the module scans and analyzes each pair of adjacent display areas, calculating the absolute difference in the average pixel grayscale values of the two areas. Simultaneously, the module performs edge intensity detection along the boundary between the two areas. These measurements are compared to an experimentally calibrated threshold. If the grayscale difference is greater than the threshold and the edge detection results show a strong, continuous edge response, the two areas are determined to be clearly distinguishable; otherwise, they are determined not to be clearly distinguishable. The analysis module performs this operation on all adjacent area pairs, generating a complete report on which areas in the entire image are clearly distinguishable.
[0065] S54. Match the observed distinguishable patterns with a pre-stored discrimination rule lookup table. The decision logic unit receives a report from the image analysis module. The report describes which candidate color depth levels correspond to display areas that can be clearly distinguished in the current display. Using this report as a keyword, the decision logic unit searches the discrimination rule lookup table established in S51 for the record whose described pattern perfectly matches the report. The matching process requires that the observed distinguishability state matches the preset pattern in a row of the lookup table.
[0066] S55. Read and output the final judgment result from the successfully matched records. Upon finding a matching record, the judgment logic unit directly extracts the conclusion information "the highest color depth level actually supported by the display terminal under test" from that record. This conclusion is then converted into a human-readable format, such as displaying "Judgment result: The highest color depth level actually supported by the display terminal under test is 10-bit color depth" on the user interface screen. This result, along with the test data, can also be saved to a file or reported over the network. This result is the highest color depth level actually supported by the display terminal under test, determined by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display screen. The entire process automates image acquisition, feature analysis, and logical judgment, ensuring the objectivity and repeatability of the judgment process.
[0067] In another possible implementation, S5 includes: S56. Acquire the image obtained by the display terminal under test after displaying the received test signal through an image capture device, and convert the pixel color information of each display area in the image into a corresponding brightness value data set to form a brightness value dataset for each display area. Specifically: S560. Select and configure an image capture device that meets the test accuracy requirements. Based on the test environment and accuracy needs, select an industrial camera or scientific-grade webcam with high resolution and high color fidelity as the image capture device. This image capture device needs to be fixedly installed directly in front of the screen of the display terminal under test, ensuring its optical axis is perpendicular to the screen plane to minimize geometric distortion. After installation, perform preliminary settings on the image capture device, adjusting its focal length to ensure the entire screen of the display terminal under test is clearly imaged within the viewfinder, and setting appropriate aperture and shutter speed to avoid overexposure or underexposure of the displayed image. Simultaneously, all automatic enhancement functions of the image capture device, such as automatic contrast optimization or color enhancement, need to be turned off to ensure that the acquired data is the raw data of the light emitted by the screen of the display terminal under test.
[0068] S561. Calibrate the color and luminance response of the image capture device. Before officially capturing and displaying the image, a metrologically certified standard luminance colorimeter is required to systematically calibrate the image capture device. The calibration process includes: illuminating a series of grayscale color charts with known reflectance using a standard light source, simultaneously measuring the actual luminance values of the color charts with the standard luminance colorimeter, and simultaneously photographing these color charts using the image capture device. By comparing the pixel values captured by the image capture device with the actual physical luminance values measured using the standard luminance colorimeter, a conversion model from the original RGB values of the image capture device to standard CIE luminance values is established. This conversion model will be stored and applied to the processing of all subsequent acquired data to ensure that the luminance values derived from pixel color information have accurate physical meaning and comparability.
[0069] S562. Control the image capture device to acquire the complete image displayed on the display terminal under test. After the display terminal under test stably displays the color depth test image containing multiple display areas, send a trigger command to the image capture device. The image capture device performs one or more shots, converting the optical image on the screen of the display terminal under test into a digital image signal, generating one or more high-precision color digital images. To eliminate ambient light interference, this operation should be performed in a darkroom environment, or ensure that the image capture device is equipped with a light shield that can isolate ambient light. The acquired digital images are stored in a lossless format, containing the original intensity information of the red, green, and blue color channels of each pixel on the screen.
[0070] S563. Accurately identify and segment the display area corresponding to each candidate color depth level in the acquired digital image. Since the position and shape of each display area in the color depth test image are predefined, a known test image layout template is invoked. Using image processing algorithms, such as template matching or edge detection algorithms, the boundaries of the entire test image are automatically located in the acquired digital image. Then, based on the relative coordinates and geometric shape of each display area recorded in the layout template, sub-image blocks corresponding to each candidate color depth level are mapped and extracted in the digital image. These sub-image blocks are each independent display area in the image. Each area is assigned a unique identifier, such as "Area A", "Area B", etc., and a correspondence is established with the candidate color depth level list.
[0071] S564. Convert the pixel color information in each display area sub-image block into a luminance value dataset. For each display area sub-image block extracted in the previous step, traverse every pixel within that sub-image block. For each pixel, read the digital intensity values of its red, green, and blue color channels. Then, apply the established color conversion model to convert the original RGB value of each pixel into a physical luminance value conforming to the CIE standard. This conversion takes into account the sensitivity of the human eye to different wavelengths of light. After completing the conversion of all pixels in the area, summarize the luminance values of all pixels to form an ordered set of values representing the display luminance characteristics of the display area. This set is the luminance value dataset for each display area. Repeat this process for each display area in the color depth test image, ultimately generating multiple luminance value datasets equal to the number of candidate color depth levels.
[0072] S57. Perform spatial distribution analysis on the brightness value dataset of each display area, calculate the statistical characteristics of the brightness values within each display area, and specifically analyze the brightness change patterns of pixels at the boundary between adjacent display areas, extracting a brightness gradient feature sequence to describe the transition characteristics between areas. Specifically: S570. Prepare and load the luminance value dataset and related spatial information for each display area. Receive the output from the previous processing stage, which contains the luminance value dataset for the display area corresponding to each candidate color depth level in the color depth test image. Each dataset is a list or array containing the physical luminance values of all pixels within that area. Simultaneously, the precise position coordinates and boundary contour information of each display area in the original acquired image also need to be loaded. This geometric information is used to define the internal extent of the area and its common boundary position with adjacent areas, forming the basis for spatial distribution analysis and boundary analysis.
[0073] S571. For each display area, calculate the internal statistical characteristics of its brightness value dataset. Iterate through the brightness value dataset of each display area. For the currently processed dataset, perform a series of standard statistical calculations. These calculations include: calculating the arithmetic mean of all brightness values in the dataset to describe the average brightness level of the area; calculating the standard deviation or variance of the dataset to describe the dispersion and uniformity of the brightness values within the area; calculating the maximum and minimum values of the dataset to describe the range of brightness values; and generating a histogram distribution of the dataset to observe the central tendency and distribution pattern of the brightness values. Package the multiple statistical characteristic values calculated for a display area and store them associated with the identifier of that area.
[0074] S572. Locate and extract pixel samples of the boundary line between each pair of adjacent display areas. Based on the loaded display area geometry information, identify all spatially adjacent display area pairs in the depth test image. For each pair of adjacent areas, select a series of coordinate points along their shared boundary line at fixed sampling intervals. Centered on each coordinate point, extend several pixels to both sides in a direction perpendicular to the boundary line, forming a narrow-band sampling path that crosses the boundary. Based on the coordinates, extract the brightness value of each pixel on these narrow-band paths from the original, brightness-converted complete image data. These pixel brightness values and their position coordinates together constitute the original sample set used to analyze this specific boundary.
[0075] S573. Analyze the sample set at each boundary, calculate the brightness gradient, and form a feature sequence. Process the sample set into boundary samples extracted from each pair of adjacent regions. Along each sampling path, plot the pixel position as the x-axis and the corresponding brightness value as the y-axis to create a brightness change curve. Calculate the first derivative of this curve at each point, i.e., the brightness gradient value, which characterizes the rate of change of brightness in spatial location. This calculation can be implemented using the discrete difference method. Arrange the calculated series of ordered brightness gradient values along the entire sampling path to form a brightness gradient feature sequence. This sequence completely records the drastic degree and pattern of brightness change when transitioning from one display area to another.
[0076] S574. Summarize all analysis results and form a structured description. Integrate the calculation results of internal statistical features with the calculation results of boundary luminance gradient feature sequences. For each display area, output its internal statistical feature description vector. For each pair of adjacent display areas, output the luminance gradient feature sequence at their boundary. All this data is organized in a unified structure and associated with the corresponding candidate color depth level information. This complete analysis provides direct, physical luminance spatial distribution-based feature input for the next step of building a mathematical model to quantify transition characteristics.
[0077] S58. Based on the extracted brightness gradient feature sequence, a mathematical model is constructed to describe the smoothness of the transition between adjacent display areas in the actual display screen. This model calculates a quantitative transition characteristic index, which objectively characterizes the distinguishability between two display areas. Specifically: S580. A theoretical reference model describing an ideal step transition is defined and established. Ideally, if the display terminal under test can perfectly distinguish two display areas with different grayscale values, then the brightness change at the boundary between the two areas should be an ideal step function. Based on this, a mathematical model of an ideal step transition is first constructed. This model uses a theoretical location point as the step center. On one side of the step center, the brightness value is the theoretical average brightness of the first display area, and on the other side, the brightness value is the theoretical average brightness of the second display area. The first derivative of this ideal brightness distribution in space, i.e., the ideal brightness gradient feature sequence, should be a pulse signal with extremely high amplitude located at the step center.
[0078] S581. Align and fit the actual extracted brightness gradient feature sequence with the ideal reference model. Obtain the actual brightness gradient feature sequence extracted for a pair of adjacent display areas. This sequence contains a series of ordered brightness gradient values. Simultaneously, call the ideal step gradient model established for this pair of areas. Using correlation algorithms or feature point matching algorithms in digital signal processing, align the actual brightness gradient feature sequence with the ideal model in spatial location, ensuring that their center points correspond. After alignment, attempt to fit the actual extracted brightness gradient feature sequence using a parameterized smoothing function (e.g., the derivative of a Gaussian function or a Sigmoid function). The goal of the fitting process is to find a set of parameters that minimizes the overall difference between the fitted function curve and the actual gradient sequence data points.
[0079] S582. Calculate the core index value of the quantization transition characteristics based on the fitting results. After fitting, the width parameter of the fitting function (e.g., the standard deviation of the Gaussian function or the transition region width of the Sigmoid function) becomes a key metric. This width parameter directly describes the spatial distance traveled by the brightness from one state to another. The larger the width value, the smoother the brightness change, the wider the transition region, and the more blurred the boundary between the two display areas; the smaller the width value, the more rapid the brightness change, the narrower the transition region, and the clearer the boundary. This fitting width parameter is directly used as a preliminary quantization transition characteristic index value. In addition, the root mean square error or mean absolute error between the actual brightness gradient feature sequence and the ideal step gradient model can be calculated. This error value reflects the degree of deviation between the actual transition and the ideal step, and can be used as another auxiliary quantization transition characteristic index value.
[0080] S583. Normalize and comprehensively score the calculated preliminary index values. To ensure the comparability of the calculated quantization transition characteristic index values between different regions, normalization is required. Normalization can be based on theoretically optimal and worst values. For example, it can be defined that when the fitting width is zero, the score is 100, indicating complete clarity; when the fitting width exceeds a maximum threshold set based on the display area size, the score is 0, indicating complete indistinguishability. The fitting width parameter and error parameter are combined according to predetermined weights to calculate a comprehensive score between 0 and 100. This comprehensive score is the final quantization transition characteristic index value used to objectively characterize the degree of distinguishability between the two display areas.
[0081] S584. Output the quantized transition characteristic index value for each pair of adjacent display areas. Repeat steps S581 to S583 for all adjacent display area pairs to be analyzed in the color depth test image. In each repetition, a comprehensive quantized transition characteristic index value is calculated for the currently processed pair of areas. These index values are correlated with their corresponding two candidate color depth levels and stored and output in a structured data format. This complete set of quantization results provides accurate and numerical input for the next step of determining the highest color depth level supported by the display terminal under test based on the index values. The entire modeling and calculation process transforms visual transition smoothness into calculable mathematical parameters, achieving objectivity and quantification of the judgment.
[0082] S59. Compare the calculated quantized transition characteristic index value with the preset threshold range corresponding to the support state of different candidate color depth levels. Based on the comparison result, match the highest candidate color depth level that the display terminal under test can actually support, and output the judgment result. Specifically: S590. Construct and initialize a data structure that stores preset threshold ranges. This data structure is typically an electronic database or configuration file that defines in detail the allowable range of quantization transition characteristic index values corresponding to the support states of different candidate color depth levels. These threshold ranges are predetermined through extensive standard testing experiments and theoretical modeling, for example, by measurement and statistical analysis using reference display terminals known to support specific color depth levels in a laboratory environment. Each record in the database is associated with a specific candidate color depth level and contains the upper and lower limits of the quantization transition characteristic index values that must be met when the level is determined to be supported. When starting the discrimination process, this database is first loaded from non-volatile memory into memory to ensure fast access for subsequent comparison operations.
[0083] S591. Organize all quantization transition characteristic index values received from the previous stage. Obtain the quantization transition characteristic index value calculated for each pair of adjacent display areas in the color depth test image. Each index value is bound to a specific pair of adjacent areas, and each pair of areas is associated with two specific candidate color depth levels. Organize these index values, along with their corresponding pair identifiers and associated candidate color depth level information, into an ordered list or array. This data structure ensures that each index value can be accurately traced and referenced in subsequent comparisons.
[0084] S592. Perform a step-by-step comparison of the quantization transition characteristic index value with the preset threshold range. Iterate through the organized list of index values. For each quantization transition characteristic index value in the list, retrieve the corresponding preset threshold range from the in-memory threshold range database based on the two candidate color depth levels involved in the adjacent region pair associated with that index value. Then, execute a numerical judgment logic: check whether the current quantization transition characteristic index value is greater than or equal to the lower limit of the threshold range, and simultaneously less than or equal to the upper limit of the threshold range. The comparison result—i.e., "satisfied" or "not satisfied"—is recorded in a new result set and associated with the current region pair and candidate color depth level information.
[0085] S593. Based on the recorded comparison results, perform logical reasoning to determine the highest candidate color depth level that the display terminal under test can actually support. Scan in descending order of candidate color depth levels. For the currently scanned candidate color depth level, filter out all comparison results of region pairs involving this level with other levels (usually adjacent lower levels) from the result set. If all filtered comparison results are "satisfied", then temporarily determine that the display terminal under test supports the currently scanned level. Then, continue scanning the next lower candidate color depth level and repeat the above checking process. When scanning a certain candidate color depth level, if any comparison result of region pairs involving this level is found to be "not satisfied", then stop scanning downwards, and determine the candidate color depth level that successfully passed all checks last time as the highest candidate color depth level that the display terminal under test can actually support.
[0086] S594. Format and output the final judgment result. Convert the determined highest candidate color depth level information into a standardized output message. For example, generate a text message: "Judgment complete: The highest color depth level actually supported by the display terminal under test is 10-bit color depth." Simultaneously, you can choose to generate a report containing detailed data, listing the quantization transition characteristic index values for all region pairs, the preset thresholds used, the comparison results, and the final inference conclusion. This report can be saved to a disk file or sent to upper-level management via a network interface. Finally, present the clear judgment result to the operator through a graphical user interface or status indicator lights, completing the entire judgment process.
[0087] The technical solution of the present invention will be further described through another embodiment, specifically including: S101. Obtain multiple candidate color depth levels supported by the display terminal under test. This step is accomplished in two ways. The first method is to read and obtain the multiple candidate color depth levels supported by the display terminal under test based on its device specifications. The device specifications are technical documents or embedded information provided by the manufacturer, which clearly list the color depth levels that the display terminal claims to be able to handle. The second method is to obtain the multiple candidate color depth levels supported by the display terminal under test by parsing the Extended Display Identifier data in the video interface protocol supported by the display terminal under test. The Extended Display Identifier data is a data block stored inside the display terminal that follows an industry standard format and contains a detailed description of the display terminal's color capabilities. Either method can yield a list of candidate color depth levels, which may include, for example, 6-bit color depth, 8-bit color depth, 10-bit color depth, 12-bit color depth, 16-bit color depth, etc.
[0088] S102. Convert each candidate color depth level into its corresponding grayscale range. Each candidate color depth level uniquely corresponds to a theoretical grayscale range, starting from 0 and ending at a maximum value determined by the number of bits used in that color depth. For example, a 16-bit color level corresponds to a grayscale range of 0-65535, a 12-bit color level corresponds to 0-4095, a 10-bit color level corresponds to 0-1023, an 8-bit color level corresponds to 0-255, and a 6-bit color level corresponds to 0-63. To generate a unified test signal later, these different grayscale ranges need to be mapped to the same numerical space. Typically, the highest level among all candidate color depth levels is selected as the reference space. During the conversion, the grayscale ranges of lower candidate color depth levels are mapped to the grayscale space of the highest candidate color depth level to ensure signal consistency. The mapping process must maintain the relative relationships between the lower-level grayscale values. For example, in a color space based on a 16-bit color depth, the complete range of 12-bit color depth (0-4095) will be uniformly mapped to 0, 16, 32, 48, …, 65520 in the 16-bit space, with a step size of 16 for the difference between adjacent mapped values; the range of 10-bit color depth (0-1023) will be uniformly mapped to 0, 64, 128, 192, …, 65472, with a step size of 64; the range of 8-bit color depth (0-255) will be uniformly mapped to 0, 256, 512, 768, …, 65280, with a step size of 256; and the range of 6-bit color depth (0-63) will be uniformly mapped to 0, 1024, 2048, 3072, …, 64512, with a step size of 1024.
[0089] S103. Based on the entire grayscale range obtained from the conversion, generate a color depth test image. In the color depth test image, define different display areas for at least two candidate color depth levels, ensuring that the color depth test image includes at least two display areas corresponding to different candidate color depth levels. The shape of the display areas can be rectangular, circular, or striped, and they are arranged reasonably in the image, such as side-by-side, to ensure that the areas do not overlap and do not interfere with each other. Fill each display area with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. Typically, a representative high grayscale value is selected for each area, such as the maximum value or close to the maximum value of the mapping range of that level in the reference space. For example, area A corresponding to a 16-bit color level can be filled with a grayscale value of 65535; area B corresponding to a 12-bit color level can be filled with the highest mapped value of 65520; area C corresponding to a 10-bit color level can be filled with the highest mapped value of 65472; area D corresponding to an 8-bit color level can be filled with the highest mapped value of 65280; and area E corresponding to a 6-bit color level can be filled with the highest mapped value of 64512. The test signal is generated at the highest candidate color depth level, for example, rendered at 16-bit color depth, to ensure the integrity of information across all regions. The generated signal format can be a still image file or a dynamic video frame.
[0090] S104. The test signal containing the color depth test image is sent to the display terminal under test for display. The generated test signal is sent to the display terminal under test via a standard video interface cable. After receiving and processing the signal, the display terminal under test displays the target test image on its screen. The target test image can be captured and recorded by image capture devices such as cameras and spectrometers, or it can be observed directly by the test personnel with their own eyes.
[0091] S105. Based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, determine the highest color depth level actually supported by the display terminal under test. This requires establishing a correspondence between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth level supported by the display terminal under test. Distinguishability is manifested in whether there is a clearly distinguishable boundary between two adjacent display areas. Analyze the display effect of each area in the target test image to determine which areas have clear boundaries. Based on this correspondence, determine the highest candidate color depth level actually supported by the display terminal under test by identifying the highest candidate color depth level corresponding to the clearly distinguishable display areas in the display image. The specific discrimination logic is as follows: If all areas A, B, C, D, and E can be clearly distinguished in the target test image, it means that the display terminal under test can support 16-bit color depth, 12-bit color depth, 10-bit color depth, 8-bit color depth, and 6-bit color depth. If regions B, C, D, and E are clearly distinguishable in the target test screen, but regions A and B are not, it indicates that the display terminal under test supports 12-bit, 10-bit, 8-bit, and 6-bit color depths, but not 16-bit color depth. If regions C, D, and E are clearly distinguishable in the target test screen, but regions A, B, and C are not, it indicates that the display terminal under test supports 10-bit, 8-bit, and 6-bit color depths, but not 16-bit or 12-bit color depths. If regions D and E are clearly distinguishable in the target test screen, but regions A, B, C, and D are not, it indicates that the display terminal under test supports 8-bit and 6-bit color depths, but not 16-bit, 12-bit, or 10-bit color depths. If all regions A, B, C, D, and E cannot be distinguished in the target test image, it indicates that the display terminal under test does not support 16-bit, 12-bit, 10-bit, or 8-bit color depths. The discrimination process can be completed automatically by observing the clarity of the boundaries of each region through the image analysis module, or it can be performed by comparing with a standard reference image when judged by the human eye.
[0092] Figure 2An example of a color depth test image is shown, containing three display areas, each corresponding to a different candidate color depth level. In this image generated based on a 12-bit color depth numerical space, the green display area corresponds to an 8-bit color level, and the grayscale value filled in this area is a high grayscale value determined by mapping the grayscale range of the 8-bit color level to the 12-bit space. The black display area corresponds to a 10-bit color level, and the grayscale value filled in this area is also a high grayscale value determined by mapping the grayscale range of the 10-bit color level to the 12-bit space. The blue display area corresponds to a 12-bit color level, and the grayscale value filled in this area is a high grayscale value within the grayscale range of the 12-bit color level itself. By observing the display effect of this image on the display terminal under test and analyzing the clarity of the boundaries between these three display areas, the support of the display terminal under test for the corresponding color depth levels can be determined.
[0093] This invention achieves efficient testing and intuitive judgment of the color depth support capability of display terminals by generating a single test screen containing grayscale ranges corresponding to multiple candidate color depth levels, thereby effectively improving testing efficiency. Specifically, by designing a single test screen to simultaneously cover the grayscale ranges corresponding to multiple candidate color depth levels, it replaces the existing working mode of generating, switching, and testing multiple screens sequentially. This parallel processing method directly overcomes the inherent problems of cumbersome steps and long processing times in sequential testing modes, effectively improving test throughput in large-scale production testing scenarios. Before generating the test signal, the grayscale range of lower candidate color depth levels is intelligently mapped to the numerical space of the highest candidate color depth level supported by the display terminal under test. This technology ensures that the final generated test signal has uniformity and compatibility in color depth format, and all test information can be completely carried in a high-quality signal, avoiding errors that may be introduced due to signal format mismatch and ensuring test accuracy. In the generated color depth test screen, an independent display area is defined for each candidate color depth level to be verified, and each area is filled with a specific grayscale value determined based on that level. This design physically separates and visualizes the test targets corresponding to different levels on the screen, allowing observers or analysis devices to simultaneously observe the display status of all areas, making the judgment process more direct and clear. The test signal is always generated and output based on the highest candidate color depth level supported by the display terminal under test. This approach avoids potential color depth degradation at the source of the test signal, ensuring that the signal transmitted to the display terminal under test accurately reflects its theoretical processing capacity limit, thus enabling the test results to accurately reflect the device's performance limits. The solution supports subjective judgment through direct visual observation of the screen, as well as objective judgment through image capture devices and image analysis algorithms. This flexibility allows the test solution to adapt to different testing scenarios and needs, such as R&D debugging, rapid quality inspection on production lines, and precision laboratory measurements. Existing solutions generally require multiple sequentially played test sequence images and frame-by-frame measurements using external devices such as luminance meters to complete color depth determination. No publicly available solution has yet proposed a method to perform a one-time test of a display terminal's ability to support multiple color depth levels using only a single test image. Therefore, the single-graph parallel testing method proposed in this invention has clear differences and progress in terms of testing concept and implementation efficiency.
[0094] In the above embodiments, although the steps are numbered S1, S2, etc., they are only specific embodiments given by the present invention. Those skilled in the art can adjust the execution order of S1, S2, etc. according to the actual situation. The scheme after adjusting the order is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.
[0095] likeFigure 3 As shown, a display terminal color depth testing system 200 according to an embodiment of the present invention includes a candidate color depth level acquisition module 201, a conversion module 202, a generation module 203, a display module 204, and a determination module 205; The candidate color depth level acquisition module 201 is used to: acquire multiple candidate color depth levels supported by the display terminal under test; The conversion module 202 is used to convert multiple candidate color depth levels into their respective corresponding grayscale ranges. The generation module 203 is used to: generate a color depth test image based on the entire grayscale range obtained by conversion, wherein different display areas are defined for at least two candidate color depth levels in the color depth test image, such that the color depth test image includes at least two display areas corresponding to different candidate color depth levels, and each display area is filled with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The display module 204 is used to: send the test signal containing the color depth test image to the display terminal under test for display; The determination module 205 is used to: determine the highest color depth level actually supported by the display terminal under test based on the visual distinguishability between each display area in the screen obtained after the display terminal under test displays the received test signal.
[0096] Optionally, in the above technical solution, the candidate color depth level acquisition module 201 is specifically used to: read and acquire multiple candidate color depth levels supported by the display terminal under test according to the device specification parameters of the display terminal under test.
[0097] Optionally, in the above technical solution, the candidate color depth level acquisition module 201 is specifically used to: obtain multiple candidate color depth levels supported by the display terminal under test by parsing the extended display identifier data in the video interface protocol supported by the display terminal under test.
[0098] Optionally, in the above technical solution, the determining module 205 is specifically used to: pre-establish the correspondence between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test screen and the actual color depth level supported by the display terminal under test, and determine the highest color depth level actually supported by the display terminal under test by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display screen based on the correspondence.
[0099] It should be noted that the beneficial effects of the display terminal color depth testing system 200 provided in the above embodiments are the same as those of the display terminal color depth testing method described above, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.
[0100] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned display terminal color depth testing methods.
[0101] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described display terminal color depth testing methods.
[0102] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0103] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for testing the color depth of a display terminal, characterized in that, include: Obtain multiple candidate color depth levels supported by the display terminal under test; The multiple candidate color depth levels are each converted into their respective corresponding grayscale ranges; Based on the entire grayscale range obtained by conversion, a color depth test image is generated, wherein different display areas are defined for at least two candidate color depth levels in the color depth test image, such that the color depth test image includes at least two display areas corresponding to different candidate color depth levels, and each display area is filled with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The test signal containing the color depth test image is sent to the display terminal under test for display. Based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, the highest color depth level actually supported by the display terminal under test is determined.
2. The method for testing the color depth of a display terminal according to claim 1, characterized in that, Obtain multiple candidate color depth levels supported by the display terminal under test, including: Read and obtain multiple candidate color depth levels supported by the display terminal under test based on the device specification parameters of the display terminal under test.
3. The method for testing the color depth of a display terminal according to claim 1, characterized in that, Obtaining multiple candidate color depth levels supported by the display terminal under test includes: obtaining multiple candidate color depth levels supported by the display terminal under test by parsing the extended display identifier data in the video interface protocol supported by the display terminal under test.
4. A method for testing the color depth of a display terminal according to any one of claims 1 to 3, characterized in that, Based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal, the actual color depth levels supported by the display terminal under test are determined, including: A pre-established correspondence is established between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth level supported by the display terminal under test. Based on this correspondence, the highest candidate color depth level actually supported by the display terminal under test is determined by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display image.
5. A color depth testing system for a display terminal, characterized in that, It includes a candidate color depth level acquisition module, a conversion module, a generation module, a display module, and a determination module; The candidate color depth level acquisition module is used to: acquire multiple candidate color depth levels supported by the display terminal under test; The conversion module is used to convert the multiple candidate color depth levels into their respective corresponding grayscale ranges. The generation module is used to: generate a color depth test image based on the entire grayscale range obtained by conversion, wherein different display areas are defined for at least two candidate color depth levels in the color depth test image, such that the color depth test image includes at least two display areas corresponding to different candidate color depth levels, and each display area is filled with a grayscale value determined based on the grayscale range of the corresponding candidate color depth level. The display module is used to: send the test signal containing the color depth test image to the display terminal under test for display; The determining module is used to: determine the highest color depth level actually supported by the display terminal under test based on the visual distinguishability between each display area in the image obtained after the display terminal under test displays the received test signal.
6. The display terminal color depth testing system according to claim 5, characterized in that, The candidate color depth level acquisition module is specifically used to: read and obtain multiple candidate color depth levels supported by the display terminal under test based on the device specification parameters of the display terminal under test.
7. The color depth testing system for a display terminal according to claim 5, characterized in that, The candidate color depth level acquisition module is specifically used to: obtain multiple candidate color depth levels supported by the display terminal under test by parsing the extended display identifier data in the video interface protocol supported by the display terminal under test.
8. A display terminal color depth testing system according to any one of claims 5 to 7, characterized in that, The determining module is specifically used to: pre-establish the correspondence between the distinguishability of display areas corresponding to different candidate color depth levels in the color depth test image and the actual color depth level supported by the display terminal under test; and, based on the correspondence, determine the highest color depth level actually supported by the display terminal under test by identifying the highest candidate color depth level corresponding to the clearly distinguishable display area in the display image.
9. An electronic device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a color depth testing method for a display terminal as described in any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements a display terminal color depth testing method according to any one of claims 1 to 4.
