Method, device, computer device, medium and product for detecting color temperature adjustment effect
By embedding the target matrix in the image processing system, the problem of color temperature detection error in traditional detection methods is solved, and higher detection accuracy and accuracy are achieved.
Patent Information
- Application Number
- CN202311221589.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2043-09-20
AI Technical Summary
When traditional methods detect the color temperature adjustment function of the GPU, they cannot effectively capture the color temperature changes of the image, resulting in errors in the detected color temperature value.
By obtaining the actual used color temperature based on the real standard color temperature sent by the second terminal on the first terminal, it is converted into a target matrix carrying the actual used color temperature, and embedding the target matrix into the video frame to form an embedded image. Then, the embedded image is sent to the second terminal to obtain the actual color temperature used, and obtain the actual rendered color temperature based on the display results. Finally, based on the real standard color temperature, the actual use color temperature and the actual rendered color temperature adjustment effect of the first terminal is obtained.
The detection accuracy of the first terminal color temperature adjustment function is improved, and the accuracy and reliability of the detection results are ensured.
Smart Images

Figure CN117319636B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of graphics processor detection, and in particular, to a method and device for detecting the color temperature adjustment effect, a computer device, a storage medium, and a computer program product. Background Art
[0002] In image processing, color temperature refers to the degree to which the overall color of an image appears warmer or colder, and the color temperature of the light source where the object is located is simulated by adjusting the hue of the image. When adjusting the color temperature, a Graphics Processing Unit (GPU) is usually used. By adjusting the white balance of the image, the white or gray in it looks real and neutral, so as to accurately reproduce the color of the shooting scene.
[0003] In traditional methods, in order to ensure that the color temperature of the image after the GPU adjustment is consistent with the set color temperature, it is necessary to detect the color temperature adjustment function of the GPU. Currently, usually, the detection data and detection screen on the slave machine are transmitted to the host machine through the network, and the GPU is detected by the host machine.
[0004] However, since the image is usually transmitted to the host machine by means of desktop screenshots, etc., the color temperature change of the image in the slave machine cannot be effectively captured, resulting in an error in the detected color temperature value. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a method and device for detecting the color temperature adjustment effect, a computer device, a computer-readable storage medium, and a computer program product that can improve the detection accuracy.
[0006] In a first aspect, this application provides a method for detecting the color temperature adjustment effect, which is applied to a first terminal and includes:
[0007] Obtaining the actual used color temperature obtained based on the true standard color temperature sent by a second terminal;
[0008] Converting the actual used color temperature into a target matrix carrying the actual used color temperature, and embedding the target matrix into a video frame to obtain an embedded image;
[0009] Displaying the embedded image based on the actual used color temperature, and sending the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actual used color temperature, obtains the actually presented color temperature based on the display result, and obtains the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actually presented color temperature.
[0010] In one of the embodiments, the step of converting the actual used color temperature into a target matrix carrying the actual used color temperature includes:
[0011] Convert the actual used color temperature into a binary string, and convert the binary string into a grayscale value string;
[0012] Determine the number of rows and columns of the matrix according to the number of digits of the grayscale value string;
[0013] Fill the grayscale value string into the matrix frame determined by the number of rows and columns of the matrix according to the number of digits to obtain an initial matrix;
[0014] Obtain a target matrix based on the initial matrix.
[0015] In one embodiment, the step of obtaining a target matrix based on the initial matrix includes:
[0016] Add holes to the initial matrix to obtain a hollow matrix;
[0017] Based on the number of display channels of the video frame, perform dimensional expansion on the hollow matrix to obtain a target matrix.
[0018] In one embodiment, embedding the target matrix into a video frame to obtain an embedded image includes:
[0019] Determine the embedding area of the target matrix;
[0020] Replace the image content in the embedding area with the target matrix to obtain an embedded image.
[0021] In one embodiment, before sending the embedded image to the second terminal, it further includes:
[0022] Send a video frame embedded with an indication matrix to the second terminal, and display the video frame. The indication matrix is used to prompt the second terminal to prepare to display the embedded image.
[0023] In a second aspect, the present application provides a method for detecting the color temperature adjustment effect, which is applied to a second terminal and includes:
[0024] Send the true standard color temperature to the first terminal so that the first terminal obtains the actual used color temperature based on the true standard color temperature, convert the actual used color temperature into a target matrix carrying the actual used color temperature, embed the target matrix into a video frame to obtain an embedded image, and display based on the actual used color temperature;
[0025] Obtain the embedded image returned by the first terminal, and parse the embedded image to obtain the actual used color temperature;
[0026] Obtain the actually presented color temperature based on the display result of the first terminal;
[0027] Obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actually presented color temperature.
[0028] In one embodiment, before parsing the embedded image, it further includes:
[0029] Based on the timestamp of the obtained embedded image, store the obtained embedded image in the buffer;
[0030] Select the embedded image corresponding to the earliest timestamp for parsing in the order of timestamps.
[0031] In one embodiment, the steps of parsing the embedded image to obtain the actually used color temperature include:
[0032] Obtain the target matrix from the embedded image according to the embedded area in the embedded image;
[0033] Perform dimensionality reduction processing on the target matrix to obtain the hollow matrix;
[0034] Remove the hollows in the hollow matrix to obtain the initial matrix;
[0035] Obtain the grayscale value string based on the initial matrix, convert the grayscale value string into a binary string, and convert the binary string into the actually used color temperature.
[0036] In one embodiment, the steps of obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature include:
[0037] When at least one of the actually used color temperature and the actually presented color temperature is inconsistent with the true standard color temperature, determine that the adjustment is abnormal;
[0038] When the adjustment of the first terminal is abnormal, obtain the device number of the first terminal;
[0039] Take the embedded image as the abnormal information, and save the abnormal information and the device number as the color temperature adjustment effect in the target database.
[0040] In a third aspect, the present application further provides a color temperature adjustment effect detection device, including:
[0041] A color temperature acquisition module, configured to acquire the actually used color temperature obtained based on the true standard color temperature sent by the second terminal;
[0042] An image acquisition module, configured to convert the actually used color temperature into a target matrix carrying the actually used color temperature, embed the target matrix into a video frame, and obtain an embedded image;
[0043] An image display module, configured to display the embedded image based on the actual usage color temperature, send the embedded image to a second terminal, so that the second terminal parses the embedded image to obtain the actual usage color temperature, obtain the actually presented color temperature based on the display result, and obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actually presented color temperature.
[0044] In a fourth aspect, the present application further provides a color temperature adjustment effect detection device, including:
[0045] A color temperature sending module, configured to send the true standard color temperature to the first terminal, so that the first terminal obtains the actual usage color temperature obtained based on the true standard color temperature, convert the actual usage color temperature into a target matrix carrying the actual usage color temperature, embed the target matrix into a video frame to obtain an embedded image, and perform display based on the actual usage color temperature;
[0046] An image parsing module, configured to obtain the embedded image returned by the first terminal and parse the embedded image to obtain the actual usage color temperature;
[0047] A color temperature obtaining module, configured to obtain the actually presented color temperature based on the display result of the first terminal;
[0048] An effect obtaining module, configured to obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actually presented color temperature.
[0049] In a fifth aspect, the present application further provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the method steps of any one of the first aspect and the second aspect are implemented.
[0050] In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps of any one of the first aspect and the second aspect are implemented.
[0051] In a seventh aspect, the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the method steps of any one of the first aspect and the second aspect are implemented.
[0052] The above-mentioned color temperature adjustment effect detection method, device, computer device, storage medium and computer program product send the true standard color temperature to the first terminal through the second terminal, so that the first terminal obtains the actual used color temperature based on the true standard color temperature. The first terminal converts the actual used color temperature into a target matrix, embeds the target matrix into the video frame to obtain an embedded image, and displays the embedded image based on the actual used color temperature by the first terminal, and sends the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actual used color temperature, and based on the display result of the first terminal, obtains the actually presented color temperature. The second terminal can accurately obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature and the actually presented color temperature, thereby improving the detection accuracy of the color temperature adjustment function of the first terminal. Description of the Drawings
[0053] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0054] Figure 1 It is an application environment diagram of the color temperature adjustment effect detection method in one embodiment;
[0055] Figure 2 It is a flowchart of the color temperature adjustment effect detection method in one embodiment;
[0056] Figure 3 It is a flowchart of the color temperature adjustment effect detection method in one embodiment;
[0057] Figure 4 It is a flowchart of the color temperature adjustment effect detection method in one embodiment;
[0058] Figure 5 It is a schematic diagram of the embedded image in one embodiment;
[0059] Figure 6 It is a flowchart of the step of storing the embedded image in the buffer area in one embodiment;
[0060] Figure 7 It is a schematic diagram of the step of parsing the embedded image in one embodiment;
[0061] Figure 8 It is a structural block diagram of the color temperature adjustment effect detection device in one embodiment;
[0062] Figure 9It is a structural block diagram of a color temperature adjustment effect detection device in an embodiment;
[0063] Figure 10 It is an internal structure diagram of a computer device in an embodiment. Specific implementation manners
[0064] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] The color temperature adjustment effect detection method provided by the embodiments of the present application can be applied to, for example, Figure 1 the application environment shown. Among them, multiple first terminals 102 communicate with a second terminal 106 through a digital interface 104. Among them, for each first terminal 102, the first terminal 102 is used to obtain the actual usage color temperature obtained based on the true standard color temperature sent by the second terminal 104, convert the actual usage color temperature into a target matrix carrying the actual usage color temperature, embed the target matrix into a video frame to obtain an embedded image, display the embedded image based on the actual usage color temperature, and send the embedded image to the second terminal 106 so that the second terminal 106 can parse the embedded image to obtain the actual usage color temperature, obtain the actually presented color temperature based on the display result, and obtain the color temperature adjustment effect of the first terminal 102 based on the true standard color temperature, the actual usage color temperature and the actually presented color temperature. Among them, the first terminal 102 and the second terminal 106 can be, but are not limited to, various personal computers, notebooks, etc. The digital interface 104 can be a High-Definition Multimedia Interface (HDMI).
[0066] In an exemplary embodiment, as Figure 2 shown, a color temperature adjustment effect detection method is provided. Taking the method applied to Figure 1 the first terminal 102 in as an example, it includes the following steps 202 to 206. Among them:
[0067] S202: Obtain the actual usage color temperature obtained based on the true standard color temperature sent by the second terminal.
[0068] Among them, color temperature refers to the warmth or coldness of the color presented by a light source, and it is an index used to describe the color characteristics of the light emitted by the light source. The color temperature of the light source is related to the temperature of the light source, with the unit of Kelvin (K), indicating the degree of similarity between the color of the light emitted by the light source and the color of a thermal radiation source at absolute zero (-273.15 °C). For example, the color temperature of common fluorescent lamps or natural light is approximately 5000K - 6000K. In practical applications, by adjusting the color temperature parameter of the GPU software, the overall color of the image can be made warmer or colder, making the adjusted image closer to the color temperature under real light.
[0069] Specifically, as a detection machine, the first terminal needs to pre-install the GPU software locally. The second terminal, as a control host, sends the true standard color temperature to the first terminal. Here, the true standard color temperature refers to the color temperature at which it is expected that the first terminal adjusts the color temperature of the image, while the actual used color temperature refers to the color temperature used by the first terminal when actually adjusting the color temperature of the image.
[0070] S204: Convert the actual used color temperature into a target matrix carrying the actual used color temperature, embed the target matrix into the video frame, and obtain the embedded image.
[0071] Among them, since color temperature needs to be collected through special equipment and software, in traditional methods, when checking the GPU software, usually the detection machine is connected to the detection server, and the screen on the detection machine is transmitted to the detection server for detection. In this way, only a dedicated software needs to be installed locally on the network server, and there is no need to install it on each detection machine. However, during the process of transmitting the screen on the detection machine to the detection server, due to the long distance of network transmission, additional noise is easily introduced, resulting in a deviation in the color temperature detected by the detection server, thus affecting the detection result.
[0072] Based on this, in order to avoid the image being changed during the image transmission process, the first terminal encrypts the actual used color temperature, "hides" the actually used color temperature in the target matrix, and embeds the target matrix into the video frame to form an embedded image. In this way, after receiving the embedded image, the second terminal decrypts the target matrix and can obtain the accurate actual used color temperature. In practical applications, a physical connection is established between the first terminal and the second terminal through a digital interface, such as an HDMI interface, a DP interface, etc. Through short-distance physical transmission, the security and authenticity of the embedded image can be guaranteed.
[0073] S206: Display the embedded image based on the actual used color temperature, send the embedded image to the second terminal, so that the second terminal can parse the embedded image to obtain the actual used color temperature, obtain the actually presented color temperature based on the display result, and obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actually presented color temperature.
[0074] Among them, the first terminal displays the embedded image through a graphics view framework (QT graphical interface). During the display process, the GPU software adjusts the color temperature of the embedded image according to the actual used color temperature and sends the embedded image to the second terminal. The second terminal parses the received image to obtain the target matrix embedded by the first terminal, thereby parsing the actual used color temperature of the first terminal. At the same time, the second terminal obtains the actual presented color temperature of the first terminal through the HDMI interface. Specifically, the color temperature obtained by the second terminal through the HDMI interface is directly obtained from the software layer of the first terminal, while the color temperature obtained through network transmission is usually the color temperature after display obtained by taking screenshots of the display interface of the first terminal. This way of obtaining the color temperature is affected by the settings of the first terminal's display screen itself, and the actual presented color temperature obtained from the software layer is the real data excluding the interference of the first terminal device.
[0075] Furthermore, the second terminal obtains the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actual presented color temperature. Among them, in the case where any one of the actual used color temperature and the actual presented color temperature is inconsistent with the true standard color temperature, it is determined that the color temperature adjustment of the first terminal is abnormal. Since the detection process is performed for each video frame in a video, the second terminal can record the video frames with abnormal color temperature adjustment in real time for subsequent analysts to analyze the GPU software on the first terminal. It should be noted that the second terminal is connected to multiple first terminals respectively. During the detection, each first terminal will send the corresponding embedded image to the second terminal. In the case of abnormal color temperature adjustment, in order to accurately distinguish the specific location where the abnormality occurs, the HDMI interface can be numbered. During the communication between the first terminal and the second terminal through the HDMI interface, the second terminal can record the source interface of each frame of the embedded image, so as to facilitate the analyst to locate the abnormal location.
[0076] In the above color temperature adjustment effect detection method, the second terminal sends the true standard color temperature to the first terminal, so that the first terminal obtains the actual used color temperature based on the true standard color temperature. The first terminal converts the actual used color temperature into a target matrix, embeds the target matrix into the video frame to obtain an embedded image, and displays the embedded image based on the actual used color temperature by the first terminal and sends the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actual used color temperature and obtains the actual presented color temperature based on the display result of the first terminal. The second terminal can accurately obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actual presented color temperature, thereby improving the detection accuracy of the color temperature adjustment function of the first terminal.
[0077] In an exemplary embodiment, the step of converting the actual used color temperature into a target matrix carrying the actual used color temperature includes: converting the actual used color temperature into a binary string, and converting the binary string into a grayscale value string; determining the number of rows and columns of the matrix according to the number of digits of the grayscale value string; filling the grayscale value string into the matrix frame determined by the number of rows and columns of the matrix digit by digit to obtain an initial matrix; and obtaining the target matrix based on the initial matrix.
[0078] Among them, in order to save the actual used color temperature into the video frame, the first terminal converts the actual used color temperature into a target matrix carrying the actual used color temperature, so that the actual used color temperature corresponds to the video frame. In practical applications, the video frame is usually an image of pure black or pure white, and the corresponding color values are all 0 or all 255. Under these two color values, the influence on the color temperature is the smallest. Therefore, the values in the target matrix should also be the two values of 0 or 255.
[0079] Specifically, the first terminal converts the actual used color temperature into a binary string, and assigns 0 or 255 to the "1" and "0" in the binary string respectively to obtain a grayscale value substring. In practical applications, since the value range of the color temperature is usually between 1000K and 25000K, correspondingly, the number of digits of the converted binary string is usually between 9 bits and 15 bits. Therefore, the product of the number of rows and columns of the matrix usually needs to be greater than 15. Here, in order to facilitate the second terminal to disassemble and restore the value of the actual used color temperature of the matrix, a 4×4 matrix frame can be selected, and the grayscale value string is filled into the matrix frame digit by digit in turn to obtain an initial matrix. At this time, the obtained initial matrix is a two-dimensional matrix, and the initial matrix still needs to be converted into a target matrix corresponding to the video frame.
[0080] In this embodiment, by converting the actual used color temperature into a binary string, converting the binary string into a grayscale value string, filling it into the determined matrix frame digit by digit to obtain an initial matrix, and obtaining the target matrix based on the initial matrix, the security of the actual used color temperature during data transmission can be ensured, so as to accurately obtain the color temperature adjustment effect of the first terminal.
[0081] In an exemplary embodiment, the step of obtaining the target matrix based on the initial matrix includes: adding holes to the initial matrix to obtain a hole matrix; and expanding the dimension of the hole matrix based on the number of display channels of the video frame to obtain the target matrix.
[0082] Among them, in order to further ensure the safety of the actual operating color temperature, the first terminal adds holes of random sizes to the initial matrix to obtain a hole matrix. Adding holes can expand the receptive field without losing resolution, enabling the second terminal to more accurately locate the matrix. Generally, the size of the hole matrix is between 4×4 and 20×20. An overly large matrix will cause the second terminal to process more data during parsing. After that, the first terminal performs dimensional expansion on the hole matrix based on the number of display channels of the video frame to obtain a target matrix. Here, the number of display channels of the video frame is usually 3, that is, the first terminal expands the initial matrix into a three-dimensional matrix. Specifically, assuming that the value of a certain row and a certain column in the hole matrix is 255, after dimensional expansion, the value at this position becomes (255, 255, 255), and so on, finally obtaining the target matrix.
[0083] In this embodiment, by adding holes to the initial matrix to obtain a hole matrix and performing dimensional expansion on the hole matrix based on the number of display channels of the video frame to obtain a target matrix, it is possible to make the target matrix a matrix that matches the number of display channels of the video frame, so as to embed the target matrix into the video frame, thereby ensuring the safety of the actual operating color temperature.
[0084] In an exemplary embodiment, the step of embedding the target matrix into the video frame to obtain an embedded image includes: determining the embedding area of the target matrix; replacing the image content in the embedding area with the target matrix to obtain the embedded image.
[0085] Among them, during the process of embedding the target matrix into the video frame, the first terminal first determines the embedding area of the target matrix in the video frame. Generally speaking, it is best to select the middle area of the video frame. Specifically, for each pixel point in the embedding area, the first terminal replaces the corresponding color value of the pixel point with the value at the corresponding position in the target matrix, thereby replacing the image content in the embedding area with the target matrix to obtain the embedded image.
[0086] In this embodiment, by determining the embedding area of the target matrix, replacing the image content in the embedding area with the target matrix to obtain the embedded image, it is possible to ensure the safety of the actual operating color temperature during data transmission, so as to accurately obtain the color temperature adjustment effect of the first terminal.
[0087] In an exemplary embodiment, before sending the embedded image to the second terminal, it further includes: sending a video frame embedded with an indication matrix to the second terminal and displaying the video frame. The indication matrix is used to prompt the second terminal to prepare to display the embedded image.
[0088] Before the first terminal sends the embedded image to the second terminal, it can first send a video frame embedded with an indication matrix to the second terminal and display the video frame. At this time, the indication matrix with all values being 255 is embedded in the video frame. After receiving the video frame, the second terminal identifies the video frame. When it is recognized that there is an indication matrix, it means that the color temperature adjustment of the embedded image by the first terminal has been completed at this time, and the color temperature of the embedded image is stable. Then the first terminal will send the embedded image to the second terminal, and the second terminal is ready to display the embedded image.
[0089] In this embodiment, by sending a video frame embedded with an indication matrix to the second terminal and displaying the video frame to prompt the second terminal to be ready to display the embedded image, it can ensure that the embedded image received by the second terminal is stable, thereby ensuring accurate acquisition of the color temperature adjustment effect of the first terminal.
[0090] In an exemplary embodiment, as Figure 3 shown, a method for detecting the color temperature adjustment effect is provided. Taking the method applied to Figure 1 the second terminal 106 in
[0091] S302: Send the true standard color temperature to the first terminal so that the first terminal obtains the actual used color temperature based on the true standard color temperature, convert the actual used color temperature into a target matrix, embed the target matrix into the video frame to obtain an embedded image, and display it based on the actual used color temperature.
[0092] Among them, as the control host, the second terminal sends the true standard color temperature to the first terminal. The true standard color temperature is the standard color temperature when it is expected that the first terminal adjusts the color temperature, so that the first terminal obtains the actual used color temperature based on the true standard color temperature, converts the actual used color temperature into a target matrix, embeds the target matrix into the video frame to obtain an embedded image. In addition, the first terminal also displays based on the actual used color temperature. The second terminal obtains the embedded image through the HDMI interface and can display it synchronously to monitor the display situation of the first terminal in real time.
[0093] S304: Obtain the embedded image returned by the first terminal, parse the embedded image to obtain the actual used color temperature.
[0094] Among them, when the second terminal receives the embedded image sent by the first terminal, it will parse the embedded image to obtain the target matrix, and restore the target matrix to the actual used color temperature converted by the first terminal. The actual used color temperature represents the color temperature actually used by the first terminal when adjusting the color temperature. Specifically, in the case of an exception in the GPU software, the GPU software cannot adjust the color temperature of the video frame according to the true standard color temperature. At this time, the true standard color temperature may be modified due to specific optimizations, that is, the actual used color temperature is inconsistent with the true standard color temperature, thus affecting the color temperature adjustment effect of the first terminal obtained by the second terminal. Therefore, the second terminal can eliminate this interference situation by verifying the actually used color temperature obtained by parsing.
[0095] S306: Obtain the actually presented color temperature based on the display result of the first terminal.
[0096] Among them, during the process of the first terminal displaying the embedded image, the second terminal obtains the actually presented color temperature of the first terminal through the HDMI interface. The actually presented color temperature at this time is the actual color temperature on the software layer of the first terminal, which characterizes the actual presentation effect of the first terminal.
[0097] S308: Obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature.
[0098] Among them, in the case where the actually used color temperature obtained by parsing is inconsistent with the true standard color temperature, it means that a specific optimization has occurred in the GPU software of the first terminal, resulting in the modification of the true standard color temperature sent by the second terminal. Then it is determined that there is an abnormality in the color temperature adjustment of the GPU software of the first terminal. At this time, even if the actually presented color temperature is consistent with the actually used color temperature, it does not affect the processing result of the second terminal. In the case where the actually presented color temperature is inconsistent with the true standard color temperature, it means that the first terminal cannot accurately adjust the color temperature of the video frame to the true standard color temperature. At this time, even if the actually used color temperature is consistent with the true standard color temperature, it is still determined that there is an abnormality in the GPU software of the first terminal.
[0099] In this embodiment, by the second terminal sending the true standard color temperature to the first terminal, the first terminal obtains the actually used color temperature based on the true standard color temperature, the first terminal converts the actually used color temperature into a target matrix, embeds the target matrix into the video frame to obtain an embedded image, the first terminal displays the embedded image based on the actually used color temperature, and sends the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actually used color temperature, and obtains the actually presented color temperature based on the display result of the first terminal. Through the second terminal based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature, the color temperature adjustment effect of the first terminal can be accurately obtained, thereby improving the detection accuracy of the color temperature adjustment function of the first terminal.
[0100] In an exemplary embodiment, before parsing the embedded image, the method further includes: storing the obtained embedded image in a buffer based on the timestamp of the obtained embedded image; and selecting the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0101] Wherein, since the embedded image sent by each first terminal to the second terminal is a series of consecutive video frames, when the second terminal parses the embedded image, in order to ensure continuous parsing without being interfered by other video frames, two regions are divided locally in the second terminal, and one of the regions is used as a buffer. The second terminal stores the embedded images in the buffer in sequence according to the timestamps of the obtained embedded images. When parsing each time, the embedded image corresponding to the earliest timestamp is selected and enters the parsing area for parsing. It should be noted that before receiving the embedded image, the second terminal will receive a video frame embedded with an indication matrix sent by the first terminal. At this time, the video frame does not enter the storage area, but only serves as a prompt signal to prompt the second terminal that it will receive an embedded image sent by the first terminal.
[0102] In this embodiment, by storing the obtained embedded image in the buffer based on the timestamp of the obtained embedded image and selecting the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps, the parsing area and the caching area can be separated, avoiding interference caused by multiple video frames during parsing, thereby improving the processing efficiency of the second terminal.
[0103] In an exemplary embodiment, the step of parsing the embedded image to obtain the actual used color temperature includes: obtaining a target matrix from the embedded image according to the embedded area in the embedded image; performing dimensionality reduction processing on the target matrix to obtain a hollow matrix; removing the hollows in the hollow matrix to obtain an initial matrix; obtaining a grayscale value string based on the initial matrix, converting the grayscale value string into a binary string, and converting the binary string into the actual used color temperature.
[0104] Among them, when the second terminal parses the embedded image, it first needs to locate the embedded area in the embedded image. In practical applications, since the video frame is an image with all color values being 1 or 255, and the values in the embedded target matrix include both 0 and 255, it can be well distinguished from other areas of the video frame image, so that the second terminal can quickly locate the embedded area and thus obtain the target matrix. At this time, the obtained target matrix is a matrix that matches the number of display channels of the video frame. Therefore, the second terminal needs to perform dimensionality reduction processing on the target matrix, reduce the target matrix to a two-dimensional matrix to obtain a hollow matrix, and remove the holes in the hollow matrix to obtain an initial matrix. The second terminal restores the initial matrix into a grayscale value string according to the number of rows and columns of the matrix, and converts the grayscale value string into a binary string to restore the actual used color temperature.
[0105] In this embodiment, by obtaining the target matrix from the embedded image according to the embedded area in the embedded image; performing dimensionality reduction processing on the target matrix to obtain a hollow matrix, removing the holes in the hollow matrix to obtain an initial matrix, obtaining a grayscale value string based on the initial matrix, converting the grayscale value string into a binary string, and converting the binary string into the actual used color temperature, the actual used color temperature embedded by the first terminal can be accurately obtained, so as to accurately obtain the color temperature adjustment effect of the first terminal.
[0106] In an exemplary embodiment, the steps of obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actual presented color temperature include: determining an adjustment anomaly when at least one of the actual used color temperature or the actual presented color temperature is inconsistent with the true standard color temperature; obtaining the device number of the first terminal when the first terminal has an adjustment anomaly; using the embedded image as the anomaly information, and saving the anomaly information and the device number as the color temperature adjustment effect to the target database.
[0107] Among them, when the actually used color temperature obtained by parsing is inconsistent with the true standard color temperature, it indicates that a specific optimization has occurred in the GPU software in the first terminal, resulting in the modification of the true standard color temperature sent by the second terminal. Then, it is determined that the GPU software in the first terminal has an abnormal color temperature adjustment. At this time, even if the actually presented color temperature is consistent with the actually used color temperature, it does not affect the processing result of the second terminal. When the actually presented color temperature is inconsistent with the true standard color temperature, it indicates that the first terminal cannot accurately adjust the color temperature of the video frame to the true standard color temperature. At this time, even if the actually used color temperature is consistent with the true standard color temperature, it is still determined that the GPU software in the first terminal is abnormal. When it is determined that the first terminal has an abnormal adjustment, according to the number of the HDMI interface, the device number of the first terminal is obtained. The second terminal embeds the image as abnormal information, and together with the device number, it is used as the color temperature adjustment effect corresponding to the first terminal and saved to the target database. So that the detection personnel can debug the GPU software in the first terminal according to the color temperature adjustment effect saved in the target database in the follow-up.
[0108] In this embodiment, by determining an abnormal adjustment when at least one of the actually used color temperature or the actually presented color temperature is inconsistent with the true standard color temperature, obtaining the device number of the first terminal when the first terminal has an abnormal adjustment, embedding the image as abnormal information, and saving the abnormal information and the device number as the color temperature adjustment effect to the target database, the color temperature adjustment effect of the first terminal can be accurately obtained, thereby realizing an effective detection of the color temperature adjustment function of the first terminal.
[0109] In an exemplary embodiment, as Figure 4 shown, a method for detecting the color temperature adjustment effect is provided, including:
[0110] The second terminal sends the true standard color temperature to the first terminal.
[0111] The first terminal obtains the actually used color temperature based on the true standard color temperature sent by the second terminal.
[0112] The first terminal converts the actually used color temperature into a binary string, and then converts the binary string into a grayscale value string; according to the number of digits of the grayscale value string, the number of matrix rows and the number of matrix columns are determined; the grayscale value string is filled into the matrix frame determined by the number of matrix rows and the number of matrix columns to obtain an initial matrix; holes are added to the initial matrix to obtain a hole matrix; based on the number of display channels of the video frame, the dimension of the hole matrix is expanded to obtain a target matrix.
[0113] The first terminal determines the embedding area of the target matrix; replaces the image content in the embedding area with the target matrix to obtain an embedded image.
[0114] Among them, the obtained embedded image is as Figure 5 shown,Figure 5 The outermost box represents the complete image of the video frame, and the middle box represents the embedding area, where the black-and-white part is the target matrix.
[0115] The first terminal sends a video frame embedded with an indication matrix to the second terminal and displays the video frame. The indication matrix is used to prompt the second terminal to prepare for displaying the embedded image.
[0116] The first terminal displays the embedded image based on the actual used color temperature and sends the embedded image to the second terminal.
[0117] The second terminal stores the obtained embedded image in the buffer based on the timestamp of the embedded image; and selects the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0118] Among them, as Figure 6 shown, the second terminal sequentially saves the embedded images to the buffer according to the timestamps, and moreover, selects the embedded image corresponding to the earliest timestamp to enter the parsing area for parsing in the order of the timestamps.
[0119] The second terminal obtains the target matrix from the embedded image according to the embedding area in the embedded image; performs dimensionality reduction processing on the target matrix to obtain a hollow matrix; removes the holes in the hollow matrix to obtain an initial matrix; obtains a grayscale value string based on the initial matrix, converts the grayscale value string into a binary string, and converts the binary string into the actual used color temperature to obtain the actual used color temperature.
[0120] Among them, the process by which the second terminal obtains the grayscale value string according to the embedded image is as Figure 7 shown, Figure 7 where the left side of the arrow represents the embedded image received by the second terminal, and the right side of the arrow represents the grayscale value string obtained according to the number of rows and columns of the matrix.
[0121] The second terminal obtains the actually presented color temperature based on the display result of the first terminal.
[0122] When at least one of the actual used color temperature or the actually presented color temperature is inconsistent with the true standard color temperature, the second terminal determines that the adjustment is abnormal; when the first terminal has an adjustment abnormality, the second terminal obtains the device number of the first terminal; takes the embedded image as abnormal information, and saves the abnormal information and the device number as the color temperature adjustment effect to the target database.
[0123] In this embodiment, for the detection of the color temperature adjustment function, unattended all-day detection can be realized, with high communication stability and good data security, and the detection efficiency can be greatly improved.
[0124] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0125] Based on the same inventive concept, an embodiment of the present application also provides a color temperature adjustment effect detection device for implementing the color temperature adjustment effect detection method described above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the color temperature adjustment effect detection device provided below can refer to the limitations on the color temperature adjustment effect detection method in the above text, and will not be repeated here.
[0126] In an exemplary embodiment, as Figure 8 shown, a color temperature adjustment effect detection device is provided, including: a color temperature acquisition module 10, an image acquisition module 20, and an image display module 30, where:
[0127] The color temperature acquisition module 10 is configured to acquire the actual used color temperature obtained based on the true standard color temperature sent by the second terminal.
[0128] The image acquisition module 20 is configured to convert the actual used color temperature into a target matrix carrying the actual used color temperature, embed the target matrix into a video frame, and obtain an embedded image;
[0129] The image display module 30 is configured to display the embedded image based on the actual used color temperature, send the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actual used color temperature, obtain the actually presented color temperature based on the display result, and obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actually presented color temperature.
[0130] In an exemplary embodiment, the image acquisition module 20 is further configured to convert the actual used color temperature into a binary string, convert the binary string into a gray value string; determine the number of matrix rows and matrix columns according to the number of bits of the gray value string; fill the gray value string into the matrix frame determined by the number of matrix rows and matrix columns by bits to obtain an initial matrix; and obtain the target matrix based on the initial matrix.
[0131] In an exemplary embodiment, the image acquisition module 20 is further configured to add holes to the initial matrix to obtain a hole matrix; and perform dimensionality expansion on the hole matrix based on the number of display channels of the video frame to obtain a target matrix.
[0132] In an exemplary embodiment, the image acquisition module 20 is further configured to determine an embedding area of the target matrix; and replace the image content within the embedding area with the target matrix to obtain an embedded image.
[0133] In an exemplary embodiment, the image display module 30 is further configured to send a video frame embedded with an indication matrix to a second terminal, and display the video frame, where the indication matrix is used to prompt the second terminal to prepare for displaying the embedded image.
[0134] In an exemplary embodiment, as Figure 9 shown, there is provided a color temperature adjustment effect detection device, including: a color temperature sending module 40, an image parsing module 50, a color temperature acquisition module 60, and an effect acquisition module 70, where:
[0135] The color temperature sending module 40 is configured to send a true standard color temperature to a first terminal, so that the first terminal obtains an actual usage color temperature obtained based on the true standard color temperature, convert the actual usage color temperature into a target matrix carrying the actual usage color temperature, embed the target matrix into a video frame to obtain an embedded image, and perform display based on the actual usage color temperature.
[0136] The image parsing module 50 is configured to obtain the embedded image returned by the first terminal, and parse the embedded image to obtain the actual usage color temperature.
[0137] The color temperature acquisition module 60 is configured to obtain an actually presented color temperature based on the display result of the first terminal.
[0138] The effect acquisition module 70 is configured to obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actually presented color temperature.
[0139] In an exemplary embodiment, the image parsing module 50 is further configured to store the obtained embedded image into a buffer based on the timestamp of the obtained embedded image; and select the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0140] In an exemplary embodiment, the image parsing module 50 is further configured to obtain a target matrix from the embedded image according to the embedding area in the embedded image; perform dimensionality reduction processing on the target matrix to obtain a hole matrix; remove the holes in the hole matrix to obtain an initial matrix; obtain a gray value string based on the initial matrix, convert the gray value string into a binary string, and convert the binary string into the actual usage color temperature.
[0141] In an exemplary embodiment, the effect acquisition module 70 is further configured to determine an adjustment anomaly when at least one of the actual usage color temperature or the actual presentation color temperature is inconsistent with the true standard color temperature; when the first terminal has an adjustment anomaly, obtain the device number of the first terminal; use the embedded image as the anomaly information, and save the anomaly information and the device number as the color temperature adjustment effect to the target database.
[0142] Each module in the above color temperature adjustment effect detection device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or independent of it, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0143] In an exemplary embodiment, a computer device is provided. The computer device can be the first terminal or the second terminal, and its internal structure diagram can be as Figure 10 shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through the system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a color temperature adjustment effect detection method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0144] Those skilled in the art can understand that Figure 10 the structure shown in merely represents a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different component layout.
[0145] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented: obtaining an actual usage color temperature obtained based on the true standard color temperature sent by a second terminal; converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image; displaying the embedded image based on the actual usage color temperature, sending the embedded image to the second terminal so that the second terminal parses the embedded image to obtain the actual usage color temperature, obtaining an actual presented color temperature based on the display result, and obtaining a color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature.
[0146] In an embodiment, the conversion of the actual usage color temperature into a target matrix carried with the actual usage color temperature involved when the processor executes the computer program includes: converting the actual usage color temperature into a binary string, and converting the binary string into a grayscale value string; determining the number of rows and columns of the matrix according to the number of digits of the grayscale value string; filling the grayscale value string into the matrix frame determined by the number of rows and columns of the matrix by digits to obtain an initial matrix; and obtaining the target matrix based on the initial matrix.
[0147] In an embodiment, the obtaining of the target matrix based on the initial matrix involved when the processor executes the computer program includes: adding holes to the initial matrix to obtain a hole matrix; and dimensionally expanding the hole matrix based on the number of display channels of the video frame to obtain the target matrix.
[0148] In an embodiment, the embedding of the target matrix into the video frame to obtain an embedded image involved when the processor executes the computer program includes: determining an embedding area of the target matrix; and replacing the image content in the embedding area with the target matrix to obtain the embedded image.
[0149] In an embodiment, before sending the embedded image to the second terminal involved when the processor executes the computer program, it further includes: sending a video frame embedded with an indication matrix to the second terminal, and displaying the video frame. The indication matrix is used to prompt the second terminal to prepare for displaying the embedded image.
[0150] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented: sending a true standard color temperature to a first terminal so that the first terminal obtains an actual usage color temperature obtained based on the true standard color temperature, converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image, and performing display based on the actual usage color temperature; obtaining the embedded image returned by the first terminal, parsing the embedded image to obtain the actual usage color temperature; obtaining an actual presented color temperature based on the display result of the first terminal; and obtaining a color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature.
[0151] In an embodiment, before parsing the embedded image involved when the processor executes the computer program, the following steps are further included: storing the obtained embedded image in a buffer based on the timestamp of the obtained embedded image; and selecting the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0152] In an embodiment, when the processor executes the computer program and parses the embedded image to obtain the actual usage color temperature, the following steps are included: obtaining a target matrix from the embedded image according to the embedded area in the embedded image; performing dimensionality reduction processing on the target matrix to obtain a hollow matrix; removing the hollow in the hollow matrix to obtain an initial matrix; obtaining a gray value string based on the initial matrix, converting the gray value string into a binary string, and converting the binary string into the actual usage color temperature.
[0153] In an embodiment, when the processor executes the computer program and obtains the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature, the following steps are included: determining an adjustment anomaly when at least one of the actual usage color temperature and the actual presented color temperature is inconsistent with the true standard color temperature; obtaining the device number of the first terminal when the first terminal has an adjustment anomaly; using the embedded image as abnormal information, and saving the abnormal information and the device number as the color temperature adjustment effect to a target database.
[0154] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining an actual usage color temperature obtained based on the true standard color temperature sent by a second terminal; converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image; displaying the embedded image based on the actual usage color temperature, sending the embedded image to the second terminal so that the second terminal can parse the embedded image to obtain the actual usage color temperature, obtaining an actual presented color temperature based on the display result, and obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature.
[0155] In one embodiment, the conversion of the actual usage color temperature into a target matrix carrying the actual usage color temperature when the computer program is executed by a processor includes: converting the actual usage color temperature into a binary string, and converting the binary string into a grayscale value string; determining the number of rows and columns of the matrix according to the number of bits of the grayscale value string; filling the grayscale value string into the matrix frame determined by the number of rows and columns of the matrix by bits to obtain an initial matrix; and obtaining a target matrix based on the initial matrix.
[0156] In one embodiment, obtaining a target matrix based on the initial matrix when the computer program is executed by a processor includes: adding holes to the initial matrix to obtain a hole matrix; and performing dimension expansion on the hole matrix based on the number of display channels of the video frame to obtain a target matrix.
[0157] In one embodiment, embedding the target matrix into a video frame to obtain an embedded image when the computer program is executed by a processor includes: determining an embedding area of the target matrix; and replacing the image content in the embedding area with the target matrix to obtain an embedded image.
[0158] In one embodiment, before sending the embedded image to the second terminal when the computer program is executed by a processor, it further includes: sending a video frame embedded with an indication matrix to the second terminal, and displaying the video frame, where the indication matrix is used to prompt the second terminal to prepare for displaying the embedded image.
[0159] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: sending a true standard color temperature to a first terminal so that the first terminal obtains an actual usage color temperature obtained based on the true standard color temperature, converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image, and performing display based on the actual usage color temperature; obtaining the embedded image returned by the first terminal, parsing the embedded image to obtain the actual usage color temperature; obtaining an actual presented color temperature based on the display result of the first terminal; and obtaining a color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature.
[0160] In one embodiment, before parsing the embedded image involved when the computer program is executed by the processor, it further includes: storing the obtained embedded image in a buffer based on the timestamp of the obtained embedded image; and selecting the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0161] In one embodiment, parsing the embedded image involved when the computer program is executed by the processor to obtain the actual usage color temperature includes: obtaining a target matrix from the embedded image according to the embedded area in the embedded image; performing dimensionality reduction processing on the target matrix to obtain a hollow matrix; removing the hollow in the hollow matrix to obtain an initial matrix; obtaining a gray value string based on the initial matrix, converting the gray value string into a binary string, and converting the binary string into the actual usage color temperature.
[0162] In one embodiment, obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature involves: determining an adjustment anomaly when at least one of the actual usage color temperature or the actual presented color temperature is inconsistent with the true standard color temperature; obtaining the device number of the first terminal when the first terminal has an adjustment anomaly; using the embedded image as abnormal information, and saving the abnormal information and the device number as the color temperature adjustment effect to a target database.
[0163] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the following steps: obtaining an actual usage color temperature obtained based on the true standard color temperature sent by a second terminal; converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image; displaying the embedded image based on the actual usage color temperature, sending the embedded image to the second terminal so that the second terminal can parse the embedded image to obtain the actual usage color temperature, obtaining the actually presented color temperature based on the display result, and obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actually presented color temperature.
[0164] In one embodiment, the conversion of the actual usage color temperature into a target matrix carrying the actual usage color temperature, which is involved when the computer program is executed by a processor, includes: converting the actual usage color temperature into a binary string, and converting the binary string into a grayscale value string; determining the number of rows and columns of the matrix according to the number of bits of the grayscale value string; filling the grayscale value string into the matrix frame determined by the number of rows and columns of the matrix according to the number of bits to obtain an initial matrix; and obtaining the target matrix based on the initial matrix.
[0165] In one embodiment, the obtaining of the target matrix based on the initial matrix, which is involved when the computer program is executed by a processor, includes: adding holes to the initial matrix to obtain a hole matrix; and performing dimension expansion on the hole matrix based on the number of display channels of the video frame to obtain the target matrix.
[0166] In one embodiment, the embedding of the target matrix into the video frame to obtain an embedded image, which is involved when the computer program is executed by a processor, includes: determining the embedding area of the target matrix; and replacing the image content in the embedding area with the target matrix to obtain the embedded image.
[0167] In one embodiment, before sending the embedded image to the second terminal, which is involved when the computer program is executed by a processor, it further includes: sending a video frame embedded with an indication matrix to the second terminal, and displaying the video frame, where the indication matrix is used to prompt the second terminal to prepare for displaying the embedded image.
[0168] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the following steps: sending a true standard color temperature to a first terminal so that the first terminal obtains an actual used color temperature obtained based on the true standard color temperature, converting the actual used color temperature into a target matrix carrying the actual used color temperature, embedding the target matrix into a video frame to obtain an embedded image, and performing display based on the actual used color temperature; obtaining the embedded image returned by the first terminal, parsing the embedded image to obtain the actual used color temperature; obtaining an actual presented color temperature based on the display result of the first terminal; and obtaining a color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actual presented color temperature.
[0169] In one embodiment, before parsing the embedded image involved when the computer program is executed by the processor, it further includes: storing the obtained embedded image in a buffer based on the timestamp of the obtained embedded image; and selecting the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
[0170] In one embodiment, parsing the embedded image involved when the computer program is executed by the processor to obtain the actual used color temperature includes: obtaining a target matrix from the embedded image according to the embedded area in the embedded image; performing dimensionality reduction processing on the target matrix to obtain a hollow matrix; removing the hollow in the hollow matrix to obtain an initial matrix; obtaining a gray value string based on the initial matrix, converting the gray value string into a binary string, and converting the binary string into the actual used color temperature.
[0171] In one embodiment, obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual used color temperature, and the actual presented color temperature includes: determining an adjustment anomaly in the case where at least one of the actual used color temperature or the actual presented color temperature is inconsistent with the true standard color temperature; obtaining the device number of the first terminal in the case where the first terminal has an adjustment anomaly; using the embedded image as abnormal information, and saving the abnormal information and the device number as the color temperature adjustment effect to a target database.
[0172] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0173] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0174] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for detecting the color temperature adjustment effect, characterized in that, Applied to a first terminal, the method includes: Obtaining an actual usage color temperature obtained based on the true standard color temperature sent by a second terminal; the actual usage color temperature is the color temperature used when the first terminal actually adjusts the image color temperature; Converting the actual usage color temperature into a target matrix carrying the actual usage color temperature, embedding the target matrix into a video frame to obtain an embedded image; Displaying the embedded image based on the actual usage color temperature, sending the embedded image to the second terminal so that the second terminal parses the embedded image to obtain the actual usage color temperature, and the second terminal also obtains an actual presented color temperature based on the display result. The second terminal also obtains the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature; the first terminal and the second terminal establish a physical connection through a digital interface; the second terminal obtains the actual presented color temperature by obtaining it from the software layer of the first terminal through the digital interface.
2. The method according to claim 1, characterized in that, The converting the actual usage color temperature into a target matrix carrying the actual usage color temperature includes: Converting the actual usage color temperature into a binary string, and converting the binary string into a grayscale value string; Determining the number of matrix rows and matrix columns according to the number of digits of the grayscale value string; Filling the grayscale value string into a matrix frame determined by the number of matrix rows and the number of matrix columns to obtain an initial matrix; Obtaining a target matrix based on the initial matrix.
3. The method according to claim 2, characterized in that, The obtaining a target matrix based on the initial matrix includes: Adding holes to the initial matrix to obtain a hole matrix; Performing dimensional expansion on the hole matrix based on the number of display channels of the video frame to obtain a target matrix.
4. The method according to claim 1, characterized in that, The embedding the target matrix into a video frame to obtain an embedded image includes: Determining the embedding area of the target matrix; Replacing the image content in the embedding area with the target matrix to obtain an embedded image.
5. The method according to claim 1, characterized in that, Before sending the embedded image to the second terminal, it further includes: Sending a video frame embedded with an indication matrix to the second terminal, and displaying the video frame. The indication matrix is used to prompt the second terminal to prepare to display the embedded image.
6. A method for detecting the color temperature adjustment effect, characterized in that, Applied to a second terminal, the method includes: Sending a true standard color temperature to a first terminal so that the first terminal obtains an actual usage color temperature obtained based on the true standard color temperature, converts the actual usage color temperature into a target matrix carrying the actual usage color temperature, embeds the target matrix into a video frame to obtain an embedded image, and displays it based on the actual usage color temperature; the actual usage color temperature is the color temperature used when the first terminal actually adjusts the image color temperature; Obtaining the embedded image returned by the first terminal and parsing the embedded image to obtain the actual usage color temperature; Based on the display result of the first terminal, obtain the actually presented color temperature; the first terminal and the second terminal establish a physical connection through a digital interface; the second terminal obtains the actually presented color temperature by obtaining it from the software layer of the first terminal through the digital interface; Based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature, obtain the color temperature adjustment effect of the first terminal.
7. The method according to claim 6, characterized in that, Before parsing the embedded image, it further includes: Based on the timestamp of the obtained embedded image, store the obtained embedded image in a buffer; Select the embedded image corresponding to the earliest timestamp for parsing in the order of the timestamps.
8. The method according to claim 6, characterized in that, Parsing the embedded image to obtain the actually used color temperature includes: According to the embedded area in the embedded image, obtain a target matrix from the embedded image; Perform dimensionality reduction processing on the target matrix to obtain a hollow matrix; Remove the holes in the hollow matrix to obtain an initial matrix; Based on the initial matrix, obtain a gray value string, convert the gray value string into a binary string, and convert the binary string into the actually used color temperature.
9. The method according to claim 6, characterized in that, The obtaining the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature includes: When at least one of the actually used color temperature or the actually presented color temperature is inconsistent with the true standard color temperature, determine that the adjustment is abnormal; When the adjustment of the first terminal is abnormal, obtain the device number of the first terminal; Use the embedded image as abnormal information, and save the abnormal information and the device number as the color temperature adjustment effect to a target database.
10. A color temperature adjustment effect detection device, characterized in that, Applied to the first terminal; the device includes: A color temperature acquisition module, configured to acquire the actually used color temperature obtained based on the true standard color temperature sent by the second terminal; the actually used color temperature is the color temperature used when the first terminal actually adjusts the image color temperature; An image acquisition module, configured to convert the actually used color temperature into a target matrix carrying the actually used color temperature, embed the target matrix into a video frame to obtain an embedded image; An image display module, configured to display the embedded image based on the actually used color temperature, send the embedded image to the second terminal, so that the second terminal parses the embedded image to obtain the actually used color temperature, and the second terminal further obtains the actually presented color temperature based on the display result, and the second terminal further obtains the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actually used color temperature, and the actually presented color temperature; the first terminal and the second terminal establish a physical connection through a digital interface; the second terminal obtains the actually presented color temperature by obtaining it from the software layer of the first terminal through the digital interface.
11. A color temperature adjustment effect detection device, characterized in that, Applied to the second terminal; the device includes: A color temperature sending module, configured to send a true standard color temperature to a first terminal, so that the first terminal obtains an actual usage color temperature obtained based on the true standard color temperature, convert the actual usage color temperature into a target matrix carrying the actual usage color temperature, embed the target matrix into a video frame to obtain an embedded image, and perform display based on the actual usage color temperature; the actual usage color temperature is the color temperature used when the first terminal actually adjusts the image color temperature; An image parsing module, configured to obtain the embedded image returned by the first terminal, parse the embedded image, and obtain the actual usage color temperature; A color temperature obtaining module, configured to obtain an actual presented color temperature based on the display result of the first terminal; the first terminal and the second terminal establish a physical connection through a digital interface; the second terminal obtains the actual presented color temperature by obtaining it from the software layer of the first terminal through the digital interface; An effect obtaining module, configured to obtain the color temperature adjustment effect of the first terminal based on the true standard color temperature, the actual usage color temperature, and the actual presented color temperature.
12. A computer device, including a memory and a processor, the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
13. A computer-readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
14. A computer program product, including a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Automatic white balance regulation system and method of liquid crystal television
CN102790887A