CN115035588A - Eyesight protection prompting method, device, storage medium and program product - Google Patents
Eyesight protection prompting method, device, storage medium and program product Download PDFInfo
- Publication number
- CN115035588A CN115035588A CN202210606997.XA CN202210606997A CN115035588A CN 115035588 A CN115035588 A CN 115035588A CN 202210606997 A CN202210606997 A CN 202210606997A CN 115035588 A CN115035588 A CN 115035588A
- Authority
- CN
- China
- Prior art keywords
- target user
- sitting posture
- detection information
- image
- detection
- 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
Links
- 230000004438 eyesight Effects 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000001514 detection method Methods 0.000 claims abstract description 143
- 238000004590 computer program Methods 0.000 claims description 16
- 208000001491 myopia Diseases 0.000 abstract description 8
- 230000004379 myopia Effects 0.000 abstract description 7
- 208000004350 Strabismus Diseases 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 8
- 210000001015 abdomen Anatomy 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 210000000707 wrist Anatomy 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/18—Eye characteristics, e.g. of the iris
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/41—Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Ophthalmology & Optometry (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
The invention provides a prompting method, a device, a storage medium and a program product for eyesight protection, wherein the method comprises the following steps: acquiring a video to be processed, wherein the video to be processed comprises a target user; performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use time of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state; and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection. The prompting method, the prompting device, the storage medium and the program product for eyesight protection provided by the embodiment of the invention can prevent the eyesight problems such as myopia or strabismus in advance.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for prompting eyesight protection, a storage medium, and a program product.
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.
In the prior art, certain measures are usually taken after the eyes of children are short-sighted, such as wearing glasses and the like. Therefore, parents in the prior art cannot supervise and correct the eye use condition of children in time, and the aim of preventing the vision problems such as myopia or strabismus in advance cannot be fulfilled.
Disclosure of Invention
The invention provides a prompting method, a prompting device, a storage medium and a program product for eyesight protection, which are used for solving the defect that the eyesight problem cannot be prevented in advance in the prior art and realizing the prevention of the eyesight problems such as myopia or strabismus and the like in advance.
The invention provides a prompting method for eyesight protection, which comprises the following steps:
acquiring a video to be processed, wherein the video to be processed comprises a target user;
performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state;
and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user of eyesight protection.
According to the prompting method for eyesight protection provided by the invention, the detection information comprises the ambient brightness;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on the at least one image to obtain target RGB values corresponding to the at least one image;
determining brightness information corresponding to each target RGB value according to a corresponding relation between a preset RGB value and the ambient brightness;
and determining the ambient brightness according to the brightness information corresponding to each target RGB value.
According to the prompting method for eyesight protection provided by the invention, the detection information comprises the sitting posture state of the target user;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on the at least one image to obtain human body key points in the at least one image;
and comparing the key points of the human body with the key points in the standard sitting posture template corresponding to the target user to obtain the sitting posture state of the target user.
According to the prompting method for eyesight protection provided by the invention, before comparing the key points of the human body with the key points in the standard sitting posture template corresponding to the target user, the method further comprises the following steps:
receiving input user information of the target user;
and generating a standard sitting posture template corresponding to the target user according to the user information.
According to the prompting method for eyesight protection provided by the invention, the detection information comprises the distance between the eyes of the target user and the desktop;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on at least one image in the video to be processed through a target detection algorithm, and determining eyes and a desktop of a target user in the image;
determining a gaze point of the target user on the desktop;
determining the distance between the eyes of the target user and the fixation point as the distance between the eyes of the target user and the desktop.
According to the prompting method for eyesight protection provided by the invention, the detection information comprises the ambient brightness; the detection information satisfies a preset condition, including:
the ambient brightness is smaller than a first preset value, or the ambient brightness is larger than a second preset value, and the first preset value is smaller than the second preset value;
the detection information comprises a sitting posture state of the target user; the detection information satisfies a preset condition, including:
the sitting posture of the target user is the non-standard sitting posture;
the detection information comprises a distance between an eye of the target user and a desktop; the detection information satisfies a preset condition, including:
the distance between the eyes of the target user and the desktop is smaller than a third preset value;
the detection information comprises the eye use duration of the target user; the detection information satisfies a preset condition, including:
and the eye using time of the target user is greater than a fourth preset value.
The invention also provides a prompting device for eyesight protection, which comprises:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a video to be processed, and the video to be processed comprises a target user;
the detection module is used for carrying out image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state;
and the output module is used for outputting prompt information under the condition that the detection information meets the preset condition, wherein the prompt information is used for reminding the target user of eyesight protection.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the eyesight protection prompting method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of providing a visual protection cue as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a method of providing a cue for vision protection as described in any one of the above.
According to the eyesight protection prompting method, the device, the storage medium and the program product, at least one of the sitting posture state of the target user, the distance between eyes and a desktop, the ambient brightness of the learning environment where the target user is located and the eye using time length of the target user in the collected video to be processed is identified, so that the eye using state of the target user is determined based on the information, and under the condition that the information meets the preset condition, the prompting information is output to remind the target user of paying attention to the eyes, so that the aim of preventing the eyesight problem in advance can be achieved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a prompting method for eyesight protection according to an embodiment of the present invention;
FIG. 2 is a schematic view of a standard seating template;
FIG. 3 is a schematic diagram of human key points of a target user;
FIG. 4 is a schematic diagram of a prompt device for eyesight protection according to an embodiment of the present invention;
fig. 5 illustrates a physical structure diagram of an electronic device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The prompting method for eyesight protection provided by the embodiment of the invention is applied to an application scene for protecting the eyesight of a user, in particular to a scene for protecting the eyesight of a child in a learning state.
According to the prompting method for eyesight protection provided by the embodiment of the invention, at least one of the sitting posture state of the child, the distance between the eyes and the desktop, the ambient brightness of the learning environment where the child is located and the eye using duration of the child in the video is identified by acquiring the video, so that the eye using state of the child is determined based on the information, and under the condition that the information meets the preset condition, the prompting information is output to remind the user of paying attention to the eyes, so that the purpose of preventing the eyesight problem in advance can be achieved.
The method of prompting for vision protection of the present invention is described below in conjunction with fig. 1-3.
Fig. 1 is a schematic flow diagram of a prompt method for eyesight protection according to an embodiment of the present invention, where an execution main body of the prompt method for eyesight protection according to the embodiment of the present invention may be a prompt apparatus for eyesight protection, the apparatus may be a mobile terminal device having a display function or a voice prompt function, such as a PC, a smart phone, a tablet computer, and a portable computer, and may also be an electronic device, such as a robot and glasses, that integrates a camera and various sensors. As shown in fig. 1, the method includes:
step 101: and acquiring a video to be processed, wherein the video to be processed comprises a target user.
In this step, the electronic device collects a video to be processed through the integrated image collecting device, where the video to be processed includes a target user who needs to perform eyesight protection. The target users include children, teenagers or other users in a learning state or a reading state, and may also include other users who need to protect eyesight, such as adults playing a game, and the like, which is not particularly limited to the specific types of the target users in the embodiment of the present invention.
Step 102: and carrying out image detection on at least one image in the video to be processed to obtain detection information.
The detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state.
In this step, the electronic device may perform image detection on at least one image in the acquired video to be processed, so as to obtain detection information. It can be understood that the electronic device can perform image detection on all images in the video to be processed, so as to obtain detection information, and at this time, the obtained detection information has higher accuracy. The electronic device can only detect partial images in the video to be processed so as to obtain the detection information, and at this time, only partial images are processed, so that the data processing amount can be reduced, and the image detection efficiency can be improved.
Alternatively, in the case that the detection information includes the ambient brightness, when performing image detection on at least one image to obtain the detection information, the following method may be used: and performing image detection on at least one image to obtain target RGB values corresponding to the at least one image, determining brightness information corresponding to the target RGB values according to the preset corresponding relation between the RGB values and the ambient brightness, and determining the ambient brightness according to the brightness information corresponding to the target RGB values.
Specifically, the ambient brightness of the surrounding environment may be represented by RGB values in the image. Illustratively, the correspondence between the RGB values and the ambient brightness may be established by analyzing the RGB values in a large number of images and the ambient brightness of the surroundings when the images are captured in advance. The corresponding relation can be stored in the local electronic equipment after being established, and also can be stored in the cloud, so that when the environment brightness is determined, the electronic equipment can directly obtain the corresponding relation which is established in advance from the local electronic equipment or the cloud. Of course, the electronic device may not establish the corresponding relationship in advance, but establish the corresponding relationship according to the plurality of images collected before when determining the ambient brightness.
After the electronic equipment acquires the video to be processed, image detection is carried out on at least one image in the video to be processed, so that target RGB values corresponding to the at least one image can be obtained, and brightness information corresponding to each target RGB value is determined according to the corresponding relation between the RGB values and the ambient brightness. Among the luminance information corresponding to each of the plurality of target RGB values, the minimum luminance information may be determined as the ambient luminance, an average value of the luminance information corresponding to each of the plurality of target RGB values may be determined as the ambient luminance, an average RGB value may be determined from the plurality of target RGB values, and the ambient luminance may be determined based on the average RGB value. Of course, the ambient brightness may also be determined in other manners, for example, in a manner of weighted average, and a specific determination manner of the ambient brightness is not specifically limited in the embodiment of the present invention.
In this embodiment, the target RGB values corresponding to at least one image are determined, and then the ambient brightness is determined based on the target RGB values, so that a phenomenon that the ambient brightness needs to be determined by a sensor in the prior art is avoided, thereby simplifying a hardware structure of the electronic device and reducing cost.
Optionally, when the detection information includes a sitting posture state of the target user, when performing image detection on at least one image to obtain the detection information, the following method may be used: and carrying out image detection on at least one image to obtain human key points in at least one image, and comparing the human key points with key points in a standard sitting posture template corresponding to the target user to obtain the sitting posture state of the target user.
In particular, in the case where the target user is in a learning state, the sitting posture thereof is also a very important factor affecting the eyesight, and therefore, the sitting posture of the target user needs to be detected. In a specific implementation process, the electronic device needs to first obtain a standard sitting posture template corresponding to the target user. Optionally, the electronic device generates a standard sitting posture template corresponding to the target user by receiving input user information of the target user and according to the user information.
The target user or a parent of the target user may input user information of the target user to the electronic device by means of voice input or key input, such as the age, sex, height, weight, and the like of the target user. The electronic equipment can generate a standard sitting posture template corresponding to the target user according to the user information of the target user. The standard sitting posture template generated by the method is high in accuracy and corresponding to the target user.
Alternatively, standard sitting posture templates corresponding to adolescents of various age stages, various weights and various heights can be stored in the electronic device in advance. After the electronic equipment performs image detection on at least one image, the outline of the target user can be obtained, so that matching can be performed from a plurality of standard sitting posture templates pre-stored in the electronic equipment based on the outline, and the standard sitting posture template successfully matched is determined as the standard sitting posture template corresponding to the target user. By the method, the standard sitting posture template corresponding to the target user can be obtained without inputting the user information of the target user, so that the operation of the user can be simplified, and the user experience is improved.
Fig. 2 is a schematic diagram of a standard sitting posture template, as shown in fig. 2, which includes a plurality of key points of the target user in a standard sitting posture, such as a wrist key point, an elbow key point, a shoulder key point, a chest key point, an abdomen key point, and the like. It should be noted that the key points shown in fig. 2 are only examples, and in practical applications, the number of key points in the standard sitting posture template may be more than the key points shown in fig. 2, or may be less than the key points shown in fig. 2.
Fig. 3 is a schematic diagram of human body key points of a target user, and after performing image detection on at least one acquired image, the electronic device may obtain the human body key points in each image, for example, obtain wrist key points, elbow key points, shoulder key points, chest key points, abdomen key points, and the like of the target user. After the key points of the human body are obtained, the electronic equipment compares the key points of the human body with key points in a standard sitting posture template. For example, under the same coordinate system, comparing whether the coordinates of the wrist key point, the elbow key point, the shoulder key point, the chest key point and the abdomen key point of the target user are the same as the coordinates of the wrist key point, the elbow key point, the shoulder key point, the chest key point and the abdomen key point in the standard sitting posture template, if not, indicating that the current sitting posture state of the target user is a non-standard sitting posture, such as a non-standard sitting posture in fig. 3, and if so, indicating that the current sitting posture state of the target user is a standard sitting posture. In addition, the distance comparison may also be performed, for example, the distance from the shoulder key point in the standard sitting posture template to the desktop is calculated, the distance from the shoulder key point of the target user to the desktop is calculated, and the two distances are compared to determine whether the two distances are consistent, if not, the current sitting posture state of the target user is the non-standard sitting posture, and if so, the current sitting posture state of the target user is the standard sitting posture. Of course, the comparison can be performed in other ways, such as comparing the distance from the key point at the chest or the abdomen to the table top, and so on.
In this embodiment, after image detection is performed on at least one image to obtain key points of a human body, the key points of the human body are compared with key points in a standard sitting posture template corresponding to a target user, so that a sitting posture state of the target user is obtained.
Optionally, in a case that the detection information includes a distance between the eyes of the target user and the desktop, when performing image detection on at least one image to obtain the detection information, the following manner may be performed: the method comprises the steps of carrying out image detection on at least one image in a video to be processed through a target detection algorithm, determining eyes and a desktop of a target user in the image, determining a fixation point of the target user on the desktop, and determining the distance between the eyes and the fixation point of the target user as the distance between the eyes and the desktop of the target user.
In particular, key features such as the target user's eyes, books or desks, etc. may be located from the at least one image by the target detection algorithm. In addition, the electronic device may determine a gaze point of the target user on a desktop of a desk or a book based on the recognition of the at least one image, thereby calculating a distance between the gaze point and an eye of the target user, and determine whether the eye distance is appropriate by using the distance as a distance between the eye of the target user and the desktop.
In the embodiment, the distance between the eyes of the target user and the desktop is determined by determining the gazing point of the target user on the desktop and calculating the distance between the eyes of the target user and the gazing point, so that the determination of the distance between the eyes and the desktop is more efficient.
Optionally, the electronic device may further perform image detection on at least one image in the video to be processed, so as to count a duration of the target user keeping the learning posture in the video to be processed, thereby determining whether the target user is overusing eyes.
Step 103: and outputting prompt information under the condition that the detection information meets the preset condition.
The prompt information is used for reminding a target user of eyesight protection.
Optionally, in a case that the detection information includes the ambient brightness, the detection information satisfies a preset condition, including: the ambient brightness is smaller than a first preset value, or the ambient brightness is larger than a second preset value, wherein the first preset value is smaller than the second preset value.
Specifically, under the condition that the ambient brightness is low or high, the ambient brightness is unfavorable to the eyesight, therefore, after the ambient brightness is determined, the electronic device judges whether the ambient brightness is in a proper range, if the ambient brightness is smaller than a first preset value, the environment for learning of the target user is too dim, if the ambient brightness is larger than a second preset value, the environment for learning of the target user is too bright, under the two conditions, the electronic device outputs prompt information, and the prompt information can be output through voice, characters, images or other modes. For example, when the ambient brightness is smaller than the first preset value, the target user can be reminded to turn on or turn up the light intensity in a voice reminding mode, and when the ambient brightness is larger than the second preset value, the target user can be reminded to turn off or turn down the light intensity in a voice reminding mode.
In addition, the first preset value and the second preset value may be set according to actual conditions or experience, and specific values of the first preset value and the second preset value are not limited herein.
Optionally, in a case that the detection information includes a sitting posture state of the target user, the detection information satisfies a preset condition, including: the sitting posture of the target user is a non-standard sitting posture.
Specifically, the non-standard sitting posture also has a great influence on eyesight, and therefore, the electronic device outputs a prompt message when determining that the sitting posture state of the target user is the non-standard sitting posture state, wherein the prompt message may be output by voice, text, images or other means. For example, the target user may be reminded to adjust the sitting posture by means of voice reminding.
Optionally, in a case that the detection information includes a distance between the eyes of the target user and the desktop, the detection information satisfies a preset condition, including: the distance between the target user's eyes and the desktop is less than a third preset value.
Specifically, the distance between the inappropriate eyes and the desktop has a great influence on the vision, so that the electronic device outputs the prompt information when determining that the distance between the eyes of the target user and the desktop is smaller than the third preset value, wherein the prompt information can be output by voice, text, images or other manners. For example, the target user may be reminded to sit upright by means of a voice reminder to increase the distance between the eyes and the desktop.
The third preset value may be set according to actual conditions or experiences such as the height of the user or the height of the desktop, for example, the third preset value may be set to 33cm, and a specific value of the third preset value is not limited herein.
Optionally, in a case that the detection information includes an eye use duration of the target user, the detection information satisfies a preset condition, including: the eye-using time of the target user is greater than the fourth preset value.
Specifically, under the condition of excessive eye use, the eyesight is also greatly affected, and therefore, the electronic device outputs the prompt information under the condition that the eye use time of the target user is determined to be greater than the fourth preset value, wherein the prompt information can be output in a voice mode, a text mode, an image mode or other modes. For example, the target user may be reminded to have a rest for a period of time by a voice reminding mode, or the user may be reminded to do eye exercises, and the like, so as to achieve the purposes of preventing myopia or strabismus and protecting eyesight.
In this embodiment, when the detection information satisfies the preset condition, the prompt information is output to remind the user of eyesight protection, so as to achieve the purpose of preventing myopia or strabismus.
The prompting method for eyesight protection provided by the embodiment of the invention comprises the steps of obtaining a video to be processed, carrying out image detection on at least one image in the video to be processed by obtaining the video to be processed, obtaining detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of a target user, a distance between eyes of the target user and a desktop and eye use duration of the target user, the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state, outputting prompting information under the condition that the detection information meets a preset condition, and the prompting information is used for prompting the target user to carry out eyesight protection. Under the condition that the detection information meets the preset condition, the prompt information is output to remind the user of paying attention to eyes, so that the aim of preventing the vision problem in advance can be fulfilled.
The following describes the eyesight protection prompting device provided by the present invention, and the below-described eyesight protection prompting device and the above-described eyesight protection prompting method can be referred to in correspondence with each other.
Fig. 4 is a schematic diagram of a prompting device for eyesight protection according to an embodiment of the present invention, and as shown in fig. 4, the device 40 includes:
the acquisition module 11 is configured to acquire a video to be processed, where the video to be processed includes a target user;
the detection module 12 is configured to perform image detection on at least one image in the video to be processed to obtain detection information, where the detection information includes at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and an eye use duration of the target user, and the sitting posture state includes a standard sitting posture state and a non-standard sitting posture state;
and the output module 13 is configured to output prompt information under the condition that the detection information meets a preset condition, where the prompt information is used to remind the target user of performing eyesight protection.
Optionally, the detection information includes ambient brightness; the detection module 12 is specifically configured to:
performing image detection on the at least one image to obtain target RGB values corresponding to the at least one image;
determining brightness information corresponding to each target RGB value according to a corresponding relation between a preset RGB value and the ambient brightness;
and determining the ambient brightness according to the brightness information corresponding to each target RGB value.
Optionally, the detection information comprises a sitting posture state of the target user; the detection module 12 is specifically configured to:
performing image detection on the at least one image to obtain human body key points in the at least one image;
and comparing the key points of the human body with the key points in the standard sitting posture template corresponding to the target user to obtain the sitting posture state of the target user.
Optionally, the apparatus further comprises:
a receiving module 14, configured to receive input user information of the target user;
and the generating module 15 is configured to generate a standard sitting posture template corresponding to the target user according to the user information.
Optionally, the detection information includes a distance between the target user's eye and a desktop; the detection module 12 is specifically configured to:
performing image detection on at least one image in the video to be processed through a target detection algorithm, and determining eyes and a desktop of a target user in the image;
determining a gaze point of the target user on the desktop;
determining the distance between the eyes of the target user and the fixation point as the distance between the eyes of the target user and the desktop.
Optionally, the detection information includes the ambient brightness; the detection information satisfies a preset condition, including: the ambient brightness is smaller than a first preset value, or the ambient brightness is larger than a second preset value, and the first preset value is smaller than the second preset value;
the detection information comprises a sitting posture state of the target user; the detection information satisfies a preset condition, including: the sitting posture of the target user is the non-standard sitting posture;
the detection information comprises a distance between an eye of the target user and a desktop; the detection information satisfies a preset condition, including: the distance between the eyes of the target user and the desktop is smaller than a third preset value;
the detection information comprises the eye use duration of the target user; the detection information satisfies a preset condition, including: and the eye using time of the target user is greater than a fourth preset value.
The eyesight protection prompting device provided by the embodiment of the invention can be used for executing the method of any embodiment of the eyesight protection prompting method, the specific implementation process is similar to the technical effect in the eyesight protection prompting method embodiment, and specific reference can be made to the detailed description in the eyesight protection prompting method embodiment, and details are not repeated here.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530, and a communication bus 540, wherein the processor 510, the communication Interface 520, and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a method of cueing for vision protection, the method comprising: acquiring a video to be processed, wherein the video to be processed comprises a target user; performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state; and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the method for prompting eyesight protection provided by the above methods, the method comprising: acquiring a video to be processed, wherein the video to be processed comprises a target user; performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state; and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of prompting for vision protection provided by the above methods, the method comprising: acquiring a video to be processed, wherein the video to be processed comprises a target user; performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state; and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A prompting method for eyesight protection is characterized by comprising the following steps:
acquiring a video to be processed, wherein the video to be processed comprises a target user;
performing image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop, and eye use duration of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state;
and outputting prompt information under the condition that the detection information meets a preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection.
2. A prompting method for eyesight protection as defined in claim 1, wherein the detection information includes ambient brightness;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on the at least one image to obtain target RGB values corresponding to the at least one image;
determining brightness information corresponding to each target RGB value according to a corresponding relation between a preset RGB value and the ambient brightness;
and determining the ambient brightness according to the brightness information corresponding to each target RGB value.
3. A prompting method for eyesight protection according to claim 1, wherein the detection information includes a sitting posture state of the target user;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on the at least one image to obtain human body key points in the at least one image;
and comparing the key points of the human body with the key points in the standard sitting posture template corresponding to the target user to obtain the sitting posture state of the target user.
4. A prompting method for eyesight protection as defined in claim 3, wherein before comparing the human body key points with key points in a standard sitting posture template corresponding to the target user, the method further comprises:
receiving input user information of the target user;
and generating a standard sitting posture template corresponding to the target user according to the user information.
5. The prompting method for eyesight protection according to any one of claims 1 to 4, wherein the detection information includes a distance between an eye of the target user and a desktop;
the image detection of at least one image in the video to be processed to obtain detection information includes:
performing image detection on at least one image in the video to be processed through a target detection algorithm, and determining eyes and a desktop of a target user in the image;
determining a gaze point of the target user on the desktop;
determining a distance between the eye of the target user and the gaze point as a distance between the eye of the target user and a desktop.
6. The prompting method for eyesight protection according to any one of claims 1 to 4, wherein the detection information includes the ambient brightness; the detection information satisfies a preset condition, including:
the ambient brightness is smaller than a first preset value, or the ambient brightness is larger than a second preset value, and the first preset value is smaller than the second preset value;
the detection information comprises a sitting posture state of the target user; the detection information satisfies a preset condition, including:
the sitting posture of the target user is the non-standard sitting posture;
the detection information comprises a distance between an eye of the target user and a desktop; the detection information satisfies a preset condition, including:
the distance between the eyes of the target user and the desktop is smaller than a third preset value;
the detection information comprises the eye use duration of the target user; the detection information satisfies a preset condition, including:
and the eye using time of the target user is greater than a fourth preset value.
7. A vision-protecting prompter device, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a video to be processed, and the video to be processed comprises a target user;
the detection module is used for carrying out image detection on at least one image in the video to be processed to obtain detection information, wherein the detection information comprises at least one of ambient brightness, a sitting posture state of the target user, a distance between eyes of the target user and a desktop and eye use time of the target user, and the sitting posture state comprises a standard sitting posture state and a non-standard sitting posture state;
and the output module is used for outputting prompt information under the condition that the detection information meets the preset condition, wherein the prompt information is used for reminding the target user to carry out eyesight protection.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of prompting for vision protection of any of claims 1 to 6 when executing the program.
9. A non-transitory computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the method for prompting vision protection according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the method of cueing for vision protection as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210606997.XA CN115035588A (en) | 2022-05-31 | 2022-05-31 | Eyesight protection prompting method, device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210606997.XA CN115035588A (en) | 2022-05-31 | 2022-05-31 | Eyesight protection prompting method, device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115035588A true CN115035588A (en) | 2022-09-09 |
Family
ID=83122573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210606997.XA Pending CN115035588A (en) | 2022-05-31 | 2022-05-31 | Eyesight protection prompting method, device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115035588A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095885A (en) * | 2015-09-06 | 2015-11-25 | 广东小天才科技有限公司 | Human eye state detection method and detection device |
CN110801229A (en) * | 2019-11-15 | 2020-02-18 | 英华达(上海)科技有限公司 | Eyesight protection monitoring method, system, equipment and storage medium |
CN110889955A (en) * | 2019-11-29 | 2020-03-17 | 上海掌门科技有限公司 | Method and equipment for reminding user of rest when user reads |
CN111444789A (en) * | 2020-03-12 | 2020-07-24 | 深圳市时代智汇科技有限公司 | Myopia prevention method and system based on video induction technology |
CN114120357A (en) * | 2021-10-22 | 2022-03-01 | 中山大学中山眼科中心 | Neural network-based myopia prevention method and device |
-
2022
- 2022-05-31 CN CN202210606997.XA patent/CN115035588A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095885A (en) * | 2015-09-06 | 2015-11-25 | 广东小天才科技有限公司 | Human eye state detection method and detection device |
CN110801229A (en) * | 2019-11-15 | 2020-02-18 | 英华达(上海)科技有限公司 | Eyesight protection monitoring method, system, equipment and storage medium |
CN110889955A (en) * | 2019-11-29 | 2020-03-17 | 上海掌门科技有限公司 | Method and equipment for reminding user of rest when user reads |
CN111444789A (en) * | 2020-03-12 | 2020-07-24 | 深圳市时代智汇科技有限公司 | Myopia prevention method and system based on video induction technology |
CN114120357A (en) * | 2021-10-22 | 2022-03-01 | 中山大学中山眼科中心 | Neural network-based myopia prevention method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109191802B (en) | Method, device, system and storage medium for eyesight protection prompt | |
US20170156585A1 (en) | Eye condition determination system | |
US20240358303A1 (en) | Information processing system, information processing method, and recording medium | |
CN109685007B (en) | Eye habit early warning method, user equipment, storage medium and device | |
CN106778627B (en) | Detect the method, apparatus and mobile terminal of face face value | |
CN114120357B (en) | Neural network-based myopia prevention method and device | |
CN112006900B (en) | Control method and system of intelligent desk lamp capable of preventing myopia and storage medium | |
US11403881B2 (en) | Content modification based on eye characteristics | |
CN115100728A (en) | Method, apparatus, storage medium and program product for detecting visual acuity status | |
CN110312098A (en) | Immediately monitoring method for interactive online teaching | |
Wang et al. | Effects of reading text on an optical see-through head-mounted display during treadmill walking in a virtual environment | |
JP2020126214A (en) | Information processing apparatus and information processing method | |
CN112017495A (en) | Information interaction method and system based on learning terminal | |
CN115035588A (en) | Eyesight protection prompting method, device, storage medium and program product | |
CN111582003A (en) | Sight tracking student classroom myopia prevention system | |
JP2022058315A (en) | Assist system, assist method and assist program | |
CN109326339A (en) | A kind of visual function evaluation suggestion determines method, apparatus, equipment and medium | |
CN115116088A (en) | Myopia prediction method, apparatus, storage medium, and program product | |
US20180233058A1 (en) | Information processing device, information processing method, and program | |
CN115171284B (en) | Senior caring method and device | |
CN109431761A (en) | Method, apparatus, electronic equipment and the storage medium of asthenopia relief | |
CN115035547A (en) | Sitting posture detection method, device, equipment and computer storage medium | |
CN111583600B (en) | Apparatus for preventing myopia and computer readable storage medium | |
CN113035318A (en) | Eye movement guiding method, device, equipment and storage medium | |
CN112925497A (en) | Content display method and device, electronic equipment and readable storage medium |
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 |