Screen adjustment method and device, storage medium and electronic device

By collecting target color value data in real time and determining environmental categories and color temperature parameters using the target recognition model, the problem of rigid display brightness and color temperature adjustment mode is solved, and the visual comfort and eye health protection of the display in different environments is improved.

CN118658438BActive Publication Date: 2024-11-15ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411151760.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-15
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

In the prior art, the brightness and color temperature adjustment modes of the display screen are rigid and cannot adapt to different environmental scenes, resulting in poor accuracy of brightness and color temperature adjustment.

Method used

The target color value data is collected in real time through the image acquisition device, and the pre-trained target recognition model is used to determine the environmental category and color temperature parameters, and the brightness and color temperature of the display screen are adjusted according to the environmental eye protection level.

Benefits of technology

It improves the visual comfort and eye health protection of the display in different environments, and enhances the accuracy of brightness and color temperature adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658438B_ABST
    Figure CN118658438B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for adjusting a screen, a storage medium, and an electronic device. The method includes: obtaining target color value data collected in real time by an image acquisition device; determining the ambient brightness data corresponding to the target display screen according to the target color value data, inputting the target color value data and the ambient brightness data into a pre-trained target recognition model, and determining the environment category corresponding to the target display screen, wherein the ambient brightness data is used to represent the ambient brightness when the target image is collected; when the environment category is the target environment category, determining the ambient color temperature parameters according to the target color value data; determining the target eye protection level according to the ambient color temperature parameters and the ambient brightness data, and setting the target display screen based on the target color value adjustment ratio determined by the target eye protection level. The present application solves the technical problem of poor accuracy in adaptively adjusting the brightness and color temperature of the display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a screen adjustment method and device, a storage medium, and an electronic device. Background Art

[0002] At present, in the related art, the screen brightness is usually adjusted directly according to the acquired ambient brightness. Specifically, if the ambient brightness is high, the screen brightness is increased; if the ambient brightness is low, the screen brightness is reduced. In other words, the adjustment of the screen brightness depends only on the ambient brightness, and the adjustment of the screen color temperature is rigidly judged by the device's own system time, that is, the screen color temperature is adjusted according to the daytime or nighttime period indicated by the system time. In summary, the related art has a technical problem that the screen adjustment mode is too rigid and cannot adapt to actual business scenarios, resulting in poor accuracy of the display screen's adaptive adjustment of brightness and color temperature.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a screen adjustment method and device, a storage medium, and an electronic device to at least solve the technical problem of poor accuracy in adaptively adjusting brightness and color temperature of a display screen.

[0005] According to one aspect of an embodiment of the present application, a screen adjustment method is provided, comprising: acquiring target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of a target image acquired by the image acquisition device; determining ambient brightness data corresponding to the target display screen according to the target color value data, inputting the target color value data and the ambient brightness data into a pre-trained target recognition model, and determining an environment category corresponding to the target display screen, wherein the ambient brightness data is used to indicate the ambient brightness when the target image is acquired; when the environment category is a target environment category, determining an ambient color temperature parameter according to the target color value data, wherein the ambient color temperature parameter is used to indicate the color property of the target image; determining a target eye protection level according to the ambient color temperature parameter and the ambient brightness data, and setting the target display screen based on a target color value adjustment ratio determined according to the target eye protection level.

[0006] According to another aspect of an embodiment of the present application, a screen adjustment device is also provided, including: an acquisition module, used to acquire target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of a target image acquired by the image acquisition device; a first determination module, used to determine the ambient brightness data corresponding to the target display screen according to the target color value data, input the target color value data and the ambient brightness data into a pre-trained target recognition model, and determine the environment category corresponding to the target display screen, wherein the ambient brightness data is used to indicate the ambient brightness when the target image is acquired; a second determination module, used to determine an ambient color temperature parameter according to the target color value data when the environment category is a target environment category, wherein the ambient color temperature parameter is used to indicate the color property of the target image; a third determination module, used to determine a target eye protection level according to the ambient color temperature parameter and the ambient brightness data, and set the target display screen based on the target color value adjustment ratio determined by the target eye protection level.

[0007] Optionally, the device is used to determine the ambient brightness data corresponding to the target display screen according to the target color value data in the following manner, and input the target color value data and the ambient brightness data into a pre-trained target recognition model: determine a first color value, a second color value, and a third color value according to the target color value data, wherein the first color value, the second color value, and the third color value respectively represent the values ​​of three color channels of the target image; determine a target brightness value of the target image according to the first color value, the second color value, and the third color value; determine the ambient brightness data according to the target brightness value and acquisition parameters of the image acquisition device; and input the target color value data and the ambient brightness data into a pre-trained target recognition model.

[0008] Optionally, the device is used to determine the target brightness value of the target image according to the first color value, the second color value and the third color value in the following manner: obtaining weight coefficients pre-set for the first color channel, the second color channel and the third color channel, respectively; determining the target brightness value of the target image according to the weight coefficients, the first color value, the second color value and the third color value.

[0009] Optionally, the device is used to determine the ambient brightness data according to the target brightness value and acquisition parameters of the image acquisition device in the following manner: obtaining a shutter value and a gain value when the image acquisition device acquires the target image, wherein the acquisition parameters include the shutter value and the gain value; and determining the ambient brightness data according to the target brightness value, the shutter value and the gain value.

[0010] Optionally, the device is also used for: before inputting the target color value data and the environment brightness data into a pre-trained target recognition model, obtaining a pre-annotated first sample image, first annotation information, a second sample image, and second annotation information, wherein the first annotation information annotates the environment category of the first sample image, and the second annotation information annotates the environment category of the second sample image, the first sample image represents an image acquired by the image acquisition device using a first filter, and the second sample image represents an image acquired by the image acquisition device using a second filter, and the first filter and the second filter are different; training an initial recognition model according to the first sample image, the first annotation information, the second sample image, and the second annotation information to obtain the target recognition model, wherein the initial recognition model is used to generate a first discriminant value and a second discriminant value according to the first sample image, the first annotation information, the second sample image, and the second annotation information, and use the first annotation information to compare the first discriminant value, use the second annotation information to compare the second discriminant value, generate a first comparison result and a second comparison result, and use the first comparison result and the second comparison result to adjust the model parameters.

[0011] Optionally, the device is used to determine the ambient color temperature parameters according to the target color value data when the environment category is the target environment category in the following manner: when the environment category is the target environment category, determine the ratio of the first color value to the second color value according to the target color value data; when the target brightness value satisfies a preset brightness condition and the ratio of the first color value to the second color value satisfies a preset ratio condition, determine the ambient color temperature parameters from a predetermined mapping relationship set according to the ratio of the first color value to the second color value, wherein the mapping relationship set includes a set of ratio values ​​and a set of color temperature parameters, the set of ratio values ​​includes the ratio of the first color value to the second color value, and the set of color temperature parameters includes the ambient color temperature parameters.

[0012] Optionally, the device is used to determine the ambient color temperature parameters according to the target color value data when the environment category is the target environment category in the following manner: when the environment category is the indoor category, determine the ambient color temperature parameters according to the target color value data; when the environment category is the outdoor category and the ambient brightness data meets a preset condition, determine the ambient color temperature parameters according to the target color value data.

[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned screen adjustment method when running.

[0014] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above screen adjustment method.

[0015] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the screen adjustment method through the computer program.

[0016] In an embodiment of the present application, a target color value data acquired in real time by an image acquisition device is obtained, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of a target image acquired by the image acquisition device; the ambient brightness data corresponding to the target display screen is determined according to the target color value data, and the target color value data and the ambient brightness data are input into a pre-trained target recognition model to determine the environment category corresponding to the target display screen, wherein the ambient brightness data is used to indicate the ambient brightness when the target image is acquired; when the environment category is the target environment category, an ambient color temperature parameter is determined according to the target color value data, wherein the ambient color temperature parameter is used to indicate the color property of the target image; a target eye protection level is determined according to the ambient color temperature parameter and the ambient brightness data, and a target display screen is set based on a target color value adjustment ratio determined based on the target eye protection level, so as to ensure that the adjustment mode of the target display screen is adapted to the actual business scenario, and solve the problem of brightness and color temperature adjustment of the target display screen in different environments, thereby improving the visual comfort and eye health protection effect of users when viewing the display screen in different environments, and further solving the technical problem of poor accuracy of adaptively adjusting the brightness and color temperature of the display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a schematic diagram of an application environment of an optional screen adjustment method according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of an optional screen adjustment method according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of an optional screen adjustment method according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application;

[0023] Figure 6 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application;

[0024] Figure 7 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application;

[0025] Figure 8 is a schematic structural diagram of an optional screen adjustment device according to an embodiment of the present application;

[0026] Fig. 9 is a schematic structural diagram of an optional screen adjustment product according to an embodiment of the present application;

[0027] Fig.10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] The present application is described below in conjunction with embodiments:

[0031] According to one aspect of an embodiment of the present application, a screen adjustment method is provided. Optionally, in this embodiment, the screen adjustment method can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1 As shown, the server 101 is connected to the terminal device 103 via a network, and can be used to provide services for the terminal device or the application installed on the terminal device. The application 107 can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The terminal device 103 may be a terminal configured with an application, and may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (Virtual Reality, VR for short) terminal, an augmented reality (Augmented Reality, AR for short) terminal, a mixed reality (Mixed Reality, MR for short) terminal and other computer devices. The above-mentioned server may be a single server, or a server cluster consisting of multiple servers, or a cloud server.

[0032] Combination Figure 1 As shown, the above-mentioned screen adjustment method can be executed by an electronic device, which can be a terminal device or a server. The above-mentioned screen adjustment method can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.

[0033] The above is only an example and is not specifically limited in this embodiment.

[0034] Optionally, as an optional implementation, as Figure 2 As shown, the adjustment method of the above screen includes:

[0035] S202, acquiring target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate a color value of a target image acquired by the image acquisition device;

[0036] Optionally, in an embodiment of the present application, the above-mentioned image acquisition device may include but is not limited to a camera, etc., and the deployment of the above-mentioned image acquisition device on the target display screen can be understood as, the above-mentioned target display screen and the above-mentioned image acquisition device are but are not limited to belonging to the same terminal device, the target display screen may include but is not limited to a device for displaying image data collected by the image acquisition device, etc., and the terminal device here may include but is not limited to smart phones, tablet computers, laptops, digital cameras, camcorders, smart watches, smart home devices, etc., and the above-mentioned target color value data may include but is not limited to color channel values ​​of the target image, specifically, color channel values ​​include but are not limited to red channel values ​​R, blue channel values ​​B, green channel values ​​G, etc.

[0037] It should be noted that, in addition to the color channel values, the above-mentioned target color value data can also record parameters such as shutter speed and gain value when the above-mentioned image acquisition device acquires the target image, and the embodiment of the present application does not impose any limitation on this.

[0038] Exemplarily, taking a camera as an example, the above-mentioned image acquisition device may include but is not limited to a camera sensor (sensor module), the above-mentioned target image refers to the image captured by the camera, the above-mentioned target display screen refers to the display screen of the camera, the image acquisition device captures the target image, and the target image is displayed on the target display screen.

[0039] Furthermore, the target color value data may include, but are not limited to, color values ​​of target images acquired by the image acquisition device using different filter modes.

[0040] In an exemplary embodiment, assuming that an image acquisition device acquires an image, the image can be divided into M There are N sampling blocks, each of which has its own corresponding color channel value and pixel brightness value. For example, the color channel value of the sampling block is recorded as R[i][j], G[i][j], B[i][j], i≤M, j≤N.

[0041] Furthermore, the above-mentioned image acquisition device can switch the filter mode, and respectively collect R[i][j], G[i][j], B[i][j], shutter speed, and gain value corresponding to the color filter mode and the black and white filter mode to obtain the above-mentioned target color value data.

[0042] Exemplarily, the target color value data includes color feature 1 (color value corresponding to the color filter pattern) and black-and-white feature 2 (color value corresponding to the black-and-white filter pattern).

[0043] S204, determining the ambient brightness data corresponding to the target display screen according to the target color value data, inputting the target color value data and the ambient brightness data into a pre-trained target recognition model, and determining the environment category corresponding to the target display screen, wherein the ambient brightness data is used to represent the ambient brightness when the target image is captured;

[0044] Optionally, in an embodiment of the present application, the above-mentioned environmental brightness data can be understood as the brightness value of the environment in which the image acquisition device is located when the image acquisition device acquires the above-mentioned target image. The above-mentioned target recognition model may include but is not limited to an SVM model (support vector machine model), and may include but is not limited to a C_SVC model (support vector classifier model), and the kernel function is an RBF function (radial basis function). The above-mentioned environmental categories may include but are not limited to indoor environments, outdoor environments, etc.

[0045] For example, after obtaining the target color value data, the pixel brightness value can be calculated by color channel value, including but not limited to using the formula "Y = 0.2989 R + 0.5866 G + 0.1145 B", wherein Y is the pixel brightness value, and 0.2989, 0.5866, and 0.1145 here are only examples, and can also be coefficients of other values, which are not limited in the present application.

[0046] Furthermore, the data in the target color value data are averaged according to the color channels to obtain the average of the values ​​of each color channel, and the average operation is also performed on the above-mentioned pixel brightness values ​​to obtain the average of the pixel brightness values. Then, the above-mentioned ambient brightness data is calculated based on the average of the pixel brightness values, the shutter speed and gain in the target color value data, and the average of the values ​​of each color channel, the average of the pixel brightness values, the shutter speed, the gain, and the ambient brightness data are input into the above-mentioned target recognition model to output the environment category corresponding to the target display screen.

[0047] In an exemplary embodiment, it is assumed that the target image is divided into M N sampling blocks, when the target acquisition device uses the color filter mode, M N sets of data, this M Each of the N groups of data corresponds to a sampling block of the target image. Each group of data is the red channel value R, blue channel value B, and green channel value G corresponding to the sampling block. Then, the pixel brightness value Y of each sampling block is calculated, and then the average value of the red channel value R of each sampling block in the target image is obtained, which is recorded as R avg0 , the mean of the blue channel value B, denoted as B avg0 ; The mean value of the green channel value G, denoted as Gavg0 , the mean of the pixel brightness values ​​Y, denoted as Y avg0 Similarly, the above target acquisition device is switched to the black and white filter mode, and the mean value of the red channel value R of each sampling block in the target image in the black and white filter mode is obtained, which is recorded as R avg1 , the mean of the blue channel value B, denoted as B avg1 ; The mean value of the green channel value G, denoted as G avg1 , the mean of the pixel brightness values ​​Y, denoted as Y avg1 .

[0048] Further, including but not limited to using Env=Y avg / (pow(2, gain) / (shutter) formula is used to obtain the above-mentioned ambient brightness data in color filter mode and black and white filter mode, wherein Env is ambient brightness data, pow() represents power calculation, gain represents gain when acquiring the target image, and shutter represents shutter speed when acquiring the target image. Specifically, the ambient brightness data in color filter mode is recorded as Env0, and the ambient brightness data in black and white filter mode is recorded as Env1.

[0049] Exemplarily, Ravg0, Gavg0, Bavg0, Yavg0, shutter0 (shutter speed when the color filter mode collects the target image), gain0 (gain when the color filter mode collects the target image), and Env0 in the color filter mode; Ravg1, Gavg1, Bavg1, Yavg1, shutter1 (shutter speed when the color filter mode collects the target image), gain1 (gain when the color filter mode collects the target image), and Env1 in the black and white filter mode are input into the above-mentioned target recognition model, and the model output is 0 or 1, 0 represents the outdoor scene category, and 1 represents the indoor scene category.

[0050] In yet another exemplary embodiment, Figure 3 is a schematic diagram of an optional screen adjustment method according to an embodiment of the present application, such as Figure 3 As shown, including but not limited to:

[0051] S302, the device (the above target acquisition device) is powered on, the color filter mode is set by default, and the acquired target image is divided into M N blocks, record R (red channel), G (green channel), B (blue channel), respectively, denoted as R[i][j], G[i][j], B[i][j], i≤M, j≤N, and use R, G, B to calculate the Y (pixel brightness) value, and calculate the average value of R, G, B, denoted as R avg , G avg , Bavg , Y avg , where: Y = 0.2989 R + 0.5866 G + 0.1145 B; meanwhile, record the shutter value shutter and gain value gain of the target image at this time, and obtain the environmental luminance value Env according to Env = Y avg / (pow(2, gain) / (shutter);

[0052] S304, determine whether the environmental luminance when the target acquisition device acquires the target image is high, or whether the environmental luminance where the target acquisition device is located is high. For example, use Env > Env_Thr for judgment. If the current environmental luminance Env meets this condition, it means the environmental luminance is high, and execute step S306; otherwise, if it does not meet this condition, it means the environmental luminance is dim, and execute step S308;

[0053] S306, judge the change fluctuation of the pixel luminance of the target image. For example, use |Y tag - Y avg | < Y_Thr as the judgment condition, where Y tag (the target pixel luminance) represents the standard value of the pixel luminance preset under the current environmental luminance in the color filter mode, and Y avg refers to the average value of the pixel luminance values Y of the above M N blocks in the color filter mode. Env_Thr and Y_Thr (the preset pixel luminance threshold) can be flexibly set, and this application does not limit this. If the pixel luminance Y of the target image avg meets this condition, it means the luminance change fluctuation is small, and the picture of the target image acquired by the target image acquisition device is stable, and execute S310; otherwise, execute S330;

[0054] S308, the current environmental category is the indoor environmental category;

[0055] S310, count the color channel values, pixel luminance values, shutter speed values, and gain values of different sampling blocks (M N blocks) of the target image, and obtain a set of data in the color filter mode, denoted as feature1: R avg0 , G avg0 , B avg0 , Y avg0 , shutter0, gain0, Env0;

[0056] S312, freeze the picture of the target acquisition device. At this time, the picture viewed by the user using the target acquisition device will not change;

[0057] S314, the image acquisition device automatically switches to the black and white color filter mode in the background;

[0058] S316, determine the change fluctuation of the pixel brightness of the target image. For example, use |Y' tag -Y' avg |<Y'_Thr as the judgment condition, where Y' tag represents the standard value of the pixel brightness preset under the current ambient brightness in the black and white color filter mode, and Y' avg refers to the average value of the pixel brightness values Y of the above-mentioned M N blocks in the black and white color filter mode. Y'_Thr (preset pixel brightness threshold) can be flexibly set, and this application does not limit it. If the picture is stable, execute S318; otherwise, execute S330;

[0059] S318, count the color channel values, pixel brightness values, shutter speed values, and gain values of different sampling blocks (M N blocks) of the target image to obtain a set of data in the color filter mode, denoted as feature1: R avg1 , G avg1 , B avg1 , Y avg1 , shutter1, gain1, Env1;

[0060] S320, the image acquisition device automatically switches to the color filter mode in the background;

[0061] S322, input the color feature1: R avg0 , G avg0 , B avg0 , Y avg0 , shutter0, gain0, Env0; and the black and white feature2: R avg1 , G avg1 , B avg1 , Y avg1 , shutter1, gain1, Env1 into the target recognition model to output predict_values (prediction results);

[0062] S324, determine whether the value of predict_values is equal to 1. If it is equal to 1, then execute step S326; otherwise, execute S328;

[0063] S326, the current environmental category is the indoor environmental category;

[0064] S328, the current environmental category is the outdoor environmental category;

[0065] S330, end.

[0066] S206, when the environment category is the target environment category, determining an environment color temperature parameter according to the target color value data, wherein the environment color temperature parameter is used to represent the color property of the target image;

[0067] Optionally, in an embodiment of the present application, the above-mentioned target environment category may include but is not limited to an outdoor environment category and an indoor environment category. The present application does not impose any limitation on this. The above-mentioned ambient color temperature parameter can be understood as the image color temperature information of the above-mentioned target image, which is related to the color value of the target image.

[0068] In an exemplary embodiment, the target acquisition device counts the M If the brightness of any sample block is brighter or darker than the RGB (color channel value) and Y (pixel brightness) values ​​of N blocks of sensors, the data of the sample block is considered inaccurate and will not be counted. For example, the brightness limit condition is Y min <Y<Y max , retain the sampling blocks that meet the brightness restriction condition; at the same time, some sampling blocks with bright colors will also affect the accuracy of data statistics. Therefore, it is necessary to remove the sampling blocks with bright colors, which can include but is not limited to using the color restriction condition "GR min <G / R<GR max , GB min <G / B<GB max RG min <R / G<RG max , BG min max "If the sampling block meets at least one of the color restriction conditions, the data of the sampling block is considered to be available, and the sampling blocks that meet the color restriction conditions are retained. After removing the sampling blocks that affect the data accuracy, the G of the target image collected by the image acquisition device is obtained. avg / B avg , G avg / R avg , B avg / G avg , R avg / G avg , where G avg / B avg , G avg / R avg , B avg / G avg , R avg / G avg All of them can be used as the above-mentioned ambient color temperature parameters, and this application does not impose any limitation on this.

[0069] For example, Figure 4 ​Schematic diagram of another optional screen adjustment method according to an embodiment of the present application. As Figure 4 shown, including but not limited to:

[0070] S402, start;

[0071] S404, the environmental category is the outdoor environment;

[0072] S406, the environmental category is the indoor environment;

[0073] S408, determine whether the time period when the target acquisition device acquires the target image is day or night, and execute S412;

[0074] S410, the time period when the target acquisition device acquires the target image is the daytime period, and execute S414;

[0075] S412, the time period when the target acquisition device acquires the target image is the nighttime period. Among them, the division of the daytime period and the nighttime period can be determined according to Env (environmental brightness data) > Env_day, Env < Env_night. If it is considered that the environmental brightness is high at this time, it belongs to the daytime period; when Env < Env_night, it is considered that the environmental brightness is low at this time, belonging to the nighttime period. Among them, Env_day and Env_night can be flexibly set, and the present application does not make any limitations. Then, execute S416;

[0076] S414, the time period of the target image is the daytime period, and there is no need to adjust the target display screen, and execute S426;

[0077] S416, the time period of the target image is the nighttime period, and according to M N sampling blocks are used to statistically calculate the color channel values and pixel brightness values of the target image;

[0078] S418, determine whether each sampling block meets the brightness limit condition, remove the sampling blocks that do not meet the brightness limit condition, and retain the sampling blocks that meet the brightness limit condition. Assume that the number of sampling blocks that meet the brightness limit condition is X, and X is less than or equal to M N, and execute S420;

[0079] S420, determine whether each sampling block meets the color limit condition, remove the sampling blocks that do not meet the color limit condition, and retain the sampling blocks that meet the color limit condition. Assume that the number of sampling blocks that meet the color limit condition is Y, and Y is less than or equal to X, and execute S422;

[0080] S422, perform filtering processing, use the color channel values of these Y sampling blocks to obtain the color channel mean value, and obtain the environmental color temperature parameter. For example, the environmental color temperature parameter is B avg / G avg ;

[0081] S424, use (ambient color temperature parameters A+B) Env_Ration determines the above-mentioned target eye protection level, where A and B are corresponding proportional coefficients, and this application does not impose any restrictions on this; Env_Ration is a proportional coefficient to the above-mentioned ambient brightness data. The darker the environment, the higher the proportional coefficient and the better the eye protection level. The value of Env_Ration is also not limited.

[0082] S426, end.

[0083] For example, Figure 5 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application, wherein the ambient color temperature parameters include B avg / G avg and R avg / G avg , the relationship between the ambient color temperature parameter and the color temperature information of the target image is as follows Figure 5 shown.

[0084] S208, determining a target eye protection level according to the ambient color temperature parameter and the ambient brightness data, and setting a target display screen based on a target color value adjustment ratio determined based on the target eye protection level.

[0085] Exemplarily, a mapping relationship list may be preset (different target eye protection levels correspond to different adjustment ratios of screen RGB values ​​(the above target color values), for example, eye protection level A corresponds to an R color channel magnified by 2 times; a G color channel reduced by 2 times; and the B color channel remains unchanged; eye protection level B corresponds to an R color channel magnified by 3 times; a G color channel reduced by 3 times; and a B color channel reduced by 2 times. This application does not impose any limitation on this.

[0086] Specifically, after obtaining the query mapping relationship list, the target color value adjustment ratio corresponding to the eye protection level is determined, and the color value of the target display screen is adjusted to change the proportion of blue light energy (blue light radiation ratio).

[0087] In an exemplary embodiment, Figure 6 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application, such as Figure 6 As shown, taking the camera as an example, it includes but is not limited to:

[0088] S602, start;

[0089] S604, obtaining the RGB value of the target image collected by the sensor (sensor module) of the camera;

[0090] S606, statistics of infrared components of the camera environment, including but not limited to statistics of the relationship between infrared components and other components (such as visible light, ultraviolet light, etc.), statistics of the influence of infrared components on camera imaging effects, etc.;

[0091] S608, using the target recognition model to determine the environment category;

[0092] S610, determining that the scene is an indoor scene, adjusting the target color value of the target display screen to an eye protection and blue light protection mode (that is, setting the target display screen according to the target color value adjustment ratio determined based on the target eye protection level);

[0093] S612, judged as an outdoor scene, continue to judge the day and night time periods. If it is the daytime period, the target color value of the target display screen will not be adjusted, that is, there is no need to adjust to the eye protection and blue light protection mode. On the contrary, if it is the low-light night period, the target color value of the target display screen will be adjusted to the eye protection and blue light protection mode.

[0094] S614, end.

[0095] Through the embodiment of the present application, the target color value data acquired in real time by the image acquisition device is acquired, wherein the image acquisition device is deployed on the target display screen, and the target color value data is used to indicate the color value of the target image acquired by the image acquisition device; the ambient brightness data corresponding to the target display screen is determined according to the target color value data, and the target color value data and the ambient brightness data are input into the pre-trained target recognition model to determine the environment category corresponding to the target display screen, wherein the ambient brightness data is used to indicate the ambient brightness when the target image is acquired; when the environment category is the target environment category, the ambient color temperature parameter is determined according to the target color value data, wherein the ambient color temperature parameter is used to indicate the color property of the target image; the target eye protection level is determined according to the ambient color temperature parameter and the ambient brightness data, and the target display screen is set based on the target color value adjustment ratio determined by the target eye protection level, so as to ensure that the adjustment mode of the target display screen is adapted to the actual business scenario, solve the brightness and color temperature adjustment problem of the target display screen in different environments, thereby improving the visual comfort and eye health protection effect of the user when viewing the display screen in different environments, and further solve the technical problem of poor accuracy of adaptive adjustment of brightness and color temperature of the display screen.

[0096] As an optional scheme, the above-mentioned determining the ambient brightness data corresponding to the above-mentioned target display screen according to the above-mentioned target color value data, and inputting the above-mentioned target color value data and the above-mentioned ambient brightness data into a pre-trained target recognition model, includes: determining the first color value, the second color value and the third color value according to the above-mentioned target color value data, wherein the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value respectively represent the values ​​of the three color channels of the above-mentioned target image; determining the target brightness value of the above-mentioned target image according to the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value; determining the above-mentioned ambient brightness data according to the above-mentioned target brightness value and the acquisition parameters of the above-mentioned image acquisition device; and inputting the above-mentioned target color value data and the above-mentioned ambient brightness data into the pre-trained target recognition model.

[0097] Optionally, in the embodiment of the present application, the first color value, the second color value and the third color value can be understood as different values ​​of the color channel. For example, the first color value refers to the red channel value R; the second color value refers to the blue channel value G; the third color value refers to the green channel value B. The target brightness value is the pixel brightness value in the target image. The target brightness value can be determined including but not limited to the following formula: Y (target brightness value) = 0.2989 R +0.5866 G + 0.1145 B, and the above-mentioned environmental brightness data can be determined by, but not limited to, the following formula: Env (environmental brightness data) = Y avg (average of target brightness values) / (pow(2, gain (gain value)) / (shutter (shutter speed)).

[0098] It should be noted that the acquisition parameters of the above-mentioned image acquisition device include but are not limited to the gain value, shutter speed, etc. of the image acquisition device.

[0099] For example, Ravg0, Gavg0, Bavg0, Y avg0 , shutter0, Gain0, Env 0、 Ravg1, Gavg1, Bavg1, Y collected in black and white filter mode avg1 , shutter1, Gain1, Env1 input the above target recognition model, and then get the environment category corresponding to the above target display screen. Here Ravg0, Gavg0, Bavg0, Y avg0 , Ravg1, Gavg1, Bavg1, Yavg1 represent the values ​​obtained by averaging the first color value, the second color value, the third color value, and the target brightness value of different sampling blocks of the target image.

[0100] Through the embodiments of the present application, the first color value, the second color value and the third color value are determined according to the target color value data; the target brightness value of the target image is determined according to the first color value, the second color value and the third color value; the ambient brightness data is determined according to the target brightness value and the acquisition parameters of the image acquisition device; the target color value data and the ambient brightness data are input into a pre-trained target recognition model to achieve the purpose of accurately identifying the above-mentioned environmental categories.

[0101] As an optional scheme, the above-mentioned determination of the target brightness value of the above-mentioned target image based on the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value includes: obtaining weight coefficients pre-set for the first color channel, the second color channel and the third color channel respectively; determining the target brightness value of the above-mentioned target image based on the above-mentioned weight coefficients, the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value.

[0102] As an optional scheme, the above-mentioned ambient brightness data is determined based on the above-mentioned target brightness value and the acquisition parameters of the above-mentioned image acquisition device, including: obtaining the shutter value and the gain value when the above-mentioned image acquisition device acquires the above-mentioned target image, wherein the above-mentioned acquisition parameters include the above-mentioned shutter value and the above-mentioned gain value; determining the above-mentioned ambient brightness data based on the above-mentioned target brightness value, the above-mentioned shutter value and the above-mentioned gain value.

[0103] Optionally, in the embodiment of the present application, the above weight coefficient can be flexibly set, and the present application does not impose any limitation on this. For example, Y (target brightness value) = 0.2989 R + 0.5866 G + 0.1145 B, the first color value is R, and 0.2989 is the weight coefficient of the first color value; the second color value is G, and 0.5866 is the weight coefficient of the second color value; the third color value is B, and 0.1145 is the weight coefficient of the third color value; the above-mentioned shutter value refers to the length of time the shutter of the image acquisition device is open, which is used to control the exposure time of the target image; the gain value refers to the signal amplification factor of the sensor of the image acquisition device, which is used to control the brightness of the target image.

[0104] Furthermore, the target brightness value of the target image can be determined as Env (environmental brightness data) = Y avg (mean of target brightness values) / (pow(2, gain) / (shutter).

[0105] As an optional solution, before inputting the target color value data and the environment brightness data into the pre-trained target recognition model, the method further includes: obtaining a pre-annotated first sample image, first annotation information, a second sample image and second annotation information, wherein the first annotation information annotates the environment category of the first sample image, the second annotation information annotates the environment category of the second sample image, the first sample image represents an image acquired by the image acquisition device using a first filter, the second sample image represents an image acquired by the image acquisition device using a second filter, and the first filter and the second filter are different; training an initial recognition model according to the first sample image, the first annotation information, the second sample image and the second annotation information to obtain the target recognition model, wherein the initial recognition model is used to generate a first discriminant value and a second discriminant value according to the first sample image, the first annotation information, the second sample image and the second annotation information, and compare the first discriminant value using the first annotation information, compare the second discriminant value using the second annotation information, generate a first comparison result and a second comparison result, and adjust the model parameters using the first comparison result and the second comparison result.

[0106] Optionally, in an embodiment of the present application, the first annotation information and the second annotation information include but are not limited to indoor environment categories, outdoor environment categories, etc., and the first filter and the second filter may include but are not limited to color filters and black and white filters, and the first filter and the second filter are different, that is, if the first filter is a color filter, the second filter may be a black and white filter; if the second filter is a color filter, the first filter may be a black and white filter.

[0107] In an exemplary embodiment, assume that the first sample image is an image taken using a color filter, and the first annotation information is "indoor environment", and the second sample image is an image taken using a black and white filter, and the second annotation information is "outdoor environment". Then, based on these two sample images and the annotation information, an object recognition model can be trained, and the model can classify the image according to the color features and environmental category information of the image.

[0108] It can be understood that during the training process of the above-mentioned target recognition model, the above-mentioned first discriminant value and second discriminant value are both predicted output values ​​of the target recognition model. For example, the first annotation information of the first sample image indicates an indoor environment, and the predicted output value of the target recognition model is 1 with a probability of "indoor environment" and 0 with a probability of "outdoor environment", indicating that the first discriminant value is an indoor environment, which is the same as the first annotation information. The second annotation information of the second sample image indicates an indoor environment, and the predicted output value of the target recognition model is 0 with a probability of "indoor environment" and 1 with a probability of "outdoor environment", indicating that the second discriminant value is an outdoor environment, which is different from the second annotation information.

[0109] Exemplarily, a new image is input into the target recognition model, and the model can output the probability that the image is an "indoor environment" and the probability of an "outdoor environment", and make a judgment based on these two probability values. For example, the probability of an "indoor environment" is 1, and the probability of an "outdoor environment" is 0; or, the probability of an "indoor environment" is 0.55, and the probability of an "outdoor environment" is 0.45, etc.

[0110] As an optional scheme, when the above-mentioned environment category is the target environment category, the ambient color temperature parameters are determined according to the above-mentioned target color value data, including: when the above-mentioned environment category is the target environment category, the ratio of the above-mentioned first color value to the above-mentioned second color value is determined according to the above-mentioned target color value data; when the above-mentioned target brightness value satisfies a preset brightness condition, and the ratio of the above-mentioned first color value to the above-mentioned second color value satisfies a preset ratio condition, the above-mentioned ambient color temperature parameters are determined from a predetermined mapping relationship set according to the ratio of the above-mentioned first color value to the above-mentioned second color value, wherein the above-mentioned mapping relationship set includes a group of ratio values ​​and a group of color temperature parameters, the above-mentioned group of ratio values ​​includes the ratio of the above-mentioned first color value to the above-mentioned second color value, and the above-mentioned group of color temperature parameters includes the above-mentioned ambient color temperature parameters.

[0111] It should be noted that the first color value may be a value of any color channel, and the second color value may be any color channel in other color channels except the first color value.

[0112] In an exemplary embodiment, the above mapping relationship set may include but is limited to a set of ratios, for example, the set of ratios is G / R, G / B, R / G, R / B, B / G, B / G, and may also include a set of color temperature parameters, the set of color temperature parameters is G avg / R avg , G avg / B avg , R avg / G avg , R avg / B avg , B avg / Gavg , B avg / G avg , the mapping relationship between the contrast value and the color temperature parameter is not limited in any way in this application.

[0113] For example, the first color value is G (the value of the green channel), the second color value is R (the value of the red channel) and B (the value of the blue channel), and the ratio of the first color value to the second color value is G / R and G / B; if Gr min <G / R<Gr max and Gb min <G / B<Gb max If it is established, then B avg / G avg and R avg / G avg Determining the above-mentioned ambient color temperature parameters may include but is not limited to using one of them to calculate the above-mentioned target eye protection level.

[0114] Among them, Gr min , Gr max , Gb min , Gb max can be flexibly set, and this application does not impose any restrictions on this. avg / G' avg , R' avg / G' avg It means to first judge the color restriction of each sampling block in the target image. If the G / B of the sampling block meets Gb min <G / B<Gb max The condition, and the G / R of the sampling block satisfies Gr min <G / R<Gr max If the condition is met, the R, G, and B of the sampling block are retained for the subsequent calculation of the B of the target image. avg / G avg and R avg / G avg Otherwise, the R, G, and B of the sampling block are removed, and the R, G, and B of the sampling block are not used to calculate the B of the target image. avg / G avg and R avg / G avg .

[0115] Through the embodiments of the present application, when the environment category is the target environment category, the ratio of the first color value to the second color value is determined according to the target color value data; when the target brightness value satisfies the preset brightness condition and the ratio of the first color value to the second color value satisfies the preset ratio condition, the ambient color temperature parameter is determined from a predetermined mapping relationship set according to the ratio of the first color value to the second color value, thereby ensuring the accuracy and stability of the color temperature parameter, and making the display effect of the target display screen more uniform and high-quality.

[0116] As an optional scheme, when the above-mentioned environment category is the target environment category, the ambient color temperature parameters are determined according to the above-mentioned target color value data, including: when the above-mentioned environment category is an indoor category, the ambient color temperature parameters are determined according to the above-mentioned target color value data; when the above-mentioned environment category is an outdoor category and the above-mentioned ambient brightness data meets the preset conditions, the ambient color temperature parameters are determined according to the above-mentioned target color value data.

[0117] Optionally, in an embodiment of the present application, the above-mentioned environmental categories include but are not limited to indoor categories and outdoor categories. The above-mentioned preset conditions can be understood as follows: if the outdoor environment is currently during the daytime, the entire environmental spectrum does not need to turn on the eye protection mode; if it is in the evening and night, the full spectrum of sunlight disappears, and damage to the human eye increases. At this time, it is necessary to judge the color temperature and brightness of the current environment, and adjust the above-mentioned target eye protection level according to the environmental color temperature and brightness.

[0118] Specifically, when the ambient brightness data is greater than the ambient brightness data during the daytime period, it means that the outdoor environment is currently in the daytime period, and there is no need to adjust the target color value of the above-mentioned target display screen; when the ambient brightness data is less than the ambient brightness data during the evening and night time periods, it is the evening and night time periods, which is a low-light scene, and the target color value of the above-mentioned target display screen needs to be adjusted.

[0119] Through the embodiments of the present application, when the environment category is an indoor category, the ambient color temperature parameters are determined according to the target color value data; when the environment category is an outdoor category and the ambient brightness data meets the preset conditions, the ambient color temperature parameters are determined according to the target color value data, thereby achieving the purpose of determining the ambient color temperature parameters according to different environment categories and conditions, that is, the color temperature can be adjusted according to the characteristics and requirements of the environment, so as to achieve better visual effects and comfort.

[0120] Exemplarily, the screen adjustment method proposed in the present application can be used to judge the ambient spectral color temperature and ambient brightness when the user uses the terminal device display screen, and then adaptively adjust the eye protection mode and intensity according to the judgment result to reduce the damage of the screen to the human eye. The terminal device display screen here can include but is not limited to any terminal device display screen with a camera, including but not limited to commercial display smart screens, cameras, etc.

[0121] It should be noted that Figure 7 is a schematic diagram of another optional screen adjustment method according to an embodiment of the present application. Common screen spectrum distribution is as follows: Figure 7 As shown in the figure, the harmful blue light component in the 415-445nm band is very prominent, and its peak is significantly higher than the peak of other spectral wavelengths. Long-term exposure to this blue light will cause certain damage to the human eye. According to international standards, in order to reduce the damage of blue light to the human eye, it is necessary to control the radiation ratio of blue light, that is, the peak energy of the blue light area (plus or minus 20nm part) shall not exceed 20% of the total released energy, and control the blue light ratio of other wavelengths, that is, the radiation energy of the blue light peak (<500nm) shall not be greater than 2 times the highest peak of other wavelengths.

[0122] Optionally, in the embodiment of the present application, it may include but is not limited to an environmental scene judgment module, an environmental spectrum color temperature judgment module, and an eye protection adjustment module, so that the camera can adaptively judge whether the eye protection mode needs to be turned on at present, and the strength of the eye protection adjustment module, specifically:

[0123] S1, environment judgment module, judges whether the current device environment is indoors or outdoors. If it is judged to be outdoor mode, there is no need to turn on the eye protection mode because the solar spectrum is very rich during the day and the damage to the human eye is less. At night, when the sunlight disappears, it is necessary to switch the eye protection mode and level according to the brightness and color temperature of the environment. If it is judged to be indoors, it is necessary to switch the eye protection mode and eye protection level in real time according to the brightness and color temperature of the environment to reduce the damage to the human eye by blue light and screen brightness. It can include but is not limited to judging the environment category based on the SVM model (the above-mentioned target recognition model). First, when the device is powered on, the camera defaults to a color filter. If it is judged that the current environment brightness is relatively high and the picture brightness is stable, the sampling data is counted and recorded as feature1; at this time, the picture is frozen, and the filter is switched to black and white. When it is judged that the picture brightness is stable, the sampling data is counted and recorded as feature2. Then, the sampling data is sent to the SVM model for judgment.

[0124] Among them, the target model may include but is not limited to a pre-trained SVM model, and its training process may include but is not limited to, first collecting feature points of multiple scenes, collecting 7 data before and after the filter is switched for each scene, a total of 14 data, namely: color feature1 and black and white feature2; then, establishing an SVM model, which may include but is not limited to using a C_SVC model (support vector machine classification model), the kernel function is an RBF function (radial basis function), importing multi-scene data, training the SVM model, outputting the target model, and using the pre-collected data to verify the target model.

[0125] S2, the ambient spectrum color temperature judgment module, has determined through S1 whether it is currently in indoor or outdoor mode, and can continue to determine whether it is currently in daytime or nighttime, as well as the color temperature of the current environment. When it is determined that the current mode is outdoor, if it is currently daytime, the ambient spectrum does not need to turn on the eye protection mode; if it is evening and night, the full spectrum of sunlight disappears, and the damage to the human eye increases. At this time, it is necessary to judge the color temperature and brightness of the current environment, and adjust the eye protection level according to the ambient color temperature and brightness; if the current mode is determined to be indoor, it is necessary to judge the color temperature and brightness of the current environment in real time, and adjust the eye protection level according to the ambient color temperature and brightness.

[0126] Specifically, if it is judged to be an outdoor scene, first calculate the value of Env = Yavg / (pow(2, gain) / (shutter). When Env > Env_day, it is considered that the ambient brightness is high at this time, which belongs to daytime; when Env < Env_night, it is considered that the ambient brightness is low at this time, which belongs to a low-light scene. If it is judged to be a daytime scene, the eye protection mode is not turned on. If it is judged to be a low-light mode, the current eye protection level needs to be calculated according to the environment. Env_day and Env_night can be flexibly set, and this application does not impose any restrictions.

[0127] It should be noted that the color temperature of the environment needs to be judged. Due to different environmental color temperatures and brightness, the degree of damage to the human eye is also different. According to the low blue light protection standard, the peak value of harmful blue light and the proportion of harmful blue light are a set of important evaluation indicators. Therefore, different eye protection intensity levels can be processed for different environmental spectral color temperatures. First, the camera counts M in real time. If the R, G, B, and Y values ​​of the N blocks of sensors are found to be brighter or darker, the data of this point is considered inaccurate, so statistics are not performed. In other words, the brightness restriction condition is Y min <Y<Y max At the same time, some brightly colored sampling blocks will also affect the accuracy of data statistics. Therefore, it is necessary to remove the brightly colored sampling blocks, that is, color restriction GR min <G / R<GR max and GB min <G / B<GB max After removing the sampling blocks that affect the data accuracy, the G of the camera image is obtained. avg / B avg and G avg / R avg (Ambient color temperature parameters mentioned above).

[0128] Furthermore, when determining the eye protection level, the eye protection level is related to the spectral color temperature and the ambient brightness, and the calculation formula may include but is not limited to the following:

[0129] Blue_Level (eye protection level) = ((G avg / B avg ) A+B) Env_Ration;

[0130] Among them: B / G is the value calculated by the camera, A and B are the corresponding proportional coefficients, and this application does not impose any restrictions on this; Env_Ration is a proportional coefficient to the ambient brightness. The darker the environment, the higher the proportional coefficient and the better the eye protection. The value of Env_Ration is also not limited.

[0131] S3, eye protection adjustment module, can know the current required eye protection level intensity according to S2, and change the proportion of blue light energy through software eye protection mode, that is, Figure 7 As shown, the RGB value of the real screen is linked to the Blue_Level value, and the color coordinates are developed based on the CIE1931 black body trajectory x=0.3682, 0.3685 as the standard; the radiation ratio of blue light before optimization (see Figure 7 The spectrum shown in Figure A) is greater than 20%, and the energy ratio of other wavelengths to blue light is less than 50%; the radiation ratio of optimized blue light (see Figure 7 The spectrum shown in Figure B) is less than 20%, and the energy ratio of other wavelengths to blue light is greater than 50%, which is in line with international standards.

[0132] Through the embodiments of the present application, indoor and outdoor judgment is achieved, and adaptive eye protection effects are performed according to different scenes; color temperature judgment of the current scene is also achieved, and adaptive eye protection effects are performed according to different scenes, as well as brightness judgment of the current scene, and adaptive eye protection effects are performed according to different scenes.

[0133] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0134] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0135] According to another aspect of the embodiments of the present application, a screen adjustment device for implementing the above screen adjustment method is also provided. Figure 8 As shown, the device comprises:

[0136] An acquisition module 802 is used to acquire target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of a target image acquired by the image acquisition device;

[0137] The first determination module 804 is used to determine the environmental brightness data corresponding to the target display screen according to the target color value data, input the target color value data and the environmental brightness data into the pre-trained target recognition model, and determine the environment category corresponding to the target display screen, wherein the environmental brightness data is used to represent the environmental brightness when the target image is collected;

[0138] A second determination module 806 is used to determine an ambient color temperature parameter according to the target color value data when the environment category is a target environment category, wherein the ambient color temperature parameter is used to represent the color property of the target image;

[0139] The third determination module 808 is used to determine the target eye protection level according to the ambient color temperature parameters and the ambient brightness data, and to set the target display screen based on the target color value adjustment ratio determined based on the target eye protection level.

[0140] As an optional solution, the above-mentioned device is used to determine the ambient brightness data corresponding to the above-mentioned target display screen according to the above-mentioned target color value data in the following manner, and input the above-mentioned target color value data and the above-mentioned ambient brightness data into a pre-trained target recognition model: determine the first color value, the second color value and the third color value according to the above-mentioned target color value data, wherein the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value respectively represent the values ​​of the three color channels of the above-mentioned target image; determine the target brightness value of the above-mentioned target image according to the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value; determine the above-mentioned ambient brightness data according to the above-mentioned target brightness value and the acquisition parameters of the above-mentioned image acquisition device; input the above-mentioned target color value data and the above-mentioned ambient brightness data into the pre-trained target recognition model.

[0141] As an optional scheme, the above-mentioned device is used to determine the target brightness value of the above-mentioned target image according to the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value in the following manner: obtaining weight coefficients pre-set for the first color channel, the second color channel and the third color channel respectively; determining the target brightness value of the above-mentioned target image according to the above-mentioned weight coefficients, the above-mentioned first color value, the above-mentioned second color value and the above-mentioned third color value.

[0142] As an optional scheme, the above-mentioned device is used to determine the above-mentioned ambient brightness data according to the above-mentioned target brightness value and the acquisition parameters of the above-mentioned image acquisition device in the following manner: obtain the shutter value and gain value when the above-mentioned image acquisition device acquires the above-mentioned target image, wherein the above-mentioned acquisition parameters include the above-mentioned shutter value and the above-mentioned gain value; determine the above-mentioned ambient brightness data according to the above-mentioned target brightness value, the above-mentioned shutter value and the above-mentioned gain value.

[0143] As an optional solution, the above-mentioned device is also used for: before inputting the above-mentioned target color value data and the above-mentioned environmental brightness data into the pre-trained target recognition model, obtaining a pre-annotated first sample image, first annotation information, second sample image and second annotation information, wherein the above-mentioned first annotation information annotates the environmental category of the above-mentioned first sample image, and the above-mentioned second annotation information annotates the environmental category of the above-mentioned second sample image, the above-mentioned first sample image represents an image acquired by the above-mentioned image acquisition device using a first filter, and the above-mentioned second sample image represents an image acquired by the above-mentioned image acquisition device using a second filter, and the above-mentioned first filter and the above-mentioned second filter are different; training an initial recognition model according to the above-mentioned first sample image, the first annotation information, the second sample image and the second annotation information to obtain the above-mentioned target recognition model, wherein the above-mentioned initial recognition model is used to generate a first discriminant value and a second discriminant value according to the above-mentioned first sample image, the above-mentioned first annotation information, the above-mentioned second sample image and the above-mentioned second annotation information, and compare the above-mentioned first discriminant value using the above-mentioned first annotation information, and compare the above-mentioned second discriminant value using the above-mentioned second annotation information to generate a first comparison result and a second comparison result, and adjusting the model parameters using the above-mentioned first comparison result and the above-mentioned second comparison result.

[0144] As an optional scheme, the above-mentioned device is used to determine the ambient color temperature parameters according to the above-mentioned target color value data when the above-mentioned environment category is the target environment category in the following manner: when the above-mentioned environment category is the target environment category, determine the ratio of the above-mentioned first color value to the above-mentioned second color value according to the above-mentioned target color value data; when the above-mentioned target brightness value satisfies a preset brightness condition, and the ratio of the above-mentioned first color value to the above-mentioned second color value satisfies a preset ratio condition, determine the above-mentioned ambient color temperature parameters from a predetermined mapping relationship set according to the ratio of the above-mentioned first color value to the above-mentioned second color value, wherein the above-mentioned mapping relationship set includes a group of ratio values ​​and a group of color temperature parameters, the above-mentioned group of ratio values ​​includes the ratio of the above-mentioned first color value to the above-mentioned second color value, and the above-mentioned group of color temperature parameters includes the above-mentioned ambient color temperature parameters.

[0145] As an optional solution, the above-mentioned device is used to determine the ambient color temperature parameters according to the above-mentioned target color value data in the following manner when the above-mentioned environment category is the target environment category: when the above-mentioned environment category is the indoor category, the ambient color temperature parameters are determined according to the above-mentioned target color value data; when the above-mentioned environment category is the outdoor category and the above-mentioned ambient brightness data meets the preset conditions, the ambient color temperature parameters are determined according to the above-mentioned target color value data.

[0146] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0147] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0148] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.

[0149] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0150] Fig. 9 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0151] It should be noted that Fig. 9The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0152] like Fig. 9 As shown, the computer system 900 includes a central processing unit 901 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 902 (ROM) or the program loaded from the storage part 908 to the random access memory 903 (RAM). Various programs and data required for system operation are also stored in the random access memory 903. The central processing unit 901, the read-only memory 902 and the random access memory 903 are connected to each other through a bus 904. The input / output interface 905 (Input / Output interface, i.e., I / O interface) is also connected to the bus 904.

[0153] The following components are connected to the input / output interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0154] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions defined in the system of the present application are executed.

[0155] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions provided by the embodiments of the present application are performed.

[0156] According to another aspect of the embodiment of the present application, an electronic device for implementing the above screen adjustment method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0157] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0158] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.

[0159] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations shown.

[0160] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the screen adjustment method and device in the embodiment of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, to implement the above-mentioned screen adjustment method. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely located relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 may be specifically, but not limited to, used to store information such as target color value data. As an example, such as Fig.10As shown, the memory 1002 may include, but is not limited to, the acquisition module 802, the first determination module 804, the second determination module 806, and the third determination module 808 in the screen adjustment device. In addition, other module units in the screen adjustment device may also be included but are not limited to, which will not be repeated in this example.

[0161] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0162] In addition, the electronic device further comprises: a display 1008 for displaying the target color value data; and a connection bus 1010 for connecting various module components in the electronic device.

[0163] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0164] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the screen adjustment method provided in various optional implementations of the above-mentioned screen adjustment aspects.

[0165] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.

[0166] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0167] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0168] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.

[0169] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0170] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0173] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for adjusting a screen, characterized in that: include: Acquire target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of the target image acquired by the image acquisition device; Determine the ambient brightness data corresponding to the target display screen according to the target color value data, input the target color value data and the ambient brightness data into a pre-trained target recognition model, and determine the environment category corresponding to the target display screen, wherein the ambient brightness data is used to represent the ambient brightness when the target image is captured; In the case where the environment category is a target environment category, determining an environment color temperature parameter according to the target color value data, wherein the environment color temperature parameter is used to represent a color property of the target image; Determine a target eye protection level according to the ambient color temperature parameter and the ambient brightness data, and set the target display screen based on a target color value adjustment ratio determined based on the target eye protection level; The method of determining the ambient color temperature parameters according to the target color value data when the environment category is the target environment category includes: determining the ambient color temperature parameters according to the target color value data when the environment category is the indoor category; and determining the ambient color temperature parameters according to the target color value data when the environment category is the outdoor category and the ambient brightness data meets a preset condition.

2. The method according to claim 1, characterized in that Determining the ambient brightness data corresponding to the target display screen according to the target color value data, and inputting the target color value data and the ambient brightness data into a pre-trained target recognition model, comprises: Determine a first color value, a second color value, and a third color value according to the target color value data, wherein the first color value, the second color value, and the third color value respectively represent values ​​of three color channels of the target image; determining a target brightness value of the target image according to the first color value, the second color value, and the third color value; Determine the ambient brightness data according to the target brightness value and the acquisition parameters of the image acquisition device; The target color value data and the ambient brightness data are input into a pre-trained target recognition model.

3. The method according to claim 2, characterized in that The determining a target brightness value of the target image according to the first color value, the second color value, and the third color value comprises: Obtaining weight coefficients pre-set for the first color channel, the second color channel, and the third color channel, respectively; A target brightness value of the target image is determined according to the weight coefficient, the first color value, the second color value, and the third color value.

4. The method according to claim 2, characterized in that: The determining the ambient brightness data according to the target brightness value and the acquisition parameters of the image acquisition device includes: Acquire a shutter value and a gain value when the image acquisition device acquires the target image, wherein the acquisition parameters include the shutter value and the gain value; The ambient brightness data is determined according to the target brightness value, the shutter value, and the gain value.

5. The method according to claim 2, characterized in that: Before inputting the target color value data and the ambient brightness data into the pre-trained target recognition model, the method further includes: Acquire a pre-annotated first sample image, first annotation information, a second sample image, and second annotation information, wherein the first annotation information annotates an environment category of the first sample image, the second annotation information annotates an environment category of the second sample image, the first sample image represents an image acquired by the image acquisition device using a first filter, the second sample image represents an image acquired by the image acquisition device using a second filter, and the first filter and the second filter are different; An initial recognition model is trained according to the first sample image, the first annotation information, the second sample image, and the second annotation information to obtain the target recognition model, wherein the initial recognition model is used to generate a first discriminant value and a second discriminant value according to the first sample image, the first annotation information, the second sample image, and the second annotation information, and the first discrimination value is compared with the first annotation information, and the second discrimination value is compared with the second annotation information to generate a first comparison result and a second comparison result, and the first comparison result and the second comparison result are used to adjust the model parameters.

6. The method according to claim 2, characterized in that When the environment category is the target environment category, determining the environment color temperature parameter according to the target color value data includes: In a case where the environment category is a target environment category, determining a ratio of the first color value to the second color value according to the target color value data; When the target brightness value satisfies a preset brightness condition and the ratio of the first color value to the second color value satisfies a preset ratio condition, the ambient color temperature parameter is determined from a predetermined mapping relationship set according to the ratio of the first color value to the second color value, wherein the mapping relationship set includes a group of ratio values ​​and a group of color temperature parameters, the group of ratio values ​​includes the ratio of the first color value to the second color value, and the group of color temperature parameters includes the ambient color temperature parameter.

7. A screen adjustment device, characterized in that: include: An acquisition module, used to acquire target color value data acquired in real time by an image acquisition device, wherein the image acquisition device is deployed on a target display screen, and the target color value data is used to indicate the color value of the target image acquired by the image acquisition device; A first determination module is used to determine the environmental brightness data corresponding to the target display screen according to the target color value data, input the target color value data and the environmental brightness data into a pre-trained target recognition model, and determine the environment category corresponding to the target display screen, wherein the environmental brightness data is used to represent the environmental brightness when the target image is collected; A second determination module is used to determine an ambient color temperature parameter according to the target color value data when the environment category is a target environment category, wherein the ambient color temperature parameter is used to represent a color property of the target image; A third determination module is used to determine a target eye protection level according to the ambient color temperature parameter and the ambient brightness data, and to set the target display screen based on a target color value adjustment ratio determined based on the target eye protection level; The device is used to determine the ambient color temperature parameters according to the target color value data in the following manner when the environment category is the target environment category: when the environment category is the indoor category, the ambient color temperature parameters are determined according to the target color value data; when the environment category is the outdoor category and the ambient brightness data meets a preset condition, the ambient color temperature parameters are determined according to the target color value data.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 6.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.