CN104954683B - Determine the method and device of photographic device - Google Patents

Determine the method and device of photographic device Download PDF

Info

Publication number
CN104954683B
CN104954683B CN201510350756.3A CN201510350756A CN104954683B CN 104954683 B CN104954683 B CN 104954683B CN 201510350756 A CN201510350756 A CN 201510350756A CN 104954683 B CN104954683 B CN 104954683B
Authority
CN
China
Prior art keywords
terminal
photographic device
preset
range
human body
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.)
Active
Application number
CN201510350756.3A
Other languages
Chinese (zh)
Other versions
CN104954683A (en
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510350756.3A priority Critical patent/CN104954683B/en
Publication of CN104954683A publication Critical patent/CN104954683A/en
Application granted granted Critical
Publication of CN104954683B publication Critical patent/CN104954683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure is directed to determine the method and device of photographic device.This method comprises: detection terminal where preset range in whether with the presence of human body;In the presence of having human body in preset range, the distance between human body and terminal information are obtained;Obtain the current status information of terminal;Judge range information, whether the current status information of terminal meets preset condition;When meeting preset condition, using photographic device corresponding with preset condition as currently used photographic device.The technical solution, allow terminal according to the human body and the distance between terminal in the preset range where terminal, and the current status information of terminal, it determines the currently used photographic device of terminal, is manually operated without user, realizes the currently used photographic device of determining terminal automatically, it is shot by the photographic device of the determination, the intelligence for improving terminal, has saved user time, improves the usage experience of user.

Description

Determine the method and device of photographic device
Technical field
This disclosure relates to field of terminal technology, more particularly to determine the method and device of photographic device.
Background technique
Currently, with the development of terminal technology, more and more users can select the photographic device of using terminal to clap It takes the photograph.And when needing to shoot, user would generally be determined the photographic device used by following manner, execute start-up operation and open Dynamic corresponding tool assigns command adapted thereto and enters respective interface, executes setting operation setting relevant parameter, assigns confirmation instruction and determines The photographic device used.But this mode is very inconvenient for a user, and whole process operation is comparatively laborious, wastes user Time reduces user experience.
Summary of the invention
The embodiment of the present disclosure provides the method and device of determining photographic device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method of determining photographic device is provided, comprising:
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, using photographic device corresponding with the preset condition as currently used camera shooting Device.
In one embodiment, described before in the preset range where the detection terminal whether with the presence of human body Method further include:
Judge whether terminal is lifted;
Whether with the presence of human body in preset range where the detection terminal, comprising:
When the terminal is lifted, whether detect in the preset range where the terminal with the presence of human body.
It is in one embodiment, described to judge whether terminal is lifted, comprising:
The magnitude of angular velocity of gyroscope output on acquisition terminal;
Judge whether the difference between the magnitude of angular velocity of this acquisition and the magnitude of angular velocity of last acquisition is big In preset angle threshold speed;
When the difference is greater than the preset angle threshold speed, determine that the terminal is lifted.
In one embodiment, whether with the presence of human body in the preset range where the detection terminal, comprising:
The preposition photographic device of terminal is opened, preposition photographic device first image within the vision is obtained;Identification Whether with the presence of face in the first image;In the presence of having face in the first image, where determining the terminal With the presence of the first human body in first preset range;
Or
The postposition photographic device for opening terminal, obtains the postposition photographic device the second image within the vision;Identification Whether with the presence of face in second image;In the presence of having face in second image, where determining the terminal With the presence of the second human body in second preset range.
In one embodiment, described in the presence of having human body in the preset range, obtain the human body and the end The distance between end information, comprising:
In the presence of having the first human body in the first preset range where the terminal, the described of the terminal output is acquired First distance value between first human body and the terminal;Or
In the presence of having the second human body in the second preset range where the terminal, the described of the terminal output is acquired Second distance value between second human body and the terminal;Or
When the second default model in the first preset range where the terminal with the presence of the first human body, where the terminal In the presence of having the second human body in enclosing, the first distance between first human body and the terminal of the terminal output is acquired Value and the second distance value between second human body and the terminal.
In one embodiment, the current status information of the terminal include the terminal be presently in geographical location, At least one information in the current time of the terminal.
In one embodiment, described judge the range information, whether the current status information of the terminal meets Preset condition, comprising:
Judge the first distance value whether in the first pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the first preset geographical position range, and/or judges the current time of the terminal whether in the first preset time In section;
Alternatively,
Judge the second distance value whether in the second pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the second preset geographical position range, and/or judges the current time of the terminal whether in the second preset time In section.
In one embodiment, described when meeting the preset condition, it will camera shooting dress corresponding with the preset condition It sets as currently used photographic device, comprising:
When the first distance value is presently in geographical location first in the first pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device as currently used photographic device;
Alternatively,
When the first distance value does not exist not in the first pre-determined distance section, when the terminal is presently in geographical location In first preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location second in the second pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value does not exist not in the second pre-determined distance section, when the terminal is presently in geographical location In second preset geographical position range, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device as currently used photographic device.
In one embodiment, the method also includes:
The preset condition is set.
In one embodiment, the preset condition includes the first pre-determined distance section, the second pre-determined distance section, first In preset geographical position range and/or the first preset time period, the second preset geographical position range and/or the second preset time period At least one, the setting preset condition, comprising:
When the terminal is shot by its photographic device, currently used photographic device, institute are collected and recorded The human body and the distance between the terminal value, the terminal for stating terminal output are presently in geographical location and/or described The current time of terminal;In all records, when used photographic device is preposition photographic device, it is recorded according to all The distance value determine first pre-determined distance section;In all records, when used photographic device is taken the photograph for postposition When as device, second pre-determined distance section is determined according to all distance values being recorded;Alternatively, in all records In, for the geographical position range that each is divided, if terminal is in the geographical position range of the division, preposition camera shooting The number that head is used subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, then the described first default ground Reason position range includes the geographical position range of the division, and otherwise, second preset geographical position range includes described draws The geographical position range divided;Alternatively, in all records, for the period that each is divided, if the time of the division The number that front camera is used in section subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, then institute The period that the first preset time period includes the division is stated, otherwise second preset time period includes the time of the division Section;
Alternatively,
It receives corresponding to the preposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the preposition photographic device of input apart from interval value as first pre-determined distance section;Before the input Geographical position range corresponding to photographic device is set as first preset geographical position range and/or will be before the input The period corresponding to photographic device is set as first preset time period;
Alternatively,
It receives corresponding to the postposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the postposition photographic device of input apart from interval value as second pre-determined distance section;After the input Geographical position range corresponding to photographic device is set to take the photograph as second preset geographical position and/or by the postposition of the input The period as corresponding to device is as second preset time period.
In one embodiment, whether with the presence of human body in the preset range where the detection terminal, comprising:
Judge described be using photographic device corresponding with the preset condition as the option of currently used photographic device It is no selected;
It is chosen when described using photographic device corresponding with the preset condition as the option of currently used photographic device When middle, whether there is step existing for human body in the preset range where the execution detection terminal;
When it is described using photographic device corresponding with the preset condition as the option of currently used photographic device not by When choosing, it is described using photographic device corresponding with the preset condition as currently used photographic device to return to the judgement The step whether option is selected.
According to the second aspect of an embodiment of the present disclosure, a kind of device of determining photographic device is provided, comprising:
Detection module, for whether detecting in the preset range where terminal with the presence of human body;
First obtains module, for obtaining the human body and the terminal in the presence of having human body in the preset range The distance between information;
Second obtains module, for obtaining the current status information of the terminal;
First judgment module, for judging it is pre- whether the current status information of the range information, the terminal meets If condition;
Determining module will photographic device conduct corresponding with the preset condition for when meeting the preset condition Currently used photographic device.
In one embodiment, described device further include:
Second judgment module, for judging whether terminal is lifted;
The detection module, being also used to detect when the terminal is lifted in the preset range where the terminal is It is no with the presence of human body.
In one embodiment, second judgment module, comprising:
Angular velocity detecting submodule, the magnitude of angular velocity of the gyroscope output on acquisition terminal;
Angular speed judging submodule, for judging the magnitude of angular velocity of this acquisition and the angle speed of last acquisition Whether the difference between angle value is greater than preset angle threshold speed;
Angular speed determines submodule, for determining the terminal when the difference is greater than the preset angle threshold speed It is lifted.
In one embodiment, the detection module, comprising:
First opens submodule, for opening the preposition photographic device of terminal, obtains the preposition photographic device visual field model Enclose the first interior image;First identification submodule, for identification whether with the presence of face in the first image;First determines son Module determines in the first preset range where the terminal there is first in the presence of having face in the first image Human body exists;
Or
Second unlatching submodule obtains postposition photographic device visual field model for opening the postposition photographic device of terminal Enclose the second interior image;Second identification submodule, for identification whether with the presence of face in second image;Second determines son Module determines in the second preset range where the terminal there is second in the presence of having face in second image Human body exists.
Module is obtained in one embodiment, described first, comprising:
First distance acquires submodule, in the first preset range where the terminal with the presence of the first human body When, acquire the first distance value between first human body and the terminal of the terminal output;
Or
Second distance acquires submodule, in the second preset range where the terminal with the presence of the second human body When, acquire the second distance value between second human body and the terminal of the terminal output;
Or
Third distance acquisition submodule, in the first preset range where the terminal with the presence of the first human body, In the presence of having the second human body in the second preset range where the terminal, acquire first human body of terminal output with The second distance value between first distance value and second human body and the terminal between the terminal.
In one embodiment, the current status information of the terminal includes that the terminal is presently in geographical location, institute State at least one information in the current time of terminal.
In one embodiment, the first judgment module is also used to judge whether the first distance value is default first In section;Judge that the terminal is presently in geographical location whether in the first preset geographical position range, and/or judgement Whether the current time of the terminal is in the first preset time period;
Alternatively,
Whether the first judgment module is also used to judge the second distance value in the second pre-determined distance section;Sentence The terminal of breaking is presently in geographical location whether in the second preset geographical position range, and/or judges working as the terminal Whether the preceding time is in the second preset time period.
In one embodiment, the determining module, be also used to when the first distance value in the first pre-determined distance section, When the terminal is presently in geographical location in the first preset geographical position range and/or when the current time of the terminal exists When in the first preset time period, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value in the first pre-determined distance section, when the terminal is worked as Preceding locating geographical location not in the first preset geographical position range, when the current time of the terminal is not in the first preset time When in section, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value is not in the first pre-determined distance section, when the terminal Geographical location is presently in the first preset geographical position range and/or when the current time of the terminal is when first is default Between in section when, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value is not in the first pre-determined distance section, when the terminal Be presently in geographical location not in the first preset geographical position range, when the current time of the terminal is when first is not default Between in section when, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the terminal is worked as Preceding locating geographical location is in the second preset geographical position range and/or when the current time of the terminal is in the second preset time When in section, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the terminal is worked as Preceding locating geographical location not in the second preset geographical position range, when the current time of the terminal is not in the second preset time When in section, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value is not in the second pre-determined distance section, when the terminal Geographical location is presently in the second preset geographical position range and/or when the current time of the terminal is when second is default Between in section when, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value is not in the second pre-determined distance section, when the terminal Be presently in geographical location not in the second preset geographical position range, when the current time of the terminal is when second is not default Between in section when, using the preposition photographic device of the terminal as currently used photographic device.
In one embodiment, described device further include:
Setup module, for the preset condition to be arranged.
In one embodiment, the preset condition includes the first pre-determined distance section, the second pre-determined distance section, first pre- If in geographical position range and/or the first preset time period, the second preset geographical position range and/or the second preset time period At least one,
The setup module is also used to when the terminal is shot by its photographic device, is collected and recorded current The distance between used photographic device, the human body of terminal output and the terminal value, the current institute of the terminal Locate the current time of geographical location and/or the terminal;In all records, when used photographic device is preposition camera shooting dress When setting, first pre-determined distance section is determined according to all distance values being recorded;In all records, when being used Photographic device be postposition photographic device when, determine second pre-determined distance area according to all distance values being recorded Between;Alternatively, in all records, for the geographical position range that each is divided, if terminal is in the geography of the division When position range, the number that front camera is used subtract numerical value that the number that rear camera is used obtains be greater than it is default Value, then first preset geographical position range includes the geographical position range of the division, otherwise, the described second default geography Position range includes the geographical position range of the division;Alternatively, in all records, for the period that each is divided, If the number that front camera is used in the period of the division subtracts what the number that rear camera is used obtained Numerical value is greater than preset value, then first preset time period includes the period of the division, otherwise second preset time Section includes the period of the division;
Alternatively,
The setup module is also used to receive corresponding to the preposition photographic device of input apart from interval value, geographical location Range and/or period;Using corresponding to the preposition photographic device of the input apart from interval value as described first it is default away from From section;Using geographical position range corresponding to the preposition photographic device of the input as the first preset geographical position model It encloses and/or using the period corresponding to the preposition photographic device of the input as first preset time period;
Alternatively,
The setup module is also used to receive corresponding to the postposition photographic device of input apart from interval value, geographical location Range and/or period;Using corresponding to the postposition photographic device of the input apart from interval value as described second it is default away from From section;Using geographical position range corresponding to the postposition photographic device of the input as second preset geographical position And/or using the period corresponding to the postposition photographic device of the input as second preset time period.
In one embodiment, the detection module, comprising:
Option judging submodule, for judge it is described will photographic device corresponding with the preset condition as currently used The option of photographic device whether be selected;
Implementation sub-module, for when described using photographic device corresponding with the preset condition as currently used camera shooting When the option of device is selected, whether there is step existing for human body in the preset range where the execution detection terminal;
Submodule is returned to, for when described using photographic device corresponding with the preset condition as currently used camera shooting When the option of device is not selected, returning to described be used as photographic device corresponding with the preset condition of the judgement currently makes The step whether option of photographic device is selected.
According to the third aspect of an embodiment of the present disclosure, a kind of device of determining photographic device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, using photographic device corresponding with the preset condition as currently used camera shooting Device.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Above-mentioned technical proposal, allow terminal according to the human body in the preset range where terminal and between terminal away from From and the current status information of terminal grasped manually to determine the currently used photographic device of terminal without user Make, realizes the currently used photographic device of determining terminal automatically, shot by the photographic device of the determination, improve end The intelligence at end, has saved user time, improves the usage experience of user.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of the method for determining photographic device shown according to an exemplary embodiment;
Fig. 2 is the flow chart of step S101 in the method for determining photographic device shown according to an exemplary embodiment;
Fig. 3 is the flow chart of the method for determining photographic device shown according to an exemplary embodiment;
Fig. 4 is the flow chart of step S301 in the method for determining photographic device shown according to an exemplary embodiment;
Fig. 5 is the flow chart of step S102 in the method for determining photographic device shown according to an exemplary embodiment;
Fig. 6 is the flow chart of the method for determining photographic device shown according to an exemplary embodiment;
Fig. 7 is the flow chart of step S101 in the method for determining photographic device shown according to an exemplary embodiment;
Fig. 8 is the block diagram of the device of determining photographic device shown according to an exemplary embodiment;
Fig. 9 is the block diagram of the device of determining photographic device shown according to an exemplary embodiment;
Figure 10 is the frame of the second judgment module 91 in the device of determining photographic device shown according to an exemplary embodiment Figure;
Figure 11 is the block diagram of detection module 81 in the device of determining photographic device shown according to an exemplary embodiment;
Figure 12 is the first frame for obtaining module 82 in the device of determining photographic device shown according to an exemplary embodiment Figure;
Figure 13 is the block diagram of detection module 81 in the device of determining photographic device shown according to an exemplary embodiment;
Figure 14 is the block diagram of the device shown according to an exemplary embodiment for being suitable for determining photographic device.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The technical solution that the embodiment of the present disclosure provides, is related to terminal, which is used to detect the preset range where terminal Inside whether with the presence of human body;In the presence of having human body in preset range, the distance between human body and terminal information are obtained;It obtains eventually The current status information at end;Judge range information, whether the current status information of terminal meets preset condition;It is pre- when meeting If when condition, using photographic device corresponding with preset condition as currently used photographic device.So that terminal can root According to human body and the distance between terminal in the preset range where terminal and the current status information of terminal, to determine end Currently used photographic device is held, is manually operated without user, realizes the currently used camera shooting of determining terminal automatically Device is shot by the photographic device of the determination, is improved the intelligence of terminal, has been saved user time, improves use The usage experience at family.Illustrate the operation of terminal during completion automatically determines terminal currently used photographic device below Process.
Fig. 1 is a kind of flow chart of the method for determining photographic device shown according to an exemplary embodiment, such as Fig. 1 institute Show, determine the method for photographic device for including the following steps S101-S105 in terminal:
In step s101, whether with the presence of human body in the preset range where detection terminal.
In order to enable terminal can be according to the human body and the distance between terminal and terminal in the preset range where terminal Current status information, automatically determine the currently used photographic device of terminal, to implement technical solution provided by the present disclosure, eventually It whether holds in the preset range where can detecting terminal first with the presence of human body.
In one embodiment, step S101 is implementable for such as under type one or mode two.
Mode one, as shown in Fig. 2, including the field range of the preposition photographic device of terminal in the preset range where terminal When, step S101 is implementable to be, in step s 201, opens the preposition photographic device of terminal, obtains the preposition photographic device visual field The first image in range;In step S202, whether identify in the first image with the presence of face;In step S203, when In the presence of having face in one image, determine in the first preset range where terminal with the presence of the first human body.For example, in user's phase Prestige automatically determines mobile phone currently used photographic device when being preposition photographic device, can through the above way one, to detect hand The preposition photographic device of machine within sweep of the eye whether with the presence of human body.In this way, the preposition photographic device of detection terminal can be realized Within sweep of the eye whether with the presence of human body.It should be noted that obtaining photographic device visual field model in the photographic device for opening terminal During enclosing interior image, terminal does not simultaneously enter screening-mode, that is, opens the photographic device of terminal, but the screen of terminal is simultaneously Photographic device image within the vision is not shown.It should be noted that can using face recognition technology identification image in whether With the presence of face.It should be noted that knowledge can also be passed through in addition to whether determining in image by identification face with the presence of human body Other positions of others' body, to determine that other positions may include the hand etc. of human body whether with the presence of human body in image Position.
Mode two, when the preset range where terminal includes the field range of postposition photographic device of terminal, step It is the postposition photographic device for opening terminal that S101 is implementable, obtains postposition photographic device the second image within the vision;Identification Whether with the presence of face in second image;In the presence of having face in the second image, the second preset range where terminal is determined Inside with the presence of the second human body.For example, automatically determining the currently used photographic device of mobile phone in user's expectation is postposition photographic device When, can through the above way two, come detect mobile phone postposition photographic device within sweep of the eye whether with the presence of human body.In this way, Can be realized detection terminal postposition photographic device within sweep of the eye whether with the presence of human body.
In one embodiment, as shown in figure 3, before step S101, i.e., in the default model where the detection terminal In enclosing whether with the presence of human body before, the above method can also include: to judge whether terminal is lifted in step S301.Institute Whether stating step S101 can be implemented are as follows: when terminal is lifted, with the presence of human body in the preset range where detection terminal.By It would generally select to pick up terminal in user and shoot, therefore, the preset range where terminal can be detected when terminal is lifted Inside whether with the presence of human body.In this way, can avoid detecting end when being not required to automatically determine the currently used photographic device of terminal With the presence of human body in preset range where holding, according to the distance between human body and terminal detected and terminal currently Status information automatically determines the currently used photographic device of terminal, that is, avoid be not required to automatically determine terminal it is currently used When photographic device, the currently used photographic device of terminal has been automatically determined, so that terminal can more accurately be judged, Whether user needs to automatically determine the currently used photographic device of terminal and shoots at this time, when user shoots, The currently used photographic device of terminal is automatically determined again to be shot.
In one embodiment, as shown in figure 4, it is that judge whether terminal is lifted implementable that step S301 is implementable Are as follows: in step S401, the magnitude of angular velocity of the gyroscope output on acquisition terminal;In step S402, this acquisition is judged Whether the difference between magnitude of angular velocity and the magnitude of angular velocity of last acquisition is greater than preset angle threshold speed;In step S403, When difference is greater than preset angle threshold speed, determine that terminal is lifted.Judged in this way, can be realized by the gyroscope of terminal Whether terminal is lifted.Certainly, in some usage scenarios, also it can judge that terminal is by the gravity accelerometer of terminal It is no to be lifted.
In step s 102, in the presence of having human body in preset range, the distance between human body and terminal information are obtained.
In order to enable terminal can be according to the human body and the distance between terminal and terminal in the preset range where terminal Current status information detected in preset range to determine the currently used photographic device of terminal in above-mentioned steps S101 In the presence of having human body, the distance between the available human body of terminal and terminal information.
In one embodiment, step S102 is implementable for such as under type one, mode two or mode three.
Mode one, as shown in figure 5, the preset range where terminal include the first preset range when, i.e., terminal is preposition When the field range of photographic device, step S102 is implementable to be, in step S501, when in the first preset range where terminal First distance value in the presence of having the first human body, between the first human body and terminal of acquisition terminal output.For example, collected First distance value between one human body and terminal can be 20 centimetres.The preposition photographic device of terminal is got in this way, can be realized The distance between the human body of field range and terminal information.Wherein, the distance between human body and terminal value can be by acquisitions eventually The distance value of PSensor (Proximity Sensor, the proximity sensor) output at end obtains.
Mode two, when the preset range where terminal includes the second preset range, i.e. the postposition photographic device of terminal When field range, step S102 is implementable to be, in the presence of having the second human body in the second preset range where terminal, acquisition is eventually Hold the second distance value between the second human body and terminal of output.For example, second between collected second human body and terminal Distance value can be 50 centimetres.In this way, can be realized get terminal postposition photographic device field range human body and terminal it Between range information.
Mode three, when the preset range where terminal includes the first preset range and the second preset range, i.e. terminal When the field range of preposition photographic device and postposition photographic device, step S102 is implementable to be, when first where terminal is default With the presence of the first human body in range, in the presence of having the second human body in the second preset range where terminal, acquisition terminal output The second distance value between first distance value and the second human body and terminal between first human body and terminal.In this way, can be realized Get the distance between human body and the terminal of the preposition photographic device of terminal and postposition photographic device field range information.
In step s 103, the current status information of terminal is obtained.
In order to enable terminal can be according to the human body and the distance between terminal and terminal in the preset range where terminal Current status information, to determine the currently used photographic device of terminal, in this step, the available terminal of terminal is worked as Preceding status information.
In one embodiment, the current status information of the terminal may include terminal be presently in geographical location, At least one information in the current time of terminal.For example, terminal be presently in geographical location can in user residence, it is public Place etc..In this way, the current status information for getting terminal can be realized, further determined according to the use habit of user The currently used photographic device of terminal, improves the accuracy rate of definitive result.
In step S104, range information is judged, whether the current status information of terminal meets preset condition.
Above-mentioned steps get range information, terminal current status information after, terminal may determine that range information, Whether the current status information of terminal meets preset condition.
In one embodiment, step S104 is implementable for such as under type one or mode two.
Mode one, when the preset range where terminal includes the first preset range, i.e. the preposition photographic device of terminal When field range, whether it is to judge first distance value in the first pre-determined distance section that step S104 is implementable;Judge that terminal is worked as Whether whether preceding locating geographical location is in the first preset geographical position range, and/or judge the current time of terminal first In preset time period.For example, the first pre-determined distance section can be 5 centimetres to 30 centimetres, collected first human body and terminal Between first distance value can be 20 centimetres, at this point, i.e. can determine the distance between the first body and terminal first preset In section.First preset geographical position range can be user residence range, get terminal and be presently in geographical location It can be the user residence, at this point, can determine that terminal is presently in geographical location in the first preset geographical position range.The One preset time period can be 12:00 when 13:00, when the terminal current time got can be 12:30, at this point, i.e. It can determine the current time of terminal in the first preset time period.The preposition photographic device view of terminal is judged in this way, can be realized Whether in the first pre-determined distance section, whether terminal is presently in geographical location for the distance between the human body of wild range and terminal In the first preset geographical position range, whether the current time of terminal is in the first preset time period.
Mode two, when the preset range where terminal includes the second preset range, i.e. the postposition photographic device of terminal When field range, whether it is to judge second distance value in the second pre-determined distance section that step S104 is implementable;Judge that terminal is worked as Whether whether preceding locating geographical location is in the second preset geographical position range, and/or judge the current time of terminal second In preset time period.For example, the second pre-determined distance section can be 35 centimetres to 100 centimetres, collected second human body and end Second distance value between end can be 50 centimetres, at this point, can determine that the distance between the second human body and terminal are pre- second If in section.Second preset geographical position range can be public place, get terminal be presently in geographical location can The public place is thought, at this point, can determine that terminal is presently in geographical location in the second preset geographical position range.Second Preset time period can be 10:00 when 13:00, when the terminal current time got can be 12:00, at this point, Determine the current time of terminal in the second preset time period.The terminal postposition photographic device visual field is judged in this way, can be realized The distance between the human body of range and terminal whether in the second pre-determined distance section, terminal be presently in geographical location whether In second preset geographical position range, whether the current time of terminal is in the second preset time period.
In step s105, when meeting preset condition, will photographic device corresponding with preset condition as currently used Photographic device.
When above-mentioned steps judge range information, the current status information of terminal meets preset condition, terminal can be with Using photographic device corresponding with preset condition as currently used photographic device.In this way, terminal can determine that terminal is current The photographic device used opens the photographic device determined, and the screen of terminal shows photographic device field range Interior image is shot so that the photographic device determined can be used in user.It is described to be filled using the camera shooting determined Setting and carrying out shooting may include taken pictures using the photographic device that this is determined, obtains relevant picture or this is determined Photographic device is recorded a video, and associated video is obtained.
In one embodiment, step S105 is implementable for such as under type one to mode eight.
Mode one, as shown in fig. 6, the preset range where terminal include the first preset range when, i.e., terminal is preposition When the field range of photographic device, step S105 is implementable are as follows: in step s 601, when first distance value is in the first pre-determined distance Geographical location is presently in the first preset geographical position range and/or when the current time of terminal exists in section, when terminal When in the first preset time period, using the preposition photographic device of terminal as currently used photographic device.For example, it is expected in user In the first preset geographical position range, in the first preset time period, when by the preposition self-shooting of pick-up device of mobile phone, Ji Ke In the first pre-determined distance section, terminal is presently in geographical location in the first default geographical position by the distance between user and mobile phone It sets in range, when the current time of terminal is in the first preset time period, the preposition photographic device for automatically determining mobile phone, which is used as, works as The preceding photographic device used.In this way, can be realized according between the preposition photographic device of terminal human body within the vision and terminal Distance and terminal be presently in geographical location, terminal current time, automatically determine out the preceding photographic device of terminal as terminal Currently used photographic device.
Mode two, step S105 are implementable are as follows: when first distance value in the first pre-determined distance section, when the current institute of terminal Locate geographical location not in the first preset geographical position range, when the current time of terminal is not in the first preset time period, Using the postposition photographic device of the terminal as currently used photographic device.
Mode three, step S105 are implementable are as follows: when first distance value not in the first pre-determined distance section, when terminal it is current Locating geographical location is in the first preset geographical position range and/or when the current time of terminal is in the first preset time period When, using the preposition photographic device of terminal as currently used photographic device.
Mode four, step S105 are implementable are as follows: when first distance value not in the first pre-determined distance section, when terminal it is current Locating geographical location not in the first preset geographical position range, when the current time of terminal is not in the first preset time period When, using the postposition photographic device of the terminal as currently used photographic device.
Mode five, when the preset range where terminal includes the second preset range, i.e. the postposition photographic device of terminal When field range, step S105 is implementable are as follows: when second distance value is presently in ground in the second pre-determined distance section, when terminal Position is managed in the second preset geographical position range and/or when the current time of terminal is in the second preset time period, it will be whole The postposition photographic device at end is as currently used photographic device.For example, it is expected in user in the second preset geographical position range In interior, the second preset time period, when being shot by the postposition photographic device of mobile phone to other people, can other people and mobile phone it Between distance in the second pre-determined distance section when, terminal is presently in geographical location in the second preset geographical position range, When the current time of terminal is in the second preset time period, the postposition photographic device for automatically determining mobile phone is currently used as terminal Photographic device.In this way, can be realized according to the distance between terminal postposition photographic device human body within the vision and terminal, And terminal is presently in geographical location, terminal current time, the rear photographic device for automatically determining out terminal currently makes as terminal Photographic device.
Mode six, step S105 are implementable are as follows: when two distance values are presently in the second pre-determined distance section, when terminal Geographical location not in the second preset geographical position range, when the current time of terminal is not in the second preset time period, will The preposition photographic device of terminal is as currently used photographic device.
Mode seven, step S105 are implementable are as follows: when second distance value not in the second pre-determined distance section, when terminal it is current Locating geographical location is in the second preset geographical position range and/or when the current time of terminal is in the second preset time period When, using the postposition photographic device of terminal as currently used photographic device.
Mode eight, step S105 are implementable are as follows: when second distance value not in the second pre-determined distance section, when terminal it is current Locating geographical location not in the second preset geographical position range, when the current time of terminal is not in the second preset time period When, using the preposition photographic device of terminal as currently used photographic device.
As it can be seen that the above method that the embodiment of the present disclosure provides, allows terminal according in the preset range where terminal Human body and the distance between terminal and terminal current status information, to determine the currently used photographic device of terminal, from It is manually operated without user, realizes the currently used photographic device of determining terminal automatically, filled by the camera shooting of the determination It sets and is shot, improve the intelligence of terminal, saved user time, improve the usage experience of user.
In one embodiment, the above method may also include that the setting preset condition.In one embodiment, described Preset condition may include the first pre-determined distance section, the second pre-determined distance section, the first preset geographical position range and/or At least one of one preset time period, the second preset geographical position range and/or second preset time period, described in the setting Preset condition step may be embodied as following manner I, mode II or mode III.
Mode I, the setting preset condition step may be embodied as, when terminal is shot by its photographic device When, collect and record the distance between currently used photographic device, the human body of terminal output and described terminal Value, the terminal are presently in the current time in geographical location and/or the terminal;In all records, taken the photograph when used When picture device is preposition photographic device, first pre-determined distance section is determined according to all distance values being recorded;? In all records, when used photographic device is postposition photographic device, determined according to all distance values being recorded Second pre-determined distance section;Alternatively, in all records, for the geographical position range that each is divided, if terminal When geographical position range in the division, the number that front camera is used subtracts the number that rear camera is used Obtained numerical value is greater than preset value, then first preset geographical position range includes the geographical position range of the division, no Then, second preset geographical position range includes the geographical position range of the division;Alternatively, in all records, for Each period divided, if the number that front camera is used in the period of the division subtracts rear camera The numerical value that the number used obtains is greater than preset value, then first preset time period includes the period of the division, no Then, second preset time period includes the period of the division.In this way, terminal can be practised automatically according to the shooting of user Be used to be arranged the first pre-determined distance section, the second pre-determined distance section, the first preset geographical position range and/or first it is default when Between section, the second preset geographical position range and/or the second preset time period used at this time so as to more accurately judge Whether family needs to automatically determine the currently used photographic device of terminal.
Mode II, the setting preset condition step may be embodied as, and the preposition photographic device institute for receiving input is right Answer apart from interval value, geographical position range and/or period;Distance regions corresponding to preposition photographic device by the input Between value be used as first pre-determined distance section;Using geographical position range corresponding to the preposition photographic device of the input as First preset geographical position range and/or using the period corresponding to the preposition photographic device of the input as described One preset time period.In this way, terminal can be not necessarily to by the above-mentioned means, directly according to user's input apart from interval value, geography The first pre-determined distance section, the first preset geographical position range and/or the first preset time period is arranged in position range, period, Meet user demand, so that setting up procedure is more convenient.Wherein, input can be user apart from interval value and pass through shooting What experiment obtained, the shooting experiment may include when user's using terminal photographic device is shot, and survey crew uses Corresponding tool measures the distance between user and terminal.
Mode III, the setting preset condition step may be embodied as, and the postposition photographic device institute for receiving input is right Answer apart from interval value, geographical position range and/or period;Distance regions corresponding to postposition photographic device by the input Between value be used as second pre-determined distance section;Using geographical position range corresponding to the postposition photographic device of the input as Second preset geographical position and/or pre- using the period corresponding to the postposition photographic device of the input as described second If the period.In this way, terminal can be not necessarily to by the above-mentioned means, directly according to user's input apart from interval value, geographical location The second pre-determined distance section, the second preset geographical position range and/or the second preset time period is arranged in range, period, meets User demand, so that setting up procedure is more convenient.
In one embodiment, as shown in fig. 7, it is that in step S801, judgement will be with default item that step S101 is implementable Whether the corresponding photographic device of part is selected as the option of currently used photographic device;In step S802, when will with it is pre- If the corresponding photographic device of condition is selected as the option of currently used photographic device, execute pre- where detecting terminal If whether there is step existing for human body in range;In step S803, work as when photographic device corresponding with preset condition to be used as When the option of the preceding photographic device used is not selected, returning to judgement and being used as photographic device corresponding with preset condition currently makes The step whether option of photographic device is selected.In this way, user corresponding with preset condition can will be taken the photograph by setting Option as device as currently used photographic device, comes whether decision needs terminal according in the preset range where terminal Human body and terminal between away from and terminal current status information, determine the currently used photographic device of terminal, improve and use Family Experience Degree.
In one embodiment, it is to judge whether terminal is lifted that technical solution provided by the present disclosure is implementable;When described When terminal is lifted, the preposition photographic device of terminal is opened, obtains preposition photographic device first image within the vision; It whether identifies in the first image with the presence of face;In the presence of having face in the first image, the terminal institute is determined The first preset range in the presence of the first human body;When in the first preset range where the terminal with the presence of the first human body When, acquire the first distance value between first human body and the terminal of the terminal output;Terminal is obtained to be presently in Geographical location, terminal current time;Judge first distance value whether in the first pre-determined distance section;Judge that terminal is presently in Whether whether geographical location is in the first preset geographical position range, and/or judge the current time of terminal when first is default Between in section;When first distance value presets geography first in the first pre-determined distance section, when terminal is presently in geographical location In position range and/or when the current time of terminal is in the first preset time period, using the preposition photographic device of terminal as Currently used photographic device.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 8 is a kind of block diagram of the device of determining photographic device shown according to an exemplary embodiment, which can be with Pass through being implemented in combination with as some or all of of electronic equipment for software, hardware or both.As shown in figure 8, the determination is taken the photograph As the device of device includes:
Detection module 81, for whether detecting in the preset range where terminal with the presence of human body;
First obtains module 82, is configured as in the presence of having human body in the preset range, obtains the human body and institute State the distance between terminal information;
Second obtains module 83, is configured as obtaining the current status information of the terminal;
First judgment module 84, be configured as judging the range information, the terminal current status information whether Meet preset condition;
Determining module 85 is configured as when meeting the preset condition, will camera shooting dress corresponding with the preset condition It sets as currently used photographic device.
In one embodiment, as shown in figure 9, described device may also include that
Second judgment module 91, be configured as it is described detection terminal where preset range in whether with the presence of human body it Before, judge whether terminal is lifted;
The detection module 81 is additionally configured to detect the default model where the terminal when the terminal is lifted Whether with the presence of human body in enclosing.
In one embodiment, as shown in Figure 10, second judgment module 91, it may include:
Angular velocity detecting submodule 101, the magnitude of angular velocity of the gyroscope output on acquisition terminal;
Angular speed judging submodule 102, for judging described in the magnitude of angular velocity and the last acquisition of this acquisition Whether the difference between magnitude of angular velocity is greater than preset angle threshold speed;
Angular speed determines submodule 103, for determining the end when the difference is greater than the preset angle threshold speed End is lifted.
In one embodiment, as shown in figure 11, the detection module 81, it may include:
First opens submodule 111, for opening the preposition photographic device of terminal, obtains the preposition photographic device visual field The first image in range;First identification submodule 112, for identification whether with the presence of face in the first image;First Submodule 113 is determined, for determining the first preset range where the terminal in the presence of having face in the first image Inside with the presence of the first human body;
Or
Second unlatching submodule obtains postposition photographic device visual field model for opening the postposition photographic device of terminal Enclose the second interior image;Second identification submodule, for identification whether with the presence of face in second image;Second determines son Module determines in the second preset range where the terminal there is second in the presence of having face in second image Human body exists.
In one embodiment, as shown in figure 12, described first module 82 is obtained, it may include:
First distance acquires submodule 121, for having the first human body to deposit in the first preset range where the terminal When, acquire the first distance value between first human body and the terminal of terminal output;
Or
Second distance acquires submodule, in the second preset range where the terminal with the presence of the second human body When, acquire the second distance value between second human body and the terminal of the terminal output;
Or
Third distance acquisition submodule, in the first preset range where the terminal with the presence of the first human body, In the presence of having the second human body in the second preset range where the terminal, acquire first human body of terminal output with The second distance value between first distance value and second human body and the terminal between the terminal.
In one embodiment, the current status information of the terminal may include that the terminal is presently in geographical position It sets, at least one information in the current time of the terminal.
In one embodiment, the first judgment module is also used to judge whether the first distance value is pre- first If in section;Judge that the terminal is presently in geographical location whether in the first preset geographical position range, and/or sentences Whether the current time for the terminal of breaking is in the first preset time period;
Alternatively,
Whether the first judgment module is also used to judge the second distance value in the second pre-determined distance section;Sentence The terminal of breaking is presently in geographical location whether in the second preset geographical position range, and/or judges working as the terminal Whether the preceding time is in the second preset time period.
In one embodiment, the determining module is also used to when the first distance value is in the first pre-determined distance section It is interior, when the terminal be presently in geographical location in the first preset geographical position range and/or when the terminal it is current when Between in the first preset time period when, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value in the first pre-determined distance section, when the terminal is worked as Preceding locating geographical location not in the first preset geographical position range, when the current time of the terminal is not in the first preset time When in section, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value is not in the first pre-determined distance section, when the terminal Geographical location is presently in the first preset geographical position range and/or when the current time of the terminal is when first is default Between in section when, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value is not in the first pre-determined distance section, when the terminal Be presently in geographical location not in the first preset geographical position range, when the current time of the terminal is when first is not default Between in section when, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the terminal is worked as Preceding locating geographical location is in the second preset geographical position range and/or when the current time of the terminal is in the second preset time When in section, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the terminal is worked as Preceding locating geographical location not in the second preset geographical position range, when the current time of the terminal is not in the second preset time When in section, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value is not in the second pre-determined distance section, when the terminal Geographical location is presently in the second preset geographical position range and/or when the current time of the terminal is when second is default Between in section when, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value is not in the second pre-determined distance section, when the terminal Be presently in geographical location not in the second preset geographical position range, when the current time of the terminal is when second is not default Between in section when, using the preposition photographic device of the terminal as currently used photographic device.
In one embodiment, described device may also include that
Setup module, for the preset condition to be arranged.
In one embodiment, the preset condition may include the first pre-determined distance section, the second pre-determined distance section, First preset geographical position range and/or the first preset time period, the second preset geographical position range and/or the second preset time At least one of section,
The setup module is also used to when the terminal is shot by its photographic device, is collected and recorded current The distance between used photographic device, the human body of terminal output and the terminal value, the current institute of the terminal Locate the current time of geographical location and/or the terminal;In all records, when used photographic device is preposition camera shooting dress When setting, first pre-determined distance section is determined according to all distance values being recorded;In all records, when being used Photographic device be postposition photographic device when, determine second pre-determined distance area according to all distance values being recorded Between;Alternatively, in all records, for the geographical position range that each is divided, if terminal is in the geography of the division When position range, number that front camera is used is greater than or equal to the number that rear camera is used, then and described first Preset geographical position range includes the geographical position range of the division, if the number that front camera is used is less than postposition The number that camera is used, then second preset geographical position range includes the geographical position range of the division;Alternatively, In all records, for the period that each is divided, if front camera is used in the period of the division Number is greater than or equal to the number that rear camera is used, then first preset time period includes the time of the division Section, if the number that front camera is used is less than the number that rear camera is used, second preset time period Period including the division;
Alternatively,
The setup module is also used to receive corresponding to the preposition photographic device of input apart from interval value, geographical location Range and/or period;Using corresponding to the preposition photographic device of the input apart from interval value as described first it is default away from From section;Using geographical position range corresponding to the preposition photographic device of the input as the first preset geographical position model It encloses and/or using the period corresponding to the preposition photographic device of the input as first preset time period;
Alternatively,
The setup module is also used to receive corresponding to the postposition photographic device of input apart from interval value, geographical location Range and/or period;Using corresponding to the postposition photographic device of the input apart from interval value as described second it is default away from From section;Using geographical position range corresponding to the postposition photographic device of the input as second preset geographical position And/or using the period corresponding to the postposition photographic device of the input as second preset time period.
In one embodiment, as shown in figure 13, the detection module 81, it may include:
Option judging submodule 131, it is described that photographic device conduct corresponding with the preset condition is current for judging Whether the option of the photographic device used is selected;
Implementation sub-module 132, for when described using photographic device corresponding with the preset condition as currently used When the option of photographic device is selected, whether there is step existing for human body in the preset range where the execution detection terminal;
Submodule 133 is returned to, for when described using photographic device corresponding with the preset condition as currently used When the option of photographic device is not selected, returns to described be used as photographic device corresponding with the preset condition of the judgement and work as The step whether option of the preceding photographic device used is selected.
According to the third aspect of an embodiment of the present disclosure, a kind of device of determining photographic device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, using photographic device corresponding with the preset condition as currently used camera shooting Device.
Above-mentioned processor is also configured to:
It is described detection terminal where preset range in whether with the presence of human body before, the method also includes:
Judge whether terminal is lifted;
Whether with the presence of human body in preset range where the detection terminal, comprising:
When the terminal is lifted, whether detect in the preset range where the terminal with the presence of human body.
It is described to judge whether terminal is lifted, comprising:
The magnitude of angular velocity of gyroscope output on acquisition terminal;
Judge whether the difference between the magnitude of angular velocity of this acquisition and the magnitude of angular velocity of last acquisition is big In preset angle threshold speed;
When the difference is greater than the preset angle threshold speed, determine that the terminal is lifted.
Whether with the presence of human body in preset range where the detection terminal, comprising:
The preposition photographic device of terminal is opened, preposition photographic device first image within the vision is obtained;Identification Whether with the presence of face in the first image;In the presence of having face in the first image, where determining the terminal With the presence of the first human body in first preset range;
Or
The postposition photographic device for opening terminal, obtains the postposition photographic device the second image within the vision;Identification Whether with the presence of face in second image;In the presence of having face in second image, where determining the terminal With the presence of the second human body in second preset range.
It is described have human body in the preset range in the presence of, obtain the distance between the human body and the terminal and believe Breath, comprising:
In the presence of having the first human body in the first preset range where the terminal, the described of the terminal output is acquired First distance value between first human body and the terminal;Or
In the presence of having the second human body in the second preset range where the terminal, the described of the terminal output is acquired Second distance value between second human body and the terminal;Or
When the second default model in the first preset range where the terminal with the presence of the first human body, where the terminal In the presence of having the second human body in enclosing, the first distance between first human body and the terminal of the terminal output is acquired Value and the second distance value between second human body and the terminal.
The current status information of the terminal include the terminal be presently in geographical location, the terminal it is current when Between at least one information.
It is described judge the range information, whether the current status information of the terminal meets preset condition, comprising:
Judge the first distance value whether in the first pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the first preset geographical position range, and/or judges the current time of the terminal whether in the first preset time In section;
Alternatively,
Judge the second distance value whether in the second pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the second preset geographical position range, and/or judges the current time of the terminal whether in the second preset time In section.
It is described when meeting the preset condition, using photographic device corresponding with the preset condition as currently used Photographic device, comprising:
When the first distance value is presently in geographical location first in the first pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device as currently used photographic device;
Alternatively,
When the first distance value does not exist not in the first pre-determined distance section, when the terminal is presently in geographical location In first preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location second in the second pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value does not exist not in the second pre-determined distance section, when the terminal is presently in geographical location In second preset geographical position range, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device as currently used photographic device.
The method also includes:
The preset condition is set.
The preset condition includes the first pre-determined distance section, the second pre-determined distance section, the first preset geographical position model It encloses and/or at least one of the first preset time period, the second preset geographical position range and/or the second preset time period, institute State the setting preset condition, comprising:
When the terminal is shot by its photographic device, currently used photographic device, institute are collected and recorded The human body and the distance between the terminal value, the terminal for stating terminal output are presently in geographical location and/or described The current time of terminal;In all records, when used photographic device is preposition photographic device, it is recorded according to all The distance value determine first pre-determined distance section;In all records, when used photographic device is taken the photograph for postposition When as device, second pre-determined distance section is determined according to all distance values being recorded;Alternatively, in all records In, for the geographical position range that each is divided, if terminal is in the geographical position range of the division, preposition camera shooting The number that head is used subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, then the described first default ground Reason position range includes the geographical position range of the division, and otherwise, second preset geographical position range includes described draws The geographical position range divided;Alternatively, in all records, for the period that each is divided, if the time of the division The number that front camera is used in section subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, then institute State the period that the first preset time period includes the division, otherwise, second preset time period include the division when Between section;
Alternatively,
It receives corresponding to the preposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the preposition photographic device of input apart from interval value as first pre-determined distance section;Before the input Geographical position range corresponding to photographic device is set as first preset geographical position range and/or will be before the input The period corresponding to photographic device is set as first preset time period;
Alternatively,
It receives corresponding to the postposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the postposition photographic device of input apart from interval value as second pre-determined distance section;After the input Geographical position range corresponding to photographic device is set to take the photograph as second preset geographical position and/or by the postposition of the input The period as corresponding to device is as second preset time period.
Whether with the presence of human body in preset range where the detection terminal, comprising:
Judge described be using photographic device corresponding with the preset condition as the option of currently used photographic device It is no selected;
It is chosen when described using photographic device corresponding with the preset condition as the option of currently used photographic device When middle, whether there is step existing for human body in the preset range where the execution detection terminal;
When it is described using photographic device corresponding with the preset condition as the option of currently used photographic device not by When choosing, it is described using photographic device corresponding with the preset condition as currently used photographic device to return to the judgement The step whether option is selected.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 14 is shown according to an exemplary embodiment a kind of for determining the block diagram of the device of photographic device, the device Suitable for terminal device.For example, device 1200 can be mobile phone, and computer, digital broadcasting terminal, messaging device, Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1200 may include following one or more components: processing component 1202, memory 1204, power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214, and Communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing element 1202 may include one or more processors 1220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1206 provides electric power for the various assemblies of device 1200.Electric power assembly 1206 may include power management System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1208 includes a front camera and/or rear camera.When equipment 1200 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes one Microphone (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 1204 or via logical Believe that component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as institute The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1 The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are passed Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device 1200 When managing device execution, so that the method that device 1200 is able to carry out above-mentioned determining photographic device, which comprises
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, using photographic device corresponding with the preset condition as currently used camera shooting Device.
It is described detection terminal where preset range in whether with the presence of human body before, the method also includes:
Judge whether terminal is lifted;
Whether with the presence of human body in preset range where the detection terminal, comprising:
When the terminal is lifted, whether detect in the preset range where the terminal with the presence of human body.
It is described to judge whether terminal is lifted, comprising:
The magnitude of angular velocity of gyroscope output on acquisition terminal;
Judge whether the difference between the magnitude of angular velocity of this acquisition and the magnitude of angular velocity of last acquisition is big In preset angle threshold speed;
When the difference is greater than the preset angle threshold speed, determine that the terminal is lifted.
Whether with the presence of human body in preset range where the detection terminal, comprising:
The preposition photographic device of terminal is opened, preposition photographic device first image within the vision is obtained;Identification Whether with the presence of face in the first image;In the presence of having face in the first image, where determining the terminal With the presence of the first human body in first preset range;
Or
The postposition photographic device for opening terminal, obtains the postposition photographic device the second image within the vision;Identification Whether with the presence of face in second image;In the presence of having face in second image, where determining the terminal With the presence of the second human body in second preset range.
It is described have human body in the preset range in the presence of, obtain the distance between the human body and the terminal and believe Breath, comprising:
In the presence of having the first human body in the first preset range where the terminal, the described of the terminal output is acquired First distance value between first human body and the terminal;Or
In the presence of having the second human body in the second preset range where the terminal, the described of the terminal output is acquired Second distance value between second human body and the terminal;Or
When the second default model in the first preset range where the terminal with the presence of the first human body, where the terminal In the presence of having the second human body in enclosing, the first distance between first human body and the terminal of the terminal output is acquired Value and the second distance value between second human body and the terminal.
The current status information of the terminal include the terminal be presently in geographical location, the terminal it is current when Between at least one information.
It is described judge the range information, whether the current status information of the terminal meets preset condition, comprising:
Judge the first distance value whether in the first pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the first preset geographical position range, and/or judges the current time of the terminal whether in the first preset time In section;
Alternatively,
Judge the second distance value whether in the second pre-determined distance section;Judge that the terminal is presently in geographical position It sets whether in the second preset geographical position range, and/or judges the current time of the terminal whether in the second preset time In section.
It is described when meeting the preset condition, using photographic device corresponding with the preset condition as currently used Photographic device, comprising:
When the first distance value is presently in geographical location first in the first pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not in the first pre-determined distance section, when the terminal In one preset geographical position range and/or when the current time of the terminal is in the first preset time period, by the terminal Preposition photographic device as currently used photographic device;
Alternatively,
When the first distance value does not exist not in the first pre-determined distance section, when the terminal is presently in geographical location In first preset geographical position range, when the current time of the terminal is not in the first preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location second in the second pre-determined distance section, when the terminal In preset geographical position range and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device is as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not in the second pre-determined distance section, when the terminal In two preset geographical position ranges and/or when the current time of the terminal is in the second preset time period, by the terminal Postposition photographic device as currently used photographic device;
Alternatively,
When the second distance value does not exist not in the second pre-determined distance section, when the terminal is presently in geographical location In second preset geographical position range, when the current time of the terminal is not in the second preset time period, by the terminal Preposition photographic device as currently used photographic device.
The method also includes:
The preset condition is set.
The preset condition includes the first pre-determined distance section, the second pre-determined distance section, the first preset geographical position model It encloses and/or at least one of the first preset time period, the second preset geographical position range and/or the second preset time period, institute State the setting preset condition, comprising:
When the terminal is shot by its photographic device, currently used photographic device, institute are collected and recorded The human body and the distance between the terminal value, the terminal for stating terminal output are presently in geographical location and/or described The current time of terminal;In all records, when used photographic device is preposition photographic device, it is recorded according to all The distance value determine first pre-determined distance section;In all records, when used photographic device is taken the photograph for postposition When as device, second pre-determined distance section is determined according to all distance values being recorded;Alternatively, in all records In, for the geographical position range that each is divided, if terminal is in the geographical position range of the division, preposition camera shooting The number that head is used is greater than or equal to the number that rear camera is used, then first preset geographical position range includes The geographical position range of the division, if the number that front camera is used is less than the number that rear camera is used, Then second preset geographical position range includes the geographical position range of the division;Alternatively, in all records, for every The period of one division, if the number that front camera is used in the period of the division is taken the photograph more than or equal to postposition As the number that head is used, then first preset time period includes the period of the division, if front camera is made Number is less than the number that rear camera is used, then second preset time period includes the period of the division;
Alternatively,
It receives corresponding to the preposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the preposition photographic device of input apart from interval value as first pre-determined distance section;Before the input Geographical position range corresponding to photographic device is set as first preset geographical position range and/or will be before the input The period corresponding to photographic device is set as first preset time period;
Alternatively,
It receives corresponding to the postposition photographic device of input apart from interval value, geographical position range and/or period;By institute It states corresponding to the postposition photographic device of input apart from interval value as second pre-determined distance section;After the input Geographical position range corresponding to photographic device is set to take the photograph as second preset geographical position and/or by the postposition of the input The period as corresponding to device is as second preset time period.
Whether with the presence of human body in preset range where the detection terminal, comprising:
Judge described be using photographic device corresponding with the preset condition as the option of currently used photographic device It is no selected;
It is chosen when described using photographic device corresponding with the preset condition as the option of currently used photographic device When middle, whether there is step existing for human body in the preset range where the execution detection terminal;
When it is described using photographic device corresponding with the preset condition as the option of currently used photographic device not by When choosing, it is described using photographic device corresponding with the preset condition as currently used photographic device to return to the judgement The step whether option is selected.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (20)

1. a kind of method of determining photographic device characterized by comprising
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, filled photographic device corresponding with the preset condition as currently used camera shooting It sets;
The current status information of the terminal includes the current time of the terminal, alternatively, the current state of the terminal Information includes the current time that the terminal is presently in geographical location and the terminal;
Whether with the presence of human body in preset range where the detection terminal, comprising:
Judge it is described using photographic device corresponding with the preset condition as the option of currently used photographic device whether by It chooses;
When described that photographic device corresponding with the preset condition is selected as the option of currently used photographic device, Execute it is described detection terminal where preset range in whether have step existing for human body;
It is not selected when described using photographic device corresponding with the preset condition as the option of currently used photographic device When, it is described using photographic device corresponding with the preset condition as the option of currently used photographic device to return to the judgement Whether Bei Xuanzhong step.
2. the method according to claim 1, wherein whether having in the preset range where the detection terminal Before human body exists, the method also includes:
Judge whether terminal is lifted;
Whether with the presence of human body in preset range where the detection terminal, comprising:
When the terminal is lifted, whether detect in the preset range where the terminal with the presence of human body.
3. according to the method described in claim 2, it is characterized in that, described judge whether terminal is lifted, comprising:
The magnitude of angular velocity of gyroscope output on acquisition terminal;
It is pre- to judge whether the difference between the magnitude of angular velocity of this acquisition and the magnitude of angular velocity of last acquisition is greater than If angular speed threshold value;
When the difference is greater than the preset angle threshold speed, determine that the terminal is lifted.
4. the method according to claim 1, wherein it is described detection terminal where preset range in whether someone Body exists, comprising:
The preposition photographic device of terminal is opened, preposition photographic device first image within the vision is obtained;Described in identification Whether with the presence of face in first image;In the presence of having face in the first image, first where the terminal is determined With the presence of the first human body in preset range;
Or
The postposition photographic device for opening terminal, obtains the postposition photographic device the second image within the vision;Described in identification Whether with the presence of face in second image;In the presence of having face in second image, second where the terminal is determined With the presence of the second human body in preset range.
5. according to the method described in claim 4, it is characterized in that, it is described have human body in the preset range in the presence of, obtain Take the distance between the human body and the terminal information, comprising:
In the presence of having the first human body in the first preset range where the terminal, described the first of the terminal output is acquired First distance value between human body and the terminal;Or
In the presence of having the second human body in the second preset range where the terminal, described the second of the terminal output is acquired Second distance value between human body and the terminal;Or
When in the first preset range where the terminal with the presence of the first human body, in the second preset range where the terminal In the presence of having the second human body, the first distance value between first human body and the terminal of the terminal output is acquired, and Second distance value between second human body and the terminal.
6. according to the method described in claim 5, it is characterized in that, the judgement range information, the terminal it is current Status information whether meet preset condition, comprising:
Judge the first distance value whether in the first pre-determined distance section;Judge that the terminal is presently in geographical location and is It is no in the first preset geographical position range, and/or judge the current time of the terminal whether in the first preset time period;
Alternatively,
Judge the second distance value whether in the second pre-determined distance section;Judge that the terminal is presently in geographical location and is It is no in the second preset geographical position range, and/or judge the current time of the terminal whether in the second preset time period.
7. according to the method described in claim 6, it is characterized in that, described when meeting the preset condition, will with it is described pre- If the corresponding photographic device of condition is as currently used photographic device, comprising:
When the first distance value is preset in the first pre-determined distance section, when the terminal is presently in geographical location first In geographical position range and/or when the current time of the terminal is in the first preset time period, by the preposition of the terminal Photographic device is as currently used photographic device;
Alternatively,
When the first distance value in the first pre-determined distance section, when to be presently in geographical location pre- not first for the terminal If in geographical position range, when the current time of the terminal is not in the first preset time period, by the postposition of the terminal Photographic device is as currently used photographic device;
Alternatively,
When the first distance value not in the first pre-determined distance section, when to be presently in geographical location pre- first for the terminal If in geographical position range and/or when the current time of the terminal is in the first preset time period, before the terminal Photographic device is set as currently used photographic device;
Alternatively,
When the first distance value is presently in geographical location not first not in the first pre-determined distance section, when the terminal In preset geographical position range, when the current time of the terminal is not in the first preset time period, after the terminal Photographic device is set as currently used photographic device;
Alternatively,
When the second distance value is preset in the second pre-determined distance section, when the terminal is presently in geographical location second In geographical position range and/or when the current time of the terminal is in the second preset time period, by the postposition of the terminal Photographic device is as currently used photographic device;
Alternatively,
When the second distance value in the second pre-determined distance section, when to be presently in geographical location pre- not second for the terminal If in geographical position range, when the current time of the terminal is not in the second preset time period, by the preposition of the terminal Photographic device is as currently used photographic device;
Alternatively,
When the second distance value not in the second pre-determined distance section, when to be presently in geographical location pre- second for the terminal If in geographical position range and/or when the current time of the terminal is in the second preset time period, after the terminal Photographic device is set as currently used photographic device;
Alternatively,
When the second distance value is presently in geographical location not second not in the second pre-determined distance section, when the terminal In preset geographical position range, when the current time of the terminal is not in the second preset time period, before the terminal Photographic device is set as currently used photographic device.
8. the method according to claim 1, wherein the method also includes:
The preset condition is set.
9. according to the method described in claim 8, it is characterized in that, the preset condition includes the first pre-determined distance section, the Two pre-determined distance sections, the first preset geographical position range and/or the first preset time period, the second preset geographical position range And/or second at least one of the preset time period, the setting preset condition, comprising:
When the terminal is shot by its photographic device, currently used photographic device, the end are collected and recorded The distance between the human body exported and the terminal value, the terminal is held to be presently in geographical location and/or the terminal Current time;In all records, when used photographic device is preposition photographic device, according to all institutes being recorded It states distance value and determines first pre-determined distance section;In all records, when used photographic device is postposition camera shooting dress When setting, second pre-determined distance section is determined according to all distance values being recorded;Alternatively, in all records, it is right In the geographical position range that each is divided, if terminal is in the geographical position range of the division, front camera quilt The number used subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, then the described first default geographical position The geographical position range that range includes the division is set, otherwise, second preset geographical position range includes the division Geographical position range;Alternatively, in all records, for the period that each is divided, if in the period of the division The number that front camera is used subtracts numerical value that the number that rear camera is used obtains and is greater than preset value, then and described the One preset time period includes the period of the division, and otherwise, second preset time period includes the period of the division;
Alternatively,
It receives corresponding to the preposition photographic device of input apart from interval value, geographical position range and/or period;It will be described defeated Apart from interval value as first pre-determined distance section corresponding to the preposition photographic device entered;Preposition by the input is taken the photograph The geographical position range as corresponding to device is taken the photograph as first preset geographical position range and/or by the preposition of the input The period as corresponding to device is as first preset time period;
Alternatively,
It receives corresponding to the postposition photographic device of input apart from interval value, geographical position range and/or period;It will be described defeated Apart from interval value as second pre-determined distance section corresponding to the postposition photographic device entered;The postposition of the input is taken the photograph The geographical position range as corresponding to device images dress as second preset geographical position and/or by the postposition of the input The corresponding period is set as second preset time period.
10. a kind of device of determining photographic device characterized by comprising
Detection module, for whether detecting in the preset range where terminal with the presence of human body;
First obtains module, for obtaining between the human body and the terminal in the presence of having human body in the preset range Range information;
Second obtains module, for obtaining the current status information of the terminal;
First judgment module, for judging whether the current status information of the range information, the terminal meets default item Part;
Determining module, for when meeting the preset condition, photographic device corresponding with the preset condition to be used as currently The photographic device used;
The current status information of the terminal includes the current time of the terminal, alternatively, the current state of the terminal Information includes the current time that the terminal is presently in geographical location and the terminal;
The detection module, comprising:
Option judging submodule described is taken the photograph for judging using photographic device corresponding with the preset condition as currently used As whether the option of device is selected;
Implementation sub-module, for when described using photographic device corresponding with the preset condition as currently used photographic device Option it is selected when, whether execute in the preset range where the detection terminal has step existing for human body;
Submodule is returned to, for when described using photographic device corresponding with the preset condition as currently used photographic device Option it is not selected when, it is described using photographic device corresponding with the preset condition as currently used to return to the judgement The step whether option of photographic device is selected.
11. device according to claim 10, which is characterized in that described device further include:
Second judgment module, for judging whether terminal is lifted;
Whether the detection module, being also used to detect when the terminal is lifted in the preset range where the terminal has Human body exists.
12. device according to claim 11, which is characterized in that second judgment module, comprising:
Angular velocity detecting submodule, the magnitude of angular velocity of the gyroscope output on acquisition terminal;
Angular speed judging submodule, for judging the magnitude of angular velocity of this acquisition and the magnitude of angular velocity of last acquisition Between difference whether be greater than preset angle threshold speed;
Angular speed determines submodule, for determining that the terminal is taken when the difference is greater than the preset angle threshold speed It rises.
13. device according to claim 10, which is characterized in that the detection module, comprising:
First opens submodule, for opening the preposition photographic device of terminal, obtains the preposition photographic device within sweep of the eye The first image;First identification submodule, for identification whether with the presence of face in the first image;First determines submodule Block, in the presence of having face in the first image, determine have in the first preset range where the terminal it is the first Body exists;
Or
Second unlatching submodule obtains the postposition photographic device within sweep of the eye for opening the postposition photographic device of terminal The second image;Second identification submodule, for identification whether with the presence of face in second image;Second determines submodule Block determines in the second preset range where the terminal there is the second people in the presence of having face in second image Body exists.
14. device according to claim 13, which is characterized in that described first obtains module, comprising:
First distance acquires submodule, for adopting in the presence of having the first human body in the first preset range where the terminal Collect the first distance value between first human body and the terminal of the terminal output;
Or
Second distance acquires submodule, for adopting in the presence of having the second human body in the second preset range where the terminal Collect the second distance value between second human body and the terminal of the terminal output;
Or
Third distance acquisition submodule, in the first preset range where the terminal with the presence of the first human body, it is described In the presence of having the second human body in the second preset range where terminal, acquire first human body of terminal output with it is described The second distance value between first distance value and second human body and the terminal between terminal.
15. device according to claim 14, which is characterized in that the first judgment module is also used to judge described Whether one distance value is in the first pre-determined distance section;Judge that whether the terminal is presently in geographical location on the first default ground It manages in position range, and/or judges the current time of the terminal whether in the first preset time period;
Alternatively,
Whether the first judgment module is also used to judge the second distance value in the second pre-determined distance section;Judge institute State terminal and be presently in geographical location whether in the second preset geographical position range, and/or judge the terminal it is current when Between whether in the second preset time period.
16. device according to claim 15, which is characterized in that the determining module is also used to when the first distance Value in the first pre-determined distance section, when the terminal be presently in geographical location in the first preset geographical position range and/ Or when the current time of the terminal is in the first preset time period, using the preposition photographic device of the terminal as currently making Photographic device;
Alternatively,
The determining module is also used to when the first distance value in the first pre-determined distance section, when the current institute of the terminal Locate geographical location not in the first preset geographical position range, when the current time of the terminal is not in the first preset time period When, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value not in the first pre-determined distance section, when the terminal is current Locating geographical location is in the first preset geographical position range and/or when the current time of the terminal is in the first preset time period When interior, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the first distance value not in the first pre-determined distance section, when the terminal is current Locating geographical location not in the first preset geographical position range, when the current time of the terminal is not in the first preset time period When interior, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the current institute of the terminal Locate geographical location in the second preset geographical position range and/or when the current time of the terminal is in the second preset time period When, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value in the second pre-determined distance section, when the current institute of the terminal Locate geographical location not in the second preset geographical position range, when the current time of the terminal is not in the second preset time period When, using the preposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value not in the second pre-determined distance section, when the terminal is current Locating geographical location is in the second preset geographical position range and/or when the current time of the terminal is in the second preset time period When interior, using the postposition photographic device of the terminal as currently used photographic device;
Alternatively,
The determining module is also used to when the second distance value not in the second pre-determined distance section, when the terminal is current Locating geographical location not in the second preset geographical position range, when the current time of the terminal is not in the second preset time period When interior, using the preposition photographic device of the terminal as currently used photographic device.
17. device according to claim 10, which is characterized in that described device further include:
Setup module, for the preset condition to be arranged.
18. device according to claim 17, which is characterized in that the preset condition include the first pre-determined distance section, Second pre-determined distance section, the first preset geographical position range and/or the first preset time period, the second preset geographical position range And/or second at least one of the preset time period,
The setup module is also used to when the terminal is shot by its photographic device, and collecting and recording currently is made The distance between photographic device, the human body of terminal output and the terminal value, the terminal are presently in ground Manage the current time of position and/or the terminal;In all records, when used photographic device is preposition photographic device When, first pre-determined distance section is determined according to all distance values being recorded;In all records, when used When photographic device is postposition photographic device, second pre-determined distance section is determined according to all distance values being recorded; Alternatively, in all records, for the geographical position range that each is divided, if terminal is in the geographical location of the division When range, the number that front camera is used subtracts the numerical value that the number that rear camera is used obtains and is greater than preset value, Then first preset geographical position range includes the geographical position range of the division, otherwise, the described second default geographical position Set the geographical position range that range includes the division;Alternatively, in all records, for the period that each is divided, such as The number that front camera is used in the period of division described in fruit subtracts the number that the number that rear camera is used obtains Value is greater than preset value, then first preset time period includes the period of the division, otherwise, second preset time period Period including the division;
Alternatively,
The setup module is also used to receive corresponding to the preposition photographic device of input apart from interval value, geographical position range And/or the period;Using corresponding to the preposition photographic device of the input apart from interval value as first pre-determined distance area Between;Using geographical position range corresponding to the preposition photographic device of the input as first preset geographical position range And/or using the period corresponding to the preposition photographic device of the input as first preset time period;
Alternatively,
The setup module is also used to receive corresponding to the postposition photographic device of input apart from interval value, geographical position range And/or the period;Using corresponding to the postposition photographic device of the input apart from interval value as second pre-determined distance area Between;Using geographical position range corresponding to the postposition photographic device of the input as second preset geographical position and/or Using the period corresponding to the postposition photographic device of the input as second preset time period.
19. a kind of device of determining photographic device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether with the presence of human body in preset range where detection terminal;
In the presence of having human body in the preset range, the distance between the human body and the terminal information are obtained;
Obtain the current status information of the terminal;
Judge the range information, whether the current status information of the terminal meets preset condition;
When meeting the preset condition, filled photographic device corresponding with the preset condition as currently used camera shooting It sets;
The current status information of the terminal includes the current time of the terminal, and/or, the terminal is presently in geography The current time of position and the terminal;
Whether with the presence of human body in preset range where the detection terminal, comprising:
Judge it is described using photographic device corresponding with the preset condition as the option of currently used photographic device whether by It chooses;
When described that photographic device corresponding with the preset condition is selected as the option of currently used photographic device, Execute it is described detection terminal where preset range in whether have step existing for human body;
It is not selected when described using photographic device corresponding with the preset condition as the option of currently used photographic device When, it is described using photographic device corresponding with the preset condition as the option of currently used photographic device to return to the judgement Whether Bei Xuanzhong step.
20. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that described instruction is processed The step of device realizes any one of claims 1 to 9 the method when executing.
CN201510350756.3A 2015-06-23 2015-06-23 Determine the method and device of photographic device Active CN104954683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510350756.3A CN104954683B (en) 2015-06-23 2015-06-23 Determine the method and device of photographic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510350756.3A CN104954683B (en) 2015-06-23 2015-06-23 Determine the method and device of photographic device

Publications (2)

Publication Number Publication Date
CN104954683A CN104954683A (en) 2015-09-30
CN104954683B true CN104954683B (en) 2019-01-18

Family

ID=54168988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510350756.3A Active CN104954683B (en) 2015-06-23 2015-06-23 Determine the method and device of photographic device

Country Status (1)

Country Link
CN (1) CN104954683B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303265A (en) * 2016-11-11 2017-01-04 上海与德信息技术有限公司 A kind of image pickup method and system
CN109639965A (en) * 2018-12-10 2019-04-16 维沃移动通信有限公司 Starting method, terminal and the computer readable storage medium of camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629979A (en) * 2012-03-30 2012-08-08 华为终端有限公司 Shooting mode starting method and photographic device
CN103486997A (en) * 2012-06-13 2014-01-01 鸿富锦精密工业(深圳)有限公司 Lens shooting range determining method and system
CN103795864A (en) * 2014-01-29 2014-05-14 华为技术有限公司 Method for selecting front camera and back camera of mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5668015B2 (en) * 2012-04-25 2015-02-12 株式会社Nttドコモ Terminal device, information display system, program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629979A (en) * 2012-03-30 2012-08-08 华为终端有限公司 Shooting mode starting method and photographic device
CN103486997A (en) * 2012-06-13 2014-01-01 鸿富锦精密工业(深圳)有限公司 Lens shooting range determining method and system
CN103795864A (en) * 2014-01-29 2014-05-14 华为技术有限公司 Method for selecting front camera and back camera of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN104954683A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
EP3012766A1 (en) Method and apparatus for processing terminal anomaly
CN105138126B (en) Filming control method and device, the electronic equipment of unmanned plane
US10115019B2 (en) Video categorization method and apparatus, and storage medium
CN104243818B (en) Image processing method, device and equipment
CN107025419B (en) Fingerprint template inputting method and device
EP3125529A1 (en) Method and device for image photographing
EP3173970A1 (en) Image processing method and apparatus
CN106165430A (en) Net cast method and device
CN106572299A (en) Camera switching-on method and device
US20170034325A1 (en) Image-based communication method and device
CN104243819A (en) Photo acquiring method and device
EP3125093A1 (en) Method and device for application interaction
CN105069073A (en) Contact information recommendation method and device
CN104700353A (en) Image filter generating method and device
CN104216525B (en) Method and device for mode control of camera application
US10313537B2 (en) Method, apparatus and medium for sharing photo
CN106652113A (en) Access control method and device
CN105069426A (en) Similar picture determining method and apparatus
CN104460185A (en) Automatic focusing method and device
CN104933419A (en) Method and device for obtaining iris images and iris identification equipment
CN104243829A (en) Self-shooting method and self-shooting device
CN105959545A (en) Camera and camera control method and device
CN106527682A (en) Method and device for switching environment picture
US10769743B2 (en) Method, device and non-transitory storage medium for processing clothes information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant