Apparatus control method, device and electronic equipment, storage medium
Technical field
The invention relates to field of artificial intelligence, specifically, be related to a kind of apparatus control method, device and
Electronic equipment, storage medium.
Background technique
With the rapid development of VR (Virtual Reality, virtual reality) industry, various VR equipment are connect by user rapidly
By and use.VR equipment is a kind of wearable device that can be worn at user's head.VR equipment can pass through Computer Simulation
Software creates Three-Dimensional Dynamic what comes into a driver's or actual emulation scene, and user is made to generate the perception experience of immersion.
In the prior art, VR equipment exports simulating scenes by display.Since display energy consumption is higher, generate heat more tight
Weight, when user does not wear VR equipment, usually closes the display of VR equipment in order to energy saving, wears VR in user and sets
When standby, usually the display of VR equipment is opened.Current VR equipment mostly realizes cutting for VR equipment working state using on & off switch
It changes.
But realize that the switching of VR equipment working state needs user to be manually operated using on & off switch mode, starting efficiency
It is lower.
Summary of the invention
In view of this, this application provides a kind of apparatus control method, device and electronic equipment, storage medium, to solve
The lower technical problem of the ease of use and starting efficiency of the electronic equipment displays such as VR equipment in the prior art.
In order to solve the above-mentioned technical problem, this application provides a kind of apparatus control methods, comprising:
Determine the first distance between display and user;
If the first distance is less than first distance threshold value, start timing;
When timing finishes, the second distance between the display and user is determined;
If the second distance is less than second distance threshold value, the display is switched into starting shape by closed state
State;
Wherein, the second distance threshold value is less than the first distance threshold value.
The method also includes:
If the second distance is not less than the second distance threshold value, the third between the display and user is determined
Distance;
If the third distance is less than the second distance threshold value, the display is switched into starting by closed state
State.
Preferably, the first distance between the determination display and user includes:
Read the first detection data of range sensor detection;
Based on first detection data, the first distance between the display and user is determined;
It is described when timing finishes, include: by the second distance between the determination display and user
When timing finishes, the second detection data of the range sensor detection is read;
Based on second detection data, the second distance between the display and user is determined.
Preferably, the range sensor includes Proximity Sensor;
First detection data for reading range sensor detection includes:
Based on the first infrared signal of Proximity Sensor transmitting, obtain Proximity Sensor acquisition by institute
State the first detection data of the first reflection signal of user's reflection;
It is described when timing finishes, the second detection data for reading range sensor induction includes:
When timing finishes, based on the first infrared signal of Proximity Sensor transmitting, reads the short distance and pass
Second detection data of the second reflection signal of sensor acquisition reflected by the user.
Preferably, if the first distance is less than default first distance threshold value, starting timing includes:
If first detection data is greater than the first detection threshold value, confirm that the first distance is less than default first distance
Threshold value then starts timing;
If the second distance is less than second distance threshold value, the display is switched into starting by closed state
State includes:
If second detection data is greater than the second detection threshold value, confirm that the second distance is less than second distance threshold
Value, switches to starting state by closed state for the display;
Wherein, first detection threshold value is less than the second detection threshold value.
Preferably, the electronic equipment includes VR equipment.
Preferably, if the first distance is less than first distance threshold value, starting timing includes:
If the first distance is less than first distance threshold value, the counter for starting the electronic equipment starts timing;
It is described when timing finishes, determine that the second distance between the display and user includes:
When the counter counts of the electronic equipment count up to complete, confirmation timing is finished;
Determine the second distance between the display and user.
The embodiment of the present invention also provides a kind of plant control unit, comprising:
First determining module, for determining the first distance between display and user;
First judgment module starts timing if being less than default first distance threshold value for the first distance;
Second determining module, for determining the second distance between the display and user when timing finishes;
Second judgment module, if being less than second distance threshold value for the second distance, by the display by closing
State switches to starting state;
Wherein, the second distance threshold value is less than the first distance threshold value.
The embodiment of the present invention also provides a kind of electronic equipment, comprising: storage assembly and processing component;
The storage assembly for store one or more computer instruction, one or more computer instruction to
It is called and is executed by the processing component;
The processing component is used for:
Determine the first distance between display and user;If the first distance is less than first distance threshold value, open
Beginning timing;When timing finishes, the second distance between the display and user is determined;If the second distance is less than
The display is switched to starting state by closed state by two distance thresholds;Wherein, the second distance threshold value is less than described
First distance threshold value.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer readable storage medium is for depositing
Store up computer program;
The computer program realizes apparatus control method as described in any one of the above embodiments when executing computer.
In the embodiment of the present invention, by determining the first distance between display and user, in first distance less than first
When distance threshold, start timing.When timing finishes, the second distance between display and user can be acquired, if second
Distance is less than second distance threshold value, and second distance threshold value is less than first distance threshold value, it can confirms user display and uses
The distance between family persistently reduces, and illustrates that user constantly close to electronic equipment or has the tendency that wearable electronic device, is at this time
It can star display, the display switched into starting state by closed state.Electronic equipment is by detection user and shows
Show that the distance of device automatically controls the opening and closing of display, electronic equipment starting efficiency can be improved, is providing convenience property of user's use.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of one embodiment of apparatus control method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of apparatus control method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of apparatus control method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of another embodiment of apparatus control method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of another embodiment of plant control unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of one embodiment of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of VR equipment provided by the embodiments of the present application.
Specific embodiment
Presently filed embodiment is described in detail below in conjunction with accompanying drawings and embodiments, how the application is applied whereby
Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
The embodiment of the present invention is mainly used in the automatic control scene of electronic equipment display, by detecting user and setting
The on-off control of display may be implemented in the distance change of standby display.
In the prior art, the electronic equipments such as mobile phone, smart television, plate use in display output video, image etc. more
Hold.But the energy consumption of display is higher, is powered and is limited due to the battery of the electronic equipments such as mobile phone, it is often necessary to user's manual switch
Display and electronic equipment, but the mode efficiency operating efficiency of this manual switch display is lower, also makes to user
With bringing inconvenience.
To solve the above-mentioned problems, inventor expects whether can realizing aobvious by detection user at a distance from display
Show the automatic control of device.Accordingly, it inventors herein proposes the technical solution of the application, in the embodiment of the present invention, passes through and determine display
First distance between device and user then starts timing when first distance is less than first distance threshold value.When timing finishes,
The second distance between display and user can be determined, if second distance is less than second distance threshold value, and second distance threshold
Value is less than first distance threshold value, it can confirmation the distance between user display and user persistently reduce, and user is constantly close
Electronic equipment has the tendency that wearable electronic device, starts display after can judging at this time at second, will be described aobvious
Show that device switches to starting state by closed state.Electronic equipment automatically controls display by detecting user at a distance from display
Opening and closing, electronic equipment starting efficiency can be improved, be providing convenience property of user's use.In addition, can be mentioned by judgement twice
Preceding beginning timing can shorten the time that display is lighted.Compared to the scheme of single distance threshold judgement, avoidable electronics is set
Standby erroneous judgement.
It should be noted that the timing in the embodiment of the present invention may include record time or record data.For example,
Using the timer record time, or use counter records data.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall in the protection scope of this application.
Fig. 1 is a kind of flow chart of one embodiment of apparatus control method provided by the embodiments of the present application, and this method can
To include:
101: determining the first distance between display and user.
The embodiment of the present invention is mainly used in the automatic starting scene of electronic equipment, by between detection user and display
Distance, whether confirmation user realize the on-off control of display close to display.
Optionally, display and electronic equipment can be integrated equipment, and electronic equipment can directly pass through control signal
The switching for the states such as lighting and closing of control display.Electronic equipment and display can also be equipment independent,
It can be attached by wireless network or connecting line, control of the electronic equipment to display may be implemented by connection.
Electronic equipment can acquire the first distance between display and user, wherein first distance can refer to that electronics is set
At a distance from the first acquisition time when the standby first distance in acquisition between display namely when the first acquisition time, display
First distance between device and user.
Determine that the first distance between display and user can also include determining display and use based on user has been identified
First distance between family.It is user and display with confirm detection that is, first identifying user before carrying out display control
The distance between device avoids the occurrence of invalid control.
In a kind of possible design, electronic equipment can be shot its display face direction by camera,
Obtain monitoring image or monitor video;Later, it can be identified in monitoring image or monitor video by face recognition algorithms
With the presence or absence of face, if it does, determining that there are users immediately ahead of display, obtain identification user.
102: if the first distance is less than first distance threshold value, starting timing.
Wherein, first distance threshold value, can be set in advance, usually can store in electronic equipment, to facilitate electricity
Sub- equipment uses the first distance threshold value.
Electronic equipment, which starts timing, can refer to that the timing module starting in electronic equipment starts timing, specifically can be based on pre-
If time interval, in the corresponding timing section of time interval, confirmation user whether close to electronic equipment display.
Alternatively, electronic equipment, which starts timing, can refer to that the counting module starting in electronic equipment starts counting, it can basis
Count value confirm user whether close to electronic equipment display.
103: when timing finishes, determining the second distance between the display and user.
Timing duration can be previously set in electronic equipment, when timing duration reaches preset duration, can determine display
Second distance between device and user.
104: if the second distance is less than second distance threshold value, the display being switched into starting by closed state
State.
Wherein, the second distance threshold value is less than the first distance threshold value.
Optionally, display refers to the entire display component of electronic equipment, can be by components such as display screen, driving plate, power supplys
It constitutes, if electronic equipment and display are integral type equipment, display can be fit directly on electronic equipment, if electronics
Equipment and display are equipment independent, and display can be assembled on display shell.For example, VR equipment can be controlled with VR
Control equipment separates, and the display in VR equipment can be thought to separate with VR equipment.
In practical applications, the display is switched to starting state by closed state and refers specifically to display by electronic equipment
Screen light to export the specific page or content.
Optionally, when electronic equipment control display switches to starting state, the starting of other equipment can also be controlled,
For example, the acquisition equipment etc. of the audio output apparatus of electronic equipment, user action, the acquisition equipment of user action can refer to camera shooting
Head, game paddle.
In the embodiment of the present invention, by determining the first distance between display and user, in first distance less than first
When distance threshold, start timing.When timing finishes, the second distance between display and user can be determined, if second
Distance is less than second distance threshold value, and second distance threshold value is less than first distance threshold value, it can confirms user display and uses
The distance between family persistently reduces, and user constantly close to electronic equipment or has the tendency that wearable electronic device, at this time can
Start display, the display is switched into starting state by closed state.Display passes through detection user and display
Distance automatically controls the opening and closing of display, and electronic equipment starting efficiency can be improved, and is providing convenience property of user's use.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
As one embodiment, if the first distance is less than first distance threshold value, starting timing includes:
If the first distance is less than first distance threshold value, the counter for starting the electronic equipment starts timing;
It is described when timing finishes, determine that the second distance between the display and user includes:
When the counter counts of the electronic equipment count up to complete, confirmation timing is finished;
Determine the second distance between the display and user.
Accurate timing result can be obtained by carrying out timing by counter, mention high control precision.
As another embodiment, the method can also include:
If the second distance is not less than the second distance threshold value, the third between the display and user is determined
Distance;
If the third distance is less than the second distance threshold value, the display is switched into starting by closed state
State.
In order to further ensure that electronic equipment to the starting precision of display, can be less than second distance threshold in second distance
When value, the third distance between electronic equipment and user is detected again, if third distance is similarly less than second distance threshold value, i.e.,
A possibility that user's wearable electronic device can be confirmed is higher, while improving the starting efficiency of display of electronic equipment,
Improve the starting precision of electronic equipment.
It should be noted that in the embodiment of the present application, it, can also be into one if third distance is not less than second distance threshold value
The 4th distance between step detection display and user, if the 4th distance is less than second distance threshold value, by display by closing
Closed state switches to starting state.That is, can repeated detection display and the current distance between user and compared with current distance with
Second distance threshold value, until current distance is less than second distance threshold value.
In practical applications, the electronic equipment may include VR equipment.
VR equipment may include VR integrated equipment, the split type equipment of VR.In VR integrated equipment, the display of electronic equipment
Device refers to the display in VR equipment.When VR equipment is split type equipment, the display of electronic equipment to VR equipment.In addition, VR
Equipment can also include VR handle, VR control equipment etc..
As shown in Fig. 2, be a kind of flow chart of another embodiment of apparatus control method provided in an embodiment of the present invention,
The method may include following steps:
201: the first distance between display and the user is determined by range sensor.
202: if the first distance is less than default first distance threshold value, starting timing.
203: when timing finishes, second between the display and the user being determined by the range sensor
Distance.
204: if the second distance is less than second distance threshold value, the display being switched into starting by closed state
State.
Wherein, the second distance threshold value is less than the first distance threshold value.
Range sensor can assemble over the display, to acquire the distance between display and user.
The first distance between display and user is determined by range sensor, can be confirmed user whether apart from electronics
Equipment is closer, if it is, executing starting electronic equipment timer starts timing, and then when timing finishes, is passed by distance
Sensor determines the second distance between the display and the user, if the second distance is less than second distance threshold value,
The display is switched into starting state by closed state.
Electronic equipment automatically controls the opening and closing of display by detecting user at a distance from display, improves electronic equipment and opens
Efficiency of movement is providing convenience property of user's use.In addition, due to using Distance Judgment twice, it is constantly close in confirmation user
The display that electronic equipment is just lighted when electronic equipment avoids generating erroneous judgement, eliminates display and lights shake, improves display point
Bright accuracy rate.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display screen is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
As one embodiment, the first distance between the determination display and user may include:
Read the first detection data of range sensor detection;
Based on first detection data, the first distance between the display and user is determined.
In certain embodiments, described when timing finishes, pass through between the determination display and the user
Two distances may include:
When timing finishes, the second detection data of the range sensor detection is read;
Based on second detection data, the second distance between the display and user is determined.
Optionally, the data that range sensor will test are stored into register, and electronic equipment can read distance and pass
The first detection data in sensor register, and first distance is obtained based on the first detection data.In practical applications, distance passes
Sensor can be configured on display, with the distance between display and the user for accurately acquiring electronic equipment.
The data that range sensor detects can indicate the distance between user and display, in practical applications, be
Distance value is known to facilitate test, and the data that can will test are converted to distance.But scene is controlled in actual equipment
In, in order to simplify calculation step, the data that can be will test are directly used in Distance Judgment, and then reduce detection data to distance
Between calculating error, raising judge precision.For example, when the range sensor is Proximity Sensor (Proximity
Sensor, P-sensor) when, sensor detects the signal that the infrared signal is reflected by transmitting infrared signal, and detection obtains
The data obtained can actually be characterized as the signal strength of the infrared signal of reflection.And if user is closer with display distance, it is red
Outer optical signal is reflected faster, and received time interval is shorter from being emitted to for Proximity Sensor, and the light intensity detected is stronger,
Collected detection data is bigger.Otherwise user is remoter at a distance from display, and the data detected are smaller, therefore, Ke Yitong
The size for crossing detection data determines the size of user Yu display distance, wherein detection data is bigger, closer, the testing number of distance
According to smaller, distance is remoter.
Therefore, as one embodiment, the range sensor includes Proximity Sensor;
First detection data for reading range sensor detection includes:
Based on the first infrared signal of Proximity Sensor transmitting, read Proximity Sensor acquisition by institute
State the first detection data of the first reflection signal of user's reflection;
It is described when timing finishes, the second detection data for reading range sensor detection includes:
When timing finishes, based on the first infrared signal of Proximity Sensor transmitting, reads the short distance and pass
Second detection data of the second reflection signal of sensor acquisition reflected by the user.
As another embodiment, if the first distance is less than first distance threshold value, starting timing includes:
If first detection data is greater than the first detection threshold value, confirm that the first distance is less than default first distance
Threshold value then starts timing;
If the second distance is less than second distance threshold value, the display is switched into starting by closed state
State includes:
If second detection data is greater than the second detection threshold value, confirm that the second distance is less than second distance threshold
Value, switches to starting state by closed state for the display;
Wherein, first detection threshold value is less than the second detection threshold value.
First detection threshold value can be preset signal strength threshold, pass through the first detection threshold value and the first detection data
Directly relatively, it is possible to reduce calculation amount improves computational efficiency.
The corresponding data of the signal strength of infrared signal between user and display are acquired by Proximity Sensor, it can
To obtain accurate detection data, the accuracy of data judgement is improved, and then realizes the accurate of electronic equipment and its display
Self-starting.
In practical applications, if the distance between a user and display are only detected, when between user and display
Distance be only performed once Distance Judgment, but user's actual capabilities are not close to electronic equipment later, between user and display
Position it is constant or increase, judging result is abnormal, when electronic equipment and its display being caused to carry out booting-self controller, occurs
Control error.Therefore, for the wearing behavior of accurate judgement user, detection the distance between user and display can be continued.
Mostly certain range sensors be by emitting beam, the detection signal such as sound, acquire the detection signal by object
The reflection signal of reflection, and the intensity by reflecting signal determines the first distance between display and user.But it is this away from
From measurement method, there are a drawbacks, and detecting signal can be reflected by arbitrary objects, for example, light gets to acceptable quilt on wall
Wall reflection makes range sensor detect data, if only carrying out one-time detection most likely results in error in judgement, therefore,
In order to reduce error in judgement, can within certain time persistently to user between display at a distance from detect, with confirmation
User is realized and is accurately controlled persistently close to display.
By being acquired twice to the distance between display and user, to judge user whether close to display
And then dynamic distance detection may be implemented, to obtain accurate judgement as a result, improving electronic equipment and its display self-starting
Precision.
As shown in figure 3, be a kind of flow chart of another embodiment of apparatus control method provided in an embodiment of the present invention,
This method may include following steps:
301: reading the first detection data of Proximity Sensor detection.
Optionally, first detection data for reading the Proximity Sensor detection includes:
Based on the first infrared signal of Proximity Sensor transmitting, obtain Proximity Sensor acquisition by institute
State the first detection data of the first reflection signal of user's reflection.
302: if first detection data is greater than the first detection threshold value, confirm between display and user first away from
From default first distance threshold value is less than, then start timing.
303: when timing finishes, acquiring the second detection data of the range sensor detection.
Optionally, described when timing finishes, the second detection data for acquiring the range sensor detection includes:
When timing finishes, based on the first infrared signal of Proximity Sensor transmitting, obtains the short distance and pass
Second detection data of the second reflection signal of sensor acquisition reflected by the user.
304: if second detection data is greater than the second detection threshold value, confirm between display and user second away from
From second distance threshold value is less than, the display is switched into starting state by closed state.
Wherein, second detection threshold value is greater than first detection threshold value, and second distance threshold value is less than first distance threshold
Value.
In the embodiment of the present invention, the first detection data between display and user is greater than the first detection threshold value
First distance between confirmation user and the display of electronic equipment is less than first distance threshold value can star electronics and sets later
Standby counter acquires the second detection data using range sensor, if the second detection data is greater than default second detection threshold
Value determines that second distance between display and user is less than second distance threshold value, so can be confirmed display and user it
Between distance persistently reduce, and then can control display self-starting, may be implemented electronic equipment display is started it is accurate
Control.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display screen is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
It is described when timing finishes as one embodiment, determine the second distance packet between the display and user
It includes:
Determine corresponding acquisition time when the counter counts count up to complete;
In the acquisition time, the second distance between the display and the user is acquired.
It is counted by counter, the setting at monitoring period interval twice may be implemented, to obtain between display and user
Second distance.
It is to wear VR equipment, the range sensor as Proximity Sensor (Proximity using the electronic equipment
Sensor, P-sensor) for, the embodiment of the present invention is described in detail.As shown in figure 4, being provided for the embodiment of the present invention
A kind of apparatus control method another embodiment flow chart, the method may include following steps:
401:VR equipment acquires the first testing number between the display and user of the VR equipment of Proximity Sensor detection
According to.
402: if first detection data is greater than the first detection threshold value, between the display and user for confirming VR equipment
First distance be less than default first distance threshold value, then start timing.
403: when timing finishes, acquiring second between the display and user of the Proximity Sensor detection
Detection data.
404: if second detection data is greater than the second detection threshold value, between the display and user for confirming VR equipment
Second distance be less than second distance threshold value, the display is switched into starting state by closed state.
Wherein, second detection threshold value is greater than first detection threshold value;Second distance threshold value is less than first distance threshold
Value.
By the judgement of detection data twice, it can control equipment and start display under accurate judging result,
Invalid starting is avoided the occurrence of, achievees the purpose that protect equipment.
In the embodiment of the present invention, the first detection data between user and display is first acquired, if the first detection data
Greater than the first detection threshold value, the second detection data between the display and user can be acquired in object time point, if
Second detection data is greater than the second detection threshold value, and confirmation user continues close to display or wearing VR equipment, at this time may be used
Started with trigger scope.The starting that display is completed before user wears VR equipment, lights display quickly, improves
Control efficiency.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display screen is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
As shown in figure 5, being a kind of structural representation of one embodiment of plant control unit provided in an embodiment of the present invention
Figure, the apparatus may include following steps:
First determining module 501, for determining the first distance between display and user.
First judgment module 502 starts timing if being less than first distance threshold value for the first distance.
Second determining module 503, for determining the second distance between the display and user when timing finishes.
Second judgment module 504, if being less than second distance threshold value for the second distance, by the display by closing
Closed state switches to starting state.
Wherein, the second distance threshold value is less than the first distance threshold value.
In certain embodiments, the electronic equipment includes VR equipment.
In the embodiment of the present invention, by determining the first distance between display and user, in first distance less than first
When distance threshold, start the timer of electronic equipment.When timer count finishes, can determine between display and user
Second distance, if second distance is less than second distance threshold value, and second distance threshold value is less than first distance threshold value, it can really
Recognize the distance between user display and user persistently to reduce, user constantly close to electronic equipment or has wearable electronic device
Trend can start display at this time, and the display is switched to starting state by closed state.Display passes through detection
User automatically controls the opening and closing of display at a distance from display, improves electronic equipment starting efficiency, provides for user's use
Convenience.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display screen is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
As one embodiment, the first judgment module includes:
Timing judging unit starts the electronic equipment if being less than first distance threshold value for the first distance
Counter starts timing;
Second determining module includes:
Timing confirmation unit, for when the counter counts of the electronic equipment count up to complete, confirmation timing to be finished;
Distance determining unit, for determining the second distance between the display and user.
As another embodiment, described device can also include:
Third determining module determines the display if being less than the second distance threshold value for the second distance
Third distance between user;
Third judgment module, if being less than the second distance threshold value for third distance, by the display by
Closed state switches to starting state.
As one embodiment, first determining module includes:
First determination unit, for by range sensor determine between the display and the user first away from
From.
In certain embodiments, second determining module may include:
Second determination unit, for when timing finishes, by the range sensor determine the display with it is described
Second distance between user.
Range sensor can assemble over the display, to acquire the distance between display and user.
The first distance between display and user is determined by range sensor, can be confirmed user whether apart from electronics
Equipment is closer, if it is, executing the step of starting electronic equipment counter starts counting, and then when timing finishes, passes through
Range sensor determines the second distance between the display and the user, if the second distance is less than second distance
The display is switched to starting state by closed state by threshold value.
Electronic equipment automatically controls the opening and closing of display by detecting user at a distance from display, improves electronic equipment and opens
Efficiency of movement is providing convenience property of user's use.In addition, due to using Distance Judgment twice, it is constantly close in confirmation user
Electronic equipment Shi Caidian bright display avoids generating erroneous judgement, eliminates display and lights shake, it is accurate that raising display is lighted
Rate.
As another embodiment, first determining module includes:
First reading unit, for reading the first detection data of range sensor detection.
Third determination unit determines first between the display and user for being based on first detection data
Distance.
In certain embodiments, second determining module may include:
Second reading unit, for reading the second detection data of range sensor detection when timing finishes.
4th determination unit determines second between the display and user for being based on second detection data
Distance.
Optionally, the data that range sensor will test are stored into register, and electronic equipment can read distance and pass
Detected first detection data in sensor register, and first distance is obtained based on detected first detection data.
In practical applications, range sensor can be configured on display, accurately to acquire the distance between display and user.
The data that range sensor detects can indicate the distance between user and display, in practical applications, be
Distance value is known to facilitate test, and the data that can will test are converted to distance.But scene is controlled in actual equipment
In, in order to simplify calculation step, the data that can be will test, which are directly used in Distance Judgment, indicates distance, and then reduces testing number
According to the calculating error between distance, improves and judge precision.For example, when the range sensor is Proximity Sensor
When (Proximity Sensor, P-sensor), sensor detects what the infrared signal was reflected by transmitting infrared signal
Signal, detected data can actually be characterized as the signal strength of the infrared signal of reflection.And if user and display
Distance is closer, and infrared signal is reflected faster, and Proximity Sensor is shorter from received time interval is emitted to, and is detected
Light intensity it is stronger, collected detection data is bigger.Otherwise user is remoter at a distance from display, and the data detected are smaller,
Therefore, the size of user Yu display distance can be determined, wherein detection data is bigger, distance by the size of detection data
Closer, detection data is smaller, and distance is remoter.
As another embodiment, the range sensor includes Proximity Sensor;
First reading unit specifically can be used for:
Based on the first infrared signal of Proximity Sensor transmitting, read Proximity Sensor acquisition by institute
State the first detection data of the first reflection signal of user's reflection;
In certain embodiments, second reading unit specifically can be used for:
When timing finishes, based on the first infrared signal of Proximity Sensor transmitting, reads the short distance and pass
Second detection data of the second reflection signal of sensor acquisition reflected by the user.
In certain embodiments, the first judgment module includes:
First judging unit, if for first detection data be greater than the first detection threshold value, confirmation described first away from
From default first distance threshold value is less than, then start timing;
Second judgment module includes:
Second judgment unit, if for second detection data be greater than the second detection threshold value, confirmation described second away from
From second distance threshold value is less than, the display is switched into starting state by closed state;
Wherein, first detection threshold value is less than the second detection threshold value.
First detection threshold value can be preset signal strength threshold, pass through the first detection threshold value and the first detection data
Directly relatively, it is possible to reduce calculation amount improves computational efficiency.
The corresponding data of the signal strength of infrared signal between user and display are acquired by Proximity Sensor, it can
To obtain accurate detection data, improve the first testing number that the accuracy of data judgement obtains, so realize electronic equipment with
And its accurate self-starting of display.
In practical applications, if the distance between a user and display are only detected, when between user and display
Distance be only performed once Distance Judgment less than first distance threshold value, but later user's actual capabilities not close to electronic equipment,
Position between user and display is constant or increases, and judging result is abnormal, and electronic equipment and its display is caused to carry out
When booting-self controller, there is control error.Therefore, for the wearing behavior of accurate judgement user, can continue detection user with
The distance between display.
Mostly certain range sensors be by emitting beam, the detection signal such as sound, acquire the detection signal by object
The reflection signal of reflection, and the intensity by reflecting signal determines the first distance between display and user.But it is this away from
From measurement method, there are a drawbacks, and detecting signal can be reflected by arbitrary objects, for example, light gets to acceptable quilt on wall
Wall reflection makes range sensor detect data, if only carrying out one-time detection most likely results in error in judgement, therefore,
In order to reduce error in judgement, can within certain time persistently to user between display at a distance from detect, with confirmation
User is realized and is accurately controlled persistently close to display.
By being acquired twice to the distance between display and user, to judge user whether close to display
And then dynamic distance detection may be implemented, to obtain accurate judgement as a result, improving electronic equipment and its display self-starting
Precision.
As one embodiment, second determining module specifically can be used for:
Determine corresponding acquisition time when the counter counts count up to complete;In the acquisition time, the display is acquired
With the second distance between the user.
It is counted by counter, the setting at monitoring period interval twice may be implemented, to obtain between display and user
Second distance.
As shown in fig. 6, the structural schematic diagram of one embodiment for a kind of electronic equipment provided in an embodiment of the present invention, institute
Stating equipment may include: storage assembly 601, processing component 602 and display 603;
The storage assembly 601 is for storing one or more computer instruction, one or more computer instruction
To be called and be executed by the processing component 602;
The processing component 602 is used for:
Determine the first distance between display 604 and user;If the first distance is less than first distance threshold value,
Start timing;When the timing finishes, the second distance between the display 603 and user is determined;If described second
Distance is less than second distance threshold value, switches the display 603 to starting state;Wherein, the second distance threshold value is less than institute
State first distance threshold value.
In order to improve starting precision, the processing component 602 be can be also used for:
If the second distance is less than the second distance threshold value, determine third between the display and user away from
From;If the third distance is less than the second distance threshold value, the display is switched into starting state by closed state.
As one embodiment, the electronic equipment may include VR equipment.
In the embodiment of the present invention, by determining the first distance between display and user, in first distance less than first
When distance threshold, start the counter of electronic equipment.When counter counts count up to complete, can determine between display and user
Second distance, if second distance is less than second distance threshold value, and second distance threshold value is less than first distance threshold value, it can really
Recognize the distance between user display and user persistently to reduce, user constantly close to electronic equipment or has wearable electronic device
Trend can start display at this time, and the display is switched to starting state by closed state.Display passes through detection
User automatically controls the opening and closing of display at a distance from display, improves electronic equipment starting efficiency, provides for user's use
Convenience.
In addition, in the embodiment of the present application, first distance starts timing when being less than first distance threshold value, and second distance is less than the
When two distance thresholds, indicator screen is lighted.Judge compared to single distance threshold, the distance threshold twice of the embodiment of the present application
The scheme of judgement can start timing in advance, be substantially shorter the time that display screen is lighted.
In addition, compared to the scheme of single distance threshold judgement, the side of the judgement of distance threshold twice of the embodiment of the present application
Case can avoid electronic equipment erroneous judgement.
As one embodiment, the processing component determines that the first distance between display and user specifically may is that
The first distance between the display and the user is determined by range sensor;
The processing component determines that second distance between the display and user specifically can be with when timing finishes
It is:
When timing finishes, by the range sensor determine between the display and the user second away from
From.
Range sensor can assemble over the display, to acquire the distance between display and user.
The first distance between display and user is determined by range sensor, can be confirmed user whether apart from electronics
Equipment is closer, if it is, executing the step of starting electronic equipment counter starts counting, and then when timing finishes, passes through
Range sensor determines the second distance between the display and the user, if the second distance is less than second distance
The display is switched to starting state by closed state by threshold value.
Electronic equipment automatically controls the opening and closing of display by detecting user at a distance from display, improves electronic equipment and opens
Efficiency of movement is providing convenience property of user's use.In addition, due to using Distance Judgment twice, it is constantly close in confirmation user
The display that electronic equipment is just lighted when electronic equipment avoids generating erroneous judgement, eliminates display and lights shake, improves display point
Bright accuracy rate.
As another embodiment, the processing component determines that the first distance between display and user specifically can be with
It is:
The first detection data of range sensor detection is read in acquisition;
Based on first detection data, the first distance between the display and user is determined.
In certain embodiments, the processing component determines between the display and user when timing finishes
Two distances specifically may is that
When timing finishes, the second detection data of range sensor detection is read in acquisition;
Based on second detection data, the second distance between the display and user is determined.
Optionally, the data that range sensor will test are stored into register, and electronic equipment can read distance and pass
Detected first detection data in sensor register, and first distance is obtained based on detected first detection data.
In practical applications, range sensor can be configured on display, accurately to acquire the distance between display and user.
The data that range sensor detects can indicate the distance between user and display, in practical applications, be
Distance value is known to facilitate test, and the data that can will test are converted to distance.But scene is controlled in actual equipment
In, in order to simplify calculation step, the data that can be will test, which are directly used in Distance Judgment, indicates distance, and then reduces testing number
According to the calculating error between distance, improves and judge precision.For example, when the range sensor is Proximity Sensor
When (Proximity Sensor, P-sensor), sensor detects what the infrared signal was reflected by transmitting infrared signal
Signal, detected data can actually be characterized as the signal strength of the infrared signal of reflection.And if user and display
Distance is closer, and infrared signal is reflected faster, and Proximity Sensor is shorter from received time interval is emitted to, and is detected
Light intensity it is stronger, collected detection data is bigger.Otherwise user is remoter at a distance from display, and the data detected are smaller,
Therefore, the size of user Yu display distance can be determined, wherein detection data is bigger, distance by the size of detection data
Closer, detection data is smaller, and distance is remoter.
As another embodiment, the range sensor includes Proximity Sensor;
The first detection data that the processing component reads the Proximity Sensor detection specifically may is that
Based on the first infrared signal of Proximity Sensor transmitting, obtains and read the Proximity Sensor acquisition
First detection data of the first reflection signal reflected by the user;
For the processing component when timing finishes, the second detection data that the range sensor detection is read in acquisition is specific
It may is that
When timing finishes, based on the first infrared signal of Proximity Sensor transmitting, obtains and read the low coverage
Second detection data of the second reflection signal reflected by the user from sensor acquisition.
In certain embodiments, if the processing component first distance is less than first distance threshold value, start to count
When specifically may is that
If first detection data is greater than the first detection threshold value, confirm that the first distance is less than default first distance
Threshold value then starts timing;
If the processing component second distance is less than second distance threshold value, the display is cut by closed state
Shifting to starting state specifically may is that
If second detection data is greater than the second detection threshold value, confirm that the second distance is less than second distance threshold
Value, switches to starting state by closed state for the display;
Wherein, first detection threshold value is less than the second detection threshold value.
First detection threshold value can be preset signal strength threshold, pass through the first detection threshold value and the first detection data
Directly relatively, it is possible to reduce calculation amount improves computational efficiency.
The corresponding data of the signal strength of infrared signal between user and display are acquired by Proximity Sensor, it can
To obtain accurate detection data, the first detection data that the accuracy of data judgement obtains is improved, and then realize electronic equipment
And the accurate self-starting of its display.
In practical applications, if the distance between a user and display are only detected, when between user and display
Distance be only performed once Distance Judgment less than first distance threshold value, but later user's actual capabilities not close to electronic equipment,
Position between user and display is constant or increases, and judging result is abnormal, and electronic equipment and its display is caused to carry out
When booting-self controller, there is control error.Therefore, for the wearing behavior of accurate judgement user, can continue detection user with
The distance between display.
Mostly certain range sensors be by emitting beam, the detection signal such as sound, acquire the detection signal by object
The reflection signal of reflection, and the intensity by reflecting signal determines the first distance between display and user.But it is this away from
From measurement method, there are a drawbacks, and detecting signal can be reflected by arbitrary objects, for example, light gets to acceptable quilt on wall
Wall reflection makes range sensor detect data, if only carrying out one-time detection most likely results in error in judgement, therefore,
In order to reduce error in judgement, can within certain time persistently to user between display at a distance from detect, with confirmation
User is realized and is accurately controlled persistently close to display.
By being acquired twice to the distance between display and user, to judge user whether close to display
And then dynamic distance detection may be implemented, to obtain accurate judgement as a result, improving electronic equipment and its display self-starting
Precision.
As one embodiment, the processing component determines between the display and user when timing finishes
Two distances specifically may is that
Determine corresponding acquisition time when the counter counts count up to complete;In the acquisition time, the display is acquired
With the second distance between the user.
It is counted by counter, the setting at monitoring period interval twice may be implemented, to obtain between display and user
Second distance.
As one embodiment, the processing component is less than first distance threshold value in the first distance, then starts timing
Specifically it may is that
If the first distance is less than first distance threshold value, the counter for starting the electronic equipment starts timing;
The processing component determines that second distance between the display and user specifically can be with when timing finishes
It is:
When the counter counts of the electronic equipment count up to complete, confirmation timing is finished;
Determine the second distance between the display and user.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer readable storage medium is for depositing
Contain computer program;
The computer program realizes apparatus control method described in any of the above embodiments when executing computer.
VR equipment provided by the embodiments of the present application can be to wear display VR equipment, as shown in fig. 7, described wear display VR
The inside configuration structure schematic diagram of equipment 700.It may include display unit 701, virtual image optical unit that this, which wears VR equipment,
702, operating unit 703, state information acquisition unit 704, communication unit 705 are inputted.
Display unit 701 may include display panel, display panel setting user oriented face on wearing display equipment 700
The side surface in portion can be an entire panel or to respectively correspond the left panel of user's left eye and right eye and right panel.Display
Panel can be that electroluminescent (EL) element, liquid crystal display or miniscope with similar structure or retina can
It directly displays or similar laser scan type display.
Virtual image optical unit 702 shows image shown by display unit 701 to user in an exaggerated way, and allows
User's image shown by the virtual image observation of amplification.As the display image being output on display unit 701, can be
The image of the virtual scene provided from content reproducing device (Blu-ray Disc or DVD player) or streaming media server or make
With the image for the reality scene that external camera 710 is shot.In some embodiments, virtual image optical unit 702 may include
Mirror unit, such as spherical lens, non-spherical lens, Fresnel Lenses etc..
Input operating unit 703 include at least one be used to execute input operation operating member, such as key, button,
Switch or other components with similar functions, are received user instructions by operating member, and are exported to control unit 707
Instruction.
State information acquisition unit 704 is used to obtain the status information that wearing wears the user of display equipment 700.State letter
Ceasing acquiring unit 704 may include various types of sensors, be used for itself detecting state information, and can pass through communication unit
705 obtain status information from external equipment (such as other multi-functional terminal ends of smart phone, watch and user's wearing).State letter
Cease the location information and/or posture information on the head of the available user of acquiring unit 704.State information acquisition unit 704 can
To include gyro sensor, acceleration transducer, global positioning system (GPS) sensor, geomagnetic sensor, Doppler effect
Sensor, infrared sensor, one or more in radio-frequency field intensity sensor.In addition, state information acquisition unit 704 obtains
It takes wearing to wear the status information of the user of display equipment 700, such as obtains the mode of operation of such as user (whether user dresses
Wear display equipment 700), the action state of user (it is such as static, walk, run and suchlike moving condition, hand or refer to
Point posture, eyes open or closed state, direction of visual lines, pupil size), the state of mind (user whether be immersed in observation shows
The image shown and the like) or even physiological status.
Communication unit 705 executes the coding with the communication process of external device (ED), modulation and demodulation processing and signal of communication
And decoding process.In addition, control unit 707 can send transmission data from communication unit 705 to external device (ED).Communication mode can
To be wired or wireless, such as mobile high definition link (MHL) or universal serial bus (USB), high-definition media interface
(HDMI), the mesh network of Wireless Fidelity (Wi-Fi), Bluetooth communication or low-power consumption bluetooth communication and IEEE802.11s standard
Deng.In addition, communication unit 705 can be according to wideband code division multiple access (W-CDMA), long term evolution (LTE) and similar standard operation
Cellular radio transceiver.
In some embodiments, wearing display equipment 700 can also include storage unit 706, and storage unit 706 is arranged to
Mass-memory unit with solid state drive (SSD) etc..In some embodiments, storage unit 706 be can store using journey
Sequence or various types of data.For example, user can store using the content that display equipment 700 is watched is worn in storage unit
In 706.
In some embodiments, wearing display equipment 700 can also include control unit 707, and control unit 707 may include
Computer processing unit (CPU) or other equipment with similar functions.In some embodiments, control unit 707 can be used
It can be also used for execution the embodiment of the present application in the application program or control unit 707 for executing the storage of storage unit 706 to disclose
Method, function and operation circuit, be configured with device disclosed in the embodiment of the present application or disclosed including the embodiment of the present application
Equipment.
Image processing unit 708 is used to execute signal processing, such as related to the picture signal exported from control unit 707
Image quality correction, and by its conversion of resolution be the resolution ratio according to the screen of display unit 701.Then, display is driven
Moving cell 709 successively selects every row pixel of display unit 701, and successively scans every row pixel of display unit 701 line by line, because
And provide the picture element signal based on the picture signal through signal processing.
In some embodiments, wearing display equipment 700 can also include external camera.External camera 710 can be set
Display 700 main body front surface of equipment is worn, external camera 710 can be one or more.External camera 710 available three
Information is tieed up, and is also used as range sensor.In addition, the position sensitive detector of reflection signal of the detection from object
(PSD) or other kinds of range sensor can be used together with external camera 710.External camera 710 and Distance-sensing
Device can be used for detecting body position, posture and the shape that wearing wears the user of display equipment 700.In addition, under certain condition
User can pass through 710 direct viewing of external camera or preview reality scene.
In some embodiments, wearing display equipment 700 can also include sound processing unit, and sound processing unit 711 can
To execute the sound quality correction of voice signal export from control unit 707 or sound amplifies and input audio signal
Signal processing etc..Then, voice input/output unit 712 is output to the outside sound and input from wheat after acoustic processing
The sound of gram wind.
It should be noted that structure or component in Fig. 7 shown in dotted line frame can independently of wear display equipment 700 it
Outside, for example, can be set in the outside manage system (such as computer system) in wear show equipment 700 be used cooperatively;Or
Person, structure or component shown in dotted line frame can be set on wearing 700 inside of display equipment or surface.
In a typical configuration, electronic equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in readable medium, random access memory (RAM) and/or non-volatile
The forms such as property memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is the example of computer-readable medium.
Readable medium includes permanent and non-permanent, removable and non-removable media can be by any method or technique
To realize that information stores.Information can be computer readable instructions, data structure, the module of program or other data.Computer
The example of storage medium include, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random
Access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable
Read-only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), number are more
Function CD (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or any
Other non-transmission mediums, can be used for storage can be accessed by a computing device information.As defined in this article, computer-readable
Medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer
It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name
The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical
The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit
In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in
Technical problem basically reaches the technical effect.Specification subsequent descriptions are to implement the better embodiment of the application, so described
Description is being not intended to limit the scope of the present application for the purpose of the rule for illustrating the application.The protection scope of the application
As defined by the appended claims.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Include, so that commodity or system including a series of elements not only include those elements, but also including not clear
The other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited more
Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or system for including the element also
There are other identical elements.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application
Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations,
Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described herein
It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen
It please be in the protection scope of appended claims.