CN112379803A - Screen brightness adjusting method and device, computer equipment and storage medium - Google Patents

Screen brightness adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112379803A
CN112379803A CN202011262213.3A CN202011262213A CN112379803A CN 112379803 A CN112379803 A CN 112379803A CN 202011262213 A CN202011262213 A CN 202011262213A CN 112379803 A CN112379803 A CN 112379803A
Authority
CN
China
Prior art keywords
screen
visual field
brightness
acquiring
human eyes
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.)
Pending
Application number
CN202011262213.3A
Other languages
Chinese (zh)
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.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World 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 Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN202011262213.3A priority Critical patent/CN112379803A/en
Publication of CN112379803A publication Critical patent/CN112379803A/en
Pending legal-status Critical Current

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method and a device for adjusting screen brightness, computer equipment and a storage medium. According to the invention, the visual field range of human eyes is determined by acquiring the spatial position and the visual field direction of the human eyes of the user, and then the brightness of the screen of the mobile terminal is adjusted according to the acquired illumination intensity in the visual field range, so that the brightness of the screen is adaptive to the ambient illumination intensity in the visual field range of the human eyes, the screen brightness is prevented from being too high or too dark, the effect of accurately adjusting the screen brightness is achieved, and great effects are achieved in the aspects of preventing eye fatigue of the user, maintaining eye health of the user and improving user experience.

Description

Screen brightness adjusting method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a method and an apparatus for adjusting screen brightness, a computer device, and a storage medium.
Background
Mobile terminals are emerging products of a new era, such as mobile phones, tablets, smart watches, sports bracelets and other portable intelligent devices. The usage rate of the mobile terminal in daily life is extremely high, and users often need to visually observe the screen of the mobile terminal to perform interaction. The current mobile terminal can only adjust the display brightness of a screen by detecting the illumination intensity in the surrounding environment where the mobile terminal is located, however, the brightness adjustment mode is uniform for all mobile phone users in the same environment range, which cannot really meet the requirement of user personalization, and users are prone to generate eye fatigue when using the mobile terminal, which affects the eye health of the users and causes poor user experience.
Disclosure of Invention
The invention mainly aims to provide a method and a device for adjusting screen brightness, a computer device and a storage medium, so as to solve the problem that the brightness of a screen can only be adjusted by the illumination intensity of the surrounding environment in the conventional mobile terminal.
The technical scheme of the invention is as follows:
a method for adjusting screen brightness, a screen is arranged on a mobile terminal, the method comprises:
acquiring the visual field direction of human eyes;
acquiring the spatial position of human eyes;
acquiring the visual field range of human eyes according to the visual field direction and the space position;
acquiring the illumination intensity in the visual field range;
and adjusting the brightness of the screen according to the illumination intensity.
Further, the step of acquiring the visual field direction of the human eye comprises:
acquiring the screen orientation of a screen;
acquiring the inclination direction of human eyes relative to a screen;
and determining the visual field direction of human eyes according to the orientation and the inclination direction of the screen.
Further, a front camera is arranged on the screen, and the step of acquiring the inclination direction of human eyes relative to the screen comprises the following steps:
shooting human eyes through a front camera to form a first image;
acquiring an imaging position of a human eye in a first image;
and calculating the inclination direction of the human eyes relative to the screen according to the imaging position.
Further, the step of acquiring the spatial position of the human eye comprises:
acquiring the area ratio of human eyes in the first image;
judging the distance between the human eyes and the screen according to the area ratio;
and determining the space position of the human eyes according to the visual field direction and the distance.
Further, the mobile terminal is provided with a front camera and a rear camera; the visual field range comprises a first visual field range in front of the screen and a second visual field range behind the screen; the method comprises the following steps of acquiring illumination intensity in a visual field range:
acquiring first illumination intensity in a first visual field range through a front camera;
and acquiring second illumination intensity in a second visual field range through the rear camera.
Further, the step of adjusting the brightness of the screen according to the illumination intensity includes:
adding the first illumination intensity and the second illumination intensity according to a certain weight to obtain target brightness;
the brightness of the screen is adjusted to a target brightness.
Further, the method for adjusting the screen brightness further comprises the following steps:
acquiring environmental colors in a visual field range;
analyzing the tone attribute of the environment color;
and adjusting the display tone of the screen according to the tone attribute of the environment color.
The invention also provides a device for adjusting screen brightness, wherein the screen is arranged on the mobile terminal, and the device comprises:
the first acquisition module is used for acquiring the visual field direction of human eyes;
the second acquisition module is used for acquiring the spatial position of human eyes;
the third acquisition module is used for acquiring the visual field range of human eyes according to the visual field direction and the space position;
the fourth acquisition module is used for acquiring the illumination intensity in the visual field range;
and the adjusting module is used for adjusting the brightness of the screen according to the illumination intensity.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores computer programs, and the processor realizes the steps of the screen brightness adjusting method when executing the computer programs.
The present invention also provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned screen brightness adjustment method.
The invention provides a method for adjusting screen brightness, wherein the screen is a screen of a mobile terminal. According to the invention, the visual field range of human eyes is determined by acquiring the spatial position and the visual field direction of the human eyes of the user, and then the brightness of the screen of the mobile terminal is adjusted according to the acquired illumination intensity in the visual field range, so that the brightness of the screen is adaptive to the ambient illumination intensity in the visual field range of the human eyes, the screen brightness is prevented from being too high or too dark, the effect of accurately adjusting the screen brightness is achieved, and great effects are achieved in the aspects of preventing eye fatigue of the user, maintaining eye health of the user and improving user experience.
Drawings
FIG. 1 is a flowchart illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
FIG. 2 is a schematic view of the field of vision when the human eye is looking straight;
FIG. 3 is a schematic diagram illustrating an oblique direction of a human eye relative to a screen according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating screen orientations of a screen according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a device for adjusting screen brightness according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; they may be mechanically coupled, directly coupled, or indirectly coupled through intervening agents, both internally and/or in any other manner known to those skilled in the art. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly above and obliquely above the second feature, or simply meaning that the first feature is at a lesser level than the second feature.
Fig. 1 is a flowchart illustrating a method for adjusting screen brightness according to an embodiment of the present invention.
A method for adjusting screen brightness, a screen is arranged on a mobile terminal, the method comprises:
s1: acquiring the visual field direction of human eyes;
s2: acquiring the spatial position of human eyes;
s3: acquiring the visual field range of human eyes according to the visual field direction and the space position;
s4: acquiring the illumination intensity in the visual field range;
s5: and adjusting the brightness of the screen according to the illumination intensity.
In the invention, the mobile terminal can be an intelligent device such as a mobile phone, a tablet, an intelligent watch, a sports bracelet and the like.
In step S1, the visual field direction of the human eye can be represented by a ray, the starting point is the midpoint of the line between the two eyes of the user, and the starting point extends to the direction the user looks at.
In step S2, when the user uses the mobile terminal, the eyes are always located in front of the screen, and the spatial position of the eyes can be obtained by acquiring the linear distance between the eyes and the screen and combining the known visual field direction of the eyes.
In step S3, the visual field range of the human eye is a three-dimensional space formed by projecting the spatial position of the human eye as a starting point in the visual field direction of the human eye within a certain range. Thus, after determining the spatial position and the viewing direction of the human eye, the viewing range of the human eye can be determined. In this embodiment, the spatial position of the human eye is represented by the midpoint of the line between the two eyes.
The present embodiment limits the above-mentioned certain angle range. Specifically, referring to fig. 2, taking an example when human eyes are looking straight, a certain angle range of the present embodiment is defined as: the visual field angle of the human eyes on the vertical plane is-40 degrees to +30 degrees and the visual field angle of the human eyes on the horizontal plane is-30 degrees to +30 degrees by taking the visual field direction as a reference. Within this range of angles, the human eye has the ability to distinguish colors.
In step S4, the illumination intensity within the visual field of human eyes when the user uses the mobile terminal is collected. Specifically, generally, the illumination intensity in each direction centered on the mobile terminal can be acquired by a light sensor provided on the mobile terminal. According to the invention, on the basis of knowing the visual field range of human eyes, the specific direction of the visual field range of human eyes on the mobile terminal can be analyzed and obtained, the illumination intensity in the direction is obtained by using the optical sensor arranged on the mobile terminal, and the illumination intensity information in other directions obtained by the optical sensor is abandoned, so that the illumination intensity in the visual field range of human eyes can be obtained. In other embodiments, an environment forming environment image in the field of view can be captured by the rear camera, and then the brightness of the environment image is analyzed to obtain the illumination intensity in the field of view.
In step S5, the brightness of the screen is adjusted according to the collected illumination intensity. In one embodiment, the brightness of the screen is adjusted to be consistent with the collected illumination intensity; in other embodiments, a relational mapping table of screen brightness and illumination intensity is set according to a preset rule, each illumination intensity value can find a screen brightness value corresponding to each illumination intensity value in the relational mapping table, and then the brightness of the screen is adjusted to be consistent with the screen brightness value corresponding to the illumination intensity value according to the collected illumination intensity value. For example, in one embodiment, in order to allow the human eye to clearly see what is displayed on the screen, the screen brightness value is greater than the illumination intensity value, and the difference between the two varies with the magnitude of the illumination intensity value, the greater the difference. In other embodiments, the screen brightness value may be set in proportion to the illumination intensity value. The relationship between the screen brightness value and the illumination intensity value is not limited in the invention.
The embodiment provides a method for adjusting screen brightness, wherein the screen is a screen of a mobile terminal. According to the invention, the visual field range of human eyes is determined by acquiring the spatial position and the visual field direction of the human eyes of the user, and then the brightness of the screen of the mobile terminal is adjusted according to the acquired illumination intensity in the visual field range, so that the brightness of the screen is adaptive to the ambient illumination intensity in the visual field range of the human eyes, the screen brightness is prevented from being too high or too dark, the effect of accurately adjusting the screen brightness is achieved, and great effects are achieved in the aspects of preventing eye fatigue of the user, maintaining eye health of the user and improving user experience.
In an embodiment of the method for adjusting screen brightness, the step S1 of obtaining the visual field direction of human eyes includes:
s1.1: acquiring the screen orientation of a screen;
s1.2: acquiring the inclination direction of human eyes relative to a screen;
s1.3: and determining the visual field direction of human eyes according to the orientation and the inclination direction of the screen.
When a user uses the mobile terminal to carry out interaction, human eyes look at the screen, but the visual field direction of the human eyes is not necessarily perpendicular to the surface of the screen, and has a certain inclination angle with the screen, and the inclination angle can be changed at any time.
In step S1.1, the present embodiment first determines the screen orientation of the screen, where the screen orientation is set to be perpendicular to the front side of the screen.
In step S1.2, the direction of the inclination of the human eye with respect to the screen is expressed with reference to the screen orientation of the screen, which can be expressed by two angle values. Referring to fig. 3, a schematic diagram of a tilt direction of a human eye M with respect to a screen N is shown, wherein a rectangular coordinate system is established with a point on the screen N as an origin, a short side of the screen N as an X-axis, a long side as a Y-axis, and a direction perpendicular to the screen N as a Z-axis. The direction of the Z axis is the screen orientation of the screen N, and the inclination direction of the human eyes M relative to the screen N can be represented by a first inclination angle α and a second inclination angle β. The first inclination angle alpha is an included angle between a first human eye M 'of the human eye M mapped on the ZY plane and the screen orientation (Z axis), and the second inclination angle beta is an included angle between a second human eye M' of the human eye M mapped on the ZX plane and the screen orientation (Z axis). When the values of the first inclination angle α and the second inclination angle β are both 0, the visual field direction of the human eye is perpendicular to the screen, that is, the visual field direction of the human eye is just opposite to the screen orientation of the screen at the moment.
In step S1.3, the visual field direction of the human eye can be calculated by the acquired screen orientation of the screen and the inclination direction of the human eye relative to the screen.
In the method for adjusting screen brightness according to an embodiment of the present invention, the mobile terminal is provided with a gravity sensor and a direction sensor, and the step S1.1 of obtaining the screen orientation of the screen includes:
s1.1.1: acquiring a vertical turning angle of a screen through a gravity sensor;
s1.1.2: and acquiring the horizontal rotation angle of the screen through a direction sensor.
In the present embodiment, referring to fig. 4, the screen orientation of the screen of the mobile terminal may be represented by a vertical flip angle α 'and a horizontal rotation angle β' of the screen. Where c denotes a vertical plane in space, α 'denotes the vertical turning angle of the screen, and β' denotes the horizontal turning angle of the screen. After determining the vertical flip angle α 'and the horizontal rotation angle β', the screen orientation of the screen may be determined.
In step s1.1.1, the vertical flip angle α' of the screen is obtained by providing a gravity sensor in the mobile terminal. The gravity sensor arranged in the mobile terminal adopts an elastic sensitive element to manufacture a cantilever type displacer and an energy storage spring manufactured by the elastic sensitive element to drive an electric contact, so that the conversion from the gravity change to the electric signal is completed. Gravity sensors operate on the principle of the piezoelectric effect. The so-called piezoelectric effect is "the phenomenon that external force applied to the crystal for heteropolar crystals without symmetry centers changes the polarization state of the crystal in addition to deforming the crystal, and establishes an electric field inside the crystal, and the medium is polarized due to mechanical force action is called positive piezoelectric effect". The gravity sensor utilizes the characteristic that the crystal is deformed due to acceleration in the gravity sensor. Since this deformation generates a voltage, the acceleration can be converted into a voltage output by simply calculating the relationship between the generated voltage and the applied acceleration.
In step S1.1.2, a horizontal rotation angle β' of the screen is acquired by providing an orientation sensor in the mobile terminal. The direction sensor of the present embodiment may be a compass or a gyroscope.
In the method for adjusting the screen brightness according to an embodiment of the present invention, a front camera is disposed on the screen. Step S1.2 of obtaining the tilt direction of the human eyes with respect to the screen includes:
s1.2.1: shooting human eyes through a front camera to form a first image;
s1.2.2: acquiring an imaging position of a human eye in a first image;
s1.2.3: and calculating the inclination direction of the human eyes relative to the screen according to the imaging position.
In step s1.2.1, since the front-facing camera is disposed on the screen, the tilt direction of the human eye relative to the screen is substantially equal to the tilt direction of the human eye relative to the front-facing camera, and the tilt direction of the human eye relative to the screen can be analyzed and calculated according to the position of the human eye on the imaging plane of the front-facing camera. When the user uses the terminal, the visual field direction of human eyes is towards the screen, so that the front camera can capture the human eyes of the user. The front camera shoots human eyes to form a first image.
In step S1.2.2, since there are two eyes of the user, two eyes will appear in the first image, and the embodiment performs face recognition on the first image by using a face recognition technology, further determines the specific positions of the two eyes in the first image, and then determines the midpoint of the connecting line of the positions of the two eyes as the imaging position of the eyes in the first image.
In step S1.2.3, by analyzing the imaging position of the human eye in the first image, the tilt direction of the human eye relative to the screen, that is, the first tilt angle α and the second tilt angle β can be obtained by the AI algorithm.
Thus, in an embodiment of the invention, in step S1.3, the direction of the field of view of the human eyes is determined by the screen orientation of the screen and the direction of the inclination of the human eyes with respect to the screen. Specifically, the visual field direction of the human eye is determined as: the vertical inclination angle is alpha '-alpha and the horizontal inclination angle is beta' -beta relative to a vertically placed screen.
In the method for adjusting screen brightness according to an embodiment of the present invention, the step S2 of obtaining a spatial position of a human eye includes:
s2.1: acquiring the area ratio of human eyes in the first image;
s2.2: judging the distance between the human eyes and the screen according to the area ratio;
s2.3: and determining the space position of the human eyes according to the visual field direction and the distance.
In step S2.1, according to the imaging principle, the area ratio of the human eye in the imaging picture is smaller when the human eye is farther away from the camera, and the area ratio of the human eye in the imaging picture is larger when the human eye is closer to the camera. Therefore, in this embodiment, the face recognition is performed on the first image first, and then the area ratio of the two eyes in the first image is determined.
In step S2.2, the distance of the human eye from the screen can be calculated according to the area ratio of the human eye in the first image.
In step S2.3, the spatial position of the human eye may be determined from the distance between the human eye and the screen and the direction of the field of view of the human eye. And taking the front camera as an origin, and taking the position reached by moving the distance to the visual field direction of the human eyes as the space position of the human eyes.
In the method for adjusting the screen brightness of the embodiment of the invention, the mobile terminal is provided with a front camera and a rear camera; the visual field range comprises a first visual field range in front of the screen and a second visual field range behind the screen; the step S4 of acquiring the illumination intensity in the field of view includes:
s4.1: acquiring a first illumination intensity B1 in a first visual field range through the front camera;
s4.2: and acquiring a second illumination intensity B2 in a second visual field range through the rear camera.
In the present embodiment, the illumination intensity in the visual field range of the human eye includes a first illumination intensity B1 and a second illumination intensity B2.
In one embodiment of the invention, optical sensors are arranged on the front camera and the rear camera of the mobile terminal. Specifically, generally, the light intensity in each direction in front of the screen can be acquired by the light sensor provided on the front camera, and the light intensity in each direction behind the screen can be acquired by the light sensor provided on the rear camera. In the invention, on the basis of knowing the visual field range of human eyes, the specific position of the first visual field range in front of the screen and the specific position of the second visual field range in back of the screen can be analyzed and obtained, then the front camera is utilized to obtain the first illumination intensity of the first visual field range in the specific position in front of the screen and the second illumination intensity of the second visual field range in the specific position in back of the screen, and then the illumination intensity in the visual field range of human eyes can be obtained through a preset calculation rule.
Further, the step S5 of adjusting the brightness of the screen according to the illumination intensity includes:
s5.1: adding the first illumination intensity B1 and the second illumination intensity B2 according to a certain weight to obtain target brightness B;
s5.2: the brightness of the screen is adjusted to the target brightness B.
Specifically, B ═ η B1+ ξ B1. Wherein η + ξ ═ 1. In general, η ═ ξ ═ 0.5. The invention is not limited in this regard.
In the method for adjusting screen brightness according to another embodiment of the present invention, the method for adjusting screen brightness further includes:
s6: acquiring environmental colors in a visual field range;
s7: analyzing the tone attribute of the environment color;
s8: and adjusting the display tone of the screen according to the tone attribute of the environment color.
Specifically, the environmental color of the visual field can be classified into red, red orange, yellow orange, red violet, blue violet, blue-green, and the like. The hue attribute of ambient colors can be divided into warm and cool hues. Wherein, the hue attribute of warmer colors such as red, red orange, yellow orange, and red purple is warm hue, and the hue attribute of warmer colors such as blue, blue purple, and blue green is cool hue. And when the tone attribute of the ambient color is a cold tone, correspondingly adjusting the display tone of the screen to be a warm tone.
The method for adjusting the screen brightness can adjust the screen brightness according to the illumination intensity in the visual field range of human eyes, and can adjust the display tone of the screen according to the environment color in the visual field range, so that the display tone of the screen is adaptive to the environment color, the human eyes are further protected, and the experience of a user is improved.
Further, the mobile terminal comprises a rear camera;
the step S6 of acquiring the environmental color in the field of view includes:
s6.1: shooting through a rear camera to form a second image;
s6.2: acquiring a region of the visual field range of human eyes mapped in the second image;
s6.3: and judging the color in the area to be the environment color.
In step S6.1, when the user uses the mobile terminal, the visual field direction of the human eyes is oriented towards the screen, and therefore, the environmental object that can be captured by the rear camera of the mobile terminal certainly includes the environmental object within the visual field range of the human eyes. Therefore, the environment behind the mobile terminal is shot by the rear camera to form a second image.
In steps S6.2 and S6.3, the environmental objects present at least in some regions in the second image are environmental objects in the field of vision of the human eye. Therefore, after the visual field range of the human eyes is known, the area of the visual field range of the human eyes, which is mapped in the second image, can be captured through the relevant AI technology, and the picture color in the area is the environmental color in the visual field range of the human eyes.
Further, the step S7 of analyzing the hue property of the environment color includes:
s7.1: analyzing RGB three primary colors of the environment color;
s7.2: and judging the tone attribute of the environment color.
The RGB color scheme is a color standard in the industry, and various colors are obtained by changing three color channels of red (R), green (G) and blue (B) and superimposing the three color channels on each other, where RGB represents colors of the three channels of red, green and blue, and the color standard almost includes all colors that can be perceived by human vision, and is one of the most widely used color systems at present. The RGB color can be divided into 255 levels, 24-bit color is also used for identifying the environmental color, the photosensitive chip can collect relevant color information, and different colors can be obtained by RGB three colors according to different mixing ratios. For example, R (0) G (0) B (0) represents white, R (255) G (0) B (0) represents pure red, and R (0) G (0) B (0) represents black. Each of the ambient colors has a corresponding value in the range of R (0) G (0) B (0) -R (255) G (255) B (255).
In step S7.1, RGB analysis is performed on the environment color, and it can be determined which colors the environment color includes and the area ratio of each color in the above-mentioned region.
In step S7.2, the color attribute of the ambient color can be determined according to the color type and the area ratio in the acquired region. For example, if most colors in the region belong to warm colors, the color attribute of the environmental color is determined as warm tone, or alternatively, if a large area in the region is warm colors, the color attribute of the environmental color is determined as warm tone; otherwise, the color is judged to be cool.
Further, in step S8, if the color attribute of the ambient color is determined to be a warm tone, the display color tone of the screen is adjusted to be a warm tone, specifically, the color of the screen may be adjusted to be light orange; if the color attribute of the ambient color is judged to be a cool tone, the display tone of the screen is adjusted to be a cool tone, and specifically, the color of the screen may be adjusted to be light blue. The light orange and light blue are used for illustration, but the present invention is not limited thereto, and the user may set the color according to personal preference.
Referring to fig. 5, the present invention also provides a device for adjusting screen brightness, where a screen is disposed on a mobile terminal, the device including:
the first acquisition module 11 is used for acquiring the visual field direction of human eyes;
a second obtaining module 12, configured to obtain a spatial position of a human eye;
the third acquisition module 13 is used for acquiring the visual field range of human eyes according to the visual field direction and the space position;
a fourth obtaining module 14, configured to obtain an illumination intensity in a field of view;
and the adjusting module 15 is used for adjusting the brightness of the screen according to the illumination intensity.
The embodiment provides a device for adjusting screen brightness, wherein the screen is a screen of a mobile terminal. According to the invention, the spatial position and the visual field direction of human eyes of a user are respectively acquired through the first acquisition module 11 and the second acquisition module 12, the visual field range of the human eyes is determined according to the visual field direction and the spatial position through the third acquisition module 13, then the illumination intensity in the visual field range is acquired through the fourth acquisition module 14, and the brightness of the screen of the mobile terminal is adjusted through the adjusting module 15 according to the acquired illumination intensity, so that the brightness is adaptive to the ambient illumination intensity in the visual field range of the human eyes, the screen brightness is prevented from being too high or too dark, the effect of accurately adjusting the screen brightness is achieved, and great effects are achieved in the aspects of preventing eye fatigue of the user, maintaining eye health of the user and improving experience of the user.
The invention also provides a computer device, which can be a server, and the internal structure of the computer device can be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a program of the screen brightness adjustment method, and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the method for adjusting screen brightness in the above embodiments.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for adjusting screen brightness in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for adjusting screen brightness, wherein the screen is arranged on a mobile terminal, the method comprising:
acquiring the visual field direction of human eyes;
acquiring the spatial position of human eyes;
acquiring the visual field range of the human eyes according to the visual field direction and the spatial position;
acquiring the illumination intensity in the visual field range;
and adjusting the brightness of the screen according to the illumination intensity.
2. The method for adjusting screen brightness according to claim 1, wherein the step of obtaining the visual field direction of human eyes comprises:
acquiring the screen orientation of the screen;
acquiring the inclination direction of the human eyes relative to the screen;
and determining the visual field direction of the human eyes according to the screen orientation and the inclination direction.
3. The method for adjusting the brightness of the screen according to claim 2, wherein a front camera is disposed on the screen, and the step of obtaining the inclination direction of the human eye relative to the screen comprises:
shooting the human eyes through the front camera to form a first image;
acquiring an imaging position of the human eye in the first image;
and calculating the inclination direction of the human eyes relative to the screen according to the imaging position.
4. The screen brightness adjusting method of claim 3, wherein the step of obtaining the spatial position of the human eye comprises:
acquiring the area ratio of the human eyes in the first image;
judging the distance between the human eyes and the screen according to the area ratio;
and determining the space position of the human eyes according to the visual field direction and the distance.
5. The screen brightness adjusting method according to claim 1, wherein the mobile terminal is provided with a front camera and a rear camera; the view range comprises a first view range in front of the screen and a second view range behind the screen; the step of acquiring the illumination intensity in the field of view comprises:
acquiring first illumination intensity in the first visual field range through the front camera;
and acquiring second illumination intensity in the second visual field range through the rear camera.
6. The method for adjusting the brightness of the screen according to claim 6, wherein the step of adjusting the brightness of the screen according to the illumination intensity comprises:
adding the first illumination intensity and the second illumination intensity according to a certain weight to obtain target brightness;
and adjusting the brightness of the screen to the target brightness.
7. The method for adjusting screen brightness according to claim 1, further comprising:
acquiring the environmental color in the visual field range;
analyzing the tone attribute of the environment color;
and adjusting the display tone of the screen according to the tone attribute of the environment color.
8. An apparatus for adjusting screen brightness, wherein the screen is disposed on a mobile terminal, the apparatus comprising:
the first acquisition module is used for acquiring the visual field direction of human eyes;
the second acquisition module is used for acquiring the spatial position of human eyes;
the third acquisition module is used for acquiring the visual field range of the human eyes according to the visual field direction and the space position;
the fourth acquisition module is used for acquiring the illumination intensity in the visual field range;
and the adjusting module is used for adjusting the brightness of the screen according to the illumination intensity.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method according to any one of claims 1 to 7.
CN202011262213.3A 2020-11-12 2020-11-12 Screen brightness adjusting method and device, computer equipment and storage medium Pending CN112379803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011262213.3A CN112379803A (en) 2020-11-12 2020-11-12 Screen brightness adjusting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011262213.3A CN112379803A (en) 2020-11-12 2020-11-12 Screen brightness adjusting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112379803A true CN112379803A (en) 2021-02-19

Family

ID=74583244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011262213.3A Pending CN112379803A (en) 2020-11-12 2020-11-12 Screen brightness adjusting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112379803A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339037A (en) * 2021-12-23 2022-04-12 臻迪科技股份有限公司 Automatic focusing method, device, equipment and storage medium
CN116001679A (en) * 2023-01-09 2023-04-25 浙江百康光学股份有限公司 Method and system for controlling atmosphere lamp in vehicle
CN116501281A (en) * 2023-06-27 2023-07-28 京东方艺云(杭州)科技有限公司 Anti-dazzle method and device, electronic equipment and storage medium
CN117012135A (en) * 2023-10-08 2023-11-07 深圳市卓信特通讯科技有限公司 Display screen adjusting method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109313797A (en) * 2016-10-25 2019-02-05 华为技术有限公司 A kind of image display method and terminal
CN109658904A (en) * 2019-02-20 2019-04-19 北京七鑫易维信息技术有限公司 A kind of screen luminance adjustment method and device
CN109842723A (en) * 2018-12-27 2019-06-04 努比亚技术有限公司 Terminal and its screen brightness control method and computer readable storage medium
CN111586230A (en) * 2019-02-17 2020-08-25 侯力宇 System and method for adjusting screen brightness of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109313797A (en) * 2016-10-25 2019-02-05 华为技术有限公司 A kind of image display method and terminal
CN109842723A (en) * 2018-12-27 2019-06-04 努比亚技术有限公司 Terminal and its screen brightness control method and computer readable storage medium
CN111586230A (en) * 2019-02-17 2020-08-25 侯力宇 System and method for adjusting screen brightness of mobile terminal
CN109658904A (en) * 2019-02-20 2019-04-19 北京七鑫易维信息技术有限公司 A kind of screen luminance adjustment method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339037A (en) * 2021-12-23 2022-04-12 臻迪科技股份有限公司 Automatic focusing method, device, equipment and storage medium
CN116001679A (en) * 2023-01-09 2023-04-25 浙江百康光学股份有限公司 Method and system for controlling atmosphere lamp in vehicle
CN116001679B (en) * 2023-01-09 2023-06-27 浙江百康光学股份有限公司 Method and system for controlling atmosphere lamp in vehicle
CN116501281A (en) * 2023-06-27 2023-07-28 京东方艺云(杭州)科技有限公司 Anti-dazzle method and device, electronic equipment and storage medium
CN117012135A (en) * 2023-10-08 2023-11-07 深圳市卓信特通讯科技有限公司 Display screen adjusting method, device, equipment and storage medium
CN117012135B (en) * 2023-10-08 2024-02-02 深圳市卓信特通讯科技有限公司 Display screen adjusting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112379803A (en) Screen brightness adjusting method and device, computer equipment and storage medium
US10085011B2 (en) Image calibrating, stitching and depth rebuilding method of a panoramic fish-eye camera and a system thereof
TWI675583B (en) Augmented reality system and color compensation method thereof
CN103595986B (en) Stereoscopic image display device, image processing device, and image processing method
US9325968B2 (en) Stereo imaging using disparate imaging devices
KR101244297B1 (en) display device
US9615081B2 (en) Method and multi-camera portable device for producing stereo images
US20170127045A1 (en) Image calibrating, stitching and depth rebuilding method of a panoramic fish-eye camera and a system thereof
CN102124749B (en) Stereoscopic image display apparatus
WO2018119406A1 (en) Image processing to determine center of balance in a digital image
CN211128024U (en) 3D display device
WO2021046065A1 (en) Intelligent stylus beam and assisted probabilistic input to element mapping in 2d and 3d graphical use interfaces
CN102572492B (en) Image processing device and method
US20150009294A1 (en) Image processing device and method, and imaging device
CN113938602B (en) Image processing method, electronic device, chip and readable storage medium
EP4072131A1 (en) Image processing method and apparatus, terminal and storage medium
CN102122075A (en) Estimation system and method based on inter-image mutual crosstalk in projection stereoscope visible area
CN106576134A (en) Image display device and image display method
CN100423545C (en) Camera and its accessories, and camera system
CN106803920B (en) Image processing method and device and intelligent conference terminal
WO2022099547A1 (en) Method and apparatus for adjusting brightness of screen, and computer device
CN109558870A (en) A kind of wearable device and barrier prompt method
KR20180000696A (en) A method and apparatus for creating a pair of stereoscopic images using least one lightfield camera
TWI603225B (en) Viewing angle adjusting method and apparatus of liquid crystal display
CN115514948B (en) Image adjusting method and electronic device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210219