Interface color adjusting method and device and electronic equipment
By detecting visual environment information in real time, determining target color adjustment parameters and adjusting interface color and lighting, the problem of poor color adjustment accuracy in drastic changes in the visual environment is solved, visual fatigue is reduced, and user visual comfort and adaptability are improved.
Patent Information
- Application Number
- CN202510827270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-26
AI Technical Summary
In an environment where visual environment information such as light intensity and color information changes dramatically, the existing technology has poor accuracy in color adjustment results of the interface, leading to serious visual fatigue problems.
By detecting the visual environment information of the target area, the target color adjustment parameters, including transmittance and complementary color value, are determined, the color and light intensity of the target interface are adjusted in real time, the environmental information is collected using light sensors and color sensors, the adjustment parameters are optimized in combination with the preference learning model, and fill light processing is performed using a fill light device.
It improves the accuracy of the color adjustment results of the interface, reduces visual fatigue, and enhances the user's visual comfort and adaptability in drastically changing environments.
Smart Images

Figure CN120708555A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and more specifically, to an interface color adjustment method, device, and electronic device. Background Art
[0002] With the development of modern technology, people are increasingly relying on electronic devices for work, study, and entertainment, and spending extended periods in front of electronic screens and other interfaces has become the norm. However, this lifestyle inevitably brings about visual health issues, with eye fatigue being a particular concern. This is especially true when color information, such as light intensity and color values, frequently changes. For example, when going from a bright outdoor environment to a dim indoor environment, suddenly switching from a low-light environment to a high-light environment, or suddenly switching from a black and white interface to a highly saturated color interface, the eyes need to quickly adjust pupil size to adapt to changes in light intensity and color values. This frequent adjustment can easily cause visual fatigue and may even affect vision health over the long term.
[0003] While related technologies that use glasses or screen eye protection modes to adjust interface color can alleviate visual fatigue to a certain extent, they mostly focus on reducing blue light damage or adjusting screen brightness, and lack effective responses to the visual impact of changes in ambient light. This results in poor accuracy in interface color adjustment results in environments where visual environmental information, such as light intensity and color, fluctuates dramatically.
[0004] Currently, no effective solution has been proposed to the problem in related technologies that the color adjustment results of the interface are poorly accurate in environments where visual environment information such as light intensity and color information changes dramatically. Summary of the Invention
[0005] The main purpose of this application is to provide an interface color adjustment method, device and electronic device to solve the problem in the related art that the color adjustment results of the interface are poorly accurate in an environment where visual environment information such as light intensity and color information changes drastically.
[0006] To achieve the above-mentioned objectives, according to one aspect of the present application, a method for adjusting the color of an interface is provided. The method comprises: upon detecting that a target object has entered a target area, obtaining current visual environment information of the target area, wherein the target area is an area where the amplitude of change in the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; determining target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of a target interface, wherein the target interface is an interface through which the target object interacts with external visual information; and performing color adjustment on the target interface based on the target color adjustment parameters.
[0007] Optionally, when the target area is a light transition area, when the target object is detected to enter the target area, before obtaining the current visual environment information of the target area, the method also includes: obtaining the historical light intensity of the current area where the target object is located in a predetermined historical time period, wherein the predetermined historical time period is a period of predetermined length before the current moment; based on the historical light intensity, determining the light intensity change information of the current area within the predetermined historical time period; when the light intensity change information meets the predetermined light intensity change amplitude, determining the current area as a light transition area.
[0008] Optionally, when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the target color adjustment parameter is determined based on the current visual environment information, including: determining the buffered light intensity based on the current light intensity and the light intensity change information within a predetermined historical time period; and determining the transmittance based on the buffered light intensity.
[0009] Optionally, when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the color of the target interface is adjusted based on the target color adjustment parameter, including: when it is detected that the transmittance reaches the transmittance adjustment threshold of the target interface, the fill light intensity is determined based on the current light intensity and the buffered light intensity; the color of the target interface is adjusted based on the transmittance, and based on the fill light intensity, a fill light device is used to perform fill light processing on the target area.
[0010] Optionally, when the target area is an area with strong color contrast, when the target object is detected to enter the target area, before obtaining the current visual environment information of the target area, the method also includes: obtaining historical color information of the current area where the target object is located in a predetermined historical time period; based on the historical color information, determining the color change information of the current area within the predetermined historical time period; when the color change information meets the predetermined color change amplitude, determining the current area as an area with strong color contrast.
[0011] Optionally, the method also includes: detecting whether there are preference adjustment parameters corresponding to the target object; if there are preference adjustment parameters, determining the preference adjustment parameters as target color adjustment parameters; or if there are no preference adjustment parameters, determining the target color adjustment parameters based on current visual environment information.
[0012] Optionally, before determining the preference adjustment parameters as the target color adjustment parameters, the method further includes: obtaining preference information and behavior information of the target object; based on the preference information and behavior information, using a preference learning model to obtain the preference adjustment parameters of the target object, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
[0013] Optionally, after obtaining the preference adjustment parameters of the target object by using a preference learning model based on the preference information and behavior information, the method further includes: obtaining feedback information of the color adjustment result of the target object for the target interface; based on the feedback information, correcting the model parameters of the preference learning model to obtain a corrected preference learning model; based on the preference information and behavior information, using the corrected preference learning model to obtain updated preference adjustment parameters of the target object.
[0014] To achieve the above-mentioned purpose, according to another aspect of the present application, an interface color adjustment device is provided. The device comprises: an information acquisition module for acquiring current visual environment information of a target area when a target object is detected to have entered the target area, wherein the target area is an area where the amplitude of change in visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; a target color adjustment parameter determination module for determining target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of a target interface, and the target interface is an interface for the target object to interact with external visual information; and a color adjustment module for adjusting the color of the target interface based on the target color adjustment parameters.
[0015] Optionally, the information acquisition module includes: a first acquisition module, used to obtain the historical light intensity of the current area where the target object is located in a predetermined historical time period when the target area is a light transition area, wherein the predetermined historical time period is a period of predetermined length before the current moment; a light intensity change information determination module, used to determine the light intensity change information of the current area within the predetermined historical time period based on the historical light intensity; and a light transition area determination module, used to determine the current area as a light transition area when the light intensity change information meets a predetermined light intensity change amplitude.
[0016] Optionally, the target color adjustment parameter determination module includes: a buffered light intensity determination module, which is used to determine the buffered light intensity based on the current light intensity and the light intensity change information within a predetermined historical time period when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance; and a transmittance determination module, which is used to determine the transmittance based on the buffered light intensity.
[0017] Optionally, the color adjustment module includes: a fill light intensity determination module for determining the fill light intensity based on the current light intensity and the buffered light intensity when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, and when it is detected that the transmittance reaches the transmittance adjustment threshold of the target interface; a light intensity adjustment module for performing color adjustment on the target interface based on the transmittance, and performing fill light processing on the target area using a fill light device based on the fill light intensity.
[0018] Optionally, the device also includes: a second acquisition module, used to obtain historical color information of the current area where the target object is located in a predetermined historical time period when the target area is an area with strong color contrast; a color change information determination module, used to determine the color change information of the current area within a predetermined historical time period based on the historical color information; and a strong color contrast area determination module, used to determine the current area as an area with strong color contrast when the color change information meets a predetermined color change amplitude.
[0019] Optionally, the device also includes: a detection module for detecting whether there are preference adjustment parameters corresponding to the target object; a first determination module for determining the preference adjustment parameters as target color adjustment parameters when there are preference adjustment parameters; or a second determination module for determining the target color adjustment parameters based on current visual environment information when there are no preference adjustment parameters.
[0020] Optionally, the device also includes: a third acquisition module, used to obtain preference information and behavior information of the target object before determining the preference adjustment parameters as the target color adjustment parameters; a preference adjustment parameter determination module, used to obtain the preference adjustment parameters of the target object based on the preference information and behavior information using a preference learning model, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
[0021] Optionally, the device also includes: a fourth acquisition module, which is used to obtain feedback information of the color adjustment result of the target object for the target interface after obtaining the preference adjustment parameters of the target object by using a preference learning model based on the preference information and behavior information; a correction module, which is used to correct the model parameters of the preference learning model based on the feedback information to obtain a corrected preference learning model; and an updated preference adjustment parameter determination module, which is used to obtain updated preference adjustment parameters of the target object by using the corrected preference learning model based on the preference information and behavior information.
[0022] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, comprising a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the interface color adjustment methods.
[0023] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes the method of any one of claims 1 to 8 when running.
[0024] In an embodiment of the present application, when a target object enters a target area, current visual environment information of the target area is obtained, wherein the target area is an area where the change amplitude of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; based on the current visual environment information, target color adjustment parameters are determined, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, and the target interface is an interface for the target object to interact with external visual information; based on the target color adjustment parameters, the target interface is color-adjusted. The purpose of detecting and acquiring the current visual environment information in the target area in real time, determining the target color adjustment parameters (including transmittance and / or complementary color value), and accurately adjusting the color of the interface (such as a lens, a display screen, etc.) for user visual interaction is achieved, solving the problem of poor accuracy of the color adjustment results of the interface in an environment where visual environment information such as light intensity and color information changes dramatically in the related art. Thus, the accuracy of the color adjustment results of the interface is improved, thereby improving the visual comfort of the object and the adaptability to the dramatically changing environmental visual environment information, and reducing visual fatigue. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:
[0026] Figure 1 A hardware structure block diagram of a computer terminal for implementing an interface color adjustment method is shown;
[0027] Figure 2 This is a flow chart of a method for adjusting interface color according to an embodiment of the present application;
[0028] Figure 3 is a schematic diagram of an interface color adjustment device provided according to an embodiment of the present application;
[0029] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0031] 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 sequential order. 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 a sequence 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.
[0032] It should be noted that the collected information (including but not limited to user device information, user personal information, environmental visual information, user location information, user preference information and user behavior information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0033] Example 1
[0034] According to an embodiment of the present application, a method embodiment of an interface color adjustment method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the interface color adjustment method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (illustrated as 102a, 102b, ..., 102n in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0036] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components of the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0037] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the interface color adjustment method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above-mentioned interface color adjustment method. The memory 104 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 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0038] The transmission device 106 is configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the computer terminal 10. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.
[0039] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0040] Under the above operating environment, this application provides Figure 2 The interface color adjustment method shown. Figure 2 This is a flowchart of the interface color adjustment method provided according to an embodiment of the present application.
[0041] Step S201, when a target object is detected to enter a target area, current visual environment information of the target area is obtained, wherein the target area is an area where the amplitude of change of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information;
[0042] It can be understood that when it is detected that the target object enters the target area (such as the light transition area and the area with strong color contrast), the acquisition device is used to collect and obtain the current visual environment information of the target area, including the current light intensity and / or the current color information. The above-mentioned target area refers to an area where the amplitude of the change in visual environment information is greater than the predetermined amplitude, such as the area where the amplitude of the change in light intensity (i.e., light intensity change information) is greater than the predetermined light intensity change amplitude, or the area where the amplitude of the change in color information (i.e., color change information) is greater than the predetermined color change amplitude. For the light intensity in the visual environment information, a light sensor can be used to collect and obtain it; for the color information in the visual environment information, a color sensor can be used to collect and obtain it. Through real-time visual environment information collection and processing, it is possible to quickly respond to visual changes in the environment in which the target object is located. Even in the case of rapid movement or drastic changes in ambient light or color, the current environment information can be captured and analyzed in time to provide data basis for subsequent interface color adjustment.
[0043] Optionally, light sensors and color sensors can be used to collect visual environment information. Calibrate the light and color sensors to ensure data accuracy. The light sensor continuously detects the ambient light intensity and intensity changes, while the color sensor captures detailed color information of the environment, including color information and color changes.
[0044] Optionally, in the interface color adjustment method provided in an embodiment of the present application, when the target area is a light transition area, when the target object is detected to enter the target area, before obtaining the current visual environment information of the target area, the method also includes: obtaining the historical light intensity of the current area where the target object is located in a predetermined historical time period, wherein the predetermined historical time period is a period of predetermined length before the current moment; based on the historical light intensity, determining the light intensity change information of the current area within the predetermined historical time period; when the light intensity change information meets the predetermined light intensity change amplitude, determining the current area as a light transition area.
[0045] It can be understood that when the target area is a light transition area, the historical light intensity of the current area where the target object is located in the predetermined historical time period is obtained by the acquisition device. According to the historical light intensity, the light intensity change information of the current area within the predetermined historical time period is determined. When the light intensity change information meets the predetermined light intensity change amplitude, that is, the light intensity change information is greater than the predetermined light intensity change amplitude, the current area is determined as a light transition area. Through the analysis and threshold judgment of the historical light intensity data of the target area, the light transition area can be effectively identified, and the current visual environment information can be collected and analyzed in advance, so as to effectively predict and respond to drastic changes in light intensity, provide users (i.e., target objects) with more accurate and personalized visual protection, and improve the visual comfort of users in constantly changing lighting environments.
[0046] Optionally, in the interface color adjustment method provided in an embodiment of the present application, when the target area is an area with strong color contrast, when the target object is detected to enter the target area, before obtaining the current visual environment information of the target area, the method also includes: obtaining historical color information of the current area where the target object is located in a predetermined historical time period; based on the historical color information, determining the color change information of the current area within the predetermined historical time period; when the color change information meets the predetermined color change amplitude, determining the current area as an area with strong color contrast.
[0047] It can be understood that when the target area is an area with strong color contrast, historical color information of the current area where the target object is located is obtained by an acquisition device, such as a light sensor and a color sensor, within a predetermined historical time period. Based on the historical color information, the color change information of the current area within the predetermined historical time period is determined. When the color change information meets the predetermined color change amplitude, that is, the color change information is greater than the predetermined color change amplitude, the current area is determined to be an area with strong color contrast. By analyzing the historical color information, the recognition accuracy of areas with strong color contrast can be improved, thereby making preparations in advance for visual protection through interface color adjustment, reducing the instantaneous visual impact of color mutations on the eyes of the target object, and effectively preventing visual fatigue.
[0048] Alternatively, light transition areas and areas of strong color contrast can be determined not only by determining the magnitude of the change, but also by employing a light change recognition algorithm. The light change recognition algorithm analyzes the collected light intensity and color information data in real time to identify light transition areas and areas of strong color contrast. Based on data collected by the light sensor, the light change recognition algorithm analyzes the changing trend and speed of ambient light intensity (i.e., light intensity change information) to accurately identify light transition areas. Based on color data collected by the color sensor, it analyzes ambient color information and color change information to identify areas of strong color contrast.
[0049] Step S202: determining target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, where the target interface is the interface through which the target object interacts with external visual information;
[0050] It can be understood that the target color adjustment parameters for color adjustment of the target interface are determined based on the current visual environment information of the target area, including the transmittance and / or complementary color value of the target interface. The above-mentioned target interface refers to the interface for the target object to interact with external visual information, such as smart glasses and computer monitors. The above-mentioned transmittance is used to adjust the light intensity of the target interface, and the complementary color value is used to adjust the color information of the target interface. Based on the intelligent analysis of the current visual environment information, the target color adjustment parameters, including transmittance and complementary color value, can be determined to achieve the technical effects of reducing visual fatigue, improving color vision comfort, and providing personalized visual protection, thereby improving the user's visual health in different light intensity and color information environments.
[0051] Optionally, in the interface color adjustment method provided in an embodiment of the present application, when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the target color adjustment parameter is determined based on the current visual environment information, including: determining the buffered light intensity based on the current light intensity and the light intensity change information within a predetermined historical time period; and determining the transmittance based on the buffered light intensity.
[0052] It is understood that if the current visual environment information collected includes the current light intensity, that is, when the target object enters the light transition area, the buffer light intensity (i.e., the intermediate color level transition value) used to buffer the drastic light intensity changes in the target area is determined based on the current light intensity and the light intensity change information of the predetermined historical time period, and the transmittance of the target interface is determined based on the buffer light intensity. By analyzing the current light intensity and the light intensity change information of the historical time period to determine the buffer light intensity and the corresponding transmittance, visual protection can be achieved in environments with drastic changes in light intensity, ensuring that users can enjoy a smooth and comfortable visual experience, thereby reducing visual fatigue and protecting vision health.
[0053] Optionally, when it is recognized that the user is about to enter a light transition area (such as walking from indoors to outdoors), the light adaptation mechanism can be used to adjust the light intensity. Based on the current light intensity and light intensity change information, an intermediate color level transition value calculation algorithm is used to calculate the appropriate intermediate color level transition value and send it to the display screen (interface of non-wearable devices) / lens adjustment mechanism (adjustment mechanism of the interface of wearable devices (such as smart glasses)). The display screen / lens adjustment mechanism automatically adjusts the transmittance of the display screen / lens based on the received intermediate color level transition value to provide a smooth light intensity transition effect and reduce environmental visual differences.
[0054] Optionally, when the user is about to enter an area of intense color contrast, a complementary color value can be calculated based on the current color information using a color complement algorithm. The lens adjustment mechanism or display adjusts the interface color based on the calculated complementary color value, reducing color contrast, achieving color harmony, and alleviating visual fatigue.
[0055] Optionally, in the interface color adjustment method provided in an embodiment of the present application, the method also includes: detecting whether there are preference adjustment parameters corresponding to the target object; if there are preference adjustment parameters, determining the preference adjustment parameters as target color adjustment parameters; or if there are no preference adjustment parameters, determining the target color adjustment parameters based on current visual environment information.
[0056] It is understood that the system determines whether preference adjustment parameters corresponding to the target object are pre-stored. If so, the preference adjustment parameters are used as the target color adjustment parameters. If not, the target color adjustment parameters are determined based on the collected current visual environment information. By detecting and applying the preference adjustment parameters of the target object, more personalized and precise color adjustment of the target interface can be provided, thereby effectively reducing visual fatigue and improving visual comfort.
[0057] Optionally, in the interface color adjustment method provided in an embodiment of the present application, before determining the preference adjustment parameters as the target color adjustment parameters, the method also includes: obtaining the preference information and behavior information of the target object; based on the preference information and behavior information, using a preference learning model to obtain the preference adjustment parameters of the target object, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
[0058] It will be appreciated that the aforementioned preference adjustment parameters are determined based on the target subject's preference and behavior information. First, the target subject's preference and behavior information is obtained and then input into a preference learning model that has previously learned the relationship between the subject's preference and behavior information and the preference adjustment parameters, thereby obtaining the target subject's preference adjustment parameters. Based on the target subject's preference and behavior information, highly personalized preference adjustment parameters are generated and used as target color adjustment parameters. This approach can improve the personalization and effectiveness of visual adjustment, effectively reduce visual fatigue, and enhance the overall user experience and visual health protection level.
[0059] Optionally, in the interface color adjustment method provided in the embodiment of the present application, after obtaining the preference adjustment parameters of the target object by using a preference learning model based on the preference information and behavior information, the method further includes: obtaining feedback information of the color adjustment result of the target object for the target interface; based on the feedback information, correcting the model parameters of the preference learning model to obtain a corrected preference learning model; based on the preference information and behavior information, using the corrected preference learning model to obtain updated preference adjustment parameters of the target object.
[0060] It can be understood that in order to further improve the accuracy of the preference adjustment parameters, the preference adjustment parameters are updated based on the feedback information of the target object on the color adjustment result of the target interface. First, the feedback information of the target object on the color adjustment result of the target interface is obtained, and based on the feedback information, the model parameters of the preference learning model are corrected to obtain a corrected preference learning model. Secondly, the preference information and behavior information of the target object are input into the corrected preference learning model to obtain the updated preference adjustment parameters of the target object. Updating and correcting the preference learning model and preference adjustment parameters based on user feedback information can achieve a more personalized and accurate color adjustment effect, effectively improving the user's visual experience and visual protection level in various environments.
[0061] Optionally, to further enhance the user experience, a preference learning model can be used to combine user preference information and behavior information to determine user preference adjustment parameters. After the interface adjustment is complete, user feedback on the interface color adjustment results can be collected. Based on this feedback, the model parameters of the preference learning model are updated and modified to produce an updated preference learning model. Using this updated preference learning model, combined with user preference information and behavior information, the user preference adjustment parameters can be continuously optimized to better meet the user's personalized needs.
[0062] Step S203: performing color adjustment on the target interface based on the target color adjustment parameters.
[0063] It is understood that the target interface of the target account is color-adjusted according to the target color adjustment parameters. By color-adjusting the target interface, the color contrast and light intensity of the target interface can be reduced, creating a more harmonious visual environment and improving the user's visual comfort and health.
[0064] Optionally, in the interface color adjustment method provided in an embodiment of the present application, when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the target interface is color adjusted based on the target color adjustment parameter, including: when it is detected that the transmittance reaches the transmittance adjustment threshold of the target interface, the fill light intensity is determined based on the current light intensity and the buffered light intensity; the target interface is color adjusted based on the transmittance, and based on the fill light intensity, a fill light device is used to perform fill light processing on the target area.
[0065] It can be understood that when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the transmittance of the target interface needs to be adjusted. If the buffer light intensity can be met by adjusting the transmittance, the transmittance of the target interface is directly adjusted; if the buffer light intensity cannot be met by adjusting the transmittance, that is, the target object enters the target area of weak light intensity from the area of strong light intensity, and the transmittance of the target interface is adjusted to the transmittance adjustment threshold (i.e., the maximum transmittance) and still cannot meet the buffer light intensity requirement, it is necessary to use the fill light device in the target area to provide additional light intensity to meet the buffer light intensity requirement. At this time, the fill light intensity required to be supplemented by the fill light device is determined based on the current light intensity and the buffer light intensity. The color of the target interface is adjusted according to the transmittance, and based on the fill light intensity, the fill light device is used to fill light the target area. When the required light intensity cannot be provided by adjusting the transmittance of the target interface, by determining the fill light intensity and activating the fill light device, the light intensity level of the target area can be increased, thereby improving the user's visual experience.
[0066] Optionally, when it is detected that the current ambient light intensity is too weak and adjusting the transmittance is insufficient to meet the user's visual needs, the fill light mechanism can be used to enhance the light intensity. Based on the current light intensity of the environment, the buffered light intensity, and in combination with user needs and preferences, a fill light intensity prediction algorithm is used to calculate the appropriate fill light intensity. The fill light device automatically turns on and adjusts the brightness based on the calculated fill light intensity, providing the user with an additional light source to help the eyes adapt to drastic changes in light intensity. For scenes that change from bright to dark, the fill light device can appropriately supplement the light intensity; for scenes that change from dark to bright, the light stimulation is reduced by adjusting the transmittance of the display screen (or lens).
[0067] Through the above steps S201 to S203, the current visual environment information within the target area can be detected and acquired in real time, and the target color adjustment parameters (including transmittance and / or complementary color values) can be determined. Based on this, the user's visual interaction interface (such as lenses, display screens, etc.) can be accurately color adjusted. This solves the problem in related technologies of poor accuracy of interface color adjustment results in environments where visual environment information such as light intensity and color information changes dramatically. This can further improve the accuracy of the interface color adjustment results, thereby achieving the effect of improving the subject's visual comfort and adaptability to dramatically changing environmental visual environment information, and reducing visual fatigue.
[0068] Based on the above embodiments and optional embodiments, the present application proposes an optional implementation method of an interface color adjustment method.
[0069] Based on the above embodiments, an intelligent eye visual fatigue relief system for implementing an interface color adjustment method is proposed. The system integrates advanced hardware modules with efficient software algorithms. When the user (object) is in an environment with changing light (that is, light information is used as visual environment information, and light information includes light intensity and color information), the system can automatically adjust the visual input signal to reduce visual differences, thereby protecting the user's eyesight and improving visual comfort.
[0070] The intelligent eye fatigue relief system consists of two main components: hardware modules and software algorithms. These two components work closely together to alleviate eye fatigue. The hardware module collects visual environment information, including light intensity and color information, and acts as an actuator to adjust visual input signals. The software algorithm processes this data, generates control instructions, and optimizes system performance.
[0071] The hardware modules primarily include a light sensor, a color sensor, a microprocessor, a display / lens adjustment mechanism (i.e., the interface), and a fill light device. A high-precision light sensor is integrated into the system to detect ambient light intensity and intensity fluctuations in real time. This sensor can detect subtle light fluctuations, providing accurate data support for the software algorithms. To analyze the ambient color distribution, the system is equipped with an advanced color sensor that can identify and distinguish different wavelengths of light, thereby obtaining detailed color information. The microprocessor, as the system's core control unit, receives data from the light and color sensors, runs the software algorithms, and generates control commands. Its high-speed computing power and powerful data processing capabilities ensure rapid and accurate system response. For wearable devices (such as smart glasses), the interface includes a lens adjustment mechanism that adjusts the lens's light transmittance and color value according to control commands. For non-wearable devices (such as computer monitors), interfaces such as displays achieve similar effects by controlling the interface's display parameters. When the light intensity is insufficient, the system can provide users with additional light sources (i.e., fill light processing) through built-in fill light devices (such as micro LED (Light Emitting Diode) lamps) to help users better adapt to changes in ambient light.
[0072] The software algorithms primarily include a light change recognition algorithm, an intermediate color transition value calculation algorithm, a fill light intensity prediction algorithm, a color complement algorithm, and a user preference learning algorithm. The light change recognition algorithm analyzes the changing trend and speed of ambient light intensity (i.e., light intensity change information) based on data collected by the light sensor. Once a significant light transition is identified, the algorithm immediately triggers subsequent processing steps. After the light change is detected, the intermediate color transition value calculation algorithm calculates an appropriate intermediate color transition value (i.e., buffered light intensity) based on the current light intensity and light intensity change information. This value serves as a baseline for adjusting the visual input signal to ensure smooth light intensity transitions. The fill light intensity prediction algorithm dynamically calculates the optimal fill light intensity based on the current ambient light intensity input and user preferences and requirements to optimize the visual experience or meet the needs of specific application scenarios. To reduce color contrast, the system uses a color complement algorithm to determine the complementary color value. Based on the current ambient color information acquired by the color sensor, this algorithm determines the complementary color value that complements the current color and applies it to the display / lens adjustment mechanism to achieve color harmony. To enhance user experience, the system also integrates a user preference learning algorithm. This algorithm collects user usage habits and feedback, and continuously optimizes user preference adjustment parameters to better meet user personalized needs.
[0073] The interface color adjustment method of this embodiment includes the following steps:
[0074] Step S1: System initialization and calibration, specifically including:
[0075] Step S11, start the system: turn on the power of the device and start the built-in software system.
[0076] Step S12, hardware calibration: Calibrate the light sensor and color sensor to ensure data accuracy. At the same time, check the working status of the display / lens adjustment mechanism and the fill light device.
[0077] Step S2, detecting the illumination intensity and color information of the ambient light, specifically includes:
[0078] Step S21, real-time data collection: continuously detecting the light intensity and light intensity change information of the ambient light through the light sensor, and capturing the detailed color information of the environment through the color sensor.
[0079] Step S22, data analysis: The microprocessor runs a light change recognition algorithm. The software algorithm performs real-time analysis on the collected light intensity and color information data to identify light transition areas and areas with strong color contrast.
[0080] Step S3, eye fatigue adaptation processing, specifically includes:
[0081] Step S31, light change recognition: When the software algorithm recognizes that the user is about to enter a light transition area (such as walking from indoors to outdoors), the light adaptation mechanism is immediately triggered.
[0082] Step S32, calculating the intermediate color transition value: according to the current light intensity and the light intensity change information, an intermediate color transition value calculation algorithm is used to calculate a suitable intermediate color transition value, and the value is sent to the display screen / lens adjustment mechanism.
[0083] Step S33, the interface performs color adjustment: the display screen / lens adjustment mechanism automatically adjusts the transmittance of the display screen / lens according to the received intermediate color level transition value, providing a smooth light intensity transition effect and reducing environmental visual differences.
[0084] Step S4, fill light processing, specifically includes:
[0085] Step S41, fill light demand determination: When the software algorithm determines that the current ambient light intensity is too weak and the transmittance is not sufficient to meet the user's visual needs, the fill light mechanism is triggered.
[0086] Step S42, fill light intensity calculation: according to the current ambient light intensity, the buffer light intensity, and the user's needs and preferences, the appropriate fill light intensity is calculated by a fill light intensity prediction algorithm.
[0087] Step S43: Fill light execution: The fill light device automatically activates and adjusts the brightness based on the calculated fill light intensity, providing additional light to the user and helping the eyes adapt to drastic changes in light intensity. For scenes transitioning from bright to dark, the fill light device appropriately supplements the light intensity. For scenes transitioning from dark to bright, the fill light device adjusts the light transmittance of the display (or lens) to reduce light stimulation.
[0088] Step S5, color complement processing, specifically includes:
[0089] Step S51, color contrast recognition: the software algorithm analyzes the data collected by the color sensor and identifies areas with strong color contrast.
[0090] Step S52, color complementary calculation: according to the current color information, the color complementary algorithm calculates the complementary color value that complements the current color.
[0091] Step S53, color adjustment: the lens adjustment mechanism or the display screen adjusts the color of the interface according to the calculated complementary color value, reduces the color contrast intensity, achieves color harmony, and reduces visual fatigue.
[0092] Step S6: User feedback and optimization, specifically including:
[0093] Step S61 , user feedback collection: collecting user feedback information on the color adjustment performance of the system through the user interface.
[0094] Step S62, algorithm optimization: based on user feedback information and data analysis results, continuously optimize the model parameters of the user preference learning model to improve the adaptability and accuracy of the system.
[0095] Step S7: System maintenance and update, specifically including:
[0096] Step S71, regular inspection: regularly inspect and maintain the hardware module to ensure its normal operation.
[0097] Step S72, software update: Based on technological advancements and changes in user needs, the software system is regularly updated to introduce new features and enhance user experience.
[0098] In this embodiment, the system firstly intelligently senses changes in ambient light and automatically adjusts the light intensity and color values of the visual input signal to reduce eye irritation caused by sudden changes in light. Secondly, it leverages the principle of color complementation to automatically adjust color values in areas of strong color contrast, reducing visual strain. Finally, by providing user-defined settings, users can adjust system preference parameters based on their individual needs (e.g., their vision condition) and preferences, achieving personalized vision protection.
[0099] This embodiment can at least achieve the following effects: when the user enters the light transition area, it can quickly identify and give the intermediate color level transition value, which can not only slow down the sudden change in light intensity, but also make the pupil adjustment more natural and smooth, avoiding eye discomfort caused by the sudden change in light intensity; by filling in the light or adjusting the transmittance through the fill light device, it can effectively reduce the visual difference of the environment, so that when the user enters a too dark area from an overly bright area, or from a dark place to a bright place, the eyes can gradually adapt to the change in light intensity, reducing the visual impact caused by excessive light contrast; by adopting the color complement method, in scenes with strong color contrast, the color value can be automatically adjusted, the color contrast intensity can be reduced, creating a more harmonious and comfortable visual environment, and reducing visual fatigue caused by staring at high-contrast colors for a long time; by introducing an adjustment mechanism for personalized adaptation of preference adjustment parameters according to the user's personal needs, preferences, and user feedback information, the system color adjustment performance can be continuously optimized to better meet the user's visual needs.
[0100] The interface color adjustment method provided in the embodiment of the present application obtains the current visual environment information of the target area when detecting that the target object enters the target area, wherein the target area is an area where the amplitude of change of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes the current light intensity and / or current color information; based on the current visual environment information, determines the target color adjustment parameters, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, and the target interface is the interface for the target object to interact with the external visual information; based on the target color adjustment parameters, the color of the target interface is adjusted. This can solve the problem of poor accuracy of the color adjustment results of the interface in the related art in an environment where the visual environment information such as light intensity and color information changes dramatically. This can thereby improve the accuracy of the color adjustment results of the interface, thereby improving the visual comfort of the object and the ability to adapt to the dramatically changing environmental visual environment information, and reducing visual fatigue.
[0101] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0102] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0103] Example 2
[0104] The present application also provides an interface color adjustment device. It should be noted that the interface color adjustment device of the present application can be used to execute the interface color adjustment method provided in the present application. The interface color adjustment device provided in the present application is introduced below.
[0105] According to an embodiment of the present application, a device for implementing the above-mentioned interface color adjustment method is also provided. Figure 3 is a schematic diagram of an interface color adjustment device provided according to an embodiment of the present application, such as Figure 3As shown, the device includes: an information acquisition module 301, which is used to obtain current visual environment information of the target area when a target object is detected to enter a target area, wherein the target area is an area where the amplitude of change of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; a target color adjustment parameter determination module 302, which is connected to the information acquisition module 301, and is used to determine target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, and the target interface is an interface for the target object to interact with external visual information; a color adjustment module 303, which is connected to the target color adjustment parameter determination module 302, and is used to adjust the color of the target interface based on the target color adjustment parameters.
[0106] The interface color adjustment device provided in the embodiment of the present application includes an information acquisition module 301 for acquiring the current visual environment information of the target area when detecting that a target object has entered a target area, wherein the target area is an area where the change in the visual environment information is greater than a predetermined range, and the current visual environment information includes the current light intensity and / or current color information; a target color adjustment parameter determination module 302, connected to the information acquisition module 301, for determining target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, which is the interface through which the target object interacts with external visual information; and a color adjustment module 303, connected to the target color adjustment parameter determination module 302, for adjusting the color of the target interface based on the target color adjustment parameters. This can solve the problem of poor accuracy of interface color adjustment results in environments where visual environment information such as light intensity and color information changes dramatically in the related art. This can improve the accuracy of the interface color adjustment results, thereby improving the subject's visual comfort and adaptability to dramatically changing environmental visual environment information, and reducing visual fatigue.
[0107] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the information acquisition module includes: a first acquisition module, used to obtain the historical light intensity of the current area where the target object is located in a predetermined historical time period when the target area is a light transition area, wherein the predetermined historical time period is a period of predetermined length before the current moment; a light intensity change information determination module, used to determine the light intensity change information of the current area within the predetermined historical time period based on the historical light intensity; and a light transition area determination module, used to determine the current area as a light transition area when the light intensity change information satisfies a predetermined light intensity change amplitude.
[0108] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the target color adjustment parameter determination module includes: a buffered light intensity determination module, which is used to determine the buffered light intensity based on the current light intensity and the light intensity change information within a predetermined historical time period when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance; and a transmittance determination module, which is used to determine the transmittance based on the buffered light intensity.
[0109] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the color adjustment module includes: a fill light intensity determination module for determining the fill light intensity based on the current light intensity and the buffered light intensity when the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, and when it is detected that the transmittance reaches the transmittance adjustment threshold of the target interface; a light intensity adjustment module for adjusting the color of the target interface based on the transmittance, and based on the fill light intensity, using a fill light device to perform fill light processing on the target area.
[0110] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the device also includes: a second acquisition module, used to obtain historical color information of the current area where the target object is located in a predetermined historical time period when the target area is an area with strong color contrast; a color change information determination module, used to determine the color change information of the current area within a predetermined historical time period based on the historical color information; and a strong color contrast area determination module, used to determine the current area as an area with strong color contrast when the color change information meets a predetermined color change amplitude.
[0111] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the device also includes: a detection module for detecting whether there are preference adjustment parameters corresponding to the target object; a first determination module for determining the preference adjustment parameters as target color adjustment parameters when there are preference adjustment parameters; or a second determination module for determining the target color adjustment parameters based on current visual environment information when there are no preference adjustment parameters.
[0112] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the device also includes: a third acquisition module, used to obtain the preference information and behavior information of the target object before determining the preference adjustment parameters as the target color adjustment parameters; a preference adjustment parameter determination module, used to obtain the preference adjustment parameters of the target object based on the preference information and behavior information using a preference learning model, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
[0113] Optionally, in the interface color adjustment device provided in the embodiment of the present application, the device also includes: a fourth acquisition module, which is used to obtain feedback information of the color adjustment result of the target object for the target interface after obtaining the preference adjustment parameters of the target object by using a preference learning model based on preference information and behavior information; a correction module, which is used to correct the model parameters of the preference learning model based on the feedback information to obtain a corrected preference learning model; and an updated preference adjustment parameter determination module, which is used to obtain updated preference adjustment parameters of the target object by using a corrected preference learning model based on preference information and behavior information.
[0114] It should be noted that the information acquisition module 301, target color adjustment parameter determination module 302, and color adjustment module 303 correspond to steps S201 to S203 in Example 1. The examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in Example 1. It should be noted that the above modules or units can be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules can also be part of the device and can be run in the computer terminal 10 provided in Example 1.
[0115] Example 3
[0116] An embodiment of the present application may provide an electronic device, Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device may include: one or more ( Figure 4 Only one is shown) processor 402, memory 404, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0117] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implementing the above-mentioned method. The memory 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 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0118] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: when it is detected that the target object enters the target area, the current visual environment information of the target area is obtained, wherein the target area is an area where the amplitude of change of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes the current light intensity and / or current color information; based on the current visual environment information, the target color adjustment parameters are determined, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, and the target interface is the interface for the target object to interact with external visual information; based on the target color adjustment parameters, the color of the target interface is adjusted.
[0119] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain the historical light intensity of the current area where the target object is located in a predetermined historical time period, wherein the predetermined historical time period is a period of predetermined length before the current moment; based on the historical light intensity, determine the light intensity change information of the current area within the predetermined historical time period; when the light intensity change information meets the predetermined light intensity change amplitude, determine the current area as a light transition area.
[0120] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: determine the buffered light intensity based on the current light intensity and the light intensity change information within a predetermined historical time period; determine the transmittance based on the buffered light intensity.
[0121] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: when it is detected that the transmittance reaches the transmittance adjustment threshold of the target interface, determine the fill light intensity based on the current light intensity and the buffered light intensity; adjust the color of the target interface based on the transmittance, and use the fill light device to perform fill light processing on the target area based on the fill light intensity.
[0122] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the historical color information of the current area where the target object is located in a predetermined historical time period; based on the historical color information, determine the color change information of the current area within the predetermined historical time period; when the color change information meets the predetermined color change amplitude, determine the current area as an area with strong color contrast.
[0123] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: detect whether there are preference adjustment parameters corresponding to the target object; if the preference adjustment parameters exist, determine the preference adjustment parameters as the target color adjustment parameters; or if the preference adjustment parameters do not exist, determine the target color adjustment parameters based on the current visual environment information.
[0124] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the preference information and behavior information of the target object; based on the preference information and behavior information, use the preference learning model to obtain the preference adjustment parameters of the target object, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
[0125] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain feedback information on the color adjustment result of the target object for the target interface; based on the feedback information, correct the model parameters of the preference learning model to obtain a corrected preference learning model; based on the preference information and behavior information, use the corrected preference learning model to obtain updated preference adjustment parameters of the target object.
[0126] According to an embodiment of the present application, a method for adjusting the color of an interface is provided. When a target object is detected to have entered a target area, the current visual environment information of the target area is obtained, wherein the target area is an area where the amplitude of change in the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes the current light intensity and / or the current color information; based on the current visual environment information, target color adjustment parameters are determined, wherein the target color adjustment parameters include the transmittance and / or complementary color value of the target interface, and the target interface is an interface for the target object to interact with external visual information; based on the target color adjustment parameters, the color of the target interface is adjusted. This improves the accuracy of the color adjustment results of the interface, thereby achieving the purpose of improving the visual comfort of the object and the ability to adapt to drastically changing environmental visual environment information, reducing visual fatigue, and solving the technical problem of poor accuracy of the color adjustment results of the interface in an environment where visual environment information such as light intensity and color information changes drastically due to the lack of real-time detection of visual environment information and intelligent interface adjustment capabilities.
[0127] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 It does not limit the structure of the above electronic device. For example, the electronic device may also include Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Figure 4 Different configurations shown.
[0128] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0129] Example 4
[0130] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the interface color adjustment method provided in the first embodiment.
[0131] Optionally, in this embodiment, the above-mentioned storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0132] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the interface color adjustment method.
[0133] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0134] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0135] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. 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.
[0136] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0137] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code.
[0139] The above is only a preferred embodiment 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 interface color, characterized in that: include: When a target object is detected to enter a target area, current visual environment information of the target area is acquired, wherein the target area is an area where the amplitude of change of the visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; Determining target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include transmittance and / or complementary color values of a target interface, where the target interface is an interface through which the target object interacts with external visual information; Based on the target color adjustment parameters, color adjustment is performed on the target interface.
2. The method according to claim 1, characterized in that In a case where the target area is a light transition area, before acquiring current visual environment information of the target area when detecting that the target object enters the target area, the method further includes: Obtaining historical light intensity of the current area where the target object is located in a predetermined historical time period, wherein the predetermined historical time period is a period of predetermined duration before the current moment; Based on the historical light intensity, determining light intensity change information of the current area within the predetermined historical time period; When the illumination intensity change information satisfies a predetermined illumination intensity change range, the current area is determined as the light transition area.
3. The method according to claim 1, characterized in that In a case where the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, determining the target color adjustment parameter based on the current visual environment information includes: Determining a buffered light intensity based on the current light intensity and light intensity change information within a predetermined historical time period; The light transmittance is determined based on the buffered light intensity.
4. The method according to claim 1, wherein When the current visual environment information includes the current light intensity and the target color adjustment parameter includes the transmittance, the color adjustment of the target interface based on the target color adjustment parameter includes: When it is detected that the light transmittance reaches the light transmittance adjustment threshold of the target interface, determining the fill light intensity based on the current light intensity and the buffer light intensity; The target interface is color-adjusted based on the light transmittance, and the target area is subjected to fill light processing using a fill light device based on the fill light intensity.
5. The method according to claim 1, wherein In a case where the target area is an area with strong color contrast, before acquiring current visual environment information of the target area upon detecting that the target object enters the target area, the method further includes: Obtaining historical color information of the current area where the target object is located in a predetermined historical time period; Based on the historical color information, determining color change information of the current area within the predetermined historical time period; When the color change information satisfies a predetermined color change range, the current area is determined as the area with strong color contrast.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Detecting whether there is a preference adjustment parameter corresponding to the target object; In a case where the preference adjustment parameter exists, determining the preference adjustment parameter as the target color adjustment parameter; or In the absence of the preferred color adjustment parameter, a target color adjustment parameter is determined based on the current visual environment information.
7. The method according to claim 6, characterized in that Before determining the preference adjustment parameter as the target color adjustment parameter, the method further includes: Obtaining preference information and behavior information of the target object; Based on the preference information and the behavior information, a preference learning model is used to obtain the preference adjustment parameters of the target object, wherein the preference learning model pre-learns the association between the object's preference information and behavior information and the preference adjustment parameters.
8. The method according to claim 7, characterized in that After obtaining the preference adjustment parameters of the target object by using a preference learning model based on the preference information and the behavior information, the method further includes: Obtaining feedback information of the target object on the color adjustment result of the target interface; Based on the feedback information, the model parameters of the preference learning model are modified to obtain a modified preference learning model; Based on the preference information and the behavior information, the modified preference learning model is used to obtain updated preference adjustment parameters of the target object.
9. An interface color adjustment device, characterized in that: include: an information acquisition module, configured to acquire current visual environment information of a target area upon detecting that a target object has entered the target area, wherein the target area is an area where the amplitude of change in visual environment information is greater than a predetermined amplitude, and the current visual environment information includes current light intensity and / or current color information; a target color adjustment parameter determination module, configured to determine target color adjustment parameters based on the current visual environment information, wherein the target color adjustment parameters include the transmittance and / or complementary color value of a target interface, where the target interface is an interface through which the target object interacts with external visual information; The color adjustment module is used to adjust the color of the target interface based on the target color adjustment parameters.
10. An electronic device, characterized in that: include: a memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.
Citation Information
Patent Citations
Interface color adjustment method and apparatus, and webpage color adjustment method and apparatus
CN107179889A
Augmented reality adjustment method and device, storage medium and augmented reality equipment
CN110349526A
Adaptive luminance / color correction for displays
CN110780730A
Display device and driving method thereof
CN117270248A
Display system capable of automatically adjusting display color according to ambient light to improve readability
CN117577065A