CN107948399A - Eye protection method and device for mobile terminal, mobile terminal and storage medium - Google Patents

Eye protection method and device for mobile terminal, mobile terminal and storage medium Download PDF

Info

Publication number
CN107948399A
CN107948399A CN201711045346.3A CN201711045346A CN107948399A CN 107948399 A CN107948399 A CN 107948399A CN 201711045346 A CN201711045346 A CN 201711045346A CN 107948399 A CN107948399 A CN 107948399A
Authority
CN
China
Prior art keywords
mobile terminal
face
range difference
distance
threshold value
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
CN201711045346.3A
Other languages
Chinese (zh)
Inventor
高瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711045346.3A priority Critical patent/CN107948399A/en
Publication of CN107948399A publication Critical patent/CN107948399A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention is applicable to the technical field of computers, and provides an eye protection method and device for a mobile terminal, the mobile terminal and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining an image in front of a camera of the mobile terminal, carrying out face recognition on the obtained face image, obtaining a plurality of preset face organs in a face recognition result, detecting the distance between each face organ and a screen of the mobile terminal, calculating the distance difference between every two distances according to the detected distance, detecting whether the distance difference exceeds a preset threshold value or not, and executing preset eye protection operation when the distance difference exceeds the preset threshold value, so that the eye protection effect of the mobile terminal is improved.

Description

Eye care method, device, mobile terminal and the storage medium of mobile terminal
Technical field
The invention belongs to field of computer technology, more particularly to a kind of eye care method of mobile terminal, device, mobile terminal And storage medium.
Background technology
As the development of society, the electronic product such as the progress of mechanics of communication, mobile terminal become important articles for daily use. The use of simultaneous mobile terminal is increasingly frequent, and requirement of the people to mobile terminal is also higher and higher, and with mobile whole End function increases, people using mobile terminal number is more and more, usage time is generally also increasingly longer.People are watching Mobile phone, tablet computer, learning machine easily cause watching sight not just, so as to cause human eye near when equipment because of abnormal sitting posture Depending on especially when people use mobile terminal for a long time, it is easier to cause watching sight not just because of abnormal sitting posture, so as to more hold Easily there are hypometropia or other infringements.
At present, the eye care method of mobile terminal can make the antifatigue energy of human eye by adjusting backlight, setting background protective coloration Power is necessarily lifted, and mitigates the received injury of human eye, or remind rest and eye exercises to mitigate eye by timing word Fatigue, still, can not prevent injury of the mobile terminal to human eye, eyeshield is ineffective from root.At present, the shield of mobile terminal Eye method can also carry out eyeshield by filter blue light, with modes such as at the moment long prompting, distance promptings, but long after filter blue light Time stares at screen with incorrect posture can also damage human eye, by using the comparison and judgement of the parameters such as at the moment long and distance, The accuracy that eyeshield is reminded is not high, eyeshield prompting ineffective.
The content of the invention
It is an object of the invention to provide a kind of eye care method of mobile terminal, device, mobile terminal and storage medium, purport Solve the problems, such as due to existing mobile terminal eyeshield remind that accuracy is high, eyeshield is reminded is ineffective.
On the one hand, the present invention provides a kind of eye care method of mobile terminal, the described method includes following step:
The image in front of mobile terminal camera is obtained, recognition of face is carried out to the facial image of the acquisition;
Default multiple human faces in the face recognition result are obtained, detect each human face described in The distance of mobile terminal screen, according to the distance detected, calculates the range difference of the distance between any two;
Detect in the range difference and exceed pre-set threshold value with the presence or absence of range difference, to surpass when there are range difference in the range difference When crossing pre-set threshold value, default eyeshield operation is performed.
On the other hand, the present invention provides a kind of eye protector of mobile terminal, described device to include:
Image identification unit, for obtaining the image in front of mobile terminal camera, to the facial image of the acquisition into Row recognition of face;
First computing unit, for obtaining default multiple human faces in the face recognition result, described in detection Each human face to the mobile terminal screen distance, according to the distance detected, calculate the distance two-by-two it Between range difference;And
First reminding unit, exceedes pre-set threshold value for detecting in the range difference with the presence or absence of range difference, when it is described away from When exceeding pre-set threshold value there are range difference in deviation, default eyeshield operation is performed.
On the other hand, present invention also offers a kind of mobile terminal, including memory, processor and it is stored in described deposit In reservoir and the computer program that can run on the processor, the processor are realized such as when performing the computer program The step of eye care method of the mobile terminal.
On the other hand, present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium Computer program is stored with, the step of the eye care method such as the mobile terminal is realized when the computer program is executed by processor Suddenly.
The present invention carries out recognition of face by obtaining the image in front of mobile terminal camera, to the facial image of acquisition, Default multiple human faces in face recognition result are obtained, detect each human face to the distance of mobile terminal screen, According to the distance detected, the range difference of distance between any two is calculated, is exceeded in detecting distance difference with the presence or absence of range difference default Threshold values, when exceeding pre-set threshold value there are range difference in range difference, performs default eyeshield operation, so as to improve mobile terminal Eyeshield effect.
Brief description of the drawings
Fig. 1 is that the eye care method for the mobile terminal that the embodiment of the present invention one provides realizes flow chart;
Fig. 2 is that the eye care method of mobile terminal provided by Embodiment 2 of the present invention realizes flow chart;
Fig. 3 is the structure diagram of the eye protector for the mobile terminal that the embodiment of the present invention three provides;
Fig. 4 is the structure diagram of the eye protector for the mobile terminal that the embodiment of the present invention four provides;And
Fig. 5 is the structure diagram for the mobile terminal that the embodiment of the present invention five provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is described in detail below in conjunction with specific implementation of the specific embodiment to the present invention:
Embodiment one:
Fig. 1 shows that the eye care method for the mobile terminal that the embodiment of the present invention one provides realizes flow, for the ease of saying It is bright, illustrate only with the relevant part of the embodiment of the present invention, details are as follows:
In step S101, the image in front of mobile terminal camera is obtained, face knowledge is carried out to the facial image of acquisition Not.
The embodiment of the present invention is suitable for mobile terminal, is particularly suitable for the Portable movables such as mobile phone, tablet computer, learning machine Terminal, eyeshield prompting is carried out to facilitate to mobile terminal user.In embodiments of the present invention, when mobile terminal is in use state When, the image in front of mobile terminal camera is obtained in real time, and recognition of face is carried out to the facial image of acquisition, to obtain movement Face information in front of terminal camera, so that the convenient face information according to acquisition, confirms that mobile terminal user whether there is The problem of abnormal sitting posture or strabismus.
In step s 102, default multiple human faces in face recognition result are obtained, detect each human face To the distance of mobile terminal screen, according to the distance detected, the range difference of distance between any two is calculated.
In embodiments of the present invention, default multiple human faces in face recognition result are obtained first, that is, mark this The orientation of a little multiple human faces, then according to the orientation of each human face, detects each human face to mobile terminal screen The distance of curtain, it is last that these range differences of distance between any two are calculated according to the distance detected.
Wherein, default multiple human faces can be the human body face organs such as eyes, face, nose, ear or eyebrow, Preferably, default multiple human faces are two eyes and face, so that while calculation amount is reduced, improve calculating Accuracy, and then improve the accuracy that eyeshield is reminded.
In step s 103, exceed pre-set threshold value with the presence or absence of range difference in detecting distance difference, be then to perform step S104, Otherwise step S101 is performed, to continue to obtain the image in front of mobile terminal camera.
In step S104, when exceeding pre-set threshold value there are range difference in range difference, default eyeshield operation is performed.
In embodiments of the present invention, the range difference in advance for each distance between any two is provided with threshold values, obtain it is each Human face detects to after the distance range difference between any two of mobile terminal screen and whether there is distance in these range differences Difference exceedes pre-set threshold value (pre-set threshold value can be 1cm, 2cm or 3cm etc.), default when exceeding in these range differences there are range difference During threshold values, illustrate that mobile terminal user there are the problem of abnormal sitting posture or strabismus, therefore, performs default eyeshield operation at this time, Corrected faulty sitting posture with prompting mobile terminal user, avoid squinting.When exceeding pre-set threshold value there is no range difference in these range differences, Illustrate that mobile terminal user at this time watches the posture standard of comparison of mobile terminal, i.e., there is no the problem of abnormal sitting posture or strabismus, It therefore, there is no need to perform corresponding eyeshield operation.In this way, by adjust the distance difference detection improve eyeshield remind accuracy with Eyeshield effect.Specifically, default eyeshield operation can be that the eyeshield to user's output adjustment posture is reminded and/or vibrations carry Wake up.
Preferably, after default eyeshield operation is performed, detection user was in preset time period (such as 1 minute or two points Clock) in whether adjust posture to eyeshield posture, wherein, eyeshield posture is so that there is no range difference to exceed in the range difference obtained The user of pre-set threshold value watches the posture of mobile terminal, if user is interior not in preset time period (such as 1 minute or two minutes) Posture is adjusted to eyeshield posture, then can perform blank screen, screen locking or close the mandatory behaviour such as user's application program currently in use Make, until when user adjusts posture to eyeshield posture, the imperative operation before releasing, so that user can be moved with normal use Terminal, so as to achieve the purpose that eyeshield.
As illustratively, when detect user using learning machine viewing attend class video when, obtain learning machine screen in real time first The image in curtain front, and recognition of face is carried out to the facial image of acquisition, to obtain the face information in front of learning machine camera, Then two eyes and face in face recognition result are obtained, that is, mark the orientation of two eyes and face, and according to two The orientation of eyes and face, detects two eyes and face to the distance of learning machine screen, this is calculated according to the distance detected Range difference (the one eye i.e. in two eyes to the distance between learning machine screen difference, two eyes of a little distances between any two Eyeball and face are to this poor 3 range differences of the distance between learning machine screen), finally detect whether there is in this 3 range differences away from Deviation more than 3cm, when in these range differences there are range difference more than this pre-set threshold value of 3cm when, illustrate that user exists at this time and sit Appearance not just or strabismus the problem of, therefore, to user export eyeshield remind, to remind user to correct faulty sitting posture, avoid squinting, so as to carry The accuracy and eyeshield effect that high eyeshield is reminded.
Embodiment two:
What Fig. 2 showed the eye care method of mobile terminal provided by Embodiment 2 of the present invention realizes flow, for the ease of saying It is bright, illustrate only with the relevant part of the embodiment of the present invention, details are as follows:
In step s 201, whether in the unlocked state the screen of mobile terminal is detected, when the screen of mobile terminal is in During released state, start the camera of mobile terminal.
The embodiment of the present invention is suitable for mobile terminal, is particularly suitable for mobile phone, tablet computer, learning machine, laptop Deng portable mobile termianl, eyeshield prompting is carried out to mobile terminal user to facilitate.In embodiments of the present invention, detection moves first Whether the screen of dynamic terminal is in the unlocked state, when the screen of mobile terminal is in the unlocked state, illustrates that user is used Therefore mobile terminal, starts the camera of mobile terminal, it is necessary to be detected to user using the viewing posture of mobile terminal, So as to the convenient state that user's viewing mobile terminal is obtained by camera.When the screen of mobile terminal is not at released state When, illustrate that mobile terminal is not used in user, it is not necessary to posture is watched to user and is detected, therefore, is started without moving The camera of dynamic terminal, so as to reduce the energy consumption of mobile terminal.
In step S202, the image in front of mobile terminal camera is obtained, face knowledge is carried out to the facial image of acquisition Not.
In embodiments of the present invention, when the screen of mobile terminal is in the unlocked state, illustrate that mobile terminal is in and use State, therefore, obtains the image in front of mobile terminal camera in real time, and carries out recognition of face to the facial image of acquisition, with The face information in front of mobile terminal camera is obtained, so that the convenient face information according to acquisition, confirms mobile terminal user The problem of with the presence or absence of abnormal sitting posture or strabismus.
In step S203, when including multiple faces in face recognition result, detect respectively each in each face Human face according to the distance detected, calculates distance in each face between any two to the distance of mobile terminal screen Range difference.
In embodiments of the present invention, first determine whether include multiple faces in face recognition result, when recognition of face knot When multiple faces are included in fruit, each face in face recognition result is obtained, and mark each of these each faces respectively Human face, i.e., mark the orientation of multiple human faces in these each faces, then according to the side of each human face respectively Position, detects each human face in each face and, to the distance of mobile terminal screen, finally calculates this according to the distance detected The range difference of a little distances between any two, so that convenient confirm the problem of unique user is with the presence or absence of abnormal sitting posture or strabismus.
Wherein, default multiple human faces can be the human body face organs such as eyes, face, nose, ear or eyebrow, Preferably, default multiple human faces are two eyes, so that while calculation amount is reduced, improve the accurate of calculating Property, and then improve the accuracy that eyeshield is reminded.
Preferably, when including multiple faces in face recognition result, face is known according to the azimuth information of each face The multiple faces included in other result are numbered, so as to optimize the process of data record and statistics, improve computation rate.
In step S204, detect in each face and exceed in advance with the presence or absence of range difference in the range difference of each human face If threshold values, it is then to perform step S205, otherwise performs step S202, continues to obtain the image in front of mobile terminal camera.
In step S205, to exceed pre-set threshold value when there are range difference in the range difference of each human face in each face When, export corresponding eyeshield to mobile terminal user and remind.
In embodiments of the present invention, the range difference in advance for each distance between any two is provided with threshold values, obtain it is each To after the distance range difference between any two of mobile terminal screen, detect in these range differences is each human face in face No there are range difference to exceed pre-set threshold value (pre-set threshold value can be 1cm, 2cm or 3cm etc.), when there are distance in these range differences Difference is when exceeding pre-set threshold value, and illustrate to have users at this time abnormal sitting posture or the problem of squint, and therefore, performs default eyeshield and grasps Make, to remind the user that there are problems that abnormal sitting posture or strabismus to correct faulty sitting posture, avoid squinting.When in these range differences be not present away from When deviation exceedes pre-set threshold value, illustrate that mobile terminal users all at this time watches posture standards of comparison of mobile terminal, i.e., There is no the problem of abnormal sitting posture or strabismus, therefore, there is no need to perform default eyeshield operation.So pass through the inspection for difference of adjusting the distance Survey the accuracy and eyeshield effect for improving eyeshield prompting.Specifically, default eyeshield operation can be to user's output adjustment The eyeshield of posture is reminded.
Preferably, after default eyeshield operation is performed, detection user was in preset time period (such as 1 minute or two points Clock) in whether adjust posture to eyeshield posture, wherein, eyeshield posture is so that there is no range difference to exceed in the range difference obtained The user of pre-set threshold value watches the posture of mobile terminal, if user is interior not in preset time period (such as 1 minute or two minutes) Posture is adjusted to eyeshield posture, then can perform blank screen, screen locking or close the mandatory behaviour such as user's application program currently in use Make, until when user adjusts posture to eyeshield posture, the imperative operation before releasing, so that user can be moved with normal use Terminal, so as to achieve the purpose that eyeshield.
As illustratively, when detecting multiple users using laptop viewing video, notes are obtained in real time first Image in front of this computer screen, and recognition of face is carried out to the facial image of acquisition, to obtain in front of laptop screen Face information, when including multiple faces in face recognition result, obtain face recognition result in each face, and respectively Two eyes and face of these each faces are marked, i.e., mark the side of two eyes and face in these each faces respectively Position, and according to the orientation of two eyes and face, detect two eyes on each face and face to learning machine screen away from From calculating these distance range differences between any two according to the distance detected, finally detect and whether there is in these range differences Range difference more than 3cm, when in these range differences there are range difference more than this pre-set threshold value of 3cm when, illustrate there is user to deposit at this time The abnormal sitting posture or strabismus the problem of, therefore, the user that there are problems that abnormal sitting posture or strabismus is obtained first, right rear line is defeated Go out eyeshield prompting, to remind the user that there are problems that abnormal sitting posture or strabismus to correct faulty sitting posture, avoid squinting, so as to improve eyeshield The accuracy and eyeshield effect of prompting.
Embodiment three:
Fig. 3 shows the structure of the eye protector for the mobile terminal that the embodiment of the present invention three provides, for convenience of description, only Show with the relevant part of the embodiment of the present invention, including:
Image identification unit 31, for obtaining the image in front of mobile terminal camera, carries out the facial image of acquisition Recognition of face.
In embodiments of the present invention, when mobile terminal is in use state, image identification unit 31 obtains movement in real time Image in front of terminal camera, and recognition of face is carried out to the facial image of acquisition, to obtain in front of mobile terminal camera Face information so that the convenient face information according to acquisition, confirms that mobile terminal user whether there is abnormal sitting posture or strabismus The problem of.
First computing unit 32, for obtaining default multiple human faces in face recognition result, detects each individual Face, according to the distance detected, calculates the range difference of distance between any two to the distance of mobile terminal screen.
In embodiments of the present invention, the first computing unit 32 obtains default multiple faces in face recognition result first Organ, that is, mark the orientation of these multiple human faces, then according to the orientation of each human face, detects each human face It is last that these range differences of distance between any two are calculated according to the distance detected to the distance of mobile terminal screen.
Wherein, default multiple human faces can be the human body face organs such as eyes, face, nose, ear or eyebrow, Preferably, default multiple human faces are two eyes and face, so that while calculation amount is reduced, improve calculating Accuracy, and then improve the accuracy that eyeshield is reminded.
First reminding unit 33, for exceeding pre-set threshold value with the presence or absence of range difference in detecting distance difference, when in range difference When exceeding pre-set threshold value there are range difference, default eyeshield operation is performed.
In embodiments of the present invention, the range difference in advance for each distance between any two is provided with threshold values, obtain it is each Human face to after the distance range difference between any two of mobile terminal screen, the first reminding unit 33 detect first these away from Exceed pre-set threshold value (pre-set threshold value can be 1cm, 2cm or 3cm etc.) with the presence or absence of range difference in deviation, then when these distances When exceeding pre-set threshold value there are range difference in difference, illustrate at this time mobile terminal user there are abnormal sitting posture or strabismus the problem of, because This, is performed default eyeshield operation, is corrected faulty sitting posture with prompting mobile terminal user, avoided squinting.When not deposited in these range differences When range difference exceedes pre-set threshold value, illustrate the posture standard of comparison of the mobile terminal of mobile terminal user's viewing at this time, i.e., do not deposit The abnormal sitting posture or strabismus the problem of, it therefore, there is no need to perform default eyeshield operation.So carried by the detection for difference of adjusting the distance The accuracy and eyeshield effect that high eyeshield is reminded.Specifically, default eyeshield operation can be to user's output adjustment posture Eyeshield remind.
Preferably, after default eyeshield operation is performed, detection user was in preset time period (such as 1 minute or two points Clock) in whether adjust posture to eyeshield posture, wherein, eyeshield posture is so that there is no range difference to exceed in the range difference obtained The user of pre-set threshold value watches the posture of mobile terminal, if user is interior not in preset time period (such as 1 minute or two minutes) Posture is adjusted to eyeshield posture, then can perform blank screen, screen locking or close the mandatory behaviour such as user's application program currently in use Make, until when user adjusts posture to eyeshield posture, the imperative operation before releasing, so that user can be moved with normal use Terminal, so as to achieve the purpose that eyeshield.
In embodiments of the present invention, image identification unit 31 obtains the image in front of mobile terminal camera, to acquisition Facial image carries out recognition of face, and the first computing unit 32 obtains default multiple human faces in face recognition result, inspection Each human face is surveyed to the distance of mobile terminal screen, and according to the distance detected, calculates the distance of distance between any two Difference, exceedes pre-set threshold value in 33 detecting distance difference of the first reminding unit, when there are range difference in range difference with the presence or absence of range difference During more than pre-set threshold value, default eyeshield operation is performed, so as to improve the eyeshield effect of mobile terminal.
In embodiments of the present invention, each unit of the eye protector of mobile terminal can be real by corresponding hardware or software unit Existing, each unit can be independent soft and hardware unit, can also be integrated into a soft and hardware unit, herein not limiting Invention.
Example IV:
Fig. 4 shows the structure of the eye protector for the mobile terminal that the embodiment of the present invention four provides, for convenience of description, only Show with the relevant part of the embodiment of the present invention, including:
Camera start unit 41, whether the screen for detecting mobile terminal is in the unlocked state, when mobile terminal When screen is in the unlocked state, start the camera of mobile terminal.
In embodiments of the present invention, whether camera start unit 41 detects the screen of mobile terminal in unlock shape first State, when the screen of mobile terminal is in the unlocked state, illustrates that mobile terminal is used, it is necessary to use movement to user in user The viewing posture of terminal is detected, and therefore, starts the camera of mobile terminal, so that convenient obtain user's sight by camera See the state of mobile terminal.When the screen of mobile terminal is not at released state, it is mobile whole to illustrate that user is not used End, it is not necessary to posture is watched to user and is detected, therefore, the camera of mobile terminal is started without, so as to reduce movement The energy consumption of terminal.
Image identification unit 42, for obtaining the image in front of mobile terminal camera, carries out the facial image of acquisition Recognition of face.
In embodiments of the present invention, when the screen of mobile terminal is in the unlocked state, illustrate that mobile terminal is in and use State, therefore, image identification unit 42 obtain the image in front of mobile terminal camera in real time, and to the facial image of acquisition into Row recognition of face, to obtain the face information in front of mobile terminal camera, so that the convenient face information according to acquisition, confirms The problem of mobile terminal user is with the presence or absence of abnormal sitting posture or strabismus.
First computing unit 43, for obtaining default multiple human faces in face recognition result, detects each individual Face, according to the distance detected, calculates the range difference of distance between any two to the distance of mobile terminal screen.
In embodiments of the present invention, the first computing unit 43 obtains default multiple faces in face recognition result first Organ, that is, mark the orientation of these multiple human faces, then according to the orientation of each human face, detects each human face It is last that these range differences of distance between any two are calculated according to the distance detected to the distance of mobile terminal screen.
Preferably, before default multiple human faces in obtaining face recognition result, recognition of face is first determined whether As a result whether multiple faces are included in, when including multiple faces in face recognition result, obtained each in face recognition result A face, and mark each human face of these each faces respectively, i.e., multiple faces in these each faces are marked respectively The orientation of organ, then according to the orientation of each human face, detects in each face each human face to mobile terminal screen The distance of curtain, it is last that these range differences of distance between any two are calculated according to the distance detected, so that convenient confirm single use The problem of family is with the presence or absence of abnormal sitting posture or strabismus.
Wherein, default multiple human faces can be the human body face organs such as eyes, face, nose, ear or eyebrow, Preferably, default multiple human faces are two eyes, so that while calculation amount is reduced, improve the accurate of calculating Property, and then improve the accuracy that eyeshield is reminded.
Preferably, when including multiple faces in face recognition result, face is known according to the azimuth information of each face The multiple faces included in other result are numbered, so as to optimize the process of data record and statistics, improve computation rate.
First reminding unit 44, for exceeding pre-set threshold value with the presence or absence of range difference in detecting distance difference, when in range difference When exceeding pre-set threshold value there are range difference, default eyeshield operation is performed.
In embodiments of the present invention, the range difference in advance for each distance between any two is provided with threshold values, obtain it is each Human face to after the distance range difference between any two of mobile terminal screen, the first reminding unit 33 detect first these away from Exceed pre-set threshold value (pre-set threshold value can be 1cm, 2cm or 3cm etc.) with the presence or absence of range difference in deviation, then when these distances When exceeding pre-set threshold value there are range difference in difference, illustrate at this time mobile terminal user there are abnormal sitting posture or strabismus the problem of, because This, the first reminding unit 44 performs default eyeshield operation, is corrected faulty sitting posture with prompting mobile terminal user, avoids squinting.When this When exceeding pre-set threshold value there is no range difference in a little range differences, illustrate the posture ratio of the mobile terminal of mobile terminal user's viewing at this time Compared with standard, i.e., there is no the problem of abnormal sitting posture or strabismus, therefore, there is no need to perform default eyeshield operation.So by right The detection of range difference improves the accuracy and eyeshield effect of eyeshield prompting.
Preferably, when including multiple faces in face recognition result, each human face arrives in each face is obtained After the range difference of the distance of mobile terminal screen between any two, detect exceed in these range differences with the presence or absence of range difference first Pre-set threshold value, then when exceeding pre-set threshold value there are range difference in these range differences, illustrates to have users sitting posture at this time not The problem of just or squinting, therefore, performs default eyeshield operation, to remind the user that there are problems that abnormal sitting posture or strabismus to correct Sitting posture, avoid squinting.When exceeding pre-set threshold value there is no range difference in these range differences, illustrate mobile terminals all at this time User watches posture standards of comparison of mobile terminal, i.e., there is no the problem of abnormal sitting posture or strabismus, therefore, there is no need to perform Default eyeshield operation.The accuracy and eyeshield effect of eyeshield prompting are so improved by the detection for difference of adjusting the distance.Specifically, Default eyeshield operation can be that the eyeshield to user's output adjustment posture is reminded.
Preferably, after default eyeshield operation is performed, detection user was in preset time period (such as 1 minute or two points Clock) in whether adjust posture to eyeshield posture, wherein, eyeshield posture is so that there is no range difference to exceed in the range difference obtained The user of pre-set threshold value watches the posture of mobile terminal, if user is interior not in preset time period (such as 1 minute or two minutes) Posture is adjusted to eyeshield posture, then can perform blank screen, screen locking or close the mandatory behaviour such as user's application program currently in use Make, until when user adjusts posture to eyeshield posture, the imperative operation before releasing, so that user can be moved with normal use Terminal, so as to achieve the purpose that eyeshield.
It is therefore preferred that when deserving to include multiple faces in the face recognition result, first computing unit 43 wraps Include:
Second computing unit 431, it is whole to the movement for detecting each human face in each face respectively The distance of screen is held, according to the distance detected, calculates the range difference of distance between any two in each face;
First reminding unit 44 includes:
Second reminding unit 441, for detect described in each face in the range difference of each human face whether There are range difference to exceed the pre-set threshold value, when there are distance in the range difference of each human face described in each face When difference exceedes the pre-set threshold value, default eyeshield operation is performed.
In embodiments of the present invention, each unit of the eye protector of mobile terminal can be real by corresponding hardware or software unit Existing, each unit can be independent soft and hardware unit, can also be integrated into a soft and hardware unit, herein not limiting Invention.
Embodiment five:
Fig. 5 shows the structure for the mobile terminal that the embodiment of the present invention five provides, and for convenience of description, illustrate only and this The relevant part of inventive embodiments.
The mobile terminal 5 of the embodiment of the present invention includes processor 50, memory 51 and is stored in memory 51 and can The computer program 52 run on processor 50.The processor 50 is realized above-mentioned each mobile whole when performing computer program 52 Step in the eye care method embodiment at end, for example, the step S101 to the step S201 shown in S104, Fig. 2 shown in Fig. 1 is extremely S205.Alternatively, processor 50 realizes the function of each unit in above-mentioned each device embodiment when performing computer program 52, for example, The function of unit 31 to 33 shown in Fig. 3, unit 41 to 44 shown in Fig. 4.
In embodiments of the present invention, the shield of above-mentioned each mobile terminal is realized when which performs computer program 52 During step in eye embodiment of the method, the image in front of mobile terminal camera is obtained, face is carried out to the facial image of acquisition Identification, obtains default multiple human faces in face recognition result, detects each human face to mobile terminal screen Distance, according to the distance detected, calculates the range difference of distance between any two, exceedes in detecting distance difference with the presence or absence of range difference Pre-set threshold value, when exceeding pre-set threshold value there are range difference in range difference, performs default eyeshield operation, so as to improve movement The eyeshield effect of terminal.
The mobile terminal of the embodiment of the present invention can be mobile phone, tablet computer or learning machine.Processor in the mobile terminal 5 50 specifically refer to the description of method in embodiment one the step of realization when performing computer program 52, details are not described herein.
Embodiment six:
In embodiments of the present invention, there is provided a kind of computer-readable recording medium, the computer-readable recording medium are deposited Computer program is contained, which realizes the eye care method embodiment of above-mentioned each mobile terminal when being executed by processor In step, for example, the step S101 to the step S201 to S205 shown in S104, Fig. 2 shown in Fig. 1.Alternatively, the computer journey The function of each unit in above-mentioned each device embodiment is realized when sequence is executed by processor, for example, unit 31 to 33 shown in Fig. 3, Fig. 4 The function of shown unit 41 to 44.
In embodiments of the present invention, the image in front of mobile terminal camera is obtained, to the facial image of acquisition into pedestrian Face identifies, obtains default multiple human faces in face recognition result, detects each human face to mobile terminal screen Distance, according to the distance detected, calculate the range difference of distance between any two, surpass in detecting distance difference with the presence or absence of range difference Pre-set threshold value is crossed, when exceeding pre-set threshold value there are range difference in range difference, default eyeshield operation is performed, so as to improve shifting The eyeshield effect of dynamic terminal.The eye care method for the mobile terminal that the computer program is realized when being executed by processor can further join The description of step in embodiment of the method is stated before examination, and details are not described herein.
The computer-readable recording medium of the embodiment of the present invention can include that any of computer program code can be carried Entity or device, recording medium, for example, the memory such as ROM/RAM, disk, CD, flash memory.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of eye care method of mobile terminal, it is characterised in that the described method includes following step:
The image in front of mobile terminal camera is obtained, recognition of face is carried out to the facial image of the acquisition;
Default multiple human faces in the face recognition result are obtained, detect each human face to the movement The distance of terminal screen, according to the distance detected, calculates the range difference of the distance between any two;
Detect in the range difference and exceed pre-set threshold value with the presence or absence of range difference, to exceed institute when there are range difference in the range difference When stating pre-set threshold value, default eyeshield operation is performed.
2. the method as described in claim 1, it is characterised in that default multiple human faces include two on face Eyes and face.
3. the method as described in claim 1, it is characterised in that when including multiple faces in the face recognition result, inspection Each human face is surveyed to the distance of the mobile terminal screen, according to the distance detected, calculates the distance The step of range difference between any two, including:
Each human face in each face is detected respectively to the distance of the mobile terminal screen, according to the detection The distance arrived, calculates the range difference of distance between any two in each face;
Detect in the range difference and exceed pre-set threshold value with the presence or absence of range difference, to exceed institute when there are range difference in the range difference When stating pre-set threshold value, the step of default eyeshield operates is performed, including:
Detect and exceed the default valve with the presence or absence of range difference in the range difference of each human face described in each face Value, when exceeding the pre-set threshold value there are range difference in the range difference of each human face described in each face, holds The row default eyeshield operation.
4. method as claimed in claim 3, it is characterised in that when including multiple faces in the face recognition result, institute The method of stating further includes:
The multiple faces included in the face recognition result are numbered according to the azimuth information of each face.
5. the method as described in claim 1, it is characterised in that obtain mobile terminal camera in front of image the step of it Before, the method further includes:
Detect whether the screen of the mobile terminal is in the unlocked state, when the screen of the mobile terminal is in the unlock shape During state, start the camera of the mobile terminal.
6. a kind of eye protector of mobile terminal, it is characterised in that described device includes:
Image identification unit, for obtaining the image in front of mobile terminal camera, to the facial image of the acquisition into pedestrian Face identifies;
First computing unit, for obtaining default multiple human faces in the face recognition result, detection is described each Human face according to the distance detected, calculates the distance between any two to the distance of the mobile terminal screen Range difference;And
First reminding unit, exceedes pre-set threshold value, when the range difference for detecting in the range difference with the presence or absence of range difference In when exceeding the pre-set threshold value there are range difference, perform default eyeshield operation.
7. device as claimed in claim 6, it is characterised in that when including multiple faces in the face recognition result, institute Stating the first computing unit includes:
Second computing unit, for detecting each human face in each face respectively to the mobile terminal screen Distance, according to the distance detected, calculates the range difference of distance between any two in each face;
First reminding unit includes:
Second reminding unit, whether there is distance for detecting in the range difference of each human face described in each face Difference exceedes the pre-set threshold value, to exceed institute when there are range difference in the range difference of each human face described in each face When stating pre-set threshold value, the default eyeshield operation is performed.
8. device as claimed in claim 6, it is characterised in that described device further includes:
Camera start unit, whether the screen for detecting the mobile terminal is in the unlocked state, when the mobile terminal Screen when being in the released state, start the camera of the mobile terminal.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that the processor realizes such as claim 1 to 5 when performing the computer program The step of any one the method.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 the method.
CN201711045346.3A 2017-10-31 2017-10-31 Eye protection method and device for mobile terminal, mobile terminal and storage medium Pending CN107948399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711045346.3A CN107948399A (en) 2017-10-31 2017-10-31 Eye protection method and device for mobile terminal, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711045346.3A CN107948399A (en) 2017-10-31 2017-10-31 Eye protection method and device for mobile terminal, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN107948399A true CN107948399A (en) 2018-04-20

Family

ID=61935969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711045346.3A Pending CN107948399A (en) 2017-10-31 2017-10-31 Eye protection method and device for mobile terminal, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107948399A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062644A (en) * 2018-07-11 2018-12-21 北京字节跳动网络技术有限公司 The method and apparatus of processing information for terminal
CN109889901A (en) * 2019-03-27 2019-06-14 深圳创维-Rgb电子有限公司 Control method for playing back, device, equipment and the storage medium of playback terminal
CN110334629A (en) * 2019-06-26 2019-10-15 湖北秉正讯腾科技有限公司 Can multi-faceted detecting distance method, apparatus and readable storage medium storing program for executing
CN111028558A (en) * 2019-05-10 2020-04-17 广东小天才科技有限公司 Dictation detection method and electronic equipment
CN111223549A (en) * 2019-12-30 2020-06-02 华东师范大学 Mobile end system and method for disease prevention based on posture correction
CN112948778A (en) * 2019-12-11 2021-06-11 百度在线网络技术(北京)有限公司 Intelligent device control method and device and intelligent device
CN114639157A (en) * 2022-05-18 2022-06-17 合肥的卢深视科技有限公司 Bad learning behavior detection method, system, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969539A (en) * 2010-09-30 2011-02-09 冠捷显示科技(厦门)有限公司 Television automatic steering method based on user perspective
CN103729981A (en) * 2014-01-03 2014-04-16 东南大学 Child sitting posture monitoring intelligent terminal
US20150379716A1 (en) * 2014-06-30 2015-12-31 Tianma Micro-Electornics Co., Ltd. Method for warning a user about a distance between user' s eyes and a screen
CN105260697A (en) * 2015-08-26 2016-01-20 上海卓易科技股份有限公司 Method for preventing eye fatigue and applicable mobile device
CN106295549A (en) * 2016-08-05 2017-01-04 深圳市鹰眼在线电子科技有限公司 Multi-orientation Face collecting method and device
CN107066089A (en) * 2017-03-08 2017-08-18 北京互讯科技有限公司 A kind of mobile phone eye posture guard method based on computer vision technique
CN107147799A (en) * 2017-05-31 2017-09-08 东莞市联臣电子科技股份有限公司 A kind of electronic equipment, eyes protecting system and eye care method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969539A (en) * 2010-09-30 2011-02-09 冠捷显示科技(厦门)有限公司 Television automatic steering method based on user perspective
CN103729981A (en) * 2014-01-03 2014-04-16 东南大学 Child sitting posture monitoring intelligent terminal
US20150379716A1 (en) * 2014-06-30 2015-12-31 Tianma Micro-Electornics Co., Ltd. Method for warning a user about a distance between user' s eyes and a screen
CN105260697A (en) * 2015-08-26 2016-01-20 上海卓易科技股份有限公司 Method for preventing eye fatigue and applicable mobile device
CN106295549A (en) * 2016-08-05 2017-01-04 深圳市鹰眼在线电子科技有限公司 Multi-orientation Face collecting method and device
CN107066089A (en) * 2017-03-08 2017-08-18 北京互讯科技有限公司 A kind of mobile phone eye posture guard method based on computer vision technique
CN107147799A (en) * 2017-05-31 2017-09-08 东莞市联臣电子科技股份有限公司 A kind of electronic equipment, eyes protecting system and eye care method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062644A (en) * 2018-07-11 2018-12-21 北京字节跳动网络技术有限公司 The method and apparatus of processing information for terminal
CN109062644B (en) * 2018-07-11 2019-10-22 北京字节跳动网络技术有限公司 The method and apparatus of processing information for terminal
CN109889901A (en) * 2019-03-27 2019-06-14 深圳创维-Rgb电子有限公司 Control method for playing back, device, equipment and the storage medium of playback terminal
CN111028558A (en) * 2019-05-10 2020-04-17 广东小天才科技有限公司 Dictation detection method and electronic equipment
CN110334629A (en) * 2019-06-26 2019-10-15 湖北秉正讯腾科技有限公司 Can multi-faceted detecting distance method, apparatus and readable storage medium storing program for executing
CN110334629B (en) * 2019-06-26 2022-12-23 如隆智能科技(嘉兴)有限公司 Method and device capable of detecting distance in multiple directions and readable storage medium
CN112948778A (en) * 2019-12-11 2021-06-11 百度在线网络技术(北京)有限公司 Intelligent device control method and device and intelligent device
CN111223549A (en) * 2019-12-30 2020-06-02 华东师范大学 Mobile end system and method for disease prevention based on posture correction
CN114639157A (en) * 2022-05-18 2022-06-17 合肥的卢深视科技有限公司 Bad learning behavior detection method, system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107948399A (en) Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN104934014B (en) Sight protectio method and device
CN110377385B (en) Screen display method and device and terminal equipment
CN106569612A (en) Method for protecting eyes, display device for protecting eyes and terminal
CN102610184B (en) Method and device for adjusting display state
CN106445151B (en) Terminal screen brightness control method and terminal
CN105448053B (en) Posture reminding method and system
CN109769397A (en) The realization of biometric authentication
CN104375628B (en) A kind of information processing method and electronic equipment
US20120075483A1 (en) Systems and Methods for Ergonomic Measurement
CN102129554B (en) Method for controlling password input based on eye-gaze tracking
US11376393B2 (en) Device and method for training memory using brain stimulation
CN109993115A (en) Image processing method, device and wearable device
CN110211549A (en) A kind of screen brightness regulation method, device, terminal and storage medium
US11328687B2 (en) Display adjustment method, display adjustment apparatus, display device, computer device and storage medium
CN107993630A (en) Eye protection method and device for display terminal, terminal and storage medium
CN106060142A (en) Mobile phone capable of checking eyesight, and method for checking eyesight by using mobile phone
CN108154121A (en) Cosmetic auxiliary method, smart mirror and storage medium based on smart mirror
US20170277258A1 (en) Method for adjusting screen luminance and electronic device
CN109933193A (en) Intelligent auxiliary training system based on sportsman's eye movement information real-time capture
CN107451529A (en) Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN110084219B (en) Interface interaction method and device
CN107832029B (en) Display processing method and device, terminal and computer readable storage medium
CN105096413B (en) The limit grade method of adjustment of intelligent door lock, apparatus and system
CN109766007A (en) A kind of the blinkpunkt compensation method and compensation device, display equipment of display equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420