CN112433614A - Eyesight protection method, device, equipment and computer readable storage medium - Google Patents

Eyesight protection method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112433614A
CN112433614A CN202011342526.XA CN202011342526A CN112433614A CN 112433614 A CN112433614 A CN 112433614A CN 202011342526 A CN202011342526 A CN 202011342526A CN 112433614 A CN112433614 A CN 112433614A
Authority
CN
China
Prior art keywords
target
spatial position
glasses
vision protection
ambient light
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
CN202011342526.XA
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202011342526.XA priority Critical patent/CN112433614A/en
Publication of CN112433614A publication Critical patent/CN112433614A/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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G02OPTICS
    • G02CSPECTACLES; SUNGLASSES OR GOGGLES INSOFAR AS THEY HAVE THE SAME FEATURES AS SPECTACLES; CONTACT LENSES
    • G02C7/00Optical parts
    • G02C7/10Filters, e.g. for facilitating adaptation of the eyes to the dark; Sunglasses

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Ophthalmology & Optometry (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Optics & Photonics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a vision protection method, which comprises the following steps: when a vision protection instruction is received, acquiring the type of the vision protection instruction; if the type of the vision protection instruction is ambient light detection, obtaining ambient light information through the target glasses, and adjusting the display color of the lenses of the target glasses according to the ambient light information; if the type of the vision protection instruction is sitting posture detection, acquiring the current spatial position of the target glasses; and when the current spatial position is not matched with the preset spatial position, outputting sitting posture adjustment prompt information to prompt a wearer of the target glasses to adjust the sitting posture. The invention also discloses a vision protection device, equipment and a computer readable storage medium. According to the invention, the stronger adaptability and more functions of the eyesight protection glasses are realized by acquiring the ambient light information or the sitting posture of the user, adjusting the display color of the lenses or outputting the prompt information.

Description

Eyesight protection method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for eyesight protection.
Background
At present, the myopia rate of primary and secondary school students is higher and higher, even a plurality of students become deep myopia in the primary school, which brings trouble to parents of the students and brings certain confusion to teachers in schools. The reasons for this phenomenon are many, for example, students may cause myopia or aggravate myopia due to overuse of electronic products such as mobile phones and computers, errors in writing postures, and the like, the existing eyesight protection glasses need to be configured for each person independently, the universal adaptability is poor, and the existing eyesight protection glasses are single in function and cannot perform different eyesight protection for different environmental scenes.
Disclosure of Invention
The invention mainly aims to provide a vision protection method, a device, equipment and a computer readable storage medium, and aims to solve the technical problems of poor adaptability and single function of the existing vision protection glasses.
In addition, in order to achieve the above object, the present invention also provides a vision protection method, comprising the steps of:
when a vision protection instruction is received, acquiring the type of the vision protection instruction;
if the type of the vision protection instruction is ambient light detection, obtaining ambient light information through the target glasses, and adjusting the display color of the lenses of the target glasses according to the ambient light information;
if the type of the vision protection instruction is sitting posture detection, acquiring the current spatial position of the target glasses;
and when the current spatial position is not matched with the preset spatial position, outputting sitting posture adjustment prompt information to prompt a wearer of the target glasses to adjust the sitting posture.
Optionally, if the type of the eyesight protection instruction is ambient light detection, the step of obtaining ambient light information through the target glasses includes:
if the type of the vision protection instruction is ambient light detection, acquiring a target video through the target glasses;
judging whether a first target object exists in the target video, wherein the first target object is a luminous object;
if the first target object exists in the target video, acquiring blue light intensity in the emitted light of the first target object, and taking the blue light intensity as ambient light information;
and if the first target object does not exist in the target video, acquiring ultraviolet intensity through the target glasses, and taking the ultraviolet intensity as ambient light information.
Optionally, if the first target object exists in the target video, the step of obtaining a blue light intensity in the emission light of the first target object, and using the blue light intensity as the ambient light information includes:
if the first target object exists in the target video, acquiring an edge profile of the first target object;
if the edge contour is in a preset regular shape, judging whether a preset identification image is attached to the first target object;
and if the preset identification map is pasted on the first target object, acquiring the blue light intensity in the emitted light of the first target object, and taking the blue light intensity as the ambient light information.
Optionally, the step of adjusting the display color of the lens of the target glasses according to the ambient light information includes:
if the ambient light information is the blue light intensity, adjusting the display color of the lens of the target glasses to a first preset color;
and if the ambient light information is the ultraviolet intensity, adjusting the display color of the lens of the target glasses to a second preset color.
Optionally, when a vision protection instruction is received, before the step of obtaining the type of the vision protection instruction, the method includes:
when a sitting posture calibration instruction is received, acquiring spatial position information of the target glasses through a preset sensor;
judging whether the target glasses are in a horizontal state or not according to the spatial position information;
and if the target glasses are in the horizontal state, taking the spatial position corresponding to the spatial position information as a preset spatial position.
Optionally, after the step of determining whether the target glasses are in a horizontal state according to the spatial position information, the method includes:
if a first horizontal axis in the spatial position information is vertical to a gravity axis in the spatial position information and a second horizontal axis in the spatial position information is vertical to the gravity axis, determining that the target glasses are in the horizontal state;
and if the first horizontal axis in the spatial position information is not perpendicular to the gravity axis in the spatial position information, and/or the second horizontal axis in the spatial position information is not perpendicular to the gravity axis, determining that the target glasses are not in the horizontal state.
Optionally, if the type of the vision protection instruction is sitting posture detection, after the step of obtaining the current spatial position of the target glasses, the method includes:
if a third horizontal axis in the current spatial position is not perpendicular to the gravity axis and/or a fourth horizontal axis in the current spatial position is not perpendicular to the gravity axis, acquiring a first included angle between the third horizontal axis and the gravity axis and a second included angle between the fourth horizontal axis and the gravity axis;
and if the first included angle is smaller than a first preset threshold value and/or the second included angle is smaller than a second preset threshold value, judging that the current spatial position is not matched with a preset spatial position.
In addition, to achieve the above object, the present invention also provides a vision protection apparatus comprising:
the eyesight protection instruction receiving module is used for acquiring the type of the eyesight protection instruction when the eyesight protection instruction is received;
the ambient light information acquisition module is used for acquiring ambient light information through the target glasses if the type of the vision protection instruction is ambient light detection, and adjusting the display color of the lenses of the target glasses according to the ambient light information;
the spatial position acquisition module is used for acquiring the current spatial position of the target glasses if the type of the vision protection instruction is sitting posture detection;
and the prompting module is used for outputting sitting posture adjustment prompting information when the current spatial position is not matched with a preset spatial position so as to prompt a wearer of the target glasses to adjust the sitting posture.
Further, to achieve the above object, the present invention also provides a vision protection apparatus comprising: a memory, a processor and a vision protection program stored on the memory and executable on the processor, the vision protection program when executed by the processor implementing the steps of the vision protection method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a vision protection program stored thereon, which when executed by a processor, implements the steps of the vision protection method as described above.
The embodiment of the invention provides a vision protection method, a device, equipment and a computer readable storage medium. In the embodiment of the invention, when the eyesight protection program receives the eyesight protection instruction, the type of the eyesight protection instruction is obtained, when the type of the vision protection instruction is ambient light detection, the ambient light information around the target glasses is obtained through the electronic components arranged on the target glasses, the display color of the lenses of the target glasses is adjusted according to the ambient light information, when the type of the vision protection instruction is sitting posture detection, the current space position of the target glasses is obtained through the electronic components arranged on the target glasses, and outputs sitting posture adjustment prompt information when the current spatial position is not matched with the preset spatial position, the invention can adjust the display color of the lens or output the prompt information by acquiring the ambient light information or the sitting posture of the user, thereby realizing stronger adaptability and more functions of the eyesight protection glasses.
Drawings
Fig. 1 is a schematic hardware structure diagram of an embodiment of a vision protection apparatus provided in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the vision protection method of the present invention;
FIG. 3 is a schematic flow chart of a vision protection method according to a second embodiment of the present invention;
fig. 4 is a functional block diagram of an embodiment of the vision protection apparatus 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 following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The eyesight protection terminal (also called terminal, equipment or terminal equipment) in the embodiment of the invention can be a PC (personal computer), or can be mobile terminal equipment with a display function, such as a smart phone, a tablet personal computer, a portable computer and the like, or can be glasses integrated with a camera device and various sensors.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a vision protection program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a vision protection program stored in the memory 1005 that, when executed by the processor, performs the operations of the vision protection method provided by the embodiments described below.
Based on the hardware structure of the equipment, the embodiment of the eyesight protection method is provided.
Referring to fig. 2, in a first embodiment of the vision protection method of the present invention, the vision protection method comprises:
and step S10, when the eyesight protection instruction is received, acquiring the type of the eyesight protection instruction.
The vision protection method in this embodiment is applied to target glasses, where the target glasses refer to glasses that integrate functions such as a lens color adjustment function, a sitting posture detection function, and an ambient light detection function, and the vision protection instruction is a trigger instruction executed by a vision protection program, and the instruction may be manually triggered by a user, for example, the user clicks a "button" on the target glasses to start vision protection, and the instruction may also be automatically triggered, for example, when the target glasses are started, the vision protection program is automatically triggered to execute.
Step S20, if the type of the eyesight protection instruction is ambient light detection, obtaining ambient light information through the target glasses, and adjusting a lens display color of the target glasses according to the ambient light information.
It can be known that, when the execution of the eyesight protection program is triggered, if the type of the eyesight protection instruction triggering the execution of the eyesight protection program is an ambient light detection instruction, it can be understood that, the eyesight protection program obtains ambient light information around the target glasses through a photosensitive element (for example, a light sensor) installed on the target glasses, when the target glasses are worn by a user, the ambient light information around the target glasses is the ambient light information around the eyes of the user, and it can be known from the damage of light to the eyes that the detected ambient light information includes ultraviolet intensity, light intensity, blue light intensity, and the like, the lenses of the target glasses are of a double-layer structure, a certain gap is formed between the two layers of lenses, the gap is filled with an inert gas, and the inert gas is changed into a specific color by changing the temperature and the pressure in the gap, so as to achieve the purpose of protecting eyesight, for example, the inert gas is changed into black and gray, and the target glasses can be changed into sunglasses to effectively block ultraviolet rays.
Step S30, if the type of the vision protection instruction is sitting posture detection, acquiring the current spatial position of the target glasses.
It should be noted that, when the eyesight protection program is triggered, if the type of the eyesight protection instruction triggering the eyesight protection program to execute is a sitting posture detection instruction, it can be understood that the eyesight protection program determines the current spatial position of the target glasses through the acceleration chip and the gyroscope module installed on the target glasses, the user correctly wears the target glasses and the sitting posture is correct, the spatial positions of the acceleration chip and the gyroscope module are taken as the standard positions, when the user wears the target glasses to perform the action of head lowering or head lowering, the acceleration chip and the gyroscope module will generate a deviation with respect to the standard positions, finally, the eyesight protection program determines whether the user is sitting correctly according to the degree of the deviation (expressed by the deviation angle), and it can be known that the current spatial position of the target glasses is obtained by first determining the gravity axis through the acceleration chip and the gyroscope module, and then determining a plane (namely a horizontal plane) vertical to the gravity axis according to the gravity axis, determining the current spatial position of the target glasses by acquiring the positions of the acceleration chip and the gyroscope module relative to the gravity axis in real time with the position on the horizontal plane as a standard position and the gravity axis unchanged no matter how the target glasses rotate.
And step S40, when the current spatial position is not matched with the preset spatial position, outputting sitting posture adjustment prompt information to prompt the wearer of the target glasses to adjust the sitting posture.
It can be known that, by using the acceleration chip and the gyroscope module installed in the target glasses, the gravity axis is determined, a plane perpendicular to the gravity axis is used as a horizontal plane, and a position on the horizontal plane is used as a standard position, that is, a preset spatial position in this embodiment, it can be understood that the acceleration chip and the gyroscope module can be used as a cube, a first plane of the cube is perpendicular to the gravity axis, the first plane is the horizontal plane, when the eyesight protection program receives a sitting posture detection instruction, the eyesight protection program obtains a current spatial position of the cube and obtains an included angle between the first plane and the gravity axis, it can be known that, if a user who correctly wears the target glasses has a correct sitting posture, an included angle between the first plane and the gravity axis should be about 90 degrees, if an actually obtained included angle (between the first plane and the gravity axis) is greatly different from 90 degrees, the eyesight protection program determines that the current spatial position is not matched with the preset spatial position, in this case, the vision protection program outputs the sitting posture adjustment prompt information, the output form of the prompt information may be voice, and the purpose of outputting the sitting posture adjustment prompt information is to prompt the user (i.e. the wearer of the target glasses in this embodiment) to adjust the sitting posture, and the output of the prompt information is not stopped until the user adjusts the sitting posture or the operation of the vision protection program is closed.
Specifically, the step of step S20 refinement includes:
step a1, if the type of the eyesight protection instruction is ambient light detection, acquiring a target video through the target glasses.
Step a2, determining whether a first target object exists in the target video, wherein the first target object is a luminous object.
Step a3, if the first target object exists in the target video, acquiring the blue light intensity in the emitted light of the first target object, and using the blue light intensity as the ambient light information.
Step a4, if the first target object does not exist in the target video, acquiring ultraviolet intensity through the target glasses, and using the ultraviolet intensity as the ambient light information.
It can be known from the eye condition of a normal person that the scene whose eyesight needs to be protected includes: staring at a computer, staring at a highlight and having an nonstandard sitting posture during writing, wherein scenes directly related to light include watching a computer and watching the highlight, and no matter watching a television or watching the highlight, ambient light information needs to be acquired through a light sensor, and one of the schemes for acquiring the ambient light information in the embodiment is as follows: the method includes the steps that a camera device is installed on target glasses, when a user wears the target glasses, the user obtains videos (namely the target videos in the embodiment) by starting the camera device, whether the target videos contain luminous objects (namely the first target objects in the embodiment) or not is further judged, when the target videos contain the first target objects, the eyesight protection program further obtains the intensity of blue light in light emitted by the first target objects through a light sensor, and then the obtained intensity of the blue light is used as ambient light information. When it is determined that the first target object is not included in the target video, that is, there is no light-emitting object in the line of sight of the user, which indicates that the user may be in an outdoor environment, the eyesight protection program further obtains the intensity of the ultraviolet rays in the ambient light through the light sensor, and then uses the intensity of the ultraviolet rays as the ambient light information.
Specifically, the step a3 is detailed as follows:
step b1, if the first target object exists in the target video, acquiring an edge contour of the first target object.
Step b2, if the edge contour is a preset regular shape, determining whether a preset identification map is attached to the first target object.
Step b3, if the first target object has the preset identification map attached thereon, obtaining the blue light intensity in the emitted light of the first target object, and using the blue light intensity as the ambient light information.
It can be known that, in the above eye scene having a direct relationship with light, the first target object capable of emitting light may be a television, a mobile phone, a warning light or a desk lamp, and the warning light or the desk lamp may not necessarily emit blue light, but the television and the mobile phone may both emit blue light, and these electronic devices capable of emitting blue light all have a common point, that is, a rectangular display screen, so that the scheme in the application further determines whether the first target object is an electronic device capable of emitting blue light, such as a television or a mobile phone, by obtaining an edge profile of the first target object, the preset regular shape in this embodiment may be a specific shape, such as a rectangle, and it can be understood that a user may further distinguish which first target objects need to protect eyesight by labeling a recognition diagram (i.e., a preset identification diagram in this embodiment) on the first target object, therefore, the flexibility of eyesight protection is improved, in this embodiment, when a user watches the first target object pasted with the preset identification chart as an application scene for protecting eyesight, the eyesight protection program acquires the intensity of blue light in light emitted by the first target object pasted with the preset identification chart, and then the acquired intensity of the blue light is used as ambient light information.
Specifically, the step refined in step S20 further includes:
step c1, if the ambient light information is the blue light intensity, adjusting the display color of the lens of the target glasses to a first preset color.
And c2, if the ambient light information is the ultraviolet intensity, adjusting the display color of the lens of the target glasses to a second preset color.
It can be known that most of glasses capable of preventing blue light on the market are yellow, and the display color of the lenses of the target glasses is changed into yellow (i.e. the first preset color in the present embodiment) by adjusting the temperature and the air pressure of the inert gas between the lenses of the glasses when the ambient light information obtained by the vision protection program is blue light intensity, wherein the change of the display color of the lenses is indirectly realized by the color change of the inert gas, most of glasses capable of preventing ultraviolet light on the market are black gray, and by simulating the color of the ultraviolet-proof glasses, when the ambient light information obtained by the vision protection program is ultraviolet intensity, the display color of the lenses of the target glasses is changed into black gray (i.e. the second preset color in the present embodiment) by adjusting the temperature and the air pressure of the inert gas between the lenses of the glasses, it can be understood that, the inert gas has a wide color variation range and more color-variable layers, so that the first preset color and the second preset color can both represent a specific color.
In this embodiment, when the vision protection program receives the vision protection instruction, the type of the vision protection instruction is obtained, when the type of the vision protection instruction is ambient light detection, the ambient light information around the target glasses is obtained through the electronic components arranged on the target glasses, the display color of the lenses of the target glasses is adjusted according to the ambient light information, when the type of the vision protection instruction is sitting posture detection, the current space position of the target glasses is obtained through the electronic components arranged on the target glasses, and outputs sitting posture adjustment prompt information when the current spatial position is not matched with the preset spatial position, the invention can adjust the display color of the lens or output the prompt information by acquiring the ambient light information or the sitting posture of the user, thereby realizing stronger adaptability and more functions of the eyesight protection glasses.
Further, referring to fig. 3, a second embodiment of the vision protecting method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step before step S10 in the first embodiment, and the difference between this embodiment and the above-described embodiment of the present invention is:
and step S50, when a sitting posture calibration instruction is received, acquiring the spatial position information of the target glasses through a preset sensor.
And step S60, judging whether the target glasses are in a horizontal state or not according to the spatial position information.
Step S70, if the target glasses are in the horizontal state, taking the spatial position corresponding to the spatial position information as a preset spatial position.
It can be understood that, before the sitting posture of the user is adjusted by the target glasses, a standard sitting posture which can be used for comparison needs to be selected, and in this standard sitting posture, the spatial position of the corresponding target glasses, i.e. the preset spatial position in this embodiment, called the preset spatial position, is certainly preset before the vision protection program is executed, specifically, when the spatial position of the target glasses corresponding to the standard sitting posture needs to be determined, the vision protection program will receive the sitting posture calibration instruction, the preset sensors in this embodiment are the acceleration chip and the gyroscope module mentioned above, it can be understood that the acceleration chip and the gyroscope module can be regarded as a cube, when one face of the cube is perpendicular to the gravity axis, the target glasses can be determined to be in a horizontal state, when it is determined that the target glasses are in a horizontal state, through the acceleration chip and the gyroscope module, the spatial position corresponding to the acquired spatial position information of the target glasses can be used as a preset spatial position.
Specifically, steps subsequent to step S60 include:
and d1, if a first horizontal axis in the spatial position information is perpendicular to a gravity axis in the spatial position information and a second horizontal axis in the spatial position information is perpendicular to the gravity axis, determining that the target glasses are in the horizontal state.
Step d2, if the first horizontal axis in the spatial position information is not perpendicular to the gravity axis in the spatial position information, and/or the second horizontal axis in the spatial position information is not perpendicular to the gravity axis, determining that the target glasses are not in the horizontal state.
Therefore, through the acceleration chip and the gyroscope module, the obtained spatial position information of the target glasses includes a first horizontal axis, a second horizontal axis and a gravity axis, wherein the first horizontal axis may be understood as an X axis in a three-dimensional coordinate system, the second horizontal axis may be understood as a Y axis in the three-dimensional coordinate system, and the gravity axis may be understood as a Z axis in the three-dimensional coordinate system.
Specifically, steps subsequent to step S30 include:
step e1, if the third horizontal axis in the current spatial position is not perpendicular to the gravity axis, and/or the fourth horizontal axis in the current spatial position is not perpendicular to the gravity axis, acquiring a first included angle between the third horizontal axis and the gravity axis, and a second included angle between the fourth horizontal axis and the gravity axis.
And e2, if the first included angle is smaller than a first preset threshold value and/or the second included angle is smaller than a second preset threshold value, determining that the current spatial position is not matched with a preset spatial position.
It can be known that, when the eyesight protection program determines that the target glasses are not in the horizontal state, a first included angle between a third horizontal axis and a gravity axis and a second included angle between a fourth horizontal axis and the gravity axis are obtained, wherein the third horizontal axis refers to an axis position corresponding to the first horizontal axis obtained during the actual use of the target glasses, the fourth horizontal axis refers to an axis position corresponding to the second horizontal axis obtained during the actual use of the target glasses, when the target glasses are not in the horizontal state, the third horizontal axis and the fourth horizontal axis are necessarily deviated from the first horizontal axis and the second horizontal axis, and the first included angle between the third horizontal axis and the gravity axis refers to the smallest included angle of the included angles formed by the two axes, and as a result, when the two lines intersect, four angles can be formed, and opposite angles are equal, and the sum of two adjacent angles is 180 degrees, the second included angle between the fourth horizontal axis and the gravity axis is also the smallest included angle among the included angles formed by the two axes, the first preset threshold and the second preset threshold in this embodiment are values slightly smaller than 90 degrees, the first preset threshold and the second preset threshold may be equal or unequal, and if the first included angle is smaller than the first preset threshold and/or the second included angle is smaller than the second preset threshold, the eyesight protection program determines that the current spatial position is not matched with the preset spatial position.
Through acceleration chip and gyroscope module, obtain the spatial position information of target glasses in this embodiment, when judging according to spatial position information that target glasses are not in the horizontality, output position of sitting adjustment prompt message adjusts the position of sitting with the person of wearing of suggestion target glasses, has realized stronger suitability and more functions of eyesight protection glasses.
In addition, referring to fig. 4, an embodiment of the present invention further provides a vision protection apparatus, including:
the eyesight protection instruction receiving module 10 is used for acquiring the type of the eyesight protection instruction when the eyesight protection instruction is received;
an ambient light information obtaining module 20, configured to obtain, if the type of the eyesight protection instruction is ambient light detection, ambient light information through the target glasses, and adjust a lens display color of the target glasses according to the ambient light information;
a spatial position obtaining module 30, configured to obtain a current spatial position of the target glasses if the type of the eyesight protection instruction is sitting posture detection;
and the prompting module 40 is configured to output a sitting posture adjustment prompting message to prompt a wearer of the target glasses to adjust a sitting posture when the current spatial position is not matched with a preset spatial position.
Optionally, the ambient light information obtaining module 20 includes:
the target video acquisition unit is used for acquiring a target video through the target glasses if the type of the vision protection instruction is ambient light detection;
the first judging unit is used for judging whether a first target object exists in the target video, wherein the first target object is a luminous object;
a first blue light intensity acquisition unit configured to acquire, if the first target object exists in the target video, a blue light intensity in the emission light of the first target object, and use the blue light intensity as ambient light information;
and the ultraviolet intensity acquisition unit is used for acquiring ultraviolet intensity through the target glasses if the first target object does not exist in the target video, and taking the ultraviolet intensity as the ambient light information.
Optionally, the first blue light intensity obtaining unit includes:
an edge contour acquiring unit, configured to acquire an edge contour of the first target object if the first target object exists in the target video;
a second judging unit, configured to judge whether a preset marker pattern is attached to the first target object if the edge contour is a preset regular shape;
and the second blue light intensity obtaining unit is used for obtaining the blue light intensity in the emitted light of the first target object and taking the blue light intensity as the ambient light information if the preset identification map is pasted on the first target object.
Optionally, the ambient light information obtaining module 20 includes:
the first color adjusting unit is used for adjusting the display color of the lens of the target glasses to be a first preset color if the ambient light information is the blue light intensity;
and the second color adjusting unit is used for adjusting the display color of the lens of the target glasses to a second preset color if the ambient light information is the ultraviolet intensity.
Optionally, the vision protection device further comprises:
the spatial position information acquisition module is used for acquiring spatial position information of the target glasses through a preset sensor when a sitting posture calibration instruction is received;
the horizontal state judging module is used for judging whether the target glasses are in a horizontal state or not according to the spatial position information;
and the preset spatial position determining module is used for taking the spatial position corresponding to the spatial position information as a preset spatial position if the target glasses are in the horizontal state.
Optionally, the vision protection device further comprises:
the first judging module is used for judging that the target glasses are in the horizontal state if a first horizontal axis in the spatial position information is vertical to a gravity axis in the spatial position information and a second horizontal axis in the spatial position information is vertical to the gravity axis;
and the second determination module is configured to determine that the target glasses are not in the horizontal state if the first horizontal axis in the spatial position information is not perpendicular to the gravity axis in the spatial position information and/or the second horizontal axis in the spatial position information is not perpendicular to the gravity axis.
Optionally, the vision protection device further comprises:
an included angle obtaining module, configured to obtain a first included angle between a third horizontal axis and the gravity axis and a second included angle between the fourth horizontal axis and the gravity axis if the third horizontal axis and the gravity axis in the current spatial position are not perpendicular and/or a fourth horizontal axis and the gravity axis in the current spatial position are not perpendicular;
and the third judgment module is used for judging that the current spatial position is not matched with the preset spatial position if the first included angle is smaller than a first preset threshold value and/or the second included angle is smaller than a second preset threshold value.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a vision protection program is stored on the computer-readable storage medium, and when the vision protection program is executed by a processor, the vision protection program implements operations in the vision protection method provided in the foregoing embodiment.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the eyesight protection method according to the embodiments of the present invention.
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 of vision protection for use with target eyewear, the method comprising the steps of:
when a vision protection instruction is received, acquiring the type of the vision protection instruction;
if the type of the vision protection instruction is ambient light detection, obtaining ambient light information through the target glasses, and adjusting the display color of the lenses of the target glasses according to the ambient light information;
if the type of the vision protection instruction is sitting posture detection, acquiring the current spatial position of the target glasses;
and when the current spatial position is not matched with the preset spatial position, outputting sitting posture adjustment prompt information to prompt a wearer of the target glasses to adjust the sitting posture.
2. A vision protection method as described in claim 1, wherein said step of obtaining ambient light information via said target glasses if said type of vision protection command is ambient light detection comprises:
if the type of the vision protection instruction is ambient light detection, acquiring a target video through the target glasses;
judging whether a first target object exists in the target video, wherein the first target object is a luminous object;
if the first target object exists in the target video, acquiring blue light intensity in the emitted light of the first target object, and taking the blue light intensity as ambient light information;
and if the first target object does not exist in the target video, acquiring ultraviolet intensity through the target glasses, and taking the ultraviolet intensity as ambient light information.
3. A vision protection method as described in claim 2, wherein said step of obtaining a blue light intensity in the emission light of the first object if the first object exists in the target video, and using the blue light intensity as the ambient light information, comprises:
if the first target object exists in the target video, acquiring an edge profile of the first target object;
if the edge contour is in a preset regular shape, judging whether a preset identification image is attached to the first target object;
and if the preset identification map is pasted on the first target object, acquiring the blue light intensity in the emitted light of the first target object, and taking the blue light intensity as the ambient light information.
4. A method for protecting vision as defined in claim 2, wherein said step of adjusting the lens display color of said target eyewear based on said ambient light information comprises:
if the ambient light information is the blue light intensity, adjusting the display color of the lens of the target glasses to a first preset color;
and if the ambient light information is the ultraviolet intensity, adjusting the display color of the lens of the target glasses to a second preset color.
5. A vision protection method as described in claim 1, wherein said step of obtaining the type of vision protection instruction when the vision protection instruction is received is preceded by:
when a sitting posture calibration instruction is received, acquiring spatial position information of the target glasses through a preset sensor;
judging whether the target glasses are in a horizontal state or not according to the spatial position information;
and if the target glasses are in the horizontal state, taking the spatial position corresponding to the spatial position information as a preset spatial position.
6. A vision protection method as described in claim 5, wherein said step of determining whether said target glasses are in a horizontal state based on said spatial position information, is followed by:
if a first horizontal axis in the spatial position information is vertical to a gravity axis in the spatial position information and a second horizontal axis in the spatial position information is vertical to the gravity axis, determining that the target glasses are in the horizontal state;
and if the first horizontal axis in the spatial position information is not perpendicular to the gravity axis in the spatial position information, and/or the second horizontal axis in the spatial position information is not perpendicular to the gravity axis, determining that the target glasses are not in the horizontal state.
7. A method as claimed in claim 6, wherein the step of obtaining the current spatial position of the target glasses if the type of vision protection instruction is sitting posture detection comprises:
if a third horizontal axis in the current spatial position is not perpendicular to the gravity axis and/or a fourth horizontal axis in the current spatial position is not perpendicular to the gravity axis, acquiring a first included angle between the third horizontal axis and the gravity axis and a second included angle between the fourth horizontal axis and the gravity axis;
and if the first included angle is smaller than a first preset threshold value and/or the second included angle is smaller than a second preset threshold value, judging that the current spatial position is not matched with a preset spatial position.
8. A vision protection device, comprising:
the eyesight protection instruction receiving module is used for acquiring the type of the eyesight protection instruction when the eyesight protection instruction is received;
the ambient light information acquisition module is used for acquiring ambient light information through the target glasses if the type of the vision protection instruction is ambient light detection, and adjusting the display color of the lenses of the target glasses according to the ambient light information;
the spatial position acquisition module is used for acquiring the current spatial position of the target glasses if the type of the vision protection instruction is sitting posture detection;
and the prompting module is used for outputting sitting posture adjustment prompting information when the current spatial position is not matched with a preset spatial position so as to prompt a wearer of the target glasses to adjust the sitting posture.
9. A vision protection device, characterized in that it comprises: a memory, a processor, and a vision protection program stored on the memory and executable on the processor, the vision protection program when executed by the processor implementing the steps of the vision protection method of any one of claims 1 to 7.
10. A computer-readable storage medium, having a vision protection program stored thereon, which when executed by a processor implements the steps of the vision protection method of any one of claims 1 to 7.
CN202011342526.XA 2020-11-25 2020-11-25 Eyesight protection method, device, equipment and computer readable storage medium Pending CN112433614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011342526.XA CN112433614A (en) 2020-11-25 2020-11-25 Eyesight protection method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011342526.XA CN112433614A (en) 2020-11-25 2020-11-25 Eyesight protection method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112433614A true CN112433614A (en) 2021-03-02

Family

ID=74698249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011342526.XA Pending CN112433614A (en) 2020-11-25 2020-11-25 Eyesight protection method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112433614A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024007364A1 (en) * 2022-07-05 2024-01-11 清华大学 Wearable-device-based light environment and posture detection method, apparatus and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105527726A (en) * 2015-12-21 2016-04-27 努比亚技术有限公司 Information processing method and device, and glasses
CN106199999A (en) * 2016-09-28 2016-12-07 北京小米移动软件有限公司 Automatically the method and device of glasses is adjusted
CN107515479A (en) * 2017-09-22 2017-12-26 北京玛视科技有限公司 A kind of eyesight safety goggles and its eyesight means of defence
CN107730846A (en) * 2017-10-25 2018-02-23 深圳纳富特科技有限公司 Based reminding method, device and the computer-readable recording medium of correcting sitting posture
CN108965688A (en) * 2017-05-24 2018-12-07 中兴通讯股份有限公司 Glasses image pickup method, glasses and storage medium
CN109299299A (en) * 2018-07-18 2019-02-01 奇酷互联网络科技(深圳)有限公司 Adjust the method, apparatus and mobile terminal of color
CN110012220A (en) * 2019-02-25 2019-07-12 深圳市赛亿科技开发有限公司 A kind of pre- myopic-preventing method, intelligent glasses and computer readable storage medium
CN110211345A (en) * 2019-05-27 2019-09-06 歌尔科技有限公司 Sitting posture reminding method, system and smartwatch
CN111265220A (en) * 2020-01-21 2020-06-12 王力安防科技股份有限公司 Myopia early warning method, device and equipment
CN111338102A (en) * 2020-03-12 2020-06-26 东莞理工学院 Glasses for assisting children in learning and preventing myopia

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105527726A (en) * 2015-12-21 2016-04-27 努比亚技术有限公司 Information processing method and device, and glasses
CN106199999A (en) * 2016-09-28 2016-12-07 北京小米移动软件有限公司 Automatically the method and device of glasses is adjusted
CN108965688A (en) * 2017-05-24 2018-12-07 中兴通讯股份有限公司 Glasses image pickup method, glasses and storage medium
CN107515479A (en) * 2017-09-22 2017-12-26 北京玛视科技有限公司 A kind of eyesight safety goggles and its eyesight means of defence
CN107730846A (en) * 2017-10-25 2018-02-23 深圳纳富特科技有限公司 Based reminding method, device and the computer-readable recording medium of correcting sitting posture
CN109299299A (en) * 2018-07-18 2019-02-01 奇酷互联网络科技(深圳)有限公司 Adjust the method, apparatus and mobile terminal of color
CN110012220A (en) * 2019-02-25 2019-07-12 深圳市赛亿科技开发有限公司 A kind of pre- myopic-preventing method, intelligent glasses and computer readable storage medium
CN110211345A (en) * 2019-05-27 2019-09-06 歌尔科技有限公司 Sitting posture reminding method, system and smartwatch
CN111265220A (en) * 2020-01-21 2020-06-12 王力安防科技股份有限公司 Myopia early warning method, device and equipment
CN111338102A (en) * 2020-03-12 2020-06-26 东莞理工学院 Glasses for assisting children in learning and preventing myopia

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024007364A1 (en) * 2022-07-05 2024-01-11 清华大学 Wearable-device-based light environment and posture detection method, apparatus and system

Similar Documents

Publication Publication Date Title
US11379960B2 (en) Image processing method, image processing apparatus, and wearable device
US20210143672A1 (en) Nfc communication and qi wireless charging of eyewear
CN107977586B (en) Display content processing method, first electronic device and second electronic device
WO2016197847A2 (en) Terminal screen display control method and device, and terminal
US20150170422A1 (en) Information Display System With See-Through HMD, Display Control Program and Display Control Method
EP3062286B1 (en) Optical distortion compensation
US11575877B2 (en) Utilizing dual cameras for continuous camera capture
US20150271457A1 (en) Display device, image display system, and information processing method
US20230359038A1 (en) Eyewear having unsynchronized rolling shutter cameras
US20240135926A1 (en) Voice-controlled settings and navigation
CN112433614A (en) Eyesight protection method, device, equipment and computer readable storage medium
US12114103B2 (en) Projector with field lens
TWI603225B (en) Viewing angle adjusting method and apparatus of liquid crystal display
US20190037151A1 (en) Wearable Device with Thermal Imaging Function
US12002392B2 (en) Eyewear projector brightness control
US12100977B2 (en) Eyewear bidirectional communication using time gating power transfer
US11789294B2 (en) Eyewear frame as charging contact
US11982814B2 (en) Segmented illumination display
US20230185090A1 (en) Eyewear including a non-uniform push-pull lens set
US20240085166A1 (en) Eyewear with strain gauge wear detection
US20230367137A1 (en) Eyewear with a shape memory alloy actuator
US20230204958A1 (en) Eyewear electronic tinting lens with integrated waveguide
US20220342222A1 (en) Eyewear having a projector with heat sink shields
KR20160027813A (en) Glass type terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221128

Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong

Applicant after: GOERTEK TECHNOLOGY Co.,Ltd.

Address before: 261031 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Applicant before: GoerTek Optical Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210302