CN115248652A - Image self-adaptation method, device, equipment and storage medium - Google Patents

Image self-adaptation method, device, equipment and storage medium Download PDF

Info

Publication number
CN115248652A
CN115248652A CN202110450297.1A CN202110450297A CN115248652A CN 115248652 A CN115248652 A CN 115248652A CN 202110450297 A CN202110450297 A CN 202110450297A CN 115248652 A CN115248652 A CN 115248652A
Authority
CN
China
Prior art keywords
mask layer
brightness information
transparency
image
layer
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110450297.1A
Other languages
Chinese (zh)
Other versions
CN115248652B (en
Inventor
王德南
顾永忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi Technology Co Ltd
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 Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202110450297.1A priority Critical patent/CN115248652B/en
Priority to PCT/CN2022/083556 priority patent/WO2022227985A1/en
Publication of CN115248652A publication Critical patent/CN115248652A/en
Application granted granted Critical
Publication of CN115248652B publication Critical patent/CN115248652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

The application provides an image self-adaption method, device, equipment and storage medium, and belongs to the technical field of visual information processing. The method comprises the following steps: acquiring brightness information in the current environment; determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer; and adjusting the transparency of the mask layer to the target transparency. The method and the device can improve the matching between the brightness adjustment result and the user requirement, and improve the experience of the user.

Description

Image self-adaptation method, device, equipment and storage medium
Technical Field
The present application relates to the field of visual information processing technologies, and in particular, to an image adaptive method, apparatus, device, and storage medium.
Background
In order to make a user more comfortable to view or interact with content displayed on a display screen of an electronic device, a brightness adjustment manner is generally provided on the electronic device.
In the prior art, the light sensing device of the electronic device can acquire external brightness information in real time, and when the brightness information of the external environment changes, the light machine in the electronic device can be adjusted, so that the brightness of the whole display screen is correspondingly adjusted.
However, when a user performs interface operation or views and other special behaviors, the requirement of the user often cannot be met by directly adjusting the brightness through the optical machine, and the situation that the operation key or the view content cannot be clearly seen in a dark scene can occur, so that the brightness adjustment result is not matched with the requirement of the user.
Disclosure of Invention
The application aims to provide an image self-adaption method, device, equipment and storage medium, which can improve the matching between the brightness adjustment result and the user requirement and improve the experience of the user.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, an adaptive method for an image is provided, where the method includes:
acquiring brightness information in the current environment;
determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer;
the transparency of the mask layer is adjusted to a target transparency.
Optionally, determining a target transparency of a mask layer corresponding to the image to be displayed according to the brightness information includes:
and determining the target transparency of the mask layer according to the first functional relation 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 luminance information and the transparency of the mask layer and the luminance information, the method further comprises:
acquiring a plurality of groups of brightness information and suitable image brightness data corresponding to the brightness information;
establishing a second functional relation according to the plurality of groups of brightness information and the suitable image brightness data corresponding to the brightness information;
adjusting the second functional relation to obtain a first functional relation;
determining a target transparency of the mask layer based on the luminance information and a first functional relationship between the luminance information and the transparency of the mask layer, comprising:
determining a relation formula of the brightness information and the transparency of the mask layer according to the first function relation;
and calculating the target transparency of the mask layer based on the relation formula and the brightness information.
Optionally, adjusting the second functional relationship to obtain the first functional relationship includes:
acquiring a preset bright visual curve and a preset dark visual curve;
and responding to the operation of a user, and performing fitting adjustment processing on the preset bright visual curve and the preset dark visual curve and the second functional relation to obtain a first functional relation.
Optionally, the first functional relationship is a first functional curve conforming to a bezier curve rule, the first functional curve indicating the first functional relationship;
determining a target transparency of the mask layer according to the first functional relationship and the brightness information, comprising:
and determining the target transparency of the mask layer according to the position of the brightness information in the first function curve.
Optionally, the relational formula is:
n = (1-L/a); wherein N is the transparency of the mask layer, L is the brightness information, and A is the predetermined 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:
the method comprises the steps of obtaining a background layer and a foreground layer of an image to be displayed, and adding a mask layer between the background layer and the foreground layer.
Optionally, the acquiring brightness information in the current environment includes:
and acquiring 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, an adaptive dimming device for an image is provided, the device including: the device comprises an acquisition module, a processing module and an adjustment module;
the acquisition module is used for acquiring brightness information in the current environment;
the processing module is used for determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer;
and the adjusting module is used for adjusting the transparency of the mask layer to the target transparency.
Optionally, the processing module is specifically configured to determine a target transparency of the mask layer according to the first functional relationship between the luminance information and the transparency of the mask layer and the luminance information.
Optionally, the obtaining module is further configured to obtain a plurality of sets of suitable image luminance data corresponding to the luminance information; establishing a second functional relation according to the plurality of groups of brightness information and the suitable image brightness data corresponding to the brightness information; adjusting the second functional relationship to obtain a first functional relationship; the processing module is specifically used for determining a relational formula between the brightness information and the transparency of the mask layer according to the first functional relation; and calculating the target transparency of the mask layer based on the relation formula and the brightness information.
Optionally, the processing module is specifically configured to obtain a preset bright visual curve and a preset dark visual curve; and responding to the operation of a user, and fitting and adjusting the preset bright visual curve and the preset dark visual curve and the second functional relation to obtain a first functional relation.
Optionally, the first functional relationship is a first functional curve conforming to a bezier curve rule, the first functional curve indicating the first functional relationship; and the processing module is specifically used for determining the target transparency of the mask layer according to the position of the brightness information in the first function curve.
Optionally, the relational formula is: n = (1-L/a); wherein N is the transparency of the mask layer, L is the brightness information, and A is the predetermined conversion coefficient.
Optionally, the obtaining module is further configured to obtain a background layer and a 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, in real time, luminance information in the current environment through the optical sensing device.
In another aspect of the embodiments of the present application, there is provided a computer device, including: the image adaptive method comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the steps of the image adaptive method are realized when the processor executes the computer program.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image adaptive method described above.
The beneficial effects of the embodiment of the application include:
in the image adaptive method, device, equipment and storage medium provided by the embodiment of the application, the brightness information in the current environment can be acquired; determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer; and adjusting the transparency of the mask layer to the target transparency. After the target transparency of the mask layer is adjusted through the brightness information, the brightness meeting the visual requirements of the user can be obtained, the matching performance of the brightness adjustment result and the requirements of the user can be improved, the experience of the user is improved, and therefore the user can obtain a display image with appropriate picture brightness in environments with different illumination intensities.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of an image adaptive method according to an embodiment of the present application;
fig. 2 is a first flowchart illustrating an image adaptive method according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a second image adaptive method according to an embodiment of the present disclosure;
fig. 4 is a third schematic flowchart of an image adaptive method according to an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating a second function curve provided by an embodiment of the present application;
FIG. 6 is a graphical illustration of bright and dark vision provided by an embodiment of the present application;
FIG. 7 is a diagram illustrating a first function curve provided by an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an image adaptive apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
The practical application scenario of the image adaptive method provided by the embodiment of the present application is specifically explained below.
Fig. 1 is a schematic view of an application scenario of an image adaptive method provided in an embodiment of the present application, please refer to fig. 1, where the method can be applied to an electronic device with a display function, for example: projection devices, computers, and the like. In the embodiment of the present application, an application scenario of a projection device is taken as an example, and the scenario at least includes: the projection device 100, the light sensing device 200; the optical sensing device 200 may be disposed on the projection apparatus 100, and configured to obtain brightness information of an environment where the projection apparatus 100 is located, and send the brightness information to the projection apparatus 100; the projection apparatus 100 may map the image 300 to be displayed on a whiteboard, a curtain, or a wall, where the image may be displayed, according to the brightness information, where the image 300 to be displayed may be an image displayed on a UI (User Interface) on the projection apparatus 100. Including a background layer 310 and a foreground layer 320, and a mask layer 330 may be further disposed between the background layer 310 and the foreground layer 320.
The background layer 310 may be a background color of a system body in an image to be displayed or a background color of a specific classification page, for example: if the image to be displayed is a main page of a certain application program, the background of the main page is the background layer.
The foreground layer 320 may be an image of a video, a picture, a poster, etc. that can be operated by the user in the image to be displayed, a virtual key that can be clicked by the user, or some text information displayed, for example: if the image to be displayed is a main page of a certain application program, the clickable virtual control in the main page and each real sub video window are the foreground layer.
The mask layer 330 may be an opaque black mask layer disposed between the background layer 310 and the foreground layer 320, and the transparency of the mask layer may be modified.
The following specifically explains a specific implementation procedure of the image adaptive method provided in the embodiment of the present application.
Fig. 2 is a first flowchart illustrating an image adaptive method according to an embodiment of the present application, please refer to fig. 2, where the method includes:
s210: luminance information in the current environment is acquired.
Alternatively, the brightness information in the current environment may be acquired by a light sensing device disposed on the electronic device, where the light sensing device may be specifically a photosensor, generates a corresponding electrical signal according to the acquired brightness information in the current environment, and may transmit the electrical signal to the projection device.
The luminance information may specifically be illuminance in the current environment, where the illuminance is a light flux irradiated from the light source onto a unit area, and the unit of the illuminance is lux (lx).
The current environment may be an environment in which the projection device is located, for example, when the projection device is located in a certain room in a room, the illuminance in the current room is brightness information in the current environment.
S220: and determining the target transparency of the mask layer corresponding to the image to be displayed according to the brightness information.
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.
Optionally, after the brightness information in the current environment is determined, the light sensing device may send the brightness information to the electronic device, and the electronic device may perform calculation processing on the obtained brightness information based on a pre-stored calculation rule, so as to obtain a corresponding processing result, where the processing result is the target transparency of the mask layer.
The target transparency can be a corresponding transparency which meets the visual requirement of the user under the condition of the current brightness information and is calculated according to a pre-stored calculation rule.
S230: and adjusting the transparency of the mask layer to the target transparency.
Alternatively, after determining the target transparency, the transparency of a mask layer in the image to be displayed may be adjusted to the target transparency. Accordingly, after the transparency of the mask layer is adjusted to the target transparency, the brightness of the image displayed by the image to be displayed can meet the visual requirement of the user.
In the image self-adaption method provided by the embodiment of the application, the brightness information in the current environment can be acquired; determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer; the transparency of the mask layer is adjusted to a target transparency. After the target transparency of the mask layer is adjusted through the brightness information, the brightness meeting the visual requirements of the user can be obtained, the matching performance of the brightness adjustment result and the requirements of the user can be improved, the experience of the user is improved, and therefore the user can obtain a display image with appropriate picture brightness in environments with different illumination intensities.
Optionally, determining a target transparency of a mask layer corresponding to the image to be displayed according to the brightness information includes: and determining the target transparency of the mask layer according to the first functional relation 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 obtained, the logical relationship may be stored in the electronic device. The first functional relationship may be a correspondence 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, the transparency of the mask layer corresponding to the brightness information can be determined according to the first functional relationship.
Another specific implementation of the image adaptive method provided in the embodiments of the present application is specifically explained below.
Fig. 3 is a flowchart illustrating a second method for adaptive image adaptation according to an embodiment of the present application, referring to fig. 3, before determining a target transparency of a mask layer according to a first functional relationship between luminance information and transparency of the mask layer and the luminance information, the method further includes:
s310: and acquiring a plurality of groups of brightness information and proper picture brightness data corresponding to the brightness information.
Alternatively, the image brightness data may be a brightness value displayed by an image to be displayed, and specifically may refer to a brightness of the image to be displayed, where the brightness of the image to be displayed refers to a brightness degree of one surface, that is, a light flux reflected from one surface, and the unit is nit (nit).
The specifically used sets of data are shown in table 1 below:
TABLE 1
Ambient brightness Less than 1lux 14lux 23lux
Projection lumen 470lm 1200lm 1800lm
Suitable picture brightness 50nit 130nit 200nit
The projection lumens may be luminous flux during projection, where the luminous flux is luminous power emitted from the light source in each direction, that is, light energy emitted per unit time, and the unit is lumens (lumen, lm for short). The environment brightness is the brightness information, and the suitable image brightness is the suitable image brightness data corresponding to the brightness information. The data may be the results obtained from a 100 inch (221 cm. Times.125 cm) panel test.
In table 1, when the ambient brightness is less than 1lux and the projection lumen is 470lm, the corresponding suitable picture brightness is 50nit; when the ambient brightness is 14lux and the projection lumen is 1200lm, the corresponding suitable picture brightness is 130nit; when the ambient brightness is 23lux and the projected lumen is 1800lm, the corresponding suitable picture brightness is 200nit. It should be noted that the ambient brightness is sensed when the projection is turned off, the data is only a part of the data acquired in advance, and multiple sets of data can be acquired in the actual pre-calculation process.
Wherein, there is a functional relationship between the projection lumens and the suitable picture brightness, and the specific relationship formula is as follows:
T=(M×X)/(π×S);
where M is projection lumen, X is screen gain, which can be 1.0, t is suitable picture brightness, and S is projection area of the picture, for example: projecting a 100-inch picture, wherein the projection size is about 3m 2 Then S is 3m 2 (ii) a A 120-inch picture is projected, and the size of the projection is about 4m 2 S is 4m 2 (ii) a A 70-inch picture is projected, and the projection size is about 1.7m 2 Then S is 1.7m 2
S320: and establishing a second functional relation according to the plurality of groups of brightness information and the suitable image brightness data corresponding to the brightness information.
Optionally, after acquiring the plurality of sets of luminance information and suitable image luminance data corresponding to the luminance information, a second functional relationship may be established based on the data, where the second functional relationship may be a linear data relationship between the luminance information and the suitable image luminance data corresponding to the luminance information, and through the second functional relationship, after the electronic device acquires a value of any luminance information, the suitable image luminance data corresponding to the luminance information may be acquired.
S330: and adjusting the second functional relationship to obtain the first functional relationship.
Optionally, the first function relationship is a correspondence between the luminance information and the transparency of the mask layer, and the second function relationship is a correspondence between the luminance information and the suitable screen luminance, and the second function relationship may be adjusted based on a preset adjustment rule to obtain the first function relationship.
Determining a target transparency of the mask layer based on the luminance information and a first functional relationship between the luminance information and the transparency of the mask layer, comprising:
s340: and determining a relation formula of the brightness information and the transparency of the mask layer according to the first function relation.
Optionally, after obtaining the first functional relationship, the first functional relationship may be expressed in a form of a relational formula, that is, the luminance information and the transparency of the mask layer are expressed by a mathematical functional relationship.
S350: and calculating the target transparency of the mask layer based on the relation formula and the brightness information.
Optionally, after the above relational formula is obtained, the specific value of the luminance information may be substituted into the relational formula for calculation, so as to obtain the target transparency of the mask layer.
Next, a further specific implementation of the image adaptive method provided in the embodiment of the present application will be specifically explained.
Fig. 4 is a third flowchart illustrating an image adaptive method according to an embodiment of the present application, please refer to fig. 4, where adjusting the second functional relationship to obtain the first functional relationship includes:
s410: and acquiring a preset bright visual curve and a preset dark visual curve.
Optionally, the bright visual curve and the dark visual curve may be used to reflect a functional relationship curve between human subjective brightness perception and illumination intensity in a bright environment and a dark environment, respectively, where the human subjective brightness perception may be a perception condition of human vision on brightness information, and the illumination intensity may be specifically represented in a logarithmic form, and may be a logarithm of illumination intensity corresponding to suitable picture brightness data.
S420: and responding to the operation of a user, and performing fitting adjustment processing on the preset bright visual curve and the preset dark visual curve and the second functional relation to obtain a first functional relation.
Optionally, the user may perform fitting adjustment through a preset software program, specifically, may adjust a curve corresponding to the second functional relationship through a specific software program, and perform fitting adjustment processing on the curve corresponding to the second functional relationship, a preset bright visual curve and a preset dark visual curve, for example: and determining a position meeting a preset fitting condition for certain brightness information in the curve of the second functional relation by combining the corresponding relation of the brightness information in the preset bright visual curve and the preset dark visual curve, adjusting the brightness information in the curve of the second functional relation, and so on, correspondingly adjusting each brightness information in the curve of the second functional relation, and finally obtaining the first functional relation.
The above process is explained below by a diagram of the second function curve, a diagram of the bright vision and the dark vision curves, respectively.
Fig. 5 is a schematic diagram of a second function curve provided in the embodiment of the present application, please refer to fig. 5, in the second function curve, a horizontal axis is luminance information, and a specific range may be 2lux to 23lux; the vertical axis is the transparency of the mask layer, and the specific range can be 50nit-200nit.
Fig. 6 is a schematic diagram of a bright vision curve and a dark vision curve provided in the embodiment of the present application, please refer to fig. 6, in the bright vision curve and the dark vision curve, a horizontal axis is a logarithm of illumination intensity, specifically may be-6 mL-4mL, and a vertical axis is human visual subjective brightness, specifically, a unit may be lux. Wherein the scotopic vision curve may be two separate curves and the photopic vision curve may be one continuous curve.
Alternatively, the adaptation and discrimination of the human eye to luminance is non-linear, and since the digital image is displayed as a discrete set of gray levels, it is important to investigate the ability of the human eye to discriminate between different luminance levels. The human visual system is able to adapt the light intensity from the dark threshold to the intense flash by about 10 orders of magnitude. Experimental data indicate that subjective brightness (the brightness perceived by the human visual system) is a logarithmic function of the intensity of illumination entering the human eye.
Optionally, the first functional relationship is a first functional curve conforming to a bezier curve rule, the first functional curve indicating the first functional relationship; determining a target transparency of the mask layer according to the first functional relationship and the brightness information, comprising:
and determining the target transparency of the mask layer according to the position of the brightness information in the first function curve.
Optionally, according to the bezier curve rule, a smooth curve may be drawn according to coordinates of any point at four positions, and the first function curve meeting the bezier curve rule may be obtained by adjusting the second function curve by the user.
Optionally, after the first function curve is determined, the luminance information may be substituted into the curve for calculation, so as to obtain the target transparency of the mask layer corresponding to the luminance information.
Optionally, the above relation formula is:
N=(1-L/A);
wherein N is the transparency of the mask layer, L is the brightness information, and A is the predetermined conversion coefficient.
In the actual calculation process, a may specifically obtain a specific value thereof according to multiple data calculations, that is, a is a constant, and may take a value of 23, for example.
The above procedure, the logical relationship formula of the first function curve, is explained by the schematic diagram of the first function curve.
Fig. 7 is a schematic diagram of a first function curve provided in an embodiment of the present application, please refer to fig. 7, in the first function curve, a horizontal axis may be luminance information, and a specific range may be 2lux to 23lux; the vertical axis may be the transparency of the mask layer, and may range from 50nit to 200nit.
As can be seen from the curve relationship in fig. 7, the transparency between the luminance information and the mask layer may be a positive correlation, and when the value of the luminance information is higher, the transparency of the mask layer is higher, and accordingly, the background luminance is brighter; when the value of the luminance information is lower, the transparency of the mask layer is lower, and accordingly, the background luminance is darker, thereby realizing a 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:
the method comprises the steps of obtaining a background layer and a foreground layer of an image to be displayed, and adding a mask layer between the background layer and the foreground layer.
Optionally, the image to be displayed generally includes only a background layer and a foreground layer, and in order to implement the method for adjusting the transparency of the mask layer to implement brightness adjustment adopted in the embodiment of the present application, a mask layer may be inserted in advance between the background layer and the foreground layer.
Optionally, the UI presentation effects presented to the user are as follows: the background layer is darkened by the mask layer in the middle due to the change of pure black transparency, and the foreground layer at the uppermost layer is highlighted because the foreground layer is not shaded.
Optionally, the acquiring brightness information in the current environment includes:
and acquiring the brightness information in the current environment in real time through the light sensing device.
Optionally, the light sensing device is the light sensing device described in the foregoing, and may specifically be a photoelectric sensor or other types of photoelectric conversion devices, and the light sensing device may be disposed on the electronic device, or may be communicatively connected with the electronic device and disposed in the same environment, which is not limited herein.
The following describes apparatuses, devices, and storage media corresponding to the image adaptive method provided by the present application, and specific implementation procedures and technical effects thereof are referred to above, and are not described in detail below.
Fig. 8 is a schematic structural diagram of an image adaptive device according to an embodiment of the present application, and referring to fig. 8, an image adaptive dimming device is provided, which includes: the system comprises an acquisition module 10, a processing module 20 and an adjustment module 30;
an obtaining module 10, configured to obtain brightness information in a current environment;
the processing module 20 is configured to determine, according to the brightness information, a target transparency of a mask layer corresponding to an image to be displayed, where 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;
and an adjusting module 30, configured to adjust the transparency of the mask layer to a target transparency.
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.
Optionally, the obtaining module 10 is further configured to obtain a plurality of sets of suitable image luminance data corresponding to the luminance information; establishing a second functional relation according to the plurality of groups of brightness information and the suitable image brightness data corresponding to the brightness information; adjusting the second functional relation to obtain a first functional relation; a processing module 20, configured to determine a relation formula between the luminance information and the transparency of the mask layer according to the first functional relationship; and calculating the target transparency of the mask layer based on the relation formula and the brightness information.
Optionally, the processing module 20 is specifically configured to obtain a preset bright vision curve and a preset dark vision curve; and responding to the operation of a user, and fitting and adjusting the preset bright visual curve and the preset dark visual curve and the second functional relation to obtain a first functional relation.
Optionally, the first functional relationship is a first functional curve conforming to a bezier curve rule, the first functional curve indicating the first functional relationship; the processing module 20 is specifically configured to determine a target transparency of the mask layer according to a position of the luminance information in the first function curve.
Optionally, the relational formula is: n = (1-L/a); wherein N is the transparency of the mask layer, L is the brightness information, and A is the predetermined conversion coefficient.
Optionally, the obtaining module 10 is further configured to obtain a background layer and a 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 10 is specifically configured to obtain, in real time, brightness information in the current environment through the optical sensing device.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. 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 (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application, and referring to fig. 9, the computer device includes: a memory 400 and a processor 500, wherein the memory 400 stores a computer program operable on the processor 500, and the processor 500 executes the computer program to implement the steps of the image adaptive method.
In another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the image adaptive method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The 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) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. A method for adapting an image, the method comprising:
acquiring brightness information in the current environment;
determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information, wherein the image to be displayed comprises a background layer and a foreground layer, and the mask layer is positioned between the background layer and the foreground layer;
adjusting the transparency of the mask layer to the target transparency.
2. The method of claim 1, wherein determining the target transparency of a mask layer corresponding to an image to be displayed according to the brightness information comprises:
and determining the target transparency of the mask layer according to the first functional relation between the brightness information and the transparency of the mask layer and the brightness information.
3. The method of claim 2, wherein before determining the target transparency of the mask layer based on the first functional relationship between the brightness information and the transparency of the mask layer and the brightness information, the method further comprises:
acquiring a plurality of groups of brightness information and suitable image brightness data corresponding to the brightness information;
establishing a second functional relation according to the plurality of groups of brightness information and the proper picture brightness data corresponding to the brightness information;
adjusting the second functional relationship to obtain the first functional relationship;
the determining a 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 comprises:
determining a relational formula of the brightness information and the transparency of the mask layer according to the first functional relation;
and calculating the target transparency of the mask layer based on the relation formula and the brightness information.
4. The method of claim 3, wherein adjusting the second functional relationship to obtain the first functional relationship comprises:
acquiring a preset bright visual curve and a preset dark visual curve;
and responding to the operation of a user, and fitting and adjusting the preset bright visual curve and the preset dark visual curve and the second functional relation to obtain a first functional relation.
5. The method of any one of claims 2-4, wherein the first functional relationship is a first functional curve that conforms to Bezier curve rules, the first functional curve indicating the first functional relationship;
the determining the target transparency of the mask layer according to the first functional relationship and the brightness information includes:
and determining the target transparency of the mask layer according to the position of the brightness information in the first function curve.
6. The method of claim 3, wherein the relational formula is:
n = (1-L/a); wherein N is the transparency of the mask layer, L is the brightness information, and A is a predetermined conversion coefficient.
7. The method of 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:
and acquiring a background layer and a foreground layer of the image to be displayed, and adding the mask layer between the background layer and the foreground layer.
8. The method of claim 1, wherein the obtaining brightness information in the current environment comprises:
and acquiring the brightness information in the current environment in real time through a light sensing device.
9. An apparatus for adapting an image, the apparatus comprising: the device comprises an acquisition module, a processing module and an adjustment module;
the acquisition module is used for acquiring brightness information in the current environment;
the processing module is configured to determine, according to the brightness information, a target transparency of a mask layer corresponding to an image to be displayed, where 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 adjusting module is used for adjusting the transparency of the mask layer to the target transparency.
10. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, and a processor which, when executing the computer program, carries out the steps of the method according to any one of the preceding claims 1 to 8.
11. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202110450297.1A 2021-04-25 2021-04-25 Image self-adaption method, device, equipment and storage medium Active CN115248652B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110450297.1A CN115248652B (en) 2021-04-25 2021-04-25 Image self-adaption method, device, equipment and storage medium
PCT/CN2022/083556 WO2022227985A1 (en) 2021-04-25 2022-03-29 Image adaptive method and apparatus, and device and storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN115248652A true CN115248652A (en) 2022-10-28
CN115248652B CN115248652B (en) 2024-01-12

Family

ID=83696324

Family Applications (1)

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

Country Status (2)

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

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100201709A1 (en) * 2009-02-06 2010-08-12 Samsung Electronics Co., Ltd. Image display method and apparatus
CN102890602A (en) * 2012-09-17 2013-01-23 福建星网视易信息系统有限公司 Object highlighting method and display device
US20150022542A1 (en) * 2013-07-18 2015-01-22 Seiko Epson Corporation Transmissive display device and method of controlling transmissive display device
WO2015178707A1 (en) * 2014-05-22 2015-11-26 Samsung Electronics Co., Ltd. Display device and method for controlling the same
CN107016978A (en) * 2017-04-25 2017-08-04 腾讯科技(深圳)有限公司 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
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN109859689A (en) * 2019-04-09 2019-06-07 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
WO2019184258A1 (en) * 2018-03-29 2019-10-03 联想(北京)有限公司 Display control method and electronic device
CN111598813A (en) * 2020-05-25 2020-08-28 北京字节跳动网络技术有限公司 Face image processing method and device, electronic equipment and computer readable medium
CN111611034A (en) * 2020-04-23 2020-09-01 北京小米移动软件有限公司 Screen display adjusting method and device and storage medium
CN112261396A (en) * 2020-10-26 2021-01-22 成都极米科技股份有限公司 Projection method, projection device, projection equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902460B (en) * 2011-07-26 2015-01-14 腾讯科技(深圳)有限公司 Screen display brightness adjusting method and terminal
CN103903593B (en) * 2012-12-27 2017-02-22 腾讯科技(武汉)有限公司 Adjustment method of display background of page, and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100201709A1 (en) * 2009-02-06 2010-08-12 Samsung Electronics Co., Ltd. Image display method and apparatus
CN102890602A (en) * 2012-09-17 2013-01-23 福建星网视易信息系统有限公司 Object highlighting method and display device
US20150022542A1 (en) * 2013-07-18 2015-01-22 Seiko Epson Corporation Transmissive display device and method of controlling transmissive display device
WO2015178707A1 (en) * 2014-05-22 2015-11-26 Samsung Electronics Co., Ltd. Display device and method for controlling the same
CN107016978A (en) * 2017-04-25 2017-08-04 腾讯科技(深圳)有限公司 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
WO2019184258A1 (en) * 2018-03-29 2019-10-03 联想(北京)有限公司 Display control method and electronic device
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN109859689A (en) * 2019-04-09 2019-06-07 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN111611034A (en) * 2020-04-23 2020-09-01 北京小米移动软件有限公司 Screen display adjusting method and device and storage medium
CN111598813A (en) * 2020-05-25 2020-08-28 北京字节跳动网络技术有限公司 Face image processing method and device, electronic equipment and computer readable medium
CN112261396A (en) * 2020-10-26 2021-01-22 成都极米科技股份有限公司 Projection method, projection device, projection equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN115248652B (en) 2024-01-12
WO2022227985A1 (en) 2022-11-03

Similar Documents

Publication Publication Date Title
US10783835B2 (en) Automatic control of display brightness
US9652662B2 (en) Image processing device and image processing method
CN109155053B (en) Information processing apparatus, information processing method, and recording medium
CN104063846A (en) Method and apparatus for processing an image based on detected information
CN105023552A (en) Display and brightness adjusting method thereof
CN107734796B (en) Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium
US11388363B2 (en) TV set and backlight control method, control device and readable storage medium of the TV set
CN115330640B (en) Illumination mapping noise reduction method, device, equipment and medium
CN109859325A (en) The display methods and device that room guides in a kind of house VR video
Melo et al. Evaluation of HDR video tone mapping for mobile devices
Melo et al. Evaluation of Tone‐Mapping Operators for HDR Video Under Different Ambient Luminance Levels
CN113053324A (en) Backlight control method, device, equipment, system and storage medium
CN111601373A (en) Backlight brightness control method and device, mobile terminal and storage medium
CN109410813B (en) Adjusting method and device of touch whiteboard
US20160063711A1 (en) Non-transitory storage medium encoded with computer readable image processing program, information processing system, information processing apparatus, and image processing method
CN115248652B (en) Image self-adaption method, device, equipment and storage medium
JP2011133877A (en) Image display device, and image processing device
CN112819929B (en) Water surface rendering method and device, electronic equipment and storage medium
CN113783999B (en) Method and device for controlling terminal display and computer readable medium
Kruisselbrink et al. Ceiling-based luminance measurements: a feasible solution?
CN109961500B (en) Sub-surface scattering effect rendering method, device, equipment and readable storage medium
Rizzi et al. Visual glare limits of HDR displays in medical imaging
CN113873208A (en) Gamma curve adjusting method and device for projection equipment
CN111950462B (en) Brightness adjusting method and device, electronic equipment and storage medium
CN105430308B (en) Interactive projection device and automatic exposure value adjusting method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 610000 building 4, zone a, Tianfu Software Park, No. 1129, shijicheng Road, high tech Zone, Chengdu, Sichuan

Applicant after: Jimi Technology Co.,Ltd.

Address before: No.2, floor 2, unit 1, building 4, area a, Tianfu Software Park, 1129 shijicheng Road, high tech Zone, Chengdu, Sichuan 610000

Applicant before: Chengdu Jimi Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant