WO2022227985A1 - Image adaptive method and apparatus, and device and storage medium - Google Patents

Image adaptive method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2022227985A1
WO2022227985A1 PCT/CN2022/083556 CN2022083556W WO2022227985A1 WO 2022227985 A1 WO2022227985 A1 WO 2022227985A1 CN 2022083556 W CN2022083556 W CN 2022083556W WO 2022227985 A1 WO2022227985 A1 WO 2022227985A1
Authority
WO
WIPO (PCT)
Prior art keywords
mask layer
brightness information
transparency
layer
functional relationship
Prior art date
Application number
PCT/CN2022/083556
Other languages
French (fr)
Chinese (zh)
Inventor
王德南
顾永忠
Original Assignee
成都极米科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都极米科技股份有限公司 filed Critical 成都极米科技股份有限公司
Publication of WO2022227985A1 publication Critical patent/WO2022227985A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the technical field of visual information processing, and in particular, to an image adaptive method, apparatus, device, and storage medium.
  • the electronic device In order to enable users to view or interact with the content displayed on the display screen in the electronic device more comfortably, the electronic device is usually provided with a brightness adjustment method.
  • the light-sensing device of the electronic device can obtain the brightness information of the outside world in real time, and when the brightness information of the external environment changes, the light-mechanical device in the electronic device can be adjusted, so that the brightness of the entire display screen can be adjusted accordingly. .
  • the purpose of the present application is to provide an image adaptive method, apparatus, device and storage medium, which can improve the matching between the result of brightness adjustment and the user's needs, and improve the user's sense of experience.
  • An aspect of the embodiments of the present application provides an image adaptive method, the method comprising:
  • determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information including:
  • the target transparency of the mask layer is determined according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
  • the method before determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, the method further includes:
  • the first functional relationship is obtained by adjusting the second functional relationship, including:
  • the preset photopic curve and the preset scotopic curve are fitted and adjusted with the second functional relationship to obtain the first functional relationship.
  • the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship;
  • the target transparency of the mask layer is determined.
  • relational formula is:
  • N (1-L/A); wherein, N is the transparency of the mask layer, L is the luminance information, and A is a preset conversion coefficient.
  • the method before determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, the method further includes:
  • acquiring the brightness information in the current environment includes:
  • the brightness information in the current environment is obtained in real time through the photosensitive device.
  • an image adaptive brightness adjustment device the device includes: an acquisition module, a processing module, and an adjustment module;
  • the acquisition module is used to acquire the brightness information in the current environment
  • a processing module configured to determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
  • Adjustment module to adjust the opacity of the mask layer to the target opacity.
  • the processing module is specifically configured to determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
  • the acquisition module is further configured to acquire multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information; establish a second functional relationship according to the multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information;
  • the first functional relationship is obtained by adjusting;
  • the processing module is specifically configured to determine a relationship formula between the brightness information and the transparency of the mask layer according to the first functional relationship; and calculate the target transparency of the mask layer based on the relationship formula and the brightness information.
  • the processing module is specifically used to obtain the preset photopic curve and the preset scotopic curve; in response to the user's operation, the preset photopic curve and the preset scotopic curve and the second functional relationship are fitted and adjusted. processing to obtain the first functional relationship.
  • the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; the processing module is specifically configured to determine according to the position of the brightness information in the first functional curve. The target transparency of the mask layer.
  • the acquiring module is further configured to acquire the background layer and the foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
  • the obtaining module is specifically configured to obtain the brightness information in the current environment in real time through the light sensing device.
  • a computer device including: a memory and a processor, wherein a computer program that can be run on the processor is stored in the memory, and when the processor executes the computer program, the above-mentioned image adaptive method is implemented A step of.
  • Another aspect of the embodiments of the present application provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, implements the steps of the above-mentioned image adaptation method.
  • brightness information in the current environment can be obtained; the target transparency of the mask layer corresponding to the image to be displayed is determined according to the brightness information, wherein the to-be-displayed image is
  • the display image includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer; the transparency of the mask layer is adjusted to the target transparency.
  • the brightness that meets the user's visual needs can be obtained, thereby improving the matching between the brightness adjustment result and the user's needs, and improving the user's sense of experience, so that the user can experience different Obtain a display image with suitable screen brightness under the environment of light intensity.
  • FIG. 1 is a schematic diagram of an application scenario of an image adaptive method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart 1 of an image adaptive method according to an embodiment of the present application.
  • FIG. 3 is a second schematic flowchart of a method for adapting an image according to an embodiment of the present application
  • FIG. 4 is a third schematic flowchart of a method for adapting an image according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a second function curve provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the curves of photopic and scotopic vision provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a first function curve provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an image adaptive apparatus provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application scenario of an image adaptive method provided by an embodiment of the present application. Please refer to FIG. 1 .
  • the method can be applied to an electronic device with a display function, such as a projection device, a computer, and the like.
  • a projection device such as a projection device, a computer, and the like.
  • an application scenario of a projection device is taken as an example.
  • the scenario includes at least: a projection device 100 and a light sensing device 200;
  • the projection device 100 can map the to-be-displayed image 300 to a position where the image can be displayed, such as a whiteboard, a curtain, or a wall, according to the brightness information, wherein the to-be-displayed image 300 can be is an image displayed on a UI (User Interface, user interface) on the projection device 100 .
  • a background layer 310 and a foreground layer 320 are included, and a mask layer 330 may also be disposed between the background layer 310 and the foreground layer 320 .
  • the background layer 310 may be the background color of the system main body in the image to be displayed or the background color of a specific category page. For example, if the image to be displayed is the main page of an application program, the background of the main page is the above-mentioned background. Floor.
  • the foreground layer 320 may be images such as videos, pictures, posters and other images that the user can operate in the image to be displayed, as well as virtual buttons that the user can click, or some text information displayed, for example, if the image to be displayed is an application
  • the main page of the program, the clickable virtual controls and the real sub-video windows in the main page are the above-mentioned foreground layers.
  • the mask layer 330 may be a mask layer disposed between the background layer 310 and the foreground layer 320, the initial state is an opaque pure black mask layer, and the transparency of the mask layer can be modified.
  • FIG. 2 is a schematic flowchart 1 of an image adaptive method provided by an embodiment of the present application. Please refer to FIG. 2 .
  • the method includes:
  • the brightness information in the current environment can be obtained through a light-sensing device provided on the electronic device, wherein the light-sensing device can specifically be a photoelectric sensor, and a corresponding electrical signal is generated according to the obtained brightness information in the current environment. , and can transmit electrical signals to the projection equipment.
  • the light-sensing device can specifically be a photoelectric sensor, and a corresponding electrical signal is generated according to the obtained brightness information in the current environment. , and can transmit electrical signals to the projection equipment.
  • the brightness information may specifically be the illuminance in the current environment, the illuminance is the luminous flux irradiated from the light source to a unit area, and the unit of the illuminance is lux (lux, lx for short).
  • the current environment may be the environment where the projection device is located.
  • the illuminance in the current room is the brightness information in the current environment.
  • S220 Determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information.
  • the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer.
  • the light sensing device can send the brightness information to the electronic device, and the electronic device can calculate and process the obtained brightness information based on the pre-stored calculation rules, and then obtain the corresponding processing.
  • the result of this processing is the target transparency of the mask layer.
  • the target transparency may be the transparency corresponding to satisfying the user's visual requirement under the condition of the current brightness information calculated according to the pre-stored calculation rule.
  • the transparency of the mask layer in the image to be displayed may be adjusted to the target transparency.
  • the transparency of the mask layer is adjusted to the target transparency, the brightness of the screen displayed by the image to be displayed can meet the visual requirement of the user.
  • the brightness information in the current environment can be obtained; the target transparency of the mask layer corresponding to the to-be-displayed image is determined according to the brightness information, wherein the to-be-displayed image includes a background layer and a foreground layer layer, the mask layer is located between the background layer and the foreground layer; adjust the opacity of the mask layer to the target opacity.
  • the brightness that meets the user's visual needs can be obtained, thereby improving the matching between the brightness adjustment result and the user's needs, and improving the user's sense of experience, so that the user can experience different Obtain a display image with suitable screen brightness under the environment of light intensity.
  • determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information includes: determining the target transparency of the mask layer according to a first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
  • the first functional relationship may be a logical relationship obtained through pre-calculation, and after the logical relationship is acquired, the logical relationship may be stored in the electronic device.
  • the first functional relationship may specifically be a corresponding relationship between the luminance information and the transparency of the mask layer. For example, after the electronic device obtains the brightness information within any preset range, it can determine the transparency of the mask layer corresponding to the brightness information according to the first functional relationship.
  • FIG. 3 is a second schematic flowchart of an image adaptive method provided by an embodiment of the present application.
  • the method before determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information , the method also includes:
  • S310 Obtain multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information.
  • the screen brightness data may be the brightness value displayed by the image to be displayed, and may specifically refer to the brightness of the image to be displayed.
  • the brightness refers to the brightness of a surface, that is, the luminous flux reflected from a surface, in units of for nits.
  • the projected lumens can be the luminous flux during projection, and the luminous flux is the light power emitted by the light source in all directions, that is, the light energy emitted per unit time, and the unit is lumens (lumen, lm for short).
  • the ambient brightness is the aforementioned brightness information
  • the suitable picture brightness is the suitable picture brightness data corresponding to the brightness information.
  • the above data can be obtained by taking a 100-inch (221cm ⁇ 125cm) screen as an example.
  • the ambient brightness refers to the ambient brightness sensed when the projection screen is turned off, the above data is only a part of the pre-acquired data, and multiple sets of data can also be obtained during the actual pre-calculation process.
  • M is the projected lumens
  • X is the screen gain, which can be 1.0
  • T is the suitable screen brightness
  • S is the projected area of the screen. For example, if a 100-inch screen is projected, the projected size is about 3m 2 . Then S is 3m 2 ; if a 120-inch screen is projected, the projected size is about 4m 2 , then S is 4m 2 ; if a 70-inch screen is projected, the projected size is about 1.7m 2 , then S is 1.7m 2 .
  • S320 Establish a second functional relationship according to multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information.
  • a second functional relationship can be established based on these data, wherein the second functional relationship can be the suitable picture brightness data corresponding to the brightness information and the brightness information.
  • the first functional relationship is the corresponding relationship between the brightness information and the transparency of the mask layer
  • the second functional relationship is the corresponding relationship between the brightness information and the appropriate screen brightness
  • the second function can be based on preset adjustment rules. The relationship is adjusted to obtain the first functional relationship.
  • S340 Determine a relationship formula between the luminance information and the transparency of the mask layer according to the first functional relationship.
  • the first functional relationship may be represented in the form of a relationship formula, that is, the luminance information and the transparency of the mask layer are represented by a mathematical functional relationship.
  • the specific value of the luminance information may be brought into the relational formula for calculation, thereby obtaining the target transparency of the mask layer.
  • FIG. 4 is a schematic flowchart diagram 3 of an image adaptive method provided by an embodiment of the present application. Referring to FIG. 4 , the second functional relationship is adjusted to obtain the first functional relationship, including:
  • S410 Acquire a preset bright vision curve and a preset dark vision curve.
  • the photopic curve and the scotopic curve can be used to reflect the functional relationship curve between people's subjective brightness perception and light intensity in bright environment and dark environment respectively, wherein, human subjective brightness perception can be the difference between human vision and brightness.
  • human subjective brightness perception can be the difference between human vision and brightness.
  • the perception of information, the light intensity can be specifically expressed in the form of its logarithm, which can be the logarithm of the light intensity corresponding to the appropriate screen brightness data.
  • the user can perform fitting adjustment through a preset software program, and specifically can adjust the curve corresponding to the second functional relationship through a specific software program, and compare the curve corresponding to the second functional relationship with the preset bright vision curve, preset
  • the scotopic curve is fitted and adjusted, for example: for a certain brightness information in the curve of the second functional relationship, it is determined that the preset fitting is satisfied in combination with the corresponding relationship in the preset photopic curve and the preset scotopic curve. According to the condition, the brightness information is adjusted in the curve of the second functional relationship, and so on, each brightness information in the second functional relationship curve is adjusted accordingly, and finally the first functional relationship is obtained.
  • FIG. 5 is a schematic diagram of a second function curve provided by an embodiment of the present application. Please refer to FIG. 5.
  • the horizontal axis is the brightness information, and the specific range can be 2lux-23lux; the vertical axis is the mask layer.
  • the transparency, the specific range can be 50nit-200nit.
  • Fig. 6 is the curve schematic diagram of photopic vision and scotopic vision provided by the embodiment of the application, please refer to Fig. 6, in the curve of photopic vision and scotopic vision, the horizontal axis is the logarithm of the light intensity, specifically can be -6mL-4mL, The vertical axis is the subjective brightness of human vision, and the specific unit can be lux.
  • the scotopic curve may be two separate curves, and the photopic curve may be one continuous curve.
  • the human eye's adaptation and discrimination of brightness is non-linear, because digital images are displayed as a discrete grayscale set, so it is important to study the human eye's ability to discriminate between different brightness levels.
  • the human visual system is capable of adapting to light intensities on the order of 10 ⁇ 10 from the dark threshold to strong flashes.
  • Experimental data indicate that subjective brightness (brightness as perceived by the human visual system) is a logarithmic function of the light intensity entering the human eye.
  • the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; according to the first functional relationship and the brightness information, determining the target transparency of the mask layer, including:
  • the target transparency of the mask layer is determined.
  • a smooth curve can be drawn according to the coordinates of any point at the four positions, and through the adjustment of the second function curve by the user, the first function that satisfies the Bezier curve rules can be obtained. curve.
  • the brightness information may be brought into the curve for calculation to obtain the target transparency of the mask layer corresponding to the brightness information.
  • N (1-L/A);
  • N is the transparency of the mask layer
  • L is the brightness information
  • A is a preset conversion coefficient
  • A can specifically obtain its specific value according to multiple data calculations, that is to say, A is a constant, for example, it can take a value of 23.
  • FIG. 7 is a schematic diagram of a first function curve provided by an embodiment of the present application. Please refer to FIG. 7.
  • the horizontal axis may be brightness information, and the specific range may be 2lux-23lux; the vertical axis may be the mask layer. Transparency, the specific range can be 50nit-200nit.
  • the transparency between the brightness information and the mask layer can be positively correlated.
  • the transparency of the mask layer is higher, and accordingly, the background brightness is brighter; when The lower the value of the brightness information, the lower the transparency of the mask layer, and accordingly, the darker the background brightness, so as to realize the human eye perception comfort function.
  • the method before determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, the method further includes:
  • only the background layer and the foreground layer are usually included in the image to be displayed.
  • a pre-insertion can be performed between the background layer and the foreground layer.
  • the UI display effect presented to the user is as follows: the background layer is dimmed by the mask layer located in the middle due to the change of pure black transparency, and the foreground layer located on the top layer is highlighted because it is not blocked.
  • acquiring the brightness information in the current environment includes:
  • the brightness information in the current environment is obtained in real time through the photosensitive device.
  • the light-sensing device is the light-sensing device described above, specifically, a photoelectric sensor or other types of photoelectric conversion devices.
  • the light-sensing device can be installed on the electronic device, or can be communicated and connected to the electronic device. In the same environment, there is no restriction here.
  • FIG. 8 is a schematic structural diagram of an image adaptive device provided by an embodiment of the present application. Please refer to FIG. 8 , which provides an image adaptive brightness adjustment device.
  • the device includes: an acquisition module 10, a processing module 20, and an adjustment module 30;
  • an acquisition module 10 used for acquiring brightness information in the current environment
  • the processing module 20 is configured to determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
  • the adjustment module 30 is used for adjusting the transparency of the mask layer to the target transparency.
  • the processing module 20 is specifically configured to determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
  • the obtaining module 10 is further configured to obtain multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information; establish a second functional relationship according to the multiple sets of brightness information and the suitable screen brightness data corresponding to the brightness information; The relationship is adjusted to obtain a first functional relationship; the processing module 20 is specifically configured to determine a relationship formula between the brightness information and the transparency of the mask layer according to the first functional relationship; and calculate the target transparency of the mask layer based on the relationship formula and the brightness information.
  • the processing module 20 is specifically configured to obtain a preset photopic curve and a preset scotopic curve; in response to a user's operation, the preset photopic curve and the preset scotopic curve are fitted with the second functional relationship.
  • the adjustment process is performed to obtain the first functional relationship.
  • the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; the processing module 20 is specifically configured to, according to the position of the brightness information in the first functional curve, Determines the target transparency of the mask layer.
  • the acquiring module 10 is further configured to acquire the background layer and the foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
  • the obtaining module 10 is specifically configured to obtain the brightness information in the current environment in real time through the light sensing device.
  • the foregoing apparatus is used to execute the method provided by the foregoing embodiment, and the implementation principle and technical effect thereof are similar, which will not be repeated here.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), or one or more microprocessors (digital singnal) processor, referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA) and the like.
  • ASIC Application Specific Integrated Circuit
  • DSP digital singnal processor
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
  • FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application. Please refer to FIG. 9.
  • the computer device includes: a memory 400 and a processor 500.
  • the memory 400 stores a computer program that can run on the processor 500, and the processor 500 When a computer program is executed, the steps of the above-mentioned image adaptation method are implemented.
  • Another aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, implements the steps of the above-mentioned image adaptation method.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, 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 may be implemented in the form of hardware plus software functional units.
  • the above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present invention. some steps.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk or optical disk etc.

Abstract

The present application belongs to the technical field of visual information processing. Provided are an image adaptive method and apparatus, and a device and a storage medium. The method comprises: acquiring brightness information in the current environment; according to the brightness information, determining a target transparency of a mask layer corresponding to an image to be displayed, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer; and adjusting the transparency of the mask layer to the target transparency. By means of the present application, the matching between a brightness adjustment result and a user requirement can be improved, thereby improving the user experience.

Description

图像的自适应方法、装置、设备及存储介质Image adaptive method, device, device and storage medium 技术领域technical field
本申请涉及视觉信息处理技术领域,具体而言,涉及一种图像的自适应方法、装置、设备及存储介质。The present application relates to the technical field of visual information processing, and in particular, to an image adaptive method, apparatus, device, and storage medium.
背景技术Background technique
为了使用户更加舒适地实现对电子设备中显示屏幕上显示内容的观看或者交互,电子设备上通常都设置有亮度调节的方式。In order to enable users to view or interact with the content displayed on the display screen in the electronic device more comfortably, the electronic device is usually provided with a brightness adjustment method.
现有技术中,电子设备的光感装置可以实时获取外界的亮度信息,当外界环境的亮度信息发生改变时,则可以调整电子设备中的光机,以使整个显示屏幕的亮度进行对应的调整。In the prior art, the light-sensing device of the electronic device can obtain the brightness information of the outside world in real time, and when the brightness information of the external environment changes, the light-mechanical device in the electronic device can be adjusted, so that the brightness of the entire display screen can be adjusted accordingly. .
然而,当用户在进行界面操作或者观影等特殊行为时,通过光机直接进行亮度调整往往不能满足用户的需求,会出现在较暗场景下看不清操作按键或者观影内容的情况,导致了亮度调整的结果与用户的需求并不匹配。However, when the user is performing special actions such as interface operations or watching movies, the direct brightness adjustment through the optical machine often cannot meet the needs of the user, and the operation buttons or the content of the movie cannot be clearly seen in dark scenes, resulting in The result of brightness adjustment does not match the user's needs.
发明内容SUMMARY OF THE INVENTION
本申请的目的在于提供一种图像的自适应方法、装置、设备及存储介质,可以提高亮度调整的结果与用户需求的匹配性,提高用户的体验感。The purpose of the present application is to provide an image adaptive method, apparatus, device and storage medium, which can improve the matching between the result of brightness adjustment and the user's needs, and improve the user's sense of experience.
本申请的实施例是这样实现的:The embodiments of the present application are implemented as follows:
本申请实施例的一方面,提供一种图像的自适应方法,该方法包括:An aspect of the embodiments of the present application provides an image adaptive method, the method comprising:
获取当前环境中的亮度信息;Get the brightness information in the current environment;
根据亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间;Determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
将遮罩层的透明度调整至目标透明度。Adjust the opacity of the mask layer to the target opacity.
可选地,根据亮度信息确定待显示图像对应的遮罩层的目标透明度,包括:Optionally, determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, including:
根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度。The target transparency of the mask layer is determined according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
可选地,根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度之前,该方法还包括:Optionally, before determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, the method further includes:
获取多组亮度信息与亮度信息对应的适宜画面亮度数据;Obtain multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information;
根据多组亮度信息与亮度信息对应的适宜画面亮度数据建立第二函数关系;establishing a second functional relationship according to the multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information;
对第二函数关系进行调整得到第一函数关系;Adjusting the second functional relationship to obtain the first functional relationship;
根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度,包括:Determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, including:
根据第一函数关系,确定亮度信息与遮罩层的透明度的关系公式;According to the first functional relationship, determine the relationship formula between the brightness information and the transparency of the mask layer;
基于关系公式、亮度信息计算遮罩层的目标透明度。Calculates the target transparency of the mask layer based on the relational formula and luminance information.
可选地,对第二函数关系进行调整得到第一函数关系,包括:Optionally, the first functional relationship is obtained by adjusting the second functional relationship, including:
获取预设亮视觉曲线以及预设暗视觉曲线;Obtain the preset bright vision curve and the preset dark vision curve;
响应于用户的操作,将预设亮视觉曲线以及预设暗视觉曲线与第二函数关系进行拟合调整处理,得到第一函数关系。In response to the user's operation, the preset photopic curve and the preset scotopic curve are fitted and adjusted with the second functional relationship to obtain the first functional relationship.
可选地,第一函数关系为符合贝塞尔曲线规则的第一函数曲线,第一函数曲线指示第一函数关系;Optionally, the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship;
根据第一函数关系以及亮度信息,确定遮罩层的目标透明度,包括:Determine the target transparency of the mask layer according to the first functional relationship and the brightness information, including:
根据亮度信息在第一函数曲线中的位置,确定遮罩层的目标透明度。According to the position of the luminance information in the first function curve, the target transparency of the mask layer is determined.
可选地,关系公式为:Optionally, the relational formula is:
N=(1-L/A);其中,N为遮罩层的透明度,L为亮度信息,A为预设的转换系数。N=(1-L/A); wherein, N is the transparency of the mask layer, L is the luminance information, and A is a preset conversion coefficient.
可选地,根据亮度信息确定待显示图像对应的遮罩层的目标透明度之前,还包括:Optionally, before determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, the method further includes:
获取待显示图像的背景层和前景层,并在背景层和前景层之间增加遮 罩层。Obtain the background layer and foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
可选地,获取当前环境中的亮度信息包括:Optionally, acquiring the brightness information in the current environment includes:
通过光感装置实时获取当前环境中的亮度信息。The brightness information in the current environment is obtained in real time through the photosensitive device.
本申请实施例的另一方面,提供一种图像的自适应明暗调整装置,该装置包括:获取模块、处理模块、调整模块;Another aspect of the embodiments of the present application provides an image adaptive brightness adjustment device, the device includes: an acquisition module, a processing module, and an adjustment module;
获取模块,用于获取当前环境中的亮度信息;The acquisition module is used to acquire the brightness information in the current environment;
处理模块,用于根据亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间;a processing module, configured to determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
调整模块,用于将遮罩层的透明度调整至目标透明度。Adjustment module to adjust the opacity of the mask layer to the target opacity.
可选地,处理模块,具体用于根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度。Optionally, the processing module is specifically configured to determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
可选地,获取模块,还用于获取多组亮度信息与亮度信息对应的适宜画面亮度数据;根据多组亮度信息与亮度信息对应的适宜画面亮度数据建立第二函数关系;对第二函数关系进行调整得到第一函数关系;处理模块,具体用于根据第一函数关系,确定亮度信息与遮罩层的透明度的关系公式;基于关系公式、亮度信息计算遮罩层的目标透明度。Optionally, the acquisition module is further configured to acquire multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information; establish a second functional relationship according to the multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information; The first functional relationship is obtained by adjusting; the processing module is specifically configured to determine a relationship formula between the brightness information and the transparency of the mask layer according to the first functional relationship; and calculate the target transparency of the mask layer based on the relationship formula and the brightness information.
可选地,处理模块,具体用于获取预设亮视觉曲线以及预设暗视觉曲线;响应于用户的操作,将预设亮视觉曲线以及预设暗视觉曲线与第二函数关系进行拟合调整处理,得到第一函数关系。Optionally, the processing module is specifically used to obtain the preset photopic curve and the preset scotopic curve; in response to the user's operation, the preset photopic curve and the preset scotopic curve and the second functional relationship are fitted and adjusted. processing to obtain the first functional relationship.
可选地,第一函数关系为符合贝塞尔曲线规则的第一函数曲线,第一函数曲线指示第一函数关系;处理模块,具体用于根据亮度信息在第一函数曲线中的位置,确定遮罩层的目标透明度。Optionally, the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; the processing module is specifically configured to determine according to the position of the brightness information in the first functional curve. The target transparency of the mask layer.
可选地,关系公式为:N=(1-L/A);其中,N为遮罩层的透明度,L为亮度信息,A为预设的转换系数。Optionally, the relational formula is: N=(1-L/A); wherein, N is the transparency of the mask layer, L is the luminance information, and A is a preset conversion coefficient.
可选地,获取模块,还用于获取待显示图像的背景层和前景层,并在背景层和前景层之间增加遮罩层。Optionally, the acquiring module is further configured to acquire the background layer and the foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
可选地,获取模块,具体用于通过光感装置实时获取当前环境中的亮 度信息。Optionally, the obtaining module is specifically configured to obtain the brightness information in the current environment in real time through the light sensing device.
本申请实施例的另一方面,提供一种计算机设备,包括:存储器、处理器,存储器中存储有可在处理器上运行的计算机程序,处理器执行计算机程序时,实现上述图像的自适应方法的步骤。In another aspect of the embodiments of the present application, a computer device is provided, including: a memory and a processor, wherein a computer program that can be run on the processor is stored in the memory, and when the processor executes the computer program, the above-mentioned image adaptive method is implemented A step of.
本申请实施例的另一方面,提供一种计算机可读存储介质,存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现上述图像的自适应方法的步骤。Another aspect of the embodiments of the present application provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, implements the steps of the above-mentioned image adaptation method.
本申请实施例的有益效果包括:The beneficial effects of the embodiments of the present application include:
本申请实施例提供的一种图像的自适应方法、装置、设备及存储介质中,可以获取当前环境中的亮度信息;根据亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间;将遮罩层的透明度调整至目标透明度。其中,通过亮度信息对遮罩层的目标透明度进行调整后,可以得到满足用户视觉需求的亮度,进而可以提高亮度调整的结果与用户需求的匹配性,提高用户的体验感,以使用户在不同光照强度的环境下获取画面亮度适宜的显示图像。In the image adaptive method, device, device, and storage medium provided in the embodiments of the present application, brightness information in the current environment can be obtained; the target transparency of the mask layer corresponding to the image to be displayed is determined according to the brightness information, wherein the to-be-displayed image is The display image includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer; the transparency of the mask layer is adjusted to the target transparency. Among them, after the target transparency of the mask layer is adjusted through the brightness information, the brightness that meets the user's visual needs can be obtained, thereby improving the matching between the brightness adjustment result and the user's needs, and improving the user's sense of experience, so that the user can experience different Obtain a display image with suitable screen brightness under the environment of light intensity.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1为本申请实施例提供的图像的自适应方法的应用场景示意图;1 is a schematic diagram of an application scenario of an image adaptive method provided by an embodiment of the present application;
图2为本申请实施例提供的图像的自适应方法的流程示意图一;FIG. 2 is a schematic flowchart 1 of an image adaptive method according to an embodiment of the present application;
图3为本申请实施例提供的图像的自适应方法的流程示意图二;FIG. 3 is a second schematic flowchart of a method for adapting an image according to an embodiment of the present application;
图4为本申请实施例提供的图像的自适应方法的流程示意图三;FIG. 4 is a third schematic flowchart of a method for adapting an image according to an embodiment of the present application;
图5为本申请实施例提供的第二函数曲线的示意图;5 is a schematic diagram of a second function curve provided by an embodiment of the present application;
图6为本申请实施例提供的亮视觉以及暗视觉的曲线示意图;6 is a schematic diagram of the curves of photopic and scotopic vision provided by an embodiment of the present application;
图7为本申请实施例提供的第一函数曲线的示意图;7 is a schematic diagram of a first function curve provided by an embodiment of the present application;
图8为本申请实施例提供的图像的自适应装置的结构示意图;FIG. 8 is a schematic structural diagram of an image adaptive apparatus provided by an embodiment of the present application;
图9为本申请实施例提供的计算机设备的结构示意图。FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
在本申请的描述中,需要说明的是,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
下面来具体解释本申请实施例所提供的图像自适应方法的实际应用场景。The actual application scenarios of the image adaptation method provided by the embodiments of the present application will be explained in detail below.
图1为本申请实施例提供的图像的自适应方法的应用场景示意图,请参照图1,该方法可以应用于具有显示功能的电子设备,例如:投影设备、计算机等。本申请的实施例中以投影设备的应用场景为例,该场景中至少包括:投影设备100、光感装置200;光感装置200可以设置于投影设备 100上,用以获取投影设备100所在的环境中的亮度信息,并可以将亮度信息发送给投影设备100;投影设备100可以根据亮度信息将待显示图像300映射于白板、幕布或者墙壁等可以显示图像的位置,其中,待显示图像300可以是在投影设备100上的UI(User Interface,用户界面)上显示的图像。包括背景层310以及前景层320,并且在背景层310与前景层320之间还可以设置有遮罩层330。FIG. 1 is a schematic diagram of an application scenario of an image adaptive method provided by an embodiment of the present application. Please refer to FIG. 1 . The method can be applied to an electronic device with a display function, such as a projection device, a computer, and the like. In the embodiments of the present application, an application scenario of a projection device is taken as an example. The scenario includes at least: a projection device 100 and a light sensing device 200; The brightness information in the environment, and can send the brightness information to the projection device 100; the projection device 100 can map the to-be-displayed image 300 to a position where the image can be displayed, such as a whiteboard, a curtain, or a wall, according to the brightness information, wherein the to-be-displayed image 300 can be is an image displayed on a UI (User Interface, user interface) on the projection device 100 . A background layer 310 and a foreground layer 320 are included, and a mask layer 330 may also be disposed between the background layer 310 and the foreground layer 320 .
其中,背景层310可以是待显示图像中的系统主体背景色或者是特定分类页面的背景色,例如:若待显示图像为某一应用程序的主页面,则该主页面的背景即为上述背景层。The background layer 310 may be the background color of the system main body in the image to be displayed or the background color of a specific category page. For example, if the image to be displayed is the main page of an application program, the background of the main page is the above-mentioned background. Floor.
前景层320可以是待显示图像中用户可以进行操作的视频、图片、海报等图像、以及用户可以点击的虚拟按键、亦或者显示的某些文字信息等,例如:若待显示图像为某一应用程序的主页面,则该主页面中的可点击的虚拟控件以及现实的各个子视频窗口即为上述前景层。The foreground layer 320 may be images such as videos, pictures, posters and other images that the user can operate in the image to be displayed, as well as virtual buttons that the user can click, or some text information displayed, for example, if the image to be displayed is an application The main page of the program, the clickable virtual controls and the real sub-video windows in the main page are the above-mentioned foreground layers.
遮罩层330可以是设置于背景层310与前景层320之间、初始状态为不透明纯黑色遮罩层,该遮罩层的透明度可以进行修改。The mask layer 330 may be a mask layer disposed between the background layer 310 and the foreground layer 320, the initial state is an opaque pure black mask layer, and the transparency of the mask layer can be modified.
下面来具体解释本申请实施例中提供的图像的自适应方法的具体实施过程。The specific implementation process of the image adaptive method provided in the embodiments of the present application will be explained in detail below.
图2为本申请实施例提供的图像的自适应方法的流程示意图一,请参照图2,该方法包括:FIG. 2 is a schematic flowchart 1 of an image adaptive method provided by an embodiment of the present application. Please refer to FIG. 2 . The method includes:
S210:获取当前环境中的亮度信息。S210: Acquire brightness information in the current environment.
可选地,可以通过设置于电子设备上的光感装置获取当前环境中的亮度信息,其中,光感装置具体可以是光电传感器,根据获取到的当前环境中的亮度信息来生成对应的电信号,并可以将电信号传输给投影设备中。Optionally, the brightness information in the current environment can be obtained through a light-sensing device provided on the electronic device, wherein the light-sensing device can specifically be a photoelectric sensor, and a corresponding electrical signal is generated according to the obtained brightness information in the current environment. , and can transmit electrical signals to the projection equipment.
亮度信息具体可以是当前环境中的光照度,光照度是从光源照射到单位面积上的光通量,光照度的单位为勒克斯(lux,简称lx)。The brightness information may specifically be the illuminance in the current environment, the illuminance is the luminous flux irradiated from the light source to a unit area, and the unit of the illuminance is lux (lux, lx for short).
当前环境可以是投影设备所在的环境,例如,当投影设备处于室内的某一房间时,则当前房间中光照度即为当前环境中的亮度信息。The current environment may be the environment where the projection device is located. For example, when the projection device is located in a certain room indoors, the illuminance in the current room is the brightness information in the current environment.
S220:根据亮度信息确定待显示图像对应的遮罩层的目标透明度。S220: Determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information.
其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间。The image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer.
可选地,确定当前环境中的亮度信息之后,光感装置可以将该亮度信息发送给电子设备中,电子设备可以基于预存的计算规则对获取到的亮度信息进行计算处理,进而得到对应的处理结果,该处理结果即为遮罩层的目标透明度。Optionally, after determining the brightness information in the current environment, the light sensing device can send the brightness information to the electronic device, and the electronic device can calculate and process the obtained brightness information based on the pre-stored calculation rules, and then obtain the corresponding processing. As a result, the result of this processing is the target transparency of the mask layer.
其中,目标透明度可以是根据预存的计算规则计算得到在当前亮度信息的条件下满足用户视觉需求而对应的透明度。The target transparency may be the transparency corresponding to satisfying the user's visual requirement under the condition of the current brightness information calculated according to the pre-stored calculation rule.
S230:将遮罩层的透明度调整至目标透明度。S230: Adjust the transparency of the mask layer to the target transparency.
可选地,确定目标透明度之后,可以将待显示图像中的遮罩层的透明度调整至目标透明度。相应地,当将遮罩层的透明度调整至目标透明度之后,待显示图像所显示的画面亮度可以满足用户的视觉需求。Optionally, after the target transparency is determined, the transparency of the mask layer in the image to be displayed may be adjusted to the target transparency. Correspondingly, when the transparency of the mask layer is adjusted to the target transparency, the brightness of the screen displayed by the image to be displayed can meet the visual requirement of the user.
本申请实施例提供的一种图像的自适应方法中,可以获取当前环境中的亮度信息;根据亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间;将遮罩层的透明度调整至目标透明度。其中,通过亮度信息对遮罩层的目标透明度进行调整后,可以得到满足用户视觉需求的亮度,进而可以提高亮度调整的结果与用户需求的匹配性,提高用户的体验感,以使用户在不同光照强度的环境下获取画面亮度适宜的显示图像。In an image adaptive method provided by the embodiment of the present application, the brightness information in the current environment can be obtained; the target transparency of the mask layer corresponding to the to-be-displayed image is determined according to the brightness information, wherein the to-be-displayed image includes a background layer and a foreground layer layer, the mask layer is located between the background layer and the foreground layer; adjust the opacity of the mask layer to the target opacity. Among them, after the target transparency of the mask layer is adjusted through the brightness information, the brightness that meets the user's visual needs can be obtained, thereby improving the matching between the brightness adjustment result and the user's needs, and improving the user's sense of experience, so that the user can experience different Obtain a display image with suitable screen brightness under the environment of light intensity.
可选地,根据亮度信息确定待显示图像对应的遮罩层的目标透明度,包括:根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度。Optionally, determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information includes: determining the target transparency of the mask layer according to a first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
可选地,第一函数关系可以是通过预先计算得到的逻辑关系,获取到该逻辑关系后,可以将该逻辑关系存储于电子设备中。其中,第一函数关系具体可以是亮度信息与遮罩层透明度之间的对应关系。例如:当电子设备获取到任意预设范围内的亮度信息后,可以根据该第一函数关系确定该亮度信息对应的遮罩层透明度。Optionally, the first functional relationship may be a logical relationship obtained through pre-calculation, and after the logical relationship is acquired, the logical relationship may be stored in the electronic device. The first functional relationship may specifically be a corresponding relationship between the luminance information and the transparency of the mask layer. For example, after the electronic device obtains the brightness information within any preset range, it can determine the transparency of the mask layer corresponding to the brightness information according to the first functional relationship.
下面来具体解释本申请实施例中提供的图像的自适应方法的另一具 体实施过程。Another specific implementation process of the image adaptive method provided in the embodiment of the present application will be explained in detail below.
图3为本申请实施例提供的图像的自适应方法的流程示意图二,请参照图3,根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度之前,该方法还包括:FIG. 3 is a second schematic flowchart of an image adaptive method provided by an embodiment of the present application. Referring to FIG. 3 , before determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information , the method also includes:
S310:获取多组亮度信息与亮度信息对应的适宜画面亮度数据。S310: Obtain multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information.
可选地,画面亮度数据可以是待显示图像所显示的亮度值,具体可以是指该待显示图像的光亮度,光亮度是指一个表面的明亮程度,即从一个表面反射出来的光通量,单位为尼特(nit)。Optionally, the screen brightness data may be the brightness value displayed by the image to be displayed, and may specifically refer to the brightness of the image to be displayed. The brightness refers to the brightness of a surface, that is, the luminous flux reflected from a surface, in units of for nits.
具体采用的多组数据为下表1所示:The specific sets of data used are shown in Table 1 below:
表1Table 1
环境亮度Ambient brightness 小于1luxless than 1lux 14lux14lux 23lux23lux
投影流明Projection lumens 470lm470lm 1200lm1200lm 1800lm1800lm
适宜画面亮度Appropriate screen brightness 50nit50nit 130nit130nit 200nit200nit
其中,投影流明可以是投影时的光通量,光通量是由光源向各个方向射出的光功率,也即每一单位时间射出的光能量,单位为流明(lumen,简称lm)。环境亮度即为前述亮度信息,适宜画面亮度即为与亮度信息对应的适宜画面亮度数据。上述数据可以是以100寸(221cm×125cm)的画面为例测试得到的结果。Among them, the projected lumens can be the luminous flux during projection, and the luminous flux is the light power emitted by the light source in all directions, that is, the light energy emitted per unit time, and the unit is lumens (lumen, lm for short). The ambient brightness is the aforementioned brightness information, and the suitable picture brightness is the suitable picture brightness data corresponding to the brightness information. The above data can be obtained by taking a 100-inch (221cm×125cm) screen as an example.
表1中,当环境亮度小于1lux,投影流明为470lm时,对应的适宜画面亮度为50nit;当环境亮度为14lux,投影流明为1200lm时,对应的适宜画面亮度为130nit;当环境亮度为23lux,投影流明为1800lm时,对应的适宜画面亮度为200nit。需要说明的是,环境亮度是在投影关屏时感测到环境亮度,上述数据仅为预先获取的一部分,在实际预先计算的过程中还可以获得多组数据。In Table 1, when the ambient brightness is less than 1lux and the projected lumen is 470lm, the corresponding suitable screen brightness is 50nit; when the ambient brightness is 14lux and the projected lumen is 1200lm, the corresponding suitable screen brightness is 130nit; when the ambient brightness is 23lux, the corresponding suitable screen brightness is 130nit. When the projected lumen is 1800lm, the corresponding suitable screen brightness is 200nit. It should be noted that the ambient brightness refers to the ambient brightness sensed when the projection screen is turned off, the above data is only a part of the pre-acquired data, and multiple sets of data can also be obtained during the actual pre-calculation process.
其中,投影流明与适宜画面亮度之间具有函数关系,具体关系公式如下:Among them, there is a functional relationship between projected lumens and suitable screen brightness, and the specific relationship formula is as follows:
T=(M×X)/(π×S);T=(M×X)/(π×S);
其中,M为投影流明,X为屏幕增益,可以取值为1.0,T为适宜画面亮度,S为画面的投影面积,例如:将100寸的画面进行投影,其投影的大小约为3m 2,则S即为3m 2;将120寸的画面进行投影,其投影的大小约为4m 2,则S即为4m 2;将70寸的画面进行投影,其投影的大小约为1.7m 2,则S即为1.7m 2Among them, M is the projected lumens, X is the screen gain, which can be 1.0, T is the suitable screen brightness, and S is the projected area of the screen. For example, if a 100-inch screen is projected, the projected size is about 3m 2 . Then S is 3m 2 ; if a 120-inch screen is projected, the projected size is about 4m 2 , then S is 4m 2 ; if a 70-inch screen is projected, the projected size is about 1.7m 2 , then S is 1.7m 2 .
S320:根据多组亮度信息与亮度信息对应的适宜画面亮度数据建立第二函数关系。S320: Establish a second functional relationship according to multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information.
可选地,获取上述多组亮度信息与亮度信息对应的适宜画面亮度数据之后,可以基于这些数据建立第二函数关系,其中,第二函数关系可以是亮度信息与亮度信息对应的适宜画面亮度数据之间的线性数据关系,通过该第二函数关系,当电子设备获取到任一亮度信息的值后,可获取到该亮度信息对应的适宜画面亮度数据。Optionally, after obtaining the suitable picture brightness data corresponding to the above-mentioned multiple sets of brightness information and brightness information, a second functional relationship can be established based on these data, wherein the second functional relationship can be the suitable picture brightness data corresponding to the brightness information and the brightness information. The linear data relationship between the two, through the second functional relationship, after the electronic device obtains any value of the brightness information, it can obtain suitable screen brightness data corresponding to the brightness information.
S330:对第二函数关系进行调整得到第一函数关系。S330: Adjust the second functional relationship to obtain the first functional relationship.
可选地,第一函数关系为亮度信息与遮罩层的透明度的对应关系,而第二函数关系为亮度信息与适宜画面亮度之间的对应关系,可以基于预设的调整规则对第二函数关系进行调整处理,进而得到第一函数关系。Optionally, the first functional relationship is the corresponding relationship between the brightness information and the transparency of the mask layer, and the second functional relationship is the corresponding relationship between the brightness information and the appropriate screen brightness, and the second function can be based on preset adjustment rules. The relationship is adjusted to obtain the first functional relationship.
根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度,包括:Determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, including:
S340:根据第一函数关系,确定亮度信息与遮罩层的透明度的关系公式。S340: Determine a relationship formula between the luminance information and the transparency of the mask layer according to the first functional relationship.
可选地,得到第一函数关系后,可以将第一函数关系通过关系公式的形式进行表示,也即是通过数学函数关系表示出亮度信息与遮罩层的透明度。Optionally, after the first functional relationship is obtained, the first functional relationship may be represented in the form of a relationship formula, that is, the luminance information and the transparency of the mask layer are represented by a mathematical functional relationship.
S350:基于关系公式、亮度信息计算遮罩层的目标透明度。S350: Calculate the target transparency of the mask layer based on the relational formula and the luminance information.
可选地,得到上述关系公式之后,可以将亮度信息的具体值带入关系公式中进行计算,进而得到遮罩层的目标透明度。Optionally, after the above-mentioned relational formula is obtained, the specific value of the luminance information may be brought into the relational formula for calculation, thereby obtaining the target transparency of the mask layer.
下面来具体解释本申请实施例中提供的图像的自适应方法的又一具体实施过程。Another specific implementation process of the image adaptive method provided in the embodiment of the present application will be explained in detail below.
图4为本申请实施例提供的图像的自适应方法的流程示意图三,请参照图4,对第二函数关系进行调整得到第一函数关系,包括:FIG. 4 is a schematic flowchart diagram 3 of an image adaptive method provided by an embodiment of the present application. Referring to FIG. 4 , the second functional relationship is adjusted to obtain the first functional relationship, including:
S410:获取预设亮视觉曲线以及预设暗视觉曲线。S410: Acquire a preset bright vision curve and a preset dark vision curve.
可选地,亮视觉曲线和暗视觉曲线可以分别用于反映在亮环境和暗环境中,人的主观亮度感受与光照强度的函数关系曲线,其中,人的主观亮度感受可以是人体视觉对亮度信息的感知情况,光照强度具体可以是用其对数的形式进行表示,可以是适宜画面亮度数据对应的光照强度的对数。Optionally, the photopic curve and the scotopic curve can be used to reflect the functional relationship curve between people's subjective brightness perception and light intensity in bright environment and dark environment respectively, wherein, human subjective brightness perception can be the difference between human vision and brightness. The perception of information, the light intensity can be specifically expressed in the form of its logarithm, which can be the logarithm of the light intensity corresponding to the appropriate screen brightness data.
S420:响应于用户的操作,将预设亮视觉曲线以及预设暗视觉曲线与第二函数关系进行拟合调整处理,得到第一函数关系。S420: In response to the user's operation, perform fitting and adjustment processing on the preset photopic curve and the preset scotopic curve and the second functional relationship to obtain the first functional relationship.
可选地,用户可以通过预设的软件程序进行拟合调整,具体可以通过特定的软件程序调整第二函数关系对应的曲线,将第二函数关系对应的曲线与预设亮视觉曲线、预设暗视觉曲线进行拟合调整处理,例如:对于第二函数关系的曲线中的某一个亮度信息,结合其对应在预设亮视觉曲线以及预设暗视觉曲线中的对应关系,确定满足预设拟合条件的位置,将该亮度信息在第二函数关系的曲线中进行调整,以此类推,将第二函数关系曲线中的每个亮度信息进行相应调整,最终得到第一函数关系。Optionally, the user can perform fitting adjustment through a preset software program, and specifically can adjust the curve corresponding to the second functional relationship through a specific software program, and compare the curve corresponding to the second functional relationship with the preset bright vision curve, preset The scotopic curve is fitted and adjusted, for example: for a certain brightness information in the curve of the second functional relationship, it is determined that the preset fitting is satisfied in combination with the corresponding relationship in the preset photopic curve and the preset scotopic curve. According to the condition, the brightness information is adjusted in the curve of the second functional relationship, and so on, each brightness information in the second functional relationship curve is adjusted accordingly, and finally the first functional relationship is obtained.
下面来分别通过第二函数曲线的示意图、亮视觉以及暗视觉曲线示意图来对上述过程进行解释。The above process will be explained below through the schematic diagram of the second function curve, the schematic diagrams of the photopic and scotopic curves, respectively.
图5为本申请实施例提供的第二函数曲线的示意图,请参照图5,在第二函数曲线中,横轴即为亮度信息,具体范围可以是2lux-23lux;纵轴即为遮罩层的透明度,具体范围可以是50nit-200nit。FIG. 5 is a schematic diagram of a second function curve provided by an embodiment of the present application. Please refer to FIG. 5. In the second function curve, the horizontal axis is the brightness information, and the specific range can be 2lux-23lux; the vertical axis is the mask layer. The transparency, the specific range can be 50nit-200nit.
图6为本申请实施例提供的亮视觉以及暗视觉的曲线示意图,请参照图6,在亮视觉以及暗视觉的曲线中,横轴为光照强度的对数,具体可以是-6mL-4mL,纵轴为人的视觉主观亮度,具体单位可以是lux。其中暗视觉曲线可以是分开的两条曲线,亮视觉曲线可以是连续的一条曲线。Fig. 6 is the curve schematic diagram of photopic vision and scotopic vision provided by the embodiment of the application, please refer to Fig. 6, in the curve of photopic vision and scotopic vision, the horizontal axis is the logarithm of the light intensity, specifically can be -6mL-4mL, The vertical axis is the subjective brightness of human vision, and the specific unit can be lux. The scotopic curve may be two separate curves, and the photopic curve may be one continuous curve.
可选地,人眼对亮度的适应和辨别是非线性的,因为数字图像作为一个离散的灰度集来显示,所以研究人眼对不同的亮度级别的辨别能力就很重要。人的视觉系统能够适应光强度从暗阈值到强闪光约有10^10个量 级。试验数据指出,主观亮度(由人的视觉系统感知的亮度)是进入人眼的光照强度的对数函数。Optionally, the human eye's adaptation and discrimination of brightness is non-linear, because digital images are displayed as a discrete grayscale set, so it is important to study the human eye's ability to discriminate between different brightness levels. The human visual system is capable of adapting to light intensities on the order of 10^10 from the dark threshold to strong flashes. Experimental data indicate that subjective brightness (brightness as perceived by the human visual system) is a logarithmic function of the light intensity entering the human eye.
可选地,第一函数关系为符合贝塞尔曲线规则的第一函数曲线,第一函数曲线指示第一函数关系;根据第一函数关系以及亮度信息,确定遮罩层的目标透明度,包括:Optionally, the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; according to the first functional relationship and the brightness information, determining the target transparency of the mask layer, including:
根据亮度信息在第一函数曲线中的位置,确定遮罩层的目标透明度。According to the position of the luminance information in the first function curve, the target transparency of the mask layer is determined.
可选地,根据贝塞尔曲线规则,可以依据四个位置任意的点坐标绘制出一条光滑曲线,通过前述用户对第二函数曲线的调整,可以得到满足符合贝塞尔曲线规则的第一函数曲线。Optionally, according to the Bezier curve rules, a smooth curve can be drawn according to the coordinates of any point at the four positions, and through the adjustment of the second function curve by the user, the first function that satisfies the Bezier curve rules can be obtained. curve.
可选地,确定第一函数曲线之后,可以将亮度信息带入该曲线中进行计算,得到亮度信息对应的遮罩层的目标透明度。Optionally, after the first function curve is determined, the brightness information may be brought into the curve for calculation to obtain the target transparency of the mask layer corresponding to the brightness information.
可选地,上述关系公式为:Optionally, the above relational formula is:
N=(1-L/A);N=(1-L/A);
其中,N为遮罩层的透明度,L为亮度信息,A为预设的转换系数。Among them, N is the transparency of the mask layer, L is the brightness information, and A is a preset conversion coefficient.
在实际计算的过程中A具体可以根据多次数据计算得到其具体值,也即是说,A为一个常数,例如可以取值为23。In the actual calculation process, A can specifically obtain its specific value according to multiple data calculations, that is to say, A is a constant, for example, it can take a value of 23.
下面来通过第一函数曲线的示意图来对上述过程第一函数曲线的逻辑关系公式进行解释。The following will explain the logical relationship formula of the first function curve in the above process through the schematic diagram of the first function curve.
图7为本申请实施例提供的第一函数曲线的示意图,请参照图7,第一函数曲线中,横轴可以是亮度信息,具体范围可以是2lux-23lux;纵轴可以是遮罩层的透明度,具体范围可以是50nit-200nit。FIG. 7 is a schematic diagram of a first function curve provided by an embodiment of the present application. Please refer to FIG. 7. In the first function curve, the horizontal axis may be brightness information, and the specific range may be 2lux-23lux; the vertical axis may be the mask layer. Transparency, the specific range can be 50nit-200nit.
根据图7中的曲线关系可以得到,亮度信息与遮罩层之间的透明度可以是正相关,当亮度信息的值越高,遮罩层的透明度则越高,相应地,背景亮度越亮;当亮度信息的值越低,则遮罩层的透明度越低,相应地,背景亮度越暗,从而实现人眼感知舒适度函数。According to the curve relationship in Figure 7, it can be obtained that the transparency between the brightness information and the mask layer can be positively correlated. When the value of the brightness information is higher, the transparency of the mask layer is higher, and accordingly, the background brightness is brighter; when The lower the value of the brightness information, the lower the transparency of the mask layer, and accordingly, the darker the background brightness, so as to realize the human eye perception comfort function.
可选地,根据亮度信息确定待显示图像对应的遮罩层的目标透明度之前,还包括:Optionally, before determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, the method further includes:
获取待显示图像的背景层和前景层,并在背景层和前景层之间增加遮 罩层。Obtain the background layer and foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
可选地,待显示图像中通常只包括背景层和前景层,为了实现本申请实施例中采用的调整遮罩层的透明度来实现亮度调整的方法,可以在背景层与前景层之间预先插入一层遮罩层。Optionally, only the background layer and the foreground layer are usually included in the image to be displayed. In order to realize the method for adjusting the transparency of the mask layer adopted in the embodiments of the present application to realize the brightness adjustment, a pre-insertion can be performed between the background layer and the foreground layer. A mask layer.
可选地,呈现到用户的UI展示效果是如下:背景层被位于中间的遮罩层因纯黑透明度变化而被变暗,位于最上层的前景层因为没有被遮挡而被突出展示。Optionally, the UI display effect presented to the user is as follows: the background layer is dimmed by the mask layer located in the middle due to the change of pure black transparency, and the foreground layer located on the top layer is highlighted because it is not blocked.
可选地,获取当前环境中的亮度信息包括:Optionally, acquiring the brightness information in the current environment includes:
通过光感装置实时获取当前环境中的亮度信息。The brightness information in the current environment is obtained in real time through the photosensitive device.
可选地,光感装置即为前述中所述的光感装置,具体可以是光电传感器或者其他类型的光电转换装置,光感装置可以设置于电子设备上,也可以与电子设备通信连接并设置于同一环境中,在此不作限制。Optionally, the light-sensing device is the light-sensing device described above, specifically, a photoelectric sensor or other types of photoelectric conversion devices. The light-sensing device can be installed on the electronic device, or can be communicated and connected to the electronic device. In the same environment, there is no restriction here.
下述对用以执行的本申请所提供的图像的自适应方法对应的装置、设备及存储介质等进行说明,其具体的实现过程以及技术效果参见上述,下述不再赘述。The following describes the apparatus, equipment, storage medium, etc. corresponding to the image self-adaptation method provided by the present application, and the specific implementation process and technical effect thereof are referred to above, and will not be repeated below.
图8为本申请实施例提供的图像的自适应装置的结构示意图,请参照图8,提供一种图像的自适应明暗调整装置,该装置包括:获取模块10、处理模块20、调整模块30;FIG. 8 is a schematic structural diagram of an image adaptive device provided by an embodiment of the present application. Please refer to FIG. 8 , which provides an image adaptive brightness adjustment device. The device includes: an acquisition module 10, a processing module 20, and an adjustment module 30;
获取模块10,用于获取当前环境中的亮度信息;an acquisition module 10, used for acquiring brightness information in the current environment;
处理模块20,用于根据亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,待显示图像包括背景层和前景层,遮罩层位于背景层和前景层之间;The processing module 20 is configured to determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
调整模块30,用于将遮罩层的透明度调整至目标透明度。The adjustment module 30 is used for adjusting the transparency of the mask layer to the target transparency.
可选地,处理模块20,具体用于根据亮度信息与遮罩层的透明度的第一函数关系以及亮度信息,确定遮罩层的目标透明度。Optionally, the processing module 20 is specifically configured to determine the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
可选地,获取模块10,还用于获取多组亮度信息与亮度信息对应的适宜画面亮度数据;根据多组亮度信息与亮度信息对应的适宜画面亮度数据建立第二函数关系;对第二函数关系进行调整得到第一函数关系;处理 模块20,具体用于根据第一函数关系,确定亮度信息与遮罩层的透明度的关系公式;基于关系公式、亮度信息计算遮罩层的目标透明度。Optionally, the obtaining module 10 is further configured to obtain multiple sets of brightness information and suitable screen brightness data corresponding to the brightness information; establish a second functional relationship according to the multiple sets of brightness information and the suitable screen brightness data corresponding to the brightness information; The relationship is adjusted to obtain a first functional relationship; the processing module 20 is specifically configured to determine a relationship formula between the brightness information and the transparency of the mask layer according to the first functional relationship; and calculate the target transparency of the mask layer based on the relationship formula and the brightness information.
可选地,处理模块20,具体用于获取预设亮视觉曲线以及预设暗视觉曲线;响应于用户的操作,将预设亮视觉曲线以及预设暗视觉曲线与第二函数关系进行拟合调整处理,得到第一函数关系。Optionally, the processing module 20 is specifically configured to obtain a preset photopic curve and a preset scotopic curve; in response to a user's operation, the preset photopic curve and the preset scotopic curve are fitted with the second functional relationship. The adjustment process is performed to obtain the first functional relationship.
可选地,第一函数关系为符合贝塞尔曲线规则的第一函数曲线,第一函数曲线指示第一函数关系;处理模块20,具体用于根据亮度信息在第一函数曲线中的位置,确定遮罩层的目标透明度。Optionally, the first functional relationship is a first functional curve conforming to the Bezier curve rule, and the first functional curve indicates the first functional relationship; the processing module 20 is specifically configured to, according to the position of the brightness information in the first functional curve, Determines the target transparency of the mask layer.
可选地,关系公式为:N=(1-L/A);其中,N为遮罩层的透明度,L为亮度信息,A为预设的转换系数。Optionally, the relational formula is: N=(1-L/A); wherein, N is the transparency of the mask layer, L is the luminance information, and A is a preset conversion coefficient.
可选地,获取模块10,还用于获取待显示图像的背景层和前景层,并在背景层和前景层之间增加遮罩层。Optionally, the acquiring module 10 is further configured to acquire the background layer and the foreground layer of the image to be displayed, and add a mask layer between the background layer and the foreground layer.
可选地,获取模块10,具体用于通过光感装置实时获取当前环境中的亮度信息。Optionally, the obtaining module 10 is specifically configured to obtain the brightness information in the current environment in real time through the light sensing device.
上述装置用于执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The foregoing apparatus is used to execute the method provided by the foregoing embodiment, and the implementation principle and technical effect thereof are similar, which will not be repeated here.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器(digital singnal processor,简称DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), or one or more microprocessors (digital singnal) processor, referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA) and the like. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
图9为本申请实施例提供的计算机设备的结构示意图,请参照图9,计算机设备,包括:存储器400、处理器500,存储器400中存储有可在处理器500上运行的计算机程序,处理器500执行计算机程序时,实现上 述图像的自适应方法的步骤。FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application. Please refer to FIG. 9. The computer device includes: a memory 400 and a processor 500. The memory 400 stores a computer program that can run on the processor 500, and the processor 500 When a computer program is executed, the steps of the above-mentioned image adaptation method are implemented.
本申请实施例的另一方面,还提供一种计算机可读存储介质,存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现上述图像的自适应方法的步骤。Another aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, implements the steps of the above-mentioned image adaptation method.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. 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 may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, 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 may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本发明各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present invention. some steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc. Various media that can store program code.
上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到 变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art who is familiar with the technical scope disclosed in the present application can easily think of changes or replacements, which should be covered within the scope of the present application. within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (11)

  1. 一种图像的自适应方法,其特征在于,所述方法包括:An image adaptive method, characterized in that the method comprises:
    获取当前环境中的亮度信息;Get the brightness information in the current environment;
    根据所述亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,所述待显示图像包括背景层和前景层,所述遮罩层位于所述背景层和所述前景层之间;Determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer;
    将所述遮罩层的透明度调整至所述目标透明度。Adjust the transparency of the mask layer to the target transparency.
  2. 如权利要求1所述的方法,其特征在于,所述根据所述亮度信息确定待显示图像对应的遮罩层的目标透明度,包括:The method of claim 1, wherein the determining, according to the brightness information, the target transparency of the mask layer corresponding to the image to be displayed comprises:
    根据所述亮度信息与所述遮罩层的透明度的第一函数关系以及所述亮度信息,确定所述遮罩层的目标透明度。The target transparency of the mask layer is determined according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information.
  3. 如权利要求2所述的方法,其特征在于,所述根据所述亮度信息与所述遮罩层的透明度的第一函数关系以及所述亮度信息,确定所述遮罩层的目标透明度之前,所述方法还包括:The method according to claim 2, wherein, before determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, The method also includes:
    获取多组亮度信息与所述亮度信息对应的适宜画面亮度数据;Obtain multiple sets of brightness information and appropriate picture brightness data corresponding to the brightness information;
    根据多组所述亮度信息与所述亮度信息对应的适宜画面亮度数据建立第二函数关系;establishing a second functional relationship according to a plurality of sets of the brightness information and suitable picture brightness data corresponding to the brightness information;
    对所述第二函数关系进行调整得到所述第一函数关系;Adjusting the second functional relationship to obtain the first functional relationship;
    所述根据所述亮度信息与所述遮罩层的透明度的第一函数关系以及所述亮度信息,确定所述遮罩层的目标透明度,包括:The determining the target transparency of the mask layer according to the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information includes:
    根据所述第一函数关系,确定所述亮度信息与所述遮罩层的透明度的关系公式;According to the first functional relationship, determine the relationship formula between the brightness information and the transparency of the mask layer;
    基于所述关系公式、所述亮度信息计算所述遮罩层的目标透明度。The target transparency of the mask layer is calculated based on the relational formula and the luminance information.
  4. 如权利要求3所述的方法,其特征在于,对所述第二函数关系进行调整得到所述第一函数关系,包括:The method of claim 3, wherein adjusting the second functional relationship to obtain the first functional relationship comprises:
    获取预设亮视觉曲线以及预设暗视觉曲线;Obtain the preset bright vision curve and the preset dark vision curve;
    响应于用户的操作,将所述预设亮视觉曲线以及所述预设暗视觉曲线 与所述第二函数关系进行拟合调整处理,得到第一函数关系。In response to the user's operation, the preset photopic curve and the preset scotopic curve are fitted and adjusted with the second functional relationship to obtain a first functional relationship.
  5. 如权利要求2-4任一项所述的方法,其特征在于,所述第一函数关系为符合贝塞尔曲线规则的第一函数曲线,所述第一函数曲线指示所述第一函数关系;The method according to any one of claims 2-4, wherein the first functional relationship is a first functional curve conforming to a Bezier curve rule, and the first functional curve indicates the first functional relationship ;
    所述根据所述第一函数关系以及所述亮度信息,确定所述遮罩层的目标透明度,包括:The determining the target transparency of the mask layer according to the first functional relationship and the brightness information includes:
    根据所述亮度信息在所述第一函数曲线中的位置,确定所述遮罩层的目标透明度。The target transparency of the mask layer is determined according to the position of the luminance information in the first function curve.
  6. 如权利要求3所述的方法,其特征在于,所述关系公式为:The method of claim 3, wherein the relational formula is:
    N=(1-L/A);其中,N为所述遮罩层的透明度,L为所述亮度信息,A为预设的转换系数。N=(1-L/A); wherein, N is the transparency of the mask layer, L is the brightness information, and A is a preset conversion coefficient.
  7. 如权利要求1所述的方法,其特征在于,所述根据所述亮度信息确定待显示图像对应的遮罩层的目标透明度之前,还包括:The method according to claim 1, wherein before determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, the method further comprises:
    获取所述待显示图像的背景层和前景层,并在所述背景层和前景层之间增加所述遮罩层。The background layer and the foreground layer of the image to be displayed are acquired, and the mask layer is added between the background layer and the foreground layer.
  8. 如权利要求1所述的方法,其特征在于,所述获取当前环境中的亮度信息包括:The method of claim 1, wherein the acquiring the brightness information in the current environment comprises:
    通过光感装置实时获取所述当前环境中的亮度信息。The brightness information in the current environment is acquired in real time through the photosensitive device.
  9. 一种图像的自适应装置,其特征在于,所述装置包括:获取模块、处理模块、调整模块;An image adaptive device, characterized in that the device comprises: an acquisition module, a processing module, and an adjustment module;
    所述获取模块,用于获取当前环境中的亮度信息;The obtaining module is used to obtain the brightness information in the current environment;
    所述处理模块,用于根据所述亮度信息确定待显示图像对应的遮罩层的目标透明度,其中,所述待显示图像包括背景层和前景层,所述遮罩层位于所述背景层和所述前景层之间;The processing module is configured to determine the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information, wherein the image to be displayed includes a background layer and a foreground layer, and the mask layer is located between the background layer and the foreground layer. between the foreground layers;
    所述调整模块,用于将所述遮罩层的透明度调整至所述目标透明度。The adjustment module is configured to adjust the transparency of the mask layer to the target transparency.
  10. 一种计算机设备,其特征在于,包括:存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述权利要求1至8任一项所述的方法的步骤。A computer device, characterized by comprising: a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the above claim 1 is realized to the steps of any one of 8.
  11. 一种计算机可读存储介质,其特征在于,所述存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现权利要求1至8中任一项所述方法的步骤。A computer-readable storage medium, characterized in that, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
PCT/CN2022/083556 2021-04-25 2022-03-29 Image adaptive method and apparatus, and device and storage medium WO2022227985A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110450297.1 2021-04-25
CN202110450297.1A CN115248652B (en) 2021-04-25 2021-04-25 Image self-adaption method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022227985A1 true WO2022227985A1 (en) 2022-11-03

Family

ID=83696324

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083556 WO2022227985A1 (en) 2021-04-25 2022-03-29 Image adaptive method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN115248652B (en)
WO (1) WO2022227985A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902460A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Screen display brightness adjusting method and terminal
CN103903593A (en) * 2012-12-27 2014-07-02 腾讯科技(武汉)有限公司 Adjustment method of display background of page, and terminal
US20150022542A1 (en) * 2013-07-18 2015-01-22 Seiko Epson Corporation Transmissive display device and method of controlling transmissive display device
CN111611034A (en) * 2020-04-23 2020-09-01 北京小米移动软件有限公司 Screen display adjusting method and device and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101547556B1 (en) * 2009-02-06 2015-08-26 삼성전자주식회사 Image display method and apparatus
CN102890602B (en) * 2012-09-17 2015-07-08 福建星网视易信息系统有限公司 Object highlighting method and display device
WO2015178707A1 (en) * 2014-05-22 2015-11-26 Samsung Electronics Co., Ltd. Display device and method for controlling the same
CN107016978B (en) * 2017-04-25 2018-11-20 腾讯科技(深圳)有限公司 A kind of showing interface technology and terminal device
CN107123399A (en) * 2017-06-29 2017-09-01 厦门美图移动科技有限公司 The method of adjustment and mobile terminal of mobile terminal screen brightness
CN108510962B (en) * 2018-03-29 2020-11-20 联想(北京)有限公司 Display control method and electronic equipment
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN109859689B (en) * 2019-04-09 2020-07-31 Oppo广东移动通信有限公司 Screen brightness adjusting method and related product
CN111598813B (en) * 2020-05-25 2023-05-19 抖音视界有限公司 Face image processing method and device, electronic equipment and computer readable medium
CN112261396B (en) * 2020-10-26 2022-02-25 成都极米科技股份有限公司 Projection method, projection device, projection equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902460A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Screen display brightness adjusting method and terminal
CN103903593A (en) * 2012-12-27 2014-07-02 腾讯科技(武汉)有限公司 Adjustment method of display background of page, and terminal
US20150022542A1 (en) * 2013-07-18 2015-01-22 Seiko Epson Corporation Transmissive display device and method of controlling transmissive display device
CN111611034A (en) * 2020-04-23 2020-09-01 北京小米移动软件有限公司 Screen display adjusting method and device and storage medium

Also Published As

Publication number Publication date
CN115248652B (en) 2024-01-12
CN115248652A (en) 2022-10-28

Similar Documents

Publication Publication Date Title
US10783835B2 (en) Automatic control of display brightness
WO2014030888A1 (en) System and method for perceiving images with multimodal feedback
WO2017114256A1 (en) Method and device for adjusting projection brightness
US20110267374A1 (en) Information display apparatus and information display method
US11388363B2 (en) TV set and backlight control method, control device and readable storage medium of the TV set
US20090303247A1 (en) Method and System for Color Correction Using Thre-Dimensional Information
CN109155053B (en) Information processing apparatus, information processing method, and recording medium
CN105023552A (en) Display and brightness adjusting method thereof
JP2006146178A (en) Generating method for transfer curve for adaptive contrast enhancement
CN107734796B (en) Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium
CN110192241A (en) Control the brightness of emissive display
KR20210061258A (en) System and method for dynamic selection of reference image frame
TWI576817B (en) Display with Automatic Image Optimizing function and Related Image Adjusting Method
WO2021218603A1 (en) Image processing method and projection system
TW201725578A (en) Image adjusting method capable of executing optimal adjustment according to envorimental variation and related display
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN107743637A (en) Method and apparatus for handling peripheral images
CN113395457A (en) Parameter adjusting method, device and equipment of image collector and storage medium
WO2022227985A1 (en) Image adaptive method and apparatus, and device and storage medium
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN114365077B (en) Viewer synchronized illumination sensing
CN112040614B (en) Auxiliary light source-based light supplementing method and intelligent desk lamp
CN108335362B (en) Light control method and device in virtual scene and VR (virtual reality) equipment
CN105430308B (en) Interactive projection device and automatic exposure value adjusting method thereof
US20240107113A1 (en) Parameter Selection for Media Playback

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794458

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22794458

Country of ref document: EP

Kind code of ref document: A1