CN116501281A - Anti-dazzle method and device, electronic equipment and storage medium - Google Patents

Anti-dazzle method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116501281A
CN116501281A CN202310760807.4A CN202310760807A CN116501281A CN 116501281 A CN116501281 A CN 116501281A CN 202310760807 A CN202310760807 A CN 202310760807A CN 116501281 A CN116501281 A CN 116501281A
Authority
CN
China
Prior art keywords
light source
camera
current image
image information
screen
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
CN202310760807.4A
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.)
Boe Yiyun Hangzhou Technology Co ltd
BOE Art Cloud Technology Co Ltd
BOE Art Cloud Suzhou Technology Co Ltd
Original Assignee
Boe Yiyun Hangzhou Technology Co ltd
BOE Art Cloud Technology Co Ltd
BOE Art Cloud Suzhou Technology Co Ltd
Beijing BOE Art Cloud 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 Boe Yiyun Hangzhou Technology Co ltd, BOE Art Cloud Technology Co Ltd, BOE Art Cloud Suzhou Technology Co Ltd, Beijing BOE Art Cloud Technology Co Ltd filed Critical Boe Yiyun Hangzhou Technology Co ltd
Priority to CN202310760807.4A priority Critical patent/CN116501281A/en
Publication of CN116501281A publication Critical patent/CN116501281A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/766Arrangements for image or video recognition or understanding using pattern recognition or machine learning using regression, e.g. by projecting features on hyperplanes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Liquid Crystal (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides an anti-dazzle method, an anti-dazzle device, electronic equipment and a storage medium, wherein the anti-dazzle method comprises the following steps: and responding to the anti-dazzle opening operation of the terminal equipment, acquiring current image information through a camera, calculating light spots generated on a screen of the terminal equipment based on the current image information, and adjusting the brightness of the screen at the light spots. The method and the device can enhance the local brightness of the screen, so that reflected light can enter human eyes less, and the anti-dazzle effect is achieved.

Description

Anti-dazzle method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an anti-dazzle method, an anti-dazzle device, electronic equipment and a storage medium.
Background
Along with the popularization of computers, notebooks and smart phones, screens of the smart devices become indispensable articles in the life of people, and a non-negligible problem, namely a large amount of glare generated by the screens, can occur due to the fact that people watch the smart screens for a long time. These screen glares can lead to refractive errors or visual dysfunction, and the possibility of inducing neurological and human biological clock disorders. Glare (Vision) is a visual condition that is caused to be visually uncomfortable and to reduce the visibility of objects due to an improper brightness distribution in the field of view, or due to extreme brightness contrast in space or time. A bright feeling is produced in the visual field that the human eyes cannot adapt to, and can cause aversion, discomfort or even loss of vision. An excessive brightness or an excessive brightness change in the front-rear direction occurs at a local place in the visual field. Glare is one of the important causes of visual fatigue.
According to the way of producing the glare, direct glare and indirect glare can be classified. The glare source of direct glare is located in the same direction and in the vicinity of the object to be observed, and refers to glare produced by light emitted from a light-emitting body having high brightness or glare not completely blocked in the lighting environment. The glare source of indirect glare is typically in a non-viewing direction, which is typically caused by light reflected from a highly smooth surface. Under indirect glare, when a screen such as a mobile phone and a computer is watched for a long time, the glare which continuously flickers on the screen can continuously stimulate eyes. As the eye continues to catch these rays and shadows, the eye will feel tired and damage the tear film on the surface of the globe, causing the eye to dry and deepen myopia. When there is intense light in a darker environment, the brightness of the two are in sharp contrast, and the intense light damages young retina tissues of children, resulting in visual dysfunction.
Disclosure of Invention
In view of this, the embodiments of the present application provide an anti-glare method, an anti-glare device, an electronic device, and a storage medium, which can adjust the brightness of a screen at a spot in a terminal device, so that human eyes feel softer, and eyes are protected.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides an anti-glare method, including the steps of:
responding to anti-dazzle opening operation of terminal equipment, and acquiring current image information through a camera, wherein the relative positions of the camera and the terminal equipment are fixed;
acquiring light source position information and face position information in the current image information according to the current image information, and determining reflection points on a screen of the terminal equipment when a light source irradiates a face through screen reflection according to the light source position information and the face position information;
and determining the reflection point as a light spot, and adjusting the screen brightness at the light spot.
In a possible implementation manner, the terminal device comprises a light source sensor, and the terminal device turns on anti-glare when the terminal device meets at least one of the following conditions:
when the light source sensor detects that the illumination intensity is higher than a first threshold value;
or when the light source sensor detects that the duration of the illumination intensity above the second threshold exceeds a time threshold.
In one possible implementation manner, obtaining the light source position information in the current image information according to the current image information includes:
determining at least one target point with brightness higher than a brightness threshold value from the current image information;
taking the at least one target point as a target light source;
acquiring a first vertical distance between the target light source and the camera;
acquiring a second vertical distance between the target light source and the central axis of the camera based on the internal parameters of the camera;
determining a first included angle between a straight line from the target light source to the focal point of the camera and the central axis of the camera;
and determining the light source position information of the target light source in the current image information based on the current image information and the first included angle.
In a possible implementation manner, the obtaining face position information in the current image information according to the current image information includes:
determining a target face from the current image information;
acquiring a third vertical distance between the target face and the camera;
acquiring a fourth vertical distance between the target face and the central axis of the camera based on the internal parameters of the camera;
determining a second included angle between a straight line from the target face to the focal point of the camera and the central axis of the camera;
and determining the face position information of the target face in the current image information based on the current image information and the second included angle.
In a possible implementation manner, the determining, according to the light source position information and the face position information, a reflection point on a screen of the terminal device when the light source reflects to the face via the screen includes:
determining a first relative position relationship between a target light source and the target face relative to the camera according to the light source position information and the face position information;
determining a second relative position relation between the target light source and the target face relative to the terminal equipment according to the relative positions of the camera and the terminal equipment;
determining a normal to light reflection based on the second relative positional relationship and a principle of reflection of light;
and taking a point at which the normal line intersects with the terminal equipment as the reflection point.
In a possible implementation manner, the adjusting the screen brightness at the light spot includes:
and (3) increasing the brightness of the screen at the light spot, wherein the brightness of the screen at the light spot gradually decreases from the center of the light spot to the outer side.
In one possible embodiment, the method further comprises:
and when the duration after the screen brightness at the light spot is adjusted exceeds the preset reminding time, displaying prompt information on the screen of the terminal equipment, wherein the prompt information is used for reminding the current user to rest.
In a second aspect, embodiments of the present application further provide an anti-glare device, the device comprising:
the acquisition module is used for responding to the anti-dazzle opening operation of the terminal equipment and acquiring current image information through a camera, wherein the relative positions of the camera and the terminal equipment are fixed;
the determining module is used for acquiring light source position information and face position information in the current image information according to the current image information, and determining reflection points on a screen of the terminal equipment when a light source irradiates a face through screen reflection according to the light source position information and the face position information;
and the adjusting module is used for determining the reflection point as a light spot and adjusting the screen brightness at the light spot.
In a third aspect, embodiments of the present application further provide an electronic device, including: a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor in communication with the storage medium via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the anti-glare method of any one of the first aspects.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the anti-glare method of any one of the first aspects.
The embodiment of the application has the following beneficial effects:
the method comprises the steps of responding to anti-dazzle opening operation of terminal equipment, acquiring current image information by a camera, acquiring light source position information and face position information in the current image information according to the current image information, determining reflection points on a screen of the terminal equipment when a light source shines to the face through screen reflection according to the light source position information and the face position information, determining the reflection points as light spots, adjusting screen brightness at the light spots, adjusting the brightness, and gradually changing the brightness of the area, so that impact of the light spots on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of steps S101-S103 provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of steps S201 to S204 provided in the embodiment of the present application;
FIG. 3 is a schematic diagram of position measurement provided by an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an antiglare device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In the following description, the terms "first", "second", "third" and the like are merely used to distinguish similar objects and do not represent a particular ordering of the objects, it being understood that the "first", "second", "third" may be interchanged with a particular order or sequence, as permitted, to enable embodiments of the application described herein to be practiced otherwise than as illustrated or described herein.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application and is not intended to be limiting of the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of steps S101 to S103 of an anti-glare method according to an embodiment of the present application, and will be described with reference to steps S101 to S103 shown in fig. 1.
Step S101, responding to anti-dazzle opening operation of terminal equipment, and acquiring current image information through a camera, wherein the relative positions of the camera and the terminal equipment are fixed;
step S102, acquiring light source position information and face position information in the current image information according to the current image information, and determining reflection points on a screen of the terminal equipment when a light source irradiates a face through screen reflection according to the light source position information and the face position information;
and step S103, determining the reflection point as a light spot, and adjusting the screen brightness at the light spot.
According to the anti-dazzle method, the current image information is acquired by the camera in response to the anti-dazzle starting operation of the terminal equipment, then the light source position information and the face position information in the current image information are acquired according to the current image information, the reflection point on the screen of the terminal equipment when the light source irradiates the face through screen reflection is determined according to the light source position information and the face position information, finally the reflection point is determined to be a light spot, the screen brightness at the light spot is adjusted, the brightness is adjusted, the gradually changed brightness of the area is increased, and the impact of the light spot on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
The following describes the above exemplary steps of the embodiments of the present application, respectively.
In step S101, current image information is acquired through a camera in response to an anti-glare opening operation of a terminal device, wherein a relative position of the camera and the terminal device is fixed.
In some embodiments, the terminal device includes a light source sensor, and the terminal device turns on the anti-glare when the terminal device meets at least one of the following conditions:
when the light source sensor detects that the illumination intensity is higher than a first threshold value;
or when the light source sensor detects that the duration of the illumination intensity above the second threshold exceeds a time threshold.
Here, the terminal device may be a PC, or may be a mobile device, for example, when the light source sensor of the mobile phone detects that the light intensity is higher than the first threshold, it is determined that a light source is generated and an anti-glare function is turned on, or when the light source sensor of the mobile phone detects that the light intensity is higher than the second threshold for a duration exceeding the time threshold, it is determined that the anti-glare function is required to be turned on, and the first threshold and the second threshold and the time threshold may be flexibly set according to actual needs.
In step S102, light source position information and face position information in the current image information are obtained according to the current image information, and reflection points on a screen of the terminal device when the light source irradiates the face through screen reflection are determined according to the light source position information and the face position information.
In some embodiments, obtaining light source position information in the current image information according to the current image information includes:
determining at least one target point with brightness higher than a brightness threshold value from the current image information;
taking the at least one target point as a target light source;
acquiring a first vertical distance between the target light source and the camera;
acquiring a second vertical distance between the target light source and the central axis of the camera based on the internal parameters of the camera;
determining a first included angle between a straight line from the target light source to the focal point of the camera and the central axis of the camera;
and determining the light source position information of the target light source in the current image information based on the current image information and the first included angle.
In some embodiments, determining the first angle between the line from the target light source to the focal point of the camera and the central axis of the camera may be implemented as follows:
constructing a first right triangle based on the first vertical distance and the second vertical distance, wherein a first right triangle side is a line passing through the first vertical distance along the central axis of the camera from the camera, a second right triangle side is a perpendicular line drawn from the target light source to the central axis of the camera, and a first hypotenuse of the first right triangle is a line connecting the target light source to the camera;
determining a length of the first hypotenuse of the first right triangle based on the Pythagorean theorem;
acquiring a first included angle between the first hypotenuse and the first right-angle side in the first right-angle triangle based on a trigonometric function;
here, referring to fig. 3, fig. 3 is a schematic diagram of position measurement provided in the embodiment of the present application, as shown in fig. 3, after determining a target light source, a first vertical distance from the target light source to the camera may be obtained based on a principle of single/binocular ranging, because the measured distance is actually a vertical distance rather than a true distance, that is, the distance may be regarded as a first right angle edge in fig. 3, further, in the current image information, a distance (scaling in equal proportion, that is, f/d=h/H, f is a focal length of the camera, d is a distance from a lens to a target object, H is a length of an actual object, and d may be obtained based on a principle of single-or binocular ranging in the above embodiment, and further may be regarded as a second right angle edge approximately, and further, in the current image information, a point at which a point at a diagonal intersection point is located on a center line of the camera may be obtained, that is a triangle-shaped angle edge may be easily obtained based on the first angle edge, that is a right angle edge may be obtained by using the first angle edge, that is a distance of the camera, and the distance of the target light source is known relative to the first angle edge.
In some embodiments, obtaining face position information in the current image information according to the current image information includes:
determining a target face from the current image information;
acquiring a third vertical distance between the target face and the camera;
acquiring a fourth vertical distance between the target face and the central axis of the camera based on the internal parameters of the camera;
determining a second included angle between a straight line from the target face to the focal point of the camera and the central axis of the camera;
and determining the face position information of the target face in the current image information based on the current image information and the second included angle.
In some embodiments, determining the second included angle between the straight line from the target face to the focal point of the camera and the central axis of the camera may be implemented as follows:
constructing a second right triangle based on the third vertical distance and the fourth vertical distance, wherein a third right angle side of the second right triangle is a line passing through the third vertical distance along the central axis of the camera from the camera, a fourth right angle side of the second right triangle is a vertical line drawn from the target face to the central axis of the camera, and a second hypotenuse of the second right triangle is a connecting line from the target face to the camera;
determining a length of the second hypotenuse of the second right triangle based on the Pythagorean theorem;
acquiring a second included angle between the second hypotenuse and the third right angle side in the second right angle triangle based on a trigonometric function;
here, based on the same principle as the above embodiment, the positional information of the target face with respect to the camera, that is, the face positional information, can be found.
In addition, the second included angle may also be obtained by the following method:
a1: determining the inclination angle of the target face in the current image information;
a2: and taking the inclination angle as a second included angle between a straight line from the target face to the focus of the camera and the central axis of the camera.
Considering the habit of the user, the target face and the sight line are generally vertical, the inclination angle of the target face can be approximately regarded as an offset angle compared with a screen (central axis of a camera), the target face can be extracted from the current image information for the inclination angle (pose) of the target face, and calculated through an angle regression algorithm of a roll direction angle, such as PCN, or through Euler angle detection, or key points are extracted from the target face, and the inclination angle of the target face is estimated according to the key points.
In some embodiments, referring to fig. 2, fig. 2 is a schematic flow chart of steps S201 to S202 provided in the embodiments of the present application, where determining, according to the light source position information and the face position information, a reflection point on a screen of the terminal device when the light source reflects off the screen and irradiates the face may be implemented through steps S201 to S204, and will be described with reference to specific steps.
In step S201, a first relative positional relationship between a target light source and the target face with respect to the camera is determined according to the light source position information and the face position information.
In step S202, a second relative positional relationship between the target light source and the target face with respect to the terminal device is determined according to the relative positions of the camera and the terminal device.
In step S203, a normal to light reflection is determined based on the second relative positional relationship and the principle of reflection of light.
In step S204, a point at which the normal line intersects with the terminal device is taken as the reflection point.
Here, after the first relative positional relationship between the target light source and the target face with respect to the camera is obtained, since the relative positions of the camera and the terminal device are fixed, the second relative positional relationship between the target light source and the target face with respect to the terminal device (device screen) may be further obtained.
Then, according to the light reflection principle, the normal line of the target light source reflected to the target face through the terminal equipment screen can be determined, and the normal line is perpendicular to the terminal equipment screen, namely, the intersection of the normal line and the screen is the position of a reflection point (light spot).
In step S103, the reflection point is determined as a flare, and the screen brightness at the flare is adjusted.
In some embodiments, the adjusting the screen brightness at the spot includes:
and (3) increasing the brightness of the screen at the light spot, wherein the brightness of the screen at the light spot gradually decreases from the center of the light spot to the outer side. In the embodiments of the present application, the shape of the light spot is generally consistent with the shape of the target light source.
Here, the system adaptively displays matches around the spot, progressively brightens the patch area, and progressively weakens the brightness from the center of the spot to the outside, so that the impact of the spot on vision is weakened.
In some embodiments, the method further comprises:
and when the duration after the screen brightness at the light spot is adjusted exceeds the preset reminding time, displaying prompt information on the screen of the terminal equipment, wherein the prompt information is used for reminding the current user to rest.
Here, a reminding time can be preset, and because the anti-dazzle can only relieve the damage to vision, and the problem of glare can not be completely solved, when the preset reminding time is passed after the screen brightness is adjusted, a reminding message can be displayed on the screen of the terminal equipment (such as a mobile phone) to remind the current user to rest.
In summary, the embodiment of the application has the following beneficial effects:
the method comprises the steps of responding to anti-dazzle opening operation of terminal equipment, acquiring current image information by a camera, acquiring light source position information and face position information in the current image information according to the current image information, determining reflection points on a screen of the terminal equipment when a light source shines to the face through screen reflection according to the light source position information and the face position information, determining the reflection points as light spots, adjusting screen brightness at the light spots, adjusting the brightness, and gradually changing the brightness of the area, so that impact of the light spots on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
Based on the same inventive concept, the embodiment of the present application further provides an anti-dazzle device corresponding to the anti-dazzle method in the first embodiment, and since the principle of solving the problem of the device in the embodiment of the present application is similar to that of the anti-dazzle method described above, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 4, fig. 4 is a schematic structural diagram of an antiglare device 400 according to an embodiment of the present application. The anti-glare device 400 includes:
an obtaining module 401, configured to obtain current image information through a camera in response to an anti-glare opening operation of a terminal device, where a relative position of the camera and the terminal device is fixed;
a determining module 402, configured to obtain light source position information and face position information in the current image information according to the current image information, and determine a reflection point on a screen of the terminal device when the light source irradiates the face through screen reflection according to the light source position information and the face position information;
and the adjusting module 403 is configured to determine the reflection point as a light spot, and adjust the brightness of the screen at the light spot.
Those skilled in the art will appreciate that the function of the implementation of the elements in the anti-glare device 400 shown in fig. 4 may be understood with reference to the foregoing description of the anti-glare method. The functions of the units in the anti-glare device 400 shown in fig. 4 may be implemented by a program running on a processor, or by a specific logic circuit.
In a possible implementation manner, the obtaining module 401 includes a light source sensor, and the terminal device turns on anti-glare when at least one of the following conditions is satisfied:
when the light source sensor detects that the illumination intensity is higher than a first threshold value;
or when the light source sensor detects that the duration of the illumination intensity above the second threshold exceeds a time threshold.
In one possible implementation manner, the determining module 402 obtains light source position information in the current image information according to the current image information, including:
determining at least one target point with brightness higher than a brightness threshold value from the current image information;
taking the at least one target point as a target light source;
acquiring a first vertical distance between the target light source and the camera;
acquiring a second vertical distance between the target light source and the central axis of the camera based on the internal parameters of the camera;
determining a first included angle between a straight line from the target light source to the focal point of the camera and the central axis of the camera;
and determining the light source position information of the target light source in the current image information based on the current image information and the first included angle.
In a possible implementation manner, the determining module 402 obtains face position information in the current image information according to the current image information, including:
determining a target face from the current image information;
acquiring a third vertical distance between the target face and the camera;
acquiring a fourth vertical distance between the target face and the central axis of the camera based on the internal parameters of the camera;
determining a second included angle between a straight line from the target face to the focal point of the camera and the central axis of the camera;
and determining the face position information of the target face in the current image information based on the current image information and the second included angle.
In a possible implementation manner, the determining module 402 determines, according to the light source position information and the face position information, a reflection point on a screen of the terminal device when the light source reflects to the face via the screen, where the determining module includes:
determining a first relative position relationship between a target light source and the target face relative to the camera according to the light source position information and the face position information;
determining a second relative position relation between the target light source and the target face relative to the terminal equipment according to the relative positions of the camera and the terminal equipment;
determining a normal to light reflection based on the second relative positional relationship and a principle of reflection of light;
and taking a point at which the normal line intersects with the terminal equipment as the reflection point.
In one possible implementation, the adjusting module 403 adjusts the screen brightness at the light spot, including:
and (3) increasing the brightness of the screen at the light spot, wherein the brightness of the screen at the light spot gradually decreases from the center of the light spot to the outer side.
In one possible implementation, the adjustment module 403 further includes:
and when the duration after the screen brightness at the light spot is adjusted exceeds the preset reminding time, displaying prompt information on the screen of the terminal equipment, wherein the prompt information is used for reminding the current user to rest.
According to the anti-dazzle device, the current image information is acquired by the camera in response to the anti-dazzle opening operation of the terminal equipment, then the light source position information and the face position information in the current image information are acquired according to the current image information, the reflection point on the screen of the terminal equipment when the light source irradiates the face through screen reflection is determined according to the light source position information and the face position information, finally the reflection point is determined to be a light spot, the screen brightness at the light spot is adjusted, the brightness is adjusted, the gradually changed brightness of the area is increased, and the impact of the light spot on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
As shown in fig. 5, fig. 5 is a schematic diagram of a composition structure of an electronic device 500 according to an embodiment of the present application, where the electronic device 500 includes:
a processor 501, a storage medium 502 and a bus 503, wherein the storage medium 502 stores machine readable instructions executable by the processor 501, when the electronic device 500 is running, the processor 501 communicates with the storage medium 502 through the bus 503, and the processor 501 executes the machine readable instructions to perform the steps of the anti-glare method described in the embodiments of the present application.
In practice, the various components of the electronic device 500 are coupled together via a bus 503. It is understood that the bus 503 is used to enable connected communication between these components. The bus 503 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus 503 in fig. 5.
According to the electronic equipment, the current image information is acquired by the camera through responding to the anti-dazzle opening operation of the terminal equipment, then the light source position information and the face position information in the current image information are acquired according to the current image information, the reflection point on the screen of the terminal equipment when the light source irradiates the face through screen reflection is determined according to the light source position information and the face position information, finally the reflection point is determined to be a light spot, the screen brightness at the light spot is adjusted, the brightness is adjusted, the area of the light spot is gradually changed, and the impact of the light spot on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
The present embodiments also provide a computer readable storage medium storing executable instructions that, when executed by the at least one processor 501, implement the anti-glare method described in the embodiments of the present application.
In some embodiments, the storage medium may be a magnetic random Access Memory (FRAM, ferromagneticRandom Access Memory), read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasableProgrammable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electricallyErasable Programmable Read-Only Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory), or the like; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup Language (HTML, hyperTextMarkup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
The computer readable storage medium obtains current image information by responding to anti-dazzle opening operation of the terminal equipment, obtains light source position information and face position information in the current image information according to the current image information, determines reflection points on a screen of the terminal equipment when a light source irradiates the face through screen reflection according to the light source position information and the face position information, finally determines the reflection points as light spots, adjusts screen brightness at the light spots, increases the brightness, and gradually lightens the area, so that impact of the light spots on vision is weakened. Because the pupils of the eyes can be automatically adjusted according to the received light, the gradually changed brightness is increased, so that the pupils can not be adjusted yet, and the eyes can be stimulated by a large amount of light suddenly, and the eyes are adjusted in a adapting way relatively early, thereby achieving the purposes of eye comfort and anti-glare.
In several embodiments provided in the present application, it should be understood that the disclosed method and electronic device may be implemented in other manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An antiglare method, comprising the steps of:
responding to anti-dazzle opening operation of terminal equipment, and acquiring current image information through a camera, wherein the relative positions of the camera and the terminal equipment are fixed;
acquiring light source position information and face position information in the current image information according to the current image information, and determining reflection points on a screen of the terminal equipment when a light source irradiates a face through screen reflection according to the light source position information and the face position information;
and determining the reflection point as a light spot, and adjusting the screen brightness at the light spot.
2. The method of claim 1, wherein the terminal device comprises a light source sensor, the terminal device turning on anti-glare when the terminal device meets at least one of the following conditions:
when the light source sensor detects that the illumination intensity is higher than a first threshold value;
or when the light source sensor detects that the duration of the illumination intensity above the second threshold exceeds a time threshold.
3. The method of claim 1, wherein obtaining light source location information in the current image information from the current image information comprises:
determining at least one target point with brightness higher than a brightness threshold value from the current image information;
taking the at least one target point as a target light source;
acquiring a first vertical distance between the target light source and the camera;
acquiring a second vertical distance between the target light source and the central axis of the camera based on the internal parameters of the camera;
determining a first included angle between a straight line from the target light source to the focal point of the camera and the central axis of the camera;
and determining the light source position information of the target light source in the current image information based on the current image information and the first included angle.
4. The method according to claim 1, wherein acquiring face position information in the current image information according to the current image information includes:
determining a target face from the current image information;
acquiring a third vertical distance between the target face and the camera;
acquiring a fourth vertical distance between the target face and the central axis of the camera based on the internal parameters of the camera;
determining a second included angle between a straight line from the target face to the focal point of the camera and the central axis of the camera;
and determining the face position information of the target face in the current image information based on the current image information and the second included angle.
5. The method according to claim 1, wherein the determining a reflection point on the screen of the terminal device when the light source is reflected toward the face via the screen based on the light source position information and the face position information includes:
determining a first relative position relationship between a target light source and the target face relative to the camera according to the light source position information and the face position information;
determining a second relative position relation between the target light source and the target face relative to the terminal equipment according to the relative positions of the camera and the terminal equipment;
determining a normal to light reflection based on the second relative positional relationship and a principle of reflection of light;
and taking a point at which the normal line intersects with the terminal equipment as the reflection point.
6. The method of claim 1, wherein said adjusting the screen brightness at the spot comprises:
and (3) increasing the brightness of the screen at the light spot, wherein the brightness of the screen at the light spot gradually decreases from the center of the light spot to the outer side.
7. The method according to claim 1, wherein the method further comprises:
and when the duration after the screen brightness at the light spot is adjusted exceeds the preset reminding time, displaying prompt information on the screen of the terminal equipment, wherein the prompt information is used for reminding the current user to rest.
8. An anti-glare device, the device comprising:
the acquisition module is used for responding to the anti-dazzle opening operation of the terminal equipment and acquiring current image information through a camera, wherein the relative positions of the camera and the terminal equipment are fixed;
the determining module is used for acquiring light source position information and face position information in the current image information according to the current image information, and determining reflection points on a screen of the terminal equipment when a light source irradiates a face through screen reflection according to the light source position information and the face position information;
and the adjusting module is used for determining the reflection point as a light spot and adjusting the screen brightness at the light spot.
9. An electronic device, comprising: a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor in communication with the storage medium via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the anti-glare method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the antiglare method according to any one of claims 1 to 7.
CN202310760807.4A 2023-06-27 2023-06-27 Anti-dazzle method and device, electronic equipment and storage medium Pending CN116501281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310760807.4A CN116501281A (en) 2023-06-27 2023-06-27 Anti-dazzle method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310760807.4A CN116501281A (en) 2023-06-27 2023-06-27 Anti-dazzle method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116501281A true CN116501281A (en) 2023-07-28

Family

ID=87325134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310760807.4A Pending CN116501281A (en) 2023-06-27 2023-06-27 Anti-dazzle method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116501281A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854661A (en) * 1997-09-30 1998-12-29 Lucent Technologies Inc. System and method for subtracting reflection images from a display screen
CN109859718A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 Screen brightness regulation method and terminal device
CN110060617A (en) * 2019-03-29 2019-07-26 努比亚技术有限公司 A kind of method, apparatus, terminal and the readable storage medium storing program for executing of screen light-dark cycle
CN112379803A (en) * 2020-11-12 2021-02-19 深圳市沃特沃德股份有限公司 Screen brightness adjusting method and device, computer equipment and storage medium
CN114339037A (en) * 2021-12-23 2022-04-12 臻迪科技股份有限公司 Automatic focusing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854661A (en) * 1997-09-30 1998-12-29 Lucent Technologies Inc. System and method for subtracting reflection images from a display screen
CN109859718A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 Screen brightness regulation method and terminal device
CN110060617A (en) * 2019-03-29 2019-07-26 努比亚技术有限公司 A kind of method, apparatus, terminal and the readable storage medium storing program for executing of screen light-dark cycle
CN112379803A (en) * 2020-11-12 2021-02-19 深圳市沃特沃德股份有限公司 Screen brightness adjusting method and device, computer equipment and storage medium
CN114339037A (en) * 2021-12-23 2022-04-12 臻迪科技股份有限公司 Automatic focusing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6629717B2 (en) Method of controlling head-mounted electro-optical device adapted to wearer
US10684680B2 (en) Information observation method and information observation device
US10788684B2 (en) Method for adapting the optical function of an adaptive ophthalmic lenses system
ES2922136T3 (en) Determination of eye opening with an eye tracking device
CN109314751B (en) Light supplementing method, light supplementing device and electronic equipment
CN111414114A (en) Display adjustment method and device, electronic equipment and storage medium
ES2464529T3 (en) Procedure and display system, which stimulate the flickering of a user by subliminal modification of display parameters
CN103902043A (en) Intelligent terminal and prompting method thereof
US20150175106A1 (en) Method for controlling a lighting brightness of a lit motor vehicle instrument as well as a motor vehicle with at least one dimmably lit motor vehicle instrument
CN106066761B (en) Control method and control device
CN106080136B (en) Incident light intensity control method and device
TWI521384B (en) Electronic device with eyeball tracking function and control method thereof
WO2019044945A1 (en) Iris recognition system, iris recognition method, and storage medium
US20210080749A1 (en) Conact lens and communication system
CN112396998A (en) Vehicle-mounted display control system, method and device
CN116501281A (en) Anti-dazzle method and device, electronic equipment and storage medium
CN109716204B (en) Method for managing the display of images to a user of an optical system
CN106201414B (en) Control method, control device and electronic device
CN111033562B (en) Image processing system, image processing method, and storage medium
CN111741563A (en) Eye protection method and device for adjusting ambient light, terminal device and readable storage medium
CN111414078A (en) Data processing method and device, electronic equipment and storage medium
JP2006250719A (en) Instrument for vehicle
CN115177240A (en) Light environment and attitude detection method, device and system based on wearable equipment
KR20170066789A (en) Tanning time sunglasses
CN106201253B (en) Control method, control device 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