[go: up one dir, main page]

CN106648081A - Method for turning off screen and electronic equipment - Google Patents

Method for turning off screen and electronic equipment Download PDF

Info

Publication number
CN106648081A
CN106648081A CN201611111002.3A CN201611111002A CN106648081A CN 106648081 A CN106648081 A CN 106648081A CN 201611111002 A CN201611111002 A CN 201611111002A CN 106648081 A CN106648081 A CN 106648081A
Authority
CN
China
Prior art keywords
electronic equipment
distance
screen
human eye
threshold range
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
CN201611111002.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.)
JRD Communication Shenzhen Ltd
Original Assignee
JRD Communication Shenzhen 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 JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Priority to CN201611111002.3A priority Critical patent/CN106648081A/en
Publication of CN106648081A publication Critical patent/CN106648081A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for turning off a screen and electronic equipment. The method comprises the steps of starting a front camera of the electronic equipment to acquire an image; when a human eye is detected in the image, measuring a distance between the front camera and the human eye; comparing the distance with a preset threshold range; if the distance is less than the minimum value of the threshold range, turning off the screen of the electronic equipment to remind a user of keeping of a viewing distance. Therefore, the purpose of preventing myopia is achieved.

Description

Method and electronic equipment that control screen is extinguished
Technical field
The present invention relates to moving communicating field, method and electronic equipment that more particularly to a kind of control screen is extinguished.
Background technology
With mobile electronic device such as smart mobile phone, the popularization of panel computer, people's long-time uses mobile electronic device Eye fatigue, particularly teenager can be caused not to note keeping the distance of viewing electronic curtain, be very easy to cause myopia.It is existing Myopia prevention product, mainly eye strain is alleviated by physical massage and corrects faulty sitting posture method reaching prevention purpose, for example Anti-myopia glasses and " BABAKA ", but these methods have the disadvantage that:
1. user can not be reminded in the application to keep suitable distance to watch electronic equipment screen;
2. mobile electronic device small volume, easy to carry, and user can be used with various postures in various occasions, correction The method of sitting posture is difficult to;
3. these myopia prevention products carry inconvenient.
And presently relevant ranging technology mainly has infrared distance measurement, ultrasonic ranging, laser ranging, binocular is found range and monocular Range finding, monocular distance-finding method is focused including monocular, out of focus, and double focus method etc..These ranging technologies are present in actual applications very Many defects, it is specific as follows:
1. the higher hardware device for using the methods such as ultrasonic ranging, laser ranging, binocular range finding to need, such as it is infrared Transmitter, generating laser, and 3D binocular solid cameras, and general mobile electronic device does not possess these hardware, it is difficult to Using this several technology;
2. focus method and depend on the accurate calibration to camera model, technical requirements are higher;
3. bifocal rule is required to the camera of physics zoom, and general electronic equipment volume is less and frivolous, is equipped with Camera typically all there is no physics zoom function;
4. out of focus method needs the analysis that complexity is carried out to image, such as judges image blur, and carrying out interpolation arithmetic carries out side Edge detection and width calculation, are not suitable for real-time measurement distance, and higher to the performance requirement of system.
Front-facing camera is nearly all carried in existing mobile electronic device, but be there is presently no by the front-facing camera The optical principle of module realizing the measurement of viewing distance to reach pre- myopic-preventing technology, therefore, prior art needs Improve and develop.
The content of the invention
The invention mainly solves the technical problem of method and the electronic equipment that a kind of control screen is extinguished is provided, to pass through Measure the distance between eyes and screen of electronic equipment user to remind user to keep viewing distance, reach pre- myopia prevention Purpose.
To solve above-mentioned technical problem, one aspect of the present invention is:There is provided what a kind of control screen was extinguished Method, methods described is applied to electronic equipment, and methods described includes:
Start the front-facing camera of the electronic equipment, to obtain image;
When detecting human eye in described image, the distance between the front-facing camera and described human eye are measured;
The distance is compared with default threshold range;And
If the distance is extinguished less than the minimum of a value of the threshold range, the screen for controlling the electronic equipment.
Wherein, it is described to carry out the distance with default threshold range when the screen of the electronic equipment is not actuated Relatively the step of, includes:
If the distance is located in the default threshold range, the screen of the electronic equipment is opened.
Wherein, after the step of screen of the unlatching electronic equipment, methods described is further included:
According to the brightness of the distance adjustment screen.
Wherein, it is described to include the step of the distance is compared with default threshold range:
If the distance is put out more than the maximum of the default threshold range, the screen for controlling the electronic equipment Go out.
Wherein, before the step of screen in the control electronic equipment extinguishes, methods described is further included:
Continuous n times determine minimum of a value of the distance less than the default threshold range within the default time, then The screen for controlling the electronic equipment extinguishes.
To solve above-mentioned technical problem, another technical solution used in the present invention is:There is provided a kind of control screen to extinguish Electronic equipment, the electronic equipment includes:
Starting module, for starting the front-facing camera of the electronic equipment, to obtain image;
Detection module, is connected with the starting module, for detecting described image in whether there is human eye;
Measurement module, is connected with the detection module, for measure when the detection module detects human eye it is described before Put the distance between camera and described human eye;
Judge module, is connected with the measurement module, for the distance to be compared with default threshold range;And
Control module, is connected with the judge module, for being less than the default threshold range most in the distance During little value, the screen for controlling the electronic equipment extinguishes.
Wherein, when the screen of the electronic equipment is not actuated, if the judge module determines the measurement module and surveys The front-facing camera measured to the distance between the human eye is located in the threshold range, then the control module control is described The screen opening of electronic equipment.
Wherein, after the screen opening of the electronic equipment, the control module is measured according to the measurement module The front-facing camera to the screen of the distance between the human eye adjustment electronic equipment brightness.
Wherein, if the judge module determines the front-facing camera that the measurement module measures to the human eye The distance between more than the default threshold range maximum, then the control module control the screen of the electronic equipment Extinguish.
Wherein, the judge module continuous n times within the default time are determined described in the measurement module measures Front-facing camera to the distance between the human eye less than the default threshold range minimum of a value, then the control module control The screen for making the electronic equipment extinguishes.
The invention has the beneficial effects as follows:It is different from the situation of prior art, the side of the control screen extinguishing of the present invention Method and electronic equipment obtain image by the front-facing camera of the electronic equipment, and detect when there is human eye in described image The human eye is less than with detecting the human eye in the given time to the distance of the camera to the distance of the camera The screen is controlled during the minimum of a value of the default threshold range to extinguish to remind user to keep viewing distance, reaches prevention The purpose of myopia.
Description of the drawings
Fig. 1 is the flow chart of the method that the control screen of the present invention is extinguished;
Fig. 2 is the image-forming principle schematic diagram of the front-facing camera of the present invention;
Fig. 3 is the frame structure schematic diagram of the electronic equipment that the control screen of the present invention is extinguished;
Fig. 4 is the hardware architecture diagram of the electronic equipment that the control screen of the present invention is extinguished.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the skill to each exemplary embodiment provided by the present invention Art scheme is clearly and completely described.In the case where not conflicting, the feature in following each embodiment and embodiment can To be mutually combined.
Fig. 1 is referred to, is the flow chart of the method that control screen of the present invention is extinguished.Method application disclosed in the present embodiment In electronic equipment, the method is comprised the following steps:
Step S1:Start the front-facing camera of the electronic equipment, to obtain image.
Wherein, the front-facing camera for starting the electronic equipment is specially two ways, and a kind of mode is that user passes through hand Dynamic operation causes the front-facing camera to start, the front-facing camera timing acquisition image, or the preposition shooting afterwards Head continues capture images;Another way need not be manually operated to start the front-facing camera for user, it is described before Put camera the electronic equipment startup after start by set date with capture images.
In step sl, first by electronic equipment, the such as front-facing camera of mobile phone gathers facial image, figure is then carried out again As pre-processing, including gray processing process, mean filter and histogram equalization.Image enhaucament mainly includes airspace enhancement and frequency domain Strengthen, image is converted into gray-scale map, can so improve the operational efficiency of system by the first step, and second step carries out mean filter, Mean filter is one of conventional linear filter, has good inhibiting effect to noise, can also carry out intermediate value to image Filtering, neighborhood averaging filter method are processed.3rd step is histogram equalization, each gray level in histogram table diagram picture Statistical relationship between the frequency occurred with it, to image gray scale stretching is carried out, and can improve picture contrast, removes some right The unfavorable factor that human eye detection is caused, such as illumination.Step S1 is primarily at the facial image to camera collection Reason, obtain the higher image of quality, so as to follow-up human eye detection it is more accurate.
At present the camera lens of mobile phone front-facing camera module is convex lens, and focal length is fixed, and is essentially all solid burnt module, as , once mixing up, would not change away from the distance of camera lens (camera inductor with), that is to say, that DOF (Depth Of Field, thing Body in thinking imaging clearly from a certain distance range of camera lens, such as this segment limit from 35cm to 43cm) when dispatching from the factory Jing is mixed up as fixed value.
Step S2:Whether there is human eye in detection described image.
Wherein, detect in described image whether have human eye to be specially:Can regularly detect in described image whether there is human eye Or persistently detect in described image there is human eye.
Specifically, when detecting human eye in described image, into step S3;Otherwise, return to step S1.
In step s 2, human eye profile size is essentially identical, you can be considered a fixed value, even if everyone eyes are big Little deviation, but the range error that thus deviation is brought can be acceptance for Consumer's Experience, that is, allow range measurement It can be that fixed value is described as the condition set up using human eye size to have in certain error, therefore the present embodiment, wherein, detect people The scheme of eye can be calculated using contour detecting method or third party's human eye detection algorithm, the contour detecting method or third party's human eye detection Method is state of the art, will not be described here, and the selection of the contour detecting method or third party's human eye detection algorithm can To carry out as needed.
Step S3:Measure the distance between the front-facing camera and described human eye.
In step s3, refer to shown in Fig. 2, according to the image-forming principle of convex lens, in the situation that image distance and focal length are fixed Under, the difference of object distance can cause imaging size accordingly to change.In fig. 2, position of the object of formed objects in u1 and u2, The size being imaged on camera inductor is respectively s1 and s2.If object edge through lens centre light and horizontal line institute into Angle is angle, and the distance of object to lens is u, and the distance of inductor to camera lens is v, and the original size of object is Sorig, Then being imaged size Simg computing formula is:
Simg=v*tan (angle)=v* (Sorig/u)=Sorig*v/u
When article size is fixed, due to inductor to lens apart from v be fixed value, therefore inductor on imaging it is big The linear relationship that little Simg is inversely proportional to object distance u.And because the eyes size that can consider people is substantially a fixed value, because It is the linear relationship being inversely proportional to the distance of human eye and camera that this human eye is ultimately imaged size.If the people for allowing is thought in setting Have hallucinations screen minimum range be u1, i.e. u1 be a certain fixed value (minimum of a value of default threshold range), due to human eye size Also it is fixed value, therefore it is also fixed value to be imaged size s1.
Step S4:The distance is compared with default threshold range, judges whether continuous within the default time Minimum of a value of three distances less than the default threshold range.
Specifically, if continuous three distances are entered less than the minimum of a value of the threshold range within the default time Enter step S5;Otherwise, into step S6.
In step s 4, if the screen of the electronic equipment has been started up, if now position of the human eye in u2, i.e., from taking the photograph When being less than u1 as the distance of head, then eyes imaging size s2 for detecting will be more than s1, i.e., now the human eye is taken the photograph to described As the distance of head is less than the minimum of a value of the default threshold range, user is now reminded to need to take screen a little further, if with Screen is not taken remote by family, then continuous n times determine the camera and human eye for detecting (in such as one minute) within the default time The distance between less than default threshold range minimum of a value, then control screen extinguish.Wherein, N is for twice or thrice or more. Wherein, if the human eye is more than the maximum of the default threshold range to the distance of the camera, also will control described The screen of electronic equipment extinguishes.
In step s 4, if the screen of the electronic equipment is not actuated, if now distance position of the human eye to camera In the default threshold range, then open the screen of the electronic equipment, and open the electronic equipment screen it Afterwards, the brightness of the screen is adjusted according to the distance of the human eye to camera.
Step S5:The screen for controlling the electronic equipment extinguishes.
Step S6:The screen of the electronic equipment is moved away from the human eye by prompting user.
The method that the control screen is extinguished obtains image by the front-facing camera of the electronic equipment, and in the figure The human eye is detected to the distance of the camera, when there is human eye as in detect the human eye in the given time to institute The distance for stating camera controls the screen and extinguishes to remind user to keep when being less than the minimum of a value of the default threshold range Viewing distance, reaches pre- myopic-preventing purpose.
Fig. 3 is referred to, is the frame structure schematic diagram of the electronic equipment of the control screen extinguishing of the present invention.The electronics sets It is standby to include starting module 10, detection module 20, measurement module 30, judge module 40 and control module 50.
The starting module 10 is used to start the front-facing camera of the electronic equipment, to obtain image.Wherein, institute is started The front-facing camera for stating electronic equipment is specially two ways, and a kind of mode is manually operated for user so that described preposition take the photograph As head starts, the front-facing camera timing acquisition image, or the front-facing camera afterwards continues capture images;It is another kind of Mode need not be manually operated to start the front-facing camera for user, and the front-facing camera is in the electronic equipment Start by set date is with capture images after startup.Specifically, first by electronic equipment, such as the front-facing camera collection face figure of mobile phone Picture, then carries out again Image semantic classification, including gray processing process, mean filter and histogram equalization.Image enhaucament is mainly wrapped Including airspace enhancement and frequency domain strengthens, and image is converted into gray-scale map by the first step, can so improve the operational efficiency of system, and second Step carries out mean filter, and mean filter is one of conventional linear filter, has good inhibiting effect to noise, can be with Carry out medium filtering, neighborhood averaging filter method to image to process.3rd step is histogram equalization, histogram table diagram picture In statistical relationship between each gray level and its frequency for occurring, gray scale stretching is carried out to image, image pair can be improved Than degree, some unfavorable factors caused to human eye detection, such as illumination are removed.In order to the facial image gathered to camera is carried out Process, obtain the higher image of quality, so as to follow-up human eye detection it is more accurate.
At present the camera lens of mobile phone front-facing camera module is convex lens, and focal length is fixed, and is essentially all solid burnt module, as , once mixing up, would not change away from the distance of camera lens (camera inductor with), that is to say, that DOF (Depth Of Field, thing Body in thinking imaging clearly from a certain distance range of camera lens, such as this segment limit from 35cm to 43cm) when dispatching from the factory Jing is mixed up as fixed value.
The detection module 20, is connected with the starting module 10, for detecting described image in whether have human eye.Its In, whether there is human eye to be specially in detection described image:Can regularly detect in described image whether have human eye or persistently examine Surveying in described image has human eye.Specifically, human eye profile size is essentially identical, you can be considered a fixed value, even if everyone Eyes size deviation, but the range error that thus deviation is brought can be acceptance for Consumer's Experience, that is, allow It can be that fixed value is described as the condition set up using human eye size that range measurement has in certain error, therefore the present embodiment, its In, detect that the scheme of human eye can be using contour detecting method or third party's human eye detection algorithm, the contour detecting method or third party Human eye detection algorithm is state of the art, will not be described here, and the contour detecting method or third party's human eye detection are calculated The selection of method can be carried out as needed.
The measurement module 30, is connected with the detection module 20, during for detecting human eye in described image, measurement The distance between the front-facing camera and described human eye.Specifically, refer to shown in Fig. 2, according to the image-forming principle of convex lens, In the case where image distance and focal length are fixed, the difference of object distance can cause imaging size accordingly to change.In fig. 2, formed objects Position of the object in u1 and u2, the size being imaged on camera inductor is respectively s1 and s2.If object edge is through saturating The light at mirror center is angle with horizontal line angle, and the distance of object to lens is u, and the distance of inductor to camera lens is V, the original size of object is Sorig, then be imaged size Simg computing formula and be:
Simg=v*tan (angle)=v* (Sorig/u)=Sorig*v/u
When article size is fixed, due to inductor to lens apart from v be fixed value, therefore inductor on imaging it is big The linear relationship that little Simg is inversely proportional to object distance u.And because the eyes size that can consider people is substantially a fixed value, because It is the linear relationship being inversely proportional to the distance of human eye and camera that this human eye is ultimately imaged size.If the people for allowing is thought in setting Have hallucinations screen minimum range be u1, i.e. u1 be a certain fixed value (minimum of a value of default threshold range), due to human eye size Also it is fixed value, therefore it is also fixed value to be imaged size s1.
The judge module 40, is connected with the measurement module 30, for the distance to be entered with default threshold range Row compares, and judges within the default time the whether minimum of a value that continuous three distances are less than the default threshold range. Specifically, if the screen of the electronic equipment has been started up, if now position of the human eye in u2, i.e., little with a distance from camera When u1, then eyes imaging size s2 for detecting will be more than s1, i.e., now the distance of the human eye to the camera is little In the minimum of a value of the default threshold range, user is now reminded to need screen to be taken a little further, if user does not take screen Far, then within the default time (in such as one minute) continuous n times to determine the camera for detecting little with the distance between human eye In the minimum of a value of default threshold range, then control screen extinguishing.Wherein, N is for twice or thrice or more.Wherein, if described Human eye is more than the maximum of the default threshold range to the distance of the camera, will also control the screen of the electronic equipment Curtain extinguishes.
Wherein, if the screen of the electronic equipment is not actuated, if now the human eye to camera distance be located at it is described In default threshold range, then the screen of the electronic equipment is opened, and after the screen for opening the electronic equipment, according to The human eye adjusts the brightness of the screen to the distance of camera.
The control module 50, is connected with the judge module 40, for control the electronic equipment screen extinguish or The screen of the electronic equipment is moved away from the human eye by person prompting user.Specifically, continuous three times within the default time Minimum of a value of the distance less than the threshold range is determined, then the screen for controlling the electronic equipment extinguishes;Otherwise point out The screen of the electronic equipment is moved away from the human eye by user.
The above-mentioned module correspondence of the electronic equipment of the embodiment of the present invention performs contacting based on bluetooth adjustment for above-described embodiment The method of people's arrangement mode, with same technique effect.
It should be appreciated that above-mentioned module is divided into a kind of division of logic function, there can be other drawing when actually realizing The mode of dividing, such as two modules are desirably integrated into another system, or some features can be ignored, or are not performed.In addition, mould Block connection each other can be by some interfaces, or electrical or other forms.Above-mentioned module both can adopt soft The form of part functional block is realized, it would however also be possible to employ the form of the hardware for example shown in Fig. 3 is realized.
Fig. 4 is referred to, is the hardware architecture diagram of the electronic equipment that control screen of the present invention is extinguished.The electronic equipment Including memory 110, processor 120, controller 130 and communication bus 140.Communication bus 140 is called respectively for processor 120 Data are planted, memory 110 is for storage program instruction.For convenience of explanation, processor 120 shown in Fig. 3, memory 110, communication The quantity of bus 140 and controller 130 is one.
The memory 110, for storing the minimum of a value and maximum of default threshold range.
The processor 120 starts the front-facing camera of the electronic equipment, to obtain image.
Wherein, the front-facing camera for starting the electronic equipment is specially two ways, and a kind of mode is that user passes through hand Dynamic operation causes the front-facing camera to start, the front-facing camera timing acquisition image, or the preposition shooting afterwards Head continues capture images;Another way need not be manually operated to start the front-facing camera for user, it is described before Put camera the electronic equipment startup after start by set date with capture images.First by electronic equipment, such as the preposition of mobile phone is taken the photograph As head gathers facial image, Image semantic classification, including gray processing process, mean filter and histogram equalization are then carried out again. Image enhaucament mainly includes that airspace enhancement and frequency domain strengthen, and image is converted into gray-scale map, can so improve system by the first step Operational efficiency, second step carries out mean filter, and mean filter is one of conventional linear filter, is had preferably to noise Inhibitory action, medium filtering, neighborhood averaging filter method can also be carried out to image and is processed.3rd step is histogram equalization Change, the statistical relationship in histogram table diagram picture between each gray level and its frequency for occurring carries out gray scale drawing to image Stretch, picture contrast can be improved, remove some unfavorable factors caused to human eye detection, such as illumination.In order to camera The facial image of collection is processed, and obtains the higher image of quality, so as to follow-up human eye detection it is more accurate.
At present the camera lens of mobile phone front-facing camera module is convex lens, and focal length is fixed, and is essentially all solid burnt module, as , once mixing up, would not change away from the distance of camera lens (camera inductor with), that is to say, that DOF (Depth Of Field, thing Body in thinking imaging clearly from a certain distance range of camera lens, such as this segment limit from 35cm to 43cm) when dispatching from the factory Jing is mixed up as fixed value.
Whether there is human eye in the detection described image of the processor 120.Wherein, detect in described image whether have human eye to have Body is:Can regularly detect in described image whether have human eye or persistently detect in described image there is human eye.Human eye profile is big It is little essentially identical, you can be considered a fixed value, though everyone eyes size deviation, but the survey that thus deviation is brought Can be acceptance for Consumer's Experience away from error, that is, allowing range measurement to have in certain error, therefore the present embodiment can be by Human eye size be fixed value as the condition set up describing, wherein, detect that the scheme of human eye can be using contour detecting method or the Tripartite's human eye detection algorithm, the contour detecting method or third party's human eye detection algorithm are state of the art, and here is not Repeat again, the selection of the contour detecting method or third party's human eye detection algorithm can be carried out as needed.
When the processor 120 detects human eye in described image, measure the front-facing camera and the human eye it Between distance.Wherein, refer to shown in Fig. 2, according to the image-forming principle of convex lens, in the case where image distance and focal length are fixed, thing Away from difference can cause be imaged size accordingly change.In fig. 2, position of the object of formed objects in u1 and u2, in shooting The size being imaged on head inductor is respectively s1 and s2.If object edge is through the light and horizontal line angle of lens centre For angle, the distance of object to lens is u, and the distance of inductor to camera lens is v, and the original size of object is Sorig, then into As size Simg computing formula is:
Simg=v*tan (angle)=v* (Sorig/u)=Sorig*v/u
When article size is fixed, due to inductor to lens apart from v be fixed value, therefore inductor on imaging it is big The linear relationship that little Simg is inversely proportional to object distance u.And because the eyes size that can consider people is substantially a fixed value, because It is the linear relationship being inversely proportional to the distance of human eye and camera that this human eye is ultimately imaged size.If the people for allowing is thought in setting Have hallucinations screen minimum range be u1, i.e. u1 be a certain fixed value (minimum of a value of default threshold range), due to human eye size Also it is fixed value, therefore it is also fixed value to be imaged size s1.
The processor 120 is compared the distance with default threshold range, judge be within the default time Minimum of a value of no continuous three distances less than the default threshold range.
Specifically, if the screen of the electronic equipment has been started up, if now position of the human eye in u2, i.e., from camera Distance be less than u1 when, then eyes imaging size s2 for detecting will be more than s1, i.e., now the human eye to the camera Distance less than the default threshold range minimum of a value, now remind user need by screen take a little further, if user is not Screen is taken into remote, then (in such as one minute) continuous n times are determined between the camera and human eye for detecting within the default time Distance less than default threshold range minimum of a value, then control screen extinguish.Wherein, N is for twice or thrice or more.Its In, if the human eye is more than the maximum of the default threshold range to the distance of the camera, will also control the electricity The screen of sub- equipment extinguishes.
Wherein, if the screen of the electronic equipment is not actuated, if now the human eye to camera distance be located at it is described In default threshold range, then the screen of the electronic equipment is opened, and after the screen for opening the electronic equipment, according to The human eye adjusts the brightness of the screen to the distance of camera.
The controller 130 controls the screen of the electronic equipment and extinguishes or point out user by the screen of the electronic equipment Curtain is moved away from the human eye.Specifically, the distance is determined for continuous three times within the default time less than the threshold value model The minimum of a value enclosed, the then screen for controlling the electronic equipment extinguishes;User is otherwise pointed out to move to the screen of the electronic equipment Away from the human eye.
The method and electronic equipment that the control screen is extinguished obtains image by the front-facing camera of the electronic equipment, And the human eye is detected when there is human eye in described image to the distance of the camera, to detect institute in the given time State when human eye is less than the minimum of a value of the default threshold range to the distance of the camera and control the screen extinguishing to carry Awake user keeps viewing distance, reaches pre- myopic-preventing purpose.
Embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, is included within the scope of the present invention.

Claims (10)

1. a kind of method that control screen is extinguished, it is characterised in that methods described is applied to electronic equipment, and methods described includes:
Start the front-facing camera of the electronic equipment, to obtain image;
When detecting human eye in described image, the distance between the front-facing camera and described human eye are measured;
The distance is compared with default threshold range;And
If the distance is extinguished less than the minimum of a value of the threshold range, the screen for controlling the electronic equipment.
2. method according to claim 1, it is characterised in that when the screen of the electronic equipment is not actuated, it is described will The step of distance is compared with default threshold range includes:
If the distance is located in the default threshold range, the screen of the electronic equipment is opened.
3. method according to claim 2, it is characterised in that the step of the screen of the unlatching electronic equipment it Afterwards, methods described is further included:
According to the brightness of the distance adjustment screen.
4. method according to claim 1, it is characterised in that described to be compared the distance with default threshold range Compared with the step of include:
If the distance is extinguished more than the maximum of the default threshold range, the screen for controlling the electronic equipment.
5. method according to claim 1, it is characterised in that in the step that the screen of the control electronic equipment extinguishes Before rapid, methods described is further included:
Continuous n times determine minimum of a value of the distance less than the default threshold range within the default time, then control The screen of the electronic equipment extinguishes.
6. the electronic equipment that a kind of control screen is extinguished, it is characterised in that the electronic equipment includes:
Starting module, for starting the front-facing camera of the electronic equipment, to obtain image;
Detection module, is connected with the starting module, for detecting described image in whether there is human eye;
Measurement module, is connected with the detection module, for measuring described preposition take the photograph when the detection module detects human eye As the distance between head and described human eye;
Judge module, is connected with the measurement module, for the distance to be compared with default threshold range;And
Control module, is connected with the judge module, for being less than the minimum of a value of the default threshold range in the distance When, the screen for controlling the electronic equipment extinguishes.
7. electronic equipment according to claim 6, it is characterised in that when the screen of the electronic equipment is not actuated, if The judge module determine front-facing camera that the measurement module measures be located to the distance between the human eye it is described In threshold range, then the control module controls the screen opening of the electronic equipment.
8. electronic equipment according to claim 7, it is characterised in that after the screen opening of the electronic equipment, institute State described in the front-facing camera to the distance between human eye adjustment that control module is measured according to the measurement module The brightness of the screen of electronic equipment.
9. electronic equipment according to claim 6, it is characterised in that if the judge module determines the measurement module The front-facing camera for measuring to the distance between the human eye more than the default threshold range maximum, then institute State the screen extinguishing that control module controls the electronic equipment.
10. electronic equipment according to claim 6, it is characterised in that the judge module continuous N within the default time It is secondary to determine the front-facing camera that the measurement module measures to the distance between the human eye less than described default The minimum of a value of threshold range, then the screen extinguishing of the control module control electronic equipment.
CN201611111002.3A 2016-12-06 2016-12-06 Method for turning off screen and electronic equipment Pending CN106648081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611111002.3A CN106648081A (en) 2016-12-06 2016-12-06 Method for turning off screen and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611111002.3A CN106648081A (en) 2016-12-06 2016-12-06 Method for turning off screen and electronic equipment

Publications (1)

Publication Number Publication Date
CN106648081A true CN106648081A (en) 2017-05-10

Family

ID=58820047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611111002.3A Pending CN106648081A (en) 2016-12-06 2016-12-06 Method for turning off screen and electronic equipment

Country Status (1)

Country Link
CN (1) CN106648081A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566643A (en) * 2017-08-31 2018-01-09 广东欧珀移动通信有限公司 Information processing method, device, storage medium and electronic device
CN107577340A (en) * 2017-08-03 2018-01-12 捷开通讯(深圳)有限公司 Method, terminal and the storage device of sight protectio
CN108279776A (en) * 2018-02-07 2018-07-13 联想(北京)有限公司 Method and electronic equipment for control electronics
CN108519820A (en) * 2018-03-30 2018-09-11 上海爱优威软件开发有限公司 Screen brightness regulation method and system
CN109558053A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 A kind of method, mobile terminal and computer readable storage medium for adjusting screen and showing

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176733A (en) * 2011-01-28 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for controlling screen backlight
CN102543029A (en) * 2010-12-16 2012-07-04 鸿富锦精密工业(深圳)有限公司 Display device and display control method thereof
CN104468912A (en) * 2014-12-08 2015-03-25 上海斐讯数据通信技术有限公司 Method for controlling luminance of screen of mobile terminal and display terminal
CN105141775A (en) * 2015-09-14 2015-12-09 Tcl移动通信科技(宁波)有限公司 Mobile terminal, and control method and system for screen brightness of mobile terminal
CN105204651A (en) * 2015-11-12 2015-12-30 上海卓易科技股份有限公司 Control method and device
CN105549967A (en) * 2015-12-09 2016-05-04 北京用友政务软件有限公司 Myopia prevention method of intelligent electronic device
US20160140692A1 (en) * 2012-11-01 2016-05-19 Google Technology Holdings LLC Systems and methods for configuring the display resolution of an electronic device based on distance and user presbyopia
CN106022209A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Distance estimation and processing method based on face detection and device based on face detection
CN106055111A (en) * 2016-06-28 2016-10-26 广东欧珀移动通信有限公司 Control method, control device and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543029A (en) * 2010-12-16 2012-07-04 鸿富锦精密工业(深圳)有限公司 Display device and display control method thereof
CN102176733A (en) * 2011-01-28 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for controlling screen backlight
US20160140692A1 (en) * 2012-11-01 2016-05-19 Google Technology Holdings LLC Systems and methods for configuring the display resolution of an electronic device based on distance and user presbyopia
CN104468912A (en) * 2014-12-08 2015-03-25 上海斐讯数据通信技术有限公司 Method for controlling luminance of screen of mobile terminal and display terminal
CN105141775A (en) * 2015-09-14 2015-12-09 Tcl移动通信科技(宁波)有限公司 Mobile terminal, and control method and system for screen brightness of mobile terminal
CN105204651A (en) * 2015-11-12 2015-12-30 上海卓易科技股份有限公司 Control method and device
CN105549967A (en) * 2015-12-09 2016-05-04 北京用友政务软件有限公司 Myopia prevention method of intelligent electronic device
CN106022209A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Distance estimation and processing method based on face detection and device based on face detection
CN106055111A (en) * 2016-06-28 2016-10-26 广东欧珀移动通信有限公司 Control method, control device and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭斯羽等: "《面向检测的图像处理技术》", 31 August 2015 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577340A (en) * 2017-08-03 2018-01-12 捷开通讯(深圳)有限公司 Method, terminal and the storage device of sight protectio
CN107577340B (en) * 2017-08-03 2020-01-03 捷开通讯(深圳)有限公司 Eyesight protection method, terminal and storage device
CN107566643A (en) * 2017-08-31 2018-01-09 广东欧珀移动通信有限公司 Information processing method, device, storage medium and electronic device
CN108279776A (en) * 2018-02-07 2018-07-13 联想(北京)有限公司 Method and electronic equipment for control electronics
CN108519820A (en) * 2018-03-30 2018-09-11 上海爱优威软件开发有限公司 Screen brightness regulation method and system
CN109558053A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 A kind of method, mobile terminal and computer readable storage medium for adjusting screen and showing

Similar Documents

Publication Publication Date Title
CN106648081A (en) Method for turning off screen and electronic equipment
US9355314B2 (en) Head-mounted display apparatus and login method thereof
CN107734253B (en) Image processing method, image processing device, mobile terminal and computer-readable storage medium
US8411171B2 (en) Apparatus and method for generating image including multiple people
CN103190883B (en) A head-mounted display device and image adjustment method
US10805543B2 (en) Display method, system and computer-readable recording medium thereof
CN110211549B (en) Screen brightness adjustment method and device, terminal and storage medium
WO2015172514A1 (en) Image acquisition device and method
US9622654B2 (en) Device for and method of corneal imaging
US9501691B2 (en) Method and apparatus for detecting blink
TWI729983B (en) Electronic device, system and method for adjusting display device
WO2018120662A1 (en) Photographing method, photographing apparatus and terminal
WO2018219293A1 (en) Information terminal
US9098243B2 (en) Display device and method for adjusting observation distances thereof
CN109600555A (en) A kind of focusing control method, system and photographing device
CN107820017A (en) Image capturing method, device, computer-readable recording medium and electronic equipment
CN103472915B (en) reading control method based on pupil tracking, reading control device and display device
CN107948399A (en) Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN108875672A (en) screen brightness adjusting method and device of intelligent wearable device
WO2023045626A1 (en) Image acquisition method and apparatus, terminal, computer-readable storage medium and computer program product
AU2014306751A1 (en) Systems and methods of measuring facial characteristics
WO2016197494A1 (en) Method and device for adjusting focusing area
CN107577340B (en) Eyesight protection method, terminal and storage device
WO2018219290A1 (en) Information terminal
WO2018095059A1 (en) Image processing method and device

Legal Events

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

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication