CN104639833A - Method for controlling camera device - Google Patents

Method for controlling camera device Download PDF

Info

Publication number
CN104639833A
CN104639833A CN201510047134.3A CN201510047134A CN104639833A CN 104639833 A CN104639833 A CN 104639833A CN 201510047134 A CN201510047134 A CN 201510047134A CN 104639833 A CN104639833 A CN 104639833A
Authority
CN
China
Prior art keywords
camera head
terminal
barrier
function
sensing device
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.)
Granted
Application number
CN201510047134.3A
Other languages
Chinese (zh)
Other versions
CN104639833B (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510047134.3A priority Critical patent/CN104639833B/en
Publication of CN104639833A publication Critical patent/CN104639833A/en
Application granted granted Critical
Publication of CN104639833B publication Critical patent/CN104639833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention relates to the technical field of electrons, and discloses a control method for a camera device. The method comprises the following steps: a terminal detects whether or not an obstacle which shields the camera device in a preset distance range through a distance sensing device on the terminal when the camera device on the terminal is in a working state; when the presence of the obstacle which shields the camera device is detected, the terminal turns off a part of or all the functions of the camera device. Through implementation of the embodiment of the invention, the power consumption of the camera device can be lowered by the terminal, the loss of the camera device is lowered, the service life of the camera device is prolonged, and the user experience is improved.

Description

A kind of control method of camera head
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of control method of camera head.
Background technology
Along with the continuous progress and development of electronic technology, the application of camera head in people's daily life is more and more extensive, and increasing terminal is all configured with camera head, as intelligent terminals such as mobile phone, panel computer, notebook computers.But, often there will be such situation in daily life, as people to use in the camera head process that mobile phone configures then other things of process, or after using camera head to complete corresponding operation, forget and exiting shooting application and directly mobile phone to be put into the bag or on table; And for example, shooting application, when using terminal equipment, is opened and is not but realized by people accidentally.These situations all can make camera head always in running order, as constantly carried out auto focus control, or constantly carry out photorefractive crystals control.This situation making camera head often keep operating state, not only power consumption, also can loss camera head.
Summary of the invention
The embodiment of the invention discloses a kind of control method of camera head, the power consumption of the camera head of terminal can be reduced, and reduce the loss of camera head.
The embodiment of the invention discloses a kind of control method of camera head, comprising:
When the camera head in terminal is in running order, detect within the scope of predeterminable range, whether there is the barrier blocking described camera head by the distance sensing device in described terminal;
If so, the part or all of function of described camera head is then closed.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal can close the part or all of function of this camera head.By the embodiment of the present invention, terminal can reduce the power consumption of camera head, and reduces camera head loss to extend the useful life of camera head, is conducive to promoting Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the control method of a kind of camera head disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the control method of another kind of camera head disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another terminal disclosed;
Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 8 is the structural representation of the embodiment of the present invention another terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of control method of camera head, the power consumption of the camera head of terminal can be reduced, and reduce the loss of camera head.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the control method of a kind of camera head disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 1 can be applied to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (Mobile Internet Devices, MID), PAD etc. to be had in the terminal of camera head.As shown in Figure 1, the control method of this camera head can comprise the following steps:
S101, when the camera head in terminal is in running order, terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by distance sensing device in this terminal, if so, then performs step S102; If not, then continue to perform step S101.
In the embodiment of the present invention, distance sensing device is the general designation of all range sensors, and it can comprise capacitive proximity sensor, laser PSD distance measuring sensor, ultrasonic distance-measuring sensor and infrared proximity transducer etc., and the embodiment of the present invention does not limit.
In the embodiment of the present invention, distance sensing device can be configured near the camera of camera head, and as shown in Figure 6, Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention, in the terminal shown in Fig. 6, distance sensing device is configured in immediately below the camera of camera head.As shown in Figure 7, Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention, and in the terminal shown in Fig. 7, distance sensing device is configured in the both sides of the camera of camera head.This distance sensing device can also be configured in any one position at the terminal back side, and the embodiment of the present invention does not limit.Wherein, the transmitting element of distance sensing device and receiving element can be merged into a device and be configured near camera, also can be the both sides that two different devices are configured in camera respectively, or to be configured in directly over camera simultaneously or immediately below, the embodiment of the present invention does not limit.
In the embodiment of the present invention, predeterminable range scope can be 5 centimetres, 10 centimetres or 15 centimetres, and the embodiment of the present invention does not limit.When the camera head in terminal is also in running order, terminal can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device be configured near camera, whether namely terminal can be detected by distance sensing device has barrier to shelter from this camera head within the scope of predeterminable range, when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, terminal can close the some or all of function of this camera head; When detect within the scope of predeterminable range, to there is not the barrier blocking this camera head time, terminal can continue to perform and detects by the distance sensing device be configured near camera the operation that whether there is the barrier blocking this camera head within the scope of predeterminable range.
In alternative embodiments, when the camera head in terminal is in running order, whether terminal exists by the distance sensing device detection in this terminal the barrier blocking this camera head within the scope of predeterminable range can comprise the following steps:
Step 11) terminal detects the barrier blocking this camera head by distance sensing device in this terminal.
Step 12) terminal obtains distance between this barrier and this camera head.
Step 13) this barrier of terminal judges apart from the beeline of this camera head whether within the scope of predeterminable range.
Step 14) when the judged result of step 13 is for being, terminal is determined within the scope of predeterminable range, store the barrier blocking this camera head.
In the embodiment of the present invention, first terminal can detect by distance sensing device the barrier blocking this camera head, and wherein, this barrier can be a barrier, and can be also multiple barrier, the embodiment of the present invention limit.Wherein, this beeline can comprise: when terminal has detected multiple barrier, and terminal can obtain the distance between each barrier and this camera head, and therefore, beeline is the distance of barrier nearest apart from this camera head in these barriers; When terminal detect only have a barrier time, beeline is the distance of this barrier and this camera head.And then judge this beeline whether within the scope of predeterminable range, if in this distance within the scope of predeterminable range, terminal will determine in preset range, there is the barrier blocking this camera head, then performs the operation that step S102 closes the part or all of function of this camera head.
For example, when user enables camera head on mobile phone, and mobile phone is put on the table, then now terminal will detect the barrier blocking this camera head, and the distance between this barrier and this camera head only has 1 centimetre, in the scope of predeterminable range 5 centimetres, therefore, terminal can determine in preset range, there is the barrier blocking this camera head, and last terminal can close the some or all of function of this camera head.
In alternative embodiments, the distance that step 12 terminal obtains between this barrier and this camera head can comprise the following steps:
Step 21) terminal outwards sends detection signal by distance sensing device, and receive this detection signal that barrier fires back.
Step 22) terminal obtain distance sensing device from transmission detection signal to the second time span receiving this detection signal that barrier reflects.
Step 23) terminal calculates the distance between this barrier and this camera head according to this second time span.
In the embodiment of the present invention, the concrete mode of the distance that terminal obtains between barrier and camera head outwards sends one or more detection signal by distance sensing device, can reflect when detection signal runs into impenetrable object, when the detection signal reflected is received by distance sensing device, show that this distance sensing device detects barrier, at this moment terminal meeting statistical distance induction installation is from transmission detection signal to the time span (i.e. the second time span) receiving the same detection signal reflected, and calculate the distance between this barrier and this camera head according to this second time span.
Wherein, the concrete mode that terminal calculates the distance between this barrier with this camera head according to this second time span can be: terminal uses the distance computation rule obtained in advance to calculate distance corresponding to this second time span.
For example, this distance computation rule can be: propagation velocity/2 of distance the=the second time span * detection signal, namely when the second time span is 0.01 nanosecond (0.01 nanosecond=0.01*10 -9second), the propagation velocity of detection signal is 3*10 8during meter per second, the distance between barrier and this camera head is just 0.15 centimetre of ((0.01*10 -9second * 3*10 0meter per second)/2=0.15*10 -2rice=0.15 centimetre), therefore terminal can judge that this distance is in the scope of predeterminable range 5 centimetres, and therefore terminal can determine within the scope of predeterminable range, there is the barrier blocking this camera head.
S102, step S101 detect to exist within the scope of predeterminable range block the barrier of this camera head time, close the part or all of function of this camera head, and process ends.
In the embodiment of the present invention, the function of camera head can comprise: the function of the function of imageing sensor and photo-sensitive cell, the function of image data processing unit, electromechanical units, in order to show the function of the display unit of the image captured by camera head, the function of back light unit and photoflash lamp function etc., the embodiment of the present invention does not limit.Wherein the function of image data processing unit can include but not limited to: Bayer image color interpolation, white balance, automatic exposure, automatic focus, image GAMMA correct.Electromechanical units can include but not limited to: focus motor, zoom motor, OIS motor, mechanical shutter electromechanical actuator etc.
In the embodiment of the present invention, because camera head terminal when startup has an initialized process, system meeting Resources allocation is to graphics processing unit, the process need of system assignment resource takies the regular hour, therefore terminal is when the function of closing camera head, can select not close this kind of functional unit needing Resources allocation, if close this kind of functional unit needing Resources allocation, user is not when exiting camera head, when using this camera head, system needs again to this kind of unit Resources allocation next time, camera head can be made like this to react and to become slow, affect Consumer's Experience.Certainly, some functions possibility power consumption of camera head are larger, as imageing sensor and the function of photo-sensitive cell, the function etc. of electromechanical units, therefore, can select to close the larger function of this kind of power consumption when closedown, and the larger function of power consumption can be greater than the function of default power consumption for power consumption in this camera head, also can be greater than the function of predetermined power for power in this camera head, the embodiment of the present invention does not limit.In addition, can also consider from visual effect, the partial function of closing camera head can comprise the function of the display unit of the image shown captured by camera head, the function of back light unit and photoflash lamp function etc., and the embodiment of the present invention does not limit.Therefore; terminal can be selected to be close the partial function of camera head or close the repertoire of camera head according to the needs of user; the partial function that terminal closes camera head can be considered from different conditions; the condition of more than closing the partial function of camera head is only citing, is not intended to limit protection scope of the present invention.
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal can close the part or all of function of this camera head.By the embodiment of the present invention, terminal can reduce the power consumption of camera head, and reduces camera head loss to extend the useful life of camera head, is conducive to promoting Consumer's Experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the control method of another kind of camera head disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 2 can be applied to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (Mobile Internet Devices, MID), PAD etc. to be had in the terminal of camera head.As shown in Figure 2, the control method of this camera head can comprise the following steps:
S201, when the camera head in terminal is in running order, whether this terminal of terminal judges is in screen state of going out, and if so, then performs step S202; If not, then continue to perform step S201.
In the embodiment of the present invention, when detecting that the camera head in terminal is in running order, first terminal can judge whether this terminal is in screen state of going out, when judge this terminal be in go out screen state time, illustrate that user temporarily may can not use this camera head during this period of time, therefore, this terminal will be performed step S202 and be detected the operation that whether there is the barrier blocking this camera head within the scope of predeterminable range by the distance sensing device in this terminal; When judge this terminal be not in go out screen state time, illustrate user may also continuation use this camera head, therefore terminal can continue perform step S201 judge whether this terminal is in the operation of screen state of going out.Wherein, screen state of going out refers to that the display screen of terminal is the state of closing.
S202, step S201 judge this terminal be in go out screen state time, terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by distance sensing device in this terminal, if so, then performs step S203; If not, then continue to perform step S202.
In the embodiment of the present invention, distance sensing device can be configured near the camera of camera head, and as shown in Figure 6, Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention, in the terminal shown in Fig. 6, distance sensing device is configured in immediately below the camera of camera head.As shown in Figure 7, Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention, and in the terminal shown in Fig. 7, distance sensing device is configured in the both sides of the camera of camera head.This distance sensing device can also be configured in any one position at the terminal back side, and the embodiment of the present invention does not limit.Wherein, the transmitting element of distance sensing device and receiving element can be merged into a device and be configured near camera, also can be the both sides that two different devices are configured in camera respectively, or to be configured in directly over camera simultaneously or immediately below, the embodiment of the present invention does not limit.
In the embodiment of the present invention, predeterminable range scope can be 5 centimetres, 10 centimetres or 15 centimetres, and the embodiment of the present invention does not limit.When step S201 judge this terminal be in go out screen state time, terminal can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device be configured near camera, whether namely terminal can be detected by distance sensing device has barrier to shelter from this camera head within the scope of predeterminable range, when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, terminal performs the operation that step S203 obtains the environmental parameter of environment residing for this camera head; When detect within the scope of predeterminable range, to there is not the barrier blocking this camera head time, terminal can continue to perform step S202 and detect by the distance sensing device be configured near camera the operation that whether there is the barrier blocking this camera head within the scope of predeterminable range.
S203, step S202 detect within the scope of predeterminable range exist block the barrier of this camera head time, terminal obtains the environmental parameter of environment residing for this camera head.
In the embodiment of the present invention, when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, terminal can obtain the environmental parameter of environment residing for this camera head.
For example, when camera head needs to take across glass or transparent substance, terminal may detect the barrier existing within the scope of predeterminable range and block this camera head, and therefore terminal can obtain the environmental parameter of environment residing for this camera head further.
Whether this environmental parameter of S204, terminal judges meets pre-conditioned, if so, then performs step S205, if not, and process ends.
In the embodiment of the present invention, terminal can judge whether the environmental parameter got meets pre-conditioned, if this environmental parameter meets pre-conditioned, terminal will judge whether the very first time length that this barrier blocks this camera head exceedes predetermined time period further; If this environmental parameter does not meet pre-conditioned, terminal does not do any operation, and process ends.
In alternative embodiments, when environmental parameter comprises environment bright angle value, terminal can judge that whether this environment bright angle value is lower than default environmental light brightness threshold value, if this environment bright angle value is lower than default environmental light brightness threshold value, just show that this environment bright angle value and current environmental parameter meet pre-conditioned, in other words this camera head may be in low light environment, user may be in the state that wouldn't use camera head, and therefore terminal can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period; If this environment bright angle value be not less than namely higher than or equal default brightness threshold value time, just show that this environment bright angle value and current environmental parameter do not meet pre-conditioned, even if in other words camera head is blocked by barrier, user still likely can use this camera head, terminal does not do any operation, and process ends.
In alternative embodiments, when environmental parameter comprises ambient ultraviolet line strength value, terminal can judge that whether this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, if this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, just show that this ambient ultraviolet line strength value and current environmental parameter meet pre-conditioned, therefore terminal can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period; If when this ambient ultraviolet line strength value is not less than namely greater than or equal to default ambient ultraviolet line strength threshold value, just show that this ambient ultraviolet line strength value and current environmental parameter do not meet pre-conditioned, in other words this terminal may be in the environment of sunlight or high uitraviolet intensity, even and if camera head is blocked by barrier, user still likely can use this camera head, terminal does not do any operation, and process ends.
In the embodiment of the present invention, terminal can obtain the brightness values of environment residing for this camera head by luminance sensor, obtained the uitraviolet intensity value of environment residing for this camera head by UV sensor, the embodiment of the present invention does not limit.
S205, when step S204 judges that this environmental parameter meets pre-conditioned, whether the very first time length that terminal judges barrier blocks this camera head exceedes predetermined time period, if so, then performs step S206; If not, process ends.
In the embodiment of the present invention, when step S204 judges that this environmental parameter meets pre-conditioned, terminal can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period, if this very first time length exceedes predetermined time period, terminal can close the some or all of function of this camera head further; If this very first time length does not exceed predetermined time period, terminal can not close the some or all of function of this camera head, and process ends.Wherein, predetermined time period can be 5 minutes, 7 minutes or 10 minutes, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, terminal constantly can detect barrier from the very first time length of blocking this camera head, if detect that this very first time length has exceeded predetermined time period, just can judge that user temporarily can not use this camera head, therefore terminal can close the part or all of function of this camera head; If in predetermined time period, barrier no longer blocks this camera head, and just show that user may continue to use this camera head, therefore terminal can not close the some or all of function of this camera head, and process ends.
S206, when step S205 judges that this very first time, length exceeded predetermined time period, terminal closes the part or all of function of this camera head, and process ends.
In the embodiment of the present invention, the function of camera head can comprise: the function of the function of imageing sensor and photo-sensitive cell, the function of image data processing unit, electromechanical units, in order to show the function of the display unit of the image captured by camera head, the function of back light unit and photoflash lamp function etc., the embodiment of the present invention does not limit.Wherein the function of image data processing unit can include but not limited to: Bayer image color interpolation, white balance, automatic exposure, automatic focus, image GAMMA correct.Electromechanical units can include but not limited to: focus motor, zoom motor, OIS motor, mechanical shutter electromechanical actuator etc.
In the embodiment of the present invention, because camera head terminal when startup has an initialized process, system meeting Resources allocation is to graphics processing unit, the process need of system assignment resource takies the regular hour, therefore terminal is when the function of closing camera head, can select not close this kind of functional unit needing Resources allocation, if close this kind of functional unit needing Resources allocation, user is not when exiting camera head, when using this camera head, system needs again to this kind of unit Resources allocation next time, camera head can be made like this to react and to become slow, affect Consumer's Experience.Certainly, some functions possibility power consumption of camera head are larger, as imageing sensor and the function of photo-sensitive cell, the function etc. of electromechanical units, therefore, can select to close the larger function of this kind of power consumption when closedown, and the larger function of power consumption can be greater than the function of default power consumption for power consumption in this camera head, also can be greater than the function of predetermined power for power in this camera head, the embodiment of the present invention does not limit.In addition, can also consider from visual effect, the partial function of closing camera head can comprise the function of the display unit of the image shown captured by camera head, the function of back light unit and photoflash lamp function etc., and the embodiment of the present invention does not limit.Therefore; terminal can be selected to be close the partial function of camera head or close the repertoire of camera head according to the needs of user; the partial function that terminal closes camera head can be considered from different conditions; the condition of more than closing the partial function of camera head is only citing, is not intended to limit protection scope of the present invention.
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal can judge whether this terminal is in screen state of going out, if, just detect within the scope of predeterminable range, whether there is the barrier blocking this camera head further by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal also can judge whether the environmental parameter of environment residing for this camera head meets pre-conditioned, when meeting pre-conditioned, terminal also can judge whether the time span that camera head is blocked exceedes predetermined time period further, if exceed predetermined time period, now terminal just can close the part or all of function of this camera head.Pass through the embodiment of the present invention, terminal not only can reduce the power consumption of camera head, reduce camera head loss to extend the useful life of camera head, can also guarantee that the misoperation situation that terminal cut out camera head occurs is less further, be conducive to like this promoting Consumer's Experience.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.As shown in Figure 3, this terminal 300 can comprise with lower unit:
Detecting unit 301, for when the camera head in this terminal 300 is in running order, detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal 300.
In the embodiment of the present invention, distance sensing device is the general designation of all range sensors, and it can comprise capacitive proximity sensor, laser PSD distance measuring sensor, ultrasonic distance-measuring sensor and infrared proximity transducer etc., and the embodiment of the present invention does not limit.
In the embodiment of the present invention, distance sensing device can be configured near the camera of camera head, and as shown in Figure 6, Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention, in the terminal 300 shown in Fig. 6, distance sensing device is configured in immediately below the camera of camera head.As shown in Figure 7, Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention, and in the terminal 300 shown in Fig. 7, distance sensing device is configured in the both sides of the camera of camera head.This distance sensing device can also be configured in any one position at the terminal back side, and the embodiment of the present invention does not limit.Wherein, the transmitting element of distance sensing device and receiving element can be merged into a device and be configured near camera, also can be the both sides that two different devices are configured in camera respectively, or to be configured in directly over camera simultaneously or immediately below, the embodiment of the present invention does not limit.
In the embodiment of the present invention, predeterminable range scope can be 5 centimetres, 10 centimetres or 15 centimetres, and the embodiment of the present invention does not limit.When the camera head in terminal 300 is also in running order, detecting unit 301 can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device be configured near camera, whether namely detecting unit 301 can be detected by distance sensing device has barrier to shelter from this camera head within the scope of predeterminable range, when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, closing unit 302 can close the some or all of function of this camera head; When detect within the scope of predeterminable range, to there is not the barrier blocking this camera head time, detecting unit 301 can continue through the distance sensing device be configured near camera and detect within the scope of predeterminable range, whether there is the barrier blocking this camera head.
Closing unit 302, during for detecting that at above-mentioned detecting unit 301 barrier of this camera head is blocked in existence within the scope of predeterminable range, closes the part or all of function of this camera head.
In the embodiment of the present invention, the function of camera head can comprise: the function of the function of imageing sensor and photo-sensitive cell, the function of image data processing unit, electromechanical units, in order to show the function of the display unit of the image captured by camera head, the function of back light unit and photoflash lamp function etc., the embodiment of the present invention does not limit.Wherein the function of image data processing unit can include but not limited to: Bayer image color interpolation, white balance, automatic exposure, automatic focus, image GAMMA correct.Electromechanical units can include but not limited to: focus motor, zoom motor, OIS motor, mechanical shutter electromechanical actuator etc.
In the embodiment of the present invention, because camera head terminal when startup has an initialized process, system meeting Resources allocation is to graphics processing unit, the process need of system assignment resource takies the regular hour, therefore closing unit 302 is when the function of closing camera head, can select not close this kind of functional unit needing Resources allocation, if closing unit 302 closes this kind of functional unit needing Resources allocation, user is not when exiting camera head, when using this camera head, system needs again to this kind of unit Resources allocation next time, camera head can be made like this to react and to become slow, affect Consumer's Experience.Certainly, some functions possibility power consumption of camera head are larger, as imageing sensor and the function of photo-sensitive cell, the function etc. of electromechanical units, therefore, closing unit 302 can be selected to close the larger function of this kind of power consumption when closedown, and the larger function of power consumption can be greater than the function of default power consumption for power consumption in this camera head, also can be greater than the function of predetermined power for power in this camera head, the embodiment of the present invention does not limit.In addition, can also consider from visual effect, the partial function of closing camera head can comprise the function of the display unit of the image shown captured by camera head, the function of back light unit and photoflash lamp function etc., and the embodiment of the present invention does not limit.Therefore; closing unit 302 can be selected to be close the partial function of camera head or close the repertoire of camera head according to the needs of user; the partial function that closing unit 302 closes camera head can be considered from different conditions; the condition of more than closing the partial function of camera head is only citing, is not intended to limit protection scope of the present invention.
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal can close the part or all of function of this camera head.By the embodiment of the present invention, terminal can reduce the power consumption of camera head, and reduces camera head loss to extend the useful life of camera head, is conducive to promoting Consumer's Experience.
Refer to Fig. 4, Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.As shown in Figure 4, this terminal 400 can comprise with lower unit:
3rd judging unit 401, for when the camera head in terminal 400 is in running order, judges whether this terminal 400 is in screen state of going out.
In the embodiment of the present invention, when detecting that the camera head in terminal 400 is in running order, first 3rd judging unit 401 can judge whether this terminal 400 is in screen state of going out, when judge this terminal 400 be in go out screen state time, illustrate that user temporarily may can not use this camera head during this period of time, therefore, this detecting unit 402 can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal 400; When judge this terminal 400 be not in go out screen state time, illustrate user may also continuation use this camera head, therefore the 3rd judging unit 401 can continue to judge whether this terminal 400 is in screen state of going out.Wherein, screen state of going out refers to that the display screen of terminal 400 is the state of closing.
Detecting unit 402, for judge at above-mentioned 3rd judging unit 401 this terminal 400 be in go out screen state time, detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by distance sensing device in this terminal 400.
In the embodiment of the present invention, distance sensing device can be configured near the camera of camera head, and as shown in Figure 6, Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention, in the terminal 400 shown in Fig. 6, distance sensing device is configured in immediately below the camera of camera head.As shown in Figure 7, Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention, and in the terminal 400 shown in Fig. 7, distance sensing device is configured in the both sides of the camera of camera head.This distance sensing device can also be configured in any one position at the terminal back side, and the embodiment of the present invention does not limit.Wherein, the transmitting element of distance sensing device and receiving element can be merged into a device and be configured near camera, also can be the both sides that two different devices are configured in camera respectively, or to be configured in directly over camera simultaneously or immediately below, the embodiment of the present invention does not limit.
In the embodiment of the present invention, predeterminable range scope can be 5 centimetres, 10 centimetres or 15 centimetres, and the embodiment of the present invention does not limit.When the 3rd judging unit 401 judge this terminal be in go out screen state time, detecting unit 402 can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device be configured near camera, whether namely detecting unit 402 can be detected by distance sensing device has barrier to shelter from this camera head within the scope of predeterminable range, when detecting unit 402 detects that the barrier of this camera head is blocked in existence within the scope of predeterminable range, the first acquiring unit 403 can obtain the environmental parameter of environment residing for this camera head further; When detecting unit 402 detect within the scope of predeterminable range, to there is not the barrier blocking this camera head time, detecting unit 402 can continue through the distance sensing device be configured near camera and detect within the scope of predeterminable range, whether there is the barrier blocking this camera head.
First acquiring unit 403, during for detecting that at above-mentioned detecting unit 402 barrier of this camera head is blocked in existence within the scope of predeterminable range, obtains the environmental parameter of environment residing for this camera head.
In the embodiment of the present invention, detecting unit 402 is when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, and the first acquiring unit 403 can obtain the environmental parameter of environment residing for this camera head.
For example, when camera head needs to take across glass or transparent substance, detecting unit 402 may detect the barrier existing within the scope of predeterminable range and block this camera head, and therefore acquiring unit 403 can obtain the environmental parameter of environment residing for this camera head further.
First judging unit 404, for judging whether the environmental parameter that above-mentioned first acquiring unit 403 gets meets pre-conditioned.
In the embodiment of the present invention, first judging unit 404 can judge whether the environmental parameter that above-mentioned first acquiring unit 403 gets meets pre-conditioned, if this environmental parameter meets pre-conditioned, the second judging unit 405 will judge whether the very first time length that this barrier blocks this camera head exceedes predetermined time period further; If this environmental parameter does not meet pre-conditioned, terminal 400 does not do any operation.
In alternative embodiments, when environmental parameter comprises environment bright angle value, first judging unit 404 can judge that whether this environment bright angle value is lower than default environmental light brightness threshold value, if this environment bright angle value is lower than default environmental light brightness threshold value, just show that this environment bright angle value and current environmental parameter meet pre-conditioned, in other words this camera head may be in low light environment, user may be in the state that wouldn't use camera head, therefore the second judging unit 405 can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period, if this environment bright angle value be not less than namely higher than or equal default environmental light brightness threshold value time, just show that this environment bright angle value and current environmental parameter do not meet pre-conditioned, even if in other words camera head is blocked by barrier, user still likely can use this camera head, and therefore terminal 400 does not do any operation.
In alternative embodiments, when environmental parameter comprises ambient ultraviolet line strength value, first judging unit 404 can judge that whether this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, if this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, just show that this ambient ultraviolet line strength value and current environmental parameter meet pre-conditioned, therefore the second judging unit 405 can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period; If when this ambient ultraviolet line strength value is not less than namely greater than or equal to default ambient ultraviolet line strength threshold value, just show that this ambient ultraviolet line strength value and current environmental parameter do not meet pre-conditioned, in other words this terminal may be in the environment of sunlight or high uitraviolet intensity, even and if camera head is blocked by barrier, user still likely can use this camera head, and therefore terminal 400 does not do any operation.
In the embodiment of the present invention, the first acquiring unit 404 can obtain the brightness values of environment residing for this camera head by luminance sensor, obtained the uitraviolet intensity value of environment residing for this camera head by UV sensor, the embodiment of the present invention does not limit.
Second judging unit 405, for when above-mentioned first judging unit 404 judges that this environmental parameter meets pre-conditioned, judges whether the very first time length that this barrier blocks this camera head exceedes predetermined time period.
In the embodiment of the present invention, when above-mentioned first judging unit 404 judges that this environmental parameter meets pre-conditioned, second judging unit 405 can judge further whether the very first time length that this barrier blocks this camera head exceedes predetermined time period, if this very first time length exceedes predetermined time period, closing unit 406 can close the some or all of function of this camera head further; If this very first time length does not exceed predetermined time period, closing unit 406 can not close the some or all of function of this camera head.Wherein, predetermined time period can be 5 minutes, 7 minutes or 10 minutes, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, second judging unit 405 can constantly detect barrier from the very first time length of blocking this camera head, if detect that this very first time length has exceeded predetermined time period, just can judge that user temporarily can not use this camera head, therefore closing unit 406 can close the part or all of function of this camera head; If in predetermined time period, barrier no longer blocks this camera head, and just show that user may continue to use this camera head, therefore closing unit 406 can not close the some or all of function of this camera head.
Closing unit 406, for when above-mentioned second judging unit 405 judges that this very first time, length exceeded predetermined time period, closes the part or all of function of this camera head.
In the embodiment of the present invention, the function of camera head can comprise: the function of the function of imageing sensor and photo-sensitive cell, the function of image data processing unit, electromechanical units, in order to show the function of the display unit of the image captured by camera head, the function of back light unit and photoflash lamp function etc., the embodiment of the present invention does not limit.Wherein the function of image data processing unit can include but not limited to: Bayer image color interpolation, white balance, automatic exposure, automatic focus, image GAMMA correct.Electromechanical units can include but not limited to: focus motor, zoom motor, OIS motor, mechanical shutter electromechanical actuator etc.
In the embodiment of the present invention, because camera head terminal when startup has an initialized process, system meeting Resources allocation is to graphics processing unit, the process need of system assignment resource takies the regular hour, therefore closing unit 406 is when the function of closing camera head, can select not close this kind of functional unit needing Resources allocation, if closing unit 406 closes this kind of functional unit needing Resources allocation, user is not when exiting camera head, when using this camera head, system needs again to this kind of unit Resources allocation next time, camera head can be made like this to react and to become slow, affect Consumer's Experience.Certainly, some functions possibility power consumption of camera head are larger, as imageing sensor and the function of photo-sensitive cell, the function etc. of electromechanical units, therefore, closing unit 406 can be selected to close the larger function of this kind of power consumption when closedown, and the larger function of power consumption can be greater than the function of default power consumption for power consumption in this camera head, also can be greater than the function of predetermined power for power in this camera head, the embodiment of the present invention does not limit.In addition, can also consider from visual effect, the partial function of closing camera head can comprise the function of the display unit of the image shown captured by camera head, the function of back light unit and photoflash lamp function etc., and the embodiment of the present invention does not limit.Therefore; closing unit 406 can be selected to be close the partial function of camera head or close the repertoire of camera head according to the needs of user; the partial function that closing unit 406 closes camera head can be considered from different conditions; the condition of more than closing the partial function of camera head is only citing, is not intended to limit protection scope of the present invention.
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal can judge whether this terminal is in screen state of going out, if, just detect within the scope of predeterminable range, whether there is the barrier blocking this camera head further by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal also can judge whether the environmental parameter of environment residing for this camera head meets pre-conditioned, when meeting pre-conditioned, terminal also can judge whether the time span that camera head is blocked exceedes predetermined time period further, if exceed predetermined time period, now terminal just can close the part or all of function of this camera head.Pass through the embodiment of the present invention, terminal not only can reduce the power consumption of camera head, reduce camera head loss to extend the useful life of camera head, can also guarantee that the misoperation situation that terminal cut out camera head occurs is less further, be conducive to like this promoting Consumer's Experience.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another terminal disclosed.As shown in Figure 5, this terminal 500 can comprise with lower unit:
Detecting unit 501, for when the camera head in terminal 500 is in running order, detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal 500.
In the embodiment of the present invention, distance sensing device is the general designation of all range sensors, and it can comprise capacitive proximity sensor, laser PSD distance measuring sensor, ultrasonic distance-measuring sensor and infrared proximity transducer etc., and the embodiment of the present invention does not limit.
In the embodiment of the present invention, distance sensing device can be configured near the camera of camera head, and as shown in Figure 6, Fig. 6 is the schematic rear view of a kind of terminal disclosed in the embodiment of the present invention, in the terminal 500 shown in Fig. 6, distance sensing device is configured in immediately below the camera of camera head.As shown in Figure 7, Fig. 7 is the schematic rear view of another kind of terminal disclosed in the embodiment of the present invention, and in the terminal 500 shown in Fig. 7, distance sensing device is configured in the both sides of the camera of camera head.This distance sensing device can also be configured in any one position at the terminal back side, and the embodiment of the present invention does not limit.Wherein, the transmitting element of distance sensing device and receiving element can be merged into a device and be configured near camera, also can be the both sides that two different devices are configured in camera respectively, or to be configured in directly over camera simultaneously or immediately below, the embodiment of the present invention does not limit.
In the embodiment of the present invention, predeterminable range scope can be 5 centimetres, 10 centimetres or 15 centimetres, and the embodiment of the present invention does not limit.When the camera head in terminal 500 is also in running order, detecting unit 501 can detect within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device be configured near camera, whether namely detecting unit 501 can be detected by distance sensing device has barrier to shelter from this camera head within the scope of predeterminable range, when detecting unit 501 detects that the barrier of this camera head is blocked in existence within the scope of predeterminable range, closing unit 502 can close the some or all of function of this camera head; When detecting unit 501 detect within the scope of predeterminable range, to there is not the barrier blocking this camera head time, detecting unit 501 can continue through the distance sensing device be configured near camera and detect within the scope of predeterminable range, whether there is the barrier blocking this camera head.
In alternative embodiments, detecting unit 501 can also comprise following performance element 5011, second acquisition unit 5012, the 4th judging unit 5013 and determining unit 5014, wherein:
Performance element 5011, for when the camera head in terminal 500 is in running order, detects the barrier blocking this camera head by the distance sensing device in this terminal 500.
Second acquisition unit 5012, for obtaining the distance between barrier and this camera head.
Whether the 4th judging unit 5013, for the beeline of camera head described in disturbance in judgement object distance within the scope of predeterminable range.
Determining unit 5014, for when the judged result of above-mentioned 4th judging unit 5013 is for being, determines within the scope of predeterminable range, store the barrier blocking this camera head.
In the embodiment of the present invention, first performance element 5011 can detect by distance sensing device the barrier blocking this camera head, and wherein, this barrier can be a barrier, and can be also multiple barrier, the embodiment of the present invention limit.Wherein, this beeline can comprise: when performance element 5011 has detected multiple barrier, second acquisition unit 5012 can obtain the distance between each barrier and this camera head, and therefore, beeline is the distance of barrier nearest apart from this camera head in these barriers; When performance element 5011 detect only have a barrier time, beeline is the distance of this barrier and this camera head.Then the 4th judging unit 5013 can judge this beeline whether within the scope of predeterminable range, if in this distance within the scope of predeterminable range, determining unit 5014 will determine in preset range, there is the barrier blocking this camera head, and then closing unit 502 just can close the part or all of function of this camera head.
For example, when user enables camera head on mobile phone, and mobile phone is put on the table, then now performance element 5011 will detect the barrier blocking this camera head, and the distance between this barrier and this camera head only has 1 centimetre, in the scope of predeterminable range 5 centimetres, therefore, determining unit 5014 can determine in preset range, there is the barrier blocking this camera head, and last closing unit 502 can close the some or all of function of this camera head.
In alternative embodiments, second acquisition unit 5012 can also comprise communication unit 50121, processing unit 50122 and computing unit 50123, wherein:
Communication unit 50121, for outwards sending detection signal by distance sensing device, and receives this detection signal that barrier fires back.
Processing unit 50122, for obtaining distance sensing device from transmission detection signal to the second time span receiving this detection signal that barrier reflects.
Computing unit 50123, the second time span for getting according to above-mentioned processing unit 50122 calculates the distance between this barrier and this camera head.
In the embodiment of the present invention, the concrete mode of the distance that second acquisition unit 5012 obtains between barrier and camera head outwards sends one or more detection signal by distance sensing device, can reflect when detection signal runs into impenetrable object, when the detection signal reflected is received by distance sensing device, show that this distance sensing device detects barrier, at this moment processing unit 50122 meeting statistical distance induction installation is from transmission detection signal to the time span (i.e. the second time span) receiving the same detection signal reflected, computing unit 50123 meeting calculates the distance between this barrier and this camera head according to this second time span.
Wherein, the concrete mode that computing unit 50123 calculates the distance between this barrier with this camera head according to this second time span can be: computing unit 50123 uses the distance computation rule obtained in advance to calculate distance corresponding to this second time span.
For example, this distance computation rule can be: propagation velocity/2 of distance the=the second time span * detection signal, namely when the second time span is 0.01 nanosecond (0.01 nanosecond=0.01*10 -9second), the propagation velocity of detection signal is 3*10 8during meter per second, the distance between barrier and this camera head is just 0.15 centimetre of ((0.01*10 -9second * 3*10 8meter per second)/2=0.15*10 -2rice=0.15 centimetre), therefore the 4th judging unit 5013 just can judge that this distance is in the scope of predeterminable range 5 centimetres, and therefore determining unit 5014 will determine within the scope of predeterminable range, there is the barrier blocking this camera head.
Closing unit 502, during for detecting that at above-mentioned detecting unit 501 barrier of this camera head is blocked in existence within the scope of predeterminable range, closes the part or all of function of this camera head.
In the embodiment of the present invention, the function of camera head can comprise: the function of the function of imageing sensor and photo-sensitive cell, the function of image data processing unit, electromechanical units, in order to show the function of the display unit of the image captured by camera head, the function of back light unit and photoflash lamp function etc., the embodiment of the present invention does not limit.Wherein the function of image data processing unit can include but not limited to: Bayer image color interpolation, white balance, automatic exposure, automatic focus, image GAMMA correct.Electromechanical units can include but not limited to: focus motor, zoom motor, OIS motor, mechanical shutter electromechanical actuator etc.
In the embodiment of the present invention, because camera head terminal when startup has an initialized process, system meeting Resources allocation is to graphics processing unit, the process need of system assignment resource takies the regular hour, therefore closing unit 502 is when the function of closing camera head, can select not close this kind of functional unit needing Resources allocation, if closing unit 502 closes this kind of functional unit needing Resources allocation, user is not when exiting camera head, when using this camera head, system needs again to this kind of unit Resources allocation next time, camera head can be made like this to react and to become slow, affect Consumer's Experience.Certainly, some functions possibility power consumption of camera head are larger, as imageing sensor and the function of photo-sensitive cell, the function etc. of electromechanical units, therefore, closing unit 502 can be selected to close the larger function of this kind of power consumption when closedown, and the larger function of power consumption can be greater than the function of default power consumption for power consumption in this camera head, also can be greater than the function of predetermined power for power in this camera head, the embodiment of the present invention does not limit.In addition, can also consider from visual effect, the partial function of closing camera head can comprise the function of the display unit of the image shown captured by camera head, the function of back light unit and photoflash lamp function etc., and the embodiment of the present invention does not limit.Therefore; closing unit 502 can be selected to be close the partial function of camera head or close the repertoire of camera head according to the needs of user; the partial function that closing unit 406 closes camera head can be considered from different conditions; the condition of more than closing the partial function of camera head is only citing, is not intended to limit protection scope of the present invention.
In the embodiment of the present invention, when the camera head in terminal is in running order, first terminal detects within the scope of predeterminable range, whether there is the barrier blocking this camera head by the distance sensing device in this terminal, when detecting that the barrier of this camera head is blocked in existence, terminal can close the part or all of function of this camera head.By the embodiment of the present invention, terminal can reduce the power consumption of camera head, and reduces camera head loss to extend the useful life of camera head, is conducive to promoting Consumer's Experience.
Refer to Fig. 8, Fig. 8 is the structural representation of the embodiment of the present invention another terminal disclosed.As shown in Figure 8, this terminal can comprise: at least one input equipment 801, at least one output equipment 802, at least one processor 803, as CPU, memory 804 and at least one communication bus 805, above-mentioned input equipment 801, output equipment 802, processor 803 are connected by bus 805 with memory 804.
Wherein, above-mentioned input equipment 801 specifically can be the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel.
Above-mentioned output equipment 802 specifically can be the display screen of terminal, for exporting, showing information or image.
Above-mentioned memory 804 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 804 is for storing batch processing code, and above-mentioned input equipment 801, output equipment 802 and processor 803, for calling the program code stored in memory 804, perform and operate as follows:
Above-mentioned input equipment 801, whether in running order for the camera head in sense terminals 800.
Above-mentioned processor 803, detects within the scope of predeterminable range, whether there is the barrier blocking this camera head for being called the program code stored in memory 804 by the distance sensing device in this terminal 800.
Above-mentioned processor 803, also for when detecting that the barrier of this camera head is blocked in existence within the scope of predeterminable range, cuts out the part or all of function of this camera head.
In alternative embodiments, above-mentioned processor 803 also for called by the distance sensing device in this terminal 800 in memory 804 store program code detect within the scope of predeterminable range, whether there is the barrier blocking this camera head before, judge whether this terminal 800 is in screen state of going out, if be in screen state of going out, just call by the distance sensing device in this terminal 800 program code stored in memory 804 and detect within the scope of predeterminable range, whether there is the barrier blocking this camera head.
In alternative embodiments, above-mentioned processor 803 also for when detecting that the barrier of described camera head is blocked in existence within the scope of predeterminable range, obtains the environmental parameter of environment residing for this camera head.
Above-mentioned processor is also pre-conditioned for judging whether this environmental parameter meets, if meet pre-conditioned, just closes the some or all of function of this camera head.
In alternative embodiments, when environmental parameter comprises environment bright angle value, above-mentioned processor 803 also specifically for:
Judge that whether this environment bright angle value is lower than default environmental light brightness threshold value, when this environment bright angle value is lower than default environmental light brightness threshold value, this environmental parameter meets pre-conditioned, and therefore processor 803 can cut out the some or all of function of this camera head.
In alternative embodiments, when environmental parameter comprises ambient ultraviolet line strength value, above-mentioned processor 803 also specifically for:
Judge that whether this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, when this ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, this environmental parameter meets pre-conditioned, and therefore processor 803 can cut out the some or all of function of this camera head.
In alternative embodiments, above-mentioned processor 803 is also for when judging that this environmental parameter meets pre-conditioned, whether the further very first time length judging that this barrier blocks this camera head exceedes predetermined time period, if whether this very first time length exceedes predetermined time period, processor 803 can cut out the some or all of function of this camera head.
In alternative embodiments, above-mentioned processor 803 calls by the distance sensing device in this terminal 800 program code stored in memory 804 and detects the concrete mode that whether there is the barrier blocking this camera head within the scope of predeterminable range and be:
Call by the distance sensing device in this terminal 800 program code stored in memory 804 and detect the barrier blocking this camera head.
Obtain the distance between barrier and this camera head.
In disturbance in judgement thing apart from the distance of the nearest barrier of this camera head and this camera head whether within the scope of predeterminable range.
When in barrier apart from when the distance of the nearest barrier of this camera head and this camera head is within the scope of predeterminable range, determine within the scope of predeterminable range, store the barrier blocking this camera head.
Wherein, the concrete mode of distance that above-mentioned processor 803 obtains between barrier and this camera head is:
Outwards send detection signal by distance sensing device, and receive this detection signal that barrier fires back.
Obtain distance sensing device from transmission detection signal to the second time span receiving this detection signal that barrier reflects.
The distance between this barrier and this camera head is calculated according to this second time span.
Concrete, above-mentioned processor 803 according to the concrete mode of the distance that this second time span calculates between this barrier with this camera head is: processor 803 calculates distance corresponding to this second time span by using the distance computation rule obtained from memory 804 in advance.
In specific implementation, input equipment 801 described in the embodiment of the present invention, processor 803 and memory 804 can perform the implementation described in two embodiments of the control method of a kind of camera head disclosed in the embodiment of the present invention, also can perform the implementation of the terminal described in three embodiments of a kind of terminal that the embodiment of the present invention provides, not repeat them here.
Unit in all embodiments of the present invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a control method for camera head, is characterized in that, comprising:
When the camera head in terminal is in running order, detect within the scope of predeterminable range, whether there is the barrier blocking described camera head by the distance sensing device in described terminal;
If so, the part or all of function of described camera head is then closed.
2. method according to claim 1, is characterized in that, when detecting that the barrier of described camera head is blocked in existence within the scope of predeterminable range, before the part or all of function of the described camera head of described closedown, described method also comprises:
Obtain the environmental parameter of environment residing for described camera head;
Judge whether described environmental parameter meets pre-conditioned;
If so, the step of the part or all of function of the described camera head of described closedown is then performed.
3. method according to claim 2, is characterized in that, described environmental parameter comprises environment bright angle value, and described to judge whether described environmental parameter meets pre-conditioned, comprising:
Judge that whether described environment bright angle value is lower than default environmental light brightness threshold value;
If described environment bright angle value is lower than default environmental light brightness threshold value, then described environmental parameter meets pre-conditioned.
4. method according to claim 2, is characterized in that, described environmental parameter comprises ambient ultraviolet line strength value, and described to judge whether described environmental parameter meets pre-conditioned, comprising:
Judge that whether described ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value;
If described ambient ultraviolet line strength value is lower than default ambient ultraviolet line strength threshold value, then described environmental parameter meets pre-conditioned.
5. method according to claim 2, is characterized in that, if described environmental parameter meets pre-conditioned, before the part or all of function of the described camera head of described closedown, described method also comprises:
Judge whether the very first time length that described barrier blocks described camera head exceedes predetermined time period;
If so, the step of the part or all of function of closing described camera head is then performed.
6. the method according to any one of Claims 1 to 5, it is characterized in that, when the camera head in terminal is in running order, before the described distance sensing device by described terminal detects whether there is the barrier blocking described camera head within the scope of predeterminable range, described method also comprises:
Judge whether described terminal is in screen state of going out;
If so, the described step that whether be there is the barrier blocking described camera head by the distance sensing device detection in described terminal within the scope of predeterminable range is then performed.
7. method according to claim 6, is characterized in that, when the camera head in terminal is in running order, whether described exist by the distance sensing device detection in terminal the barrier blocking described camera head within the scope of predeterminable range, comprising:
The barrier blocking described camera head is detected by the distance sensing device in described terminal;
Obtain the distance between described barrier and described camera head;
Judge that the beeline of described barrier apart from described camera head is whether within the scope of predeterminable range;
If so, then determine within the scope of predeterminable range, there is the barrier blocking described camera head.
8. method according to claim 7, is characterized in that, the distance between the described barrier of described acquisition and described camera head, comprising:
Outwards send detection signal by described distance sensing device, and receive the described detection signal that described barrier reflects;
Obtain described distance sensing device from the described detection signal of transmission to the second time span receiving the described detection signal reflected;
The distance between described barrier and described camera head is calculated according to described second time span.
9. method according to claim 8, is characterized in that, describedly calculates distance between described barrier and described camera head according to described second time span, comprising:
The distance computation rule obtained in advance is used to calculate distance corresponding to described second time span.
10. method according to claim 9, it is characterized in that, if close the partial function of described camera head, described partial function comprises: the function needing terminal system Resources allocation in described camera head, or in above-mentioned camera head, power is greater than the function of predetermined power.
CN201510047134.3A 2015-01-29 2015-01-29 A kind of control method of camera device Active CN104639833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510047134.3A CN104639833B (en) 2015-01-29 2015-01-29 A kind of control method of camera device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510047134.3A CN104639833B (en) 2015-01-29 2015-01-29 A kind of control method of camera device

Publications (2)

Publication Number Publication Date
CN104639833A true CN104639833A (en) 2015-05-20
CN104639833B CN104639833B (en) 2018-05-15

Family

ID=53218095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510047134.3A Active CN104639833B (en) 2015-01-29 2015-01-29 A kind of control method of camera device

Country Status (1)

Country Link
CN (1) CN104639833B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918309A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Energy-saving method and device for mobile terminal
CN105282446A (en) * 2015-10-29 2016-01-27 小米科技有限责任公司 Camera management method and device
CN105847661A (en) * 2015-06-18 2016-08-10 维沃移动通信有限公司 Shooting method and mobile terminal
CN106385493A (en) * 2016-09-06 2017-02-08 广东欧珀移动通信有限公司 Gravity sensor registration method and device, and mobile terminal
CN106973232A (en) * 2017-04-26 2017-07-21 广东小天才科技有限公司 A kind of terminal camera control method and device
CN110198410A (en) * 2019-05-31 2019-09-03 广东小天才科技有限公司 Shoot based reminding method, wearable device and storage medium
CN112653831A (en) * 2019-10-12 2021-04-13 青岛海信移动通信技术股份有限公司 Photographing terminal and photographing control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697563A (en) * 2009-10-26 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Power saving method for mobile terminal and mobile terminal
CN102176733A (en) * 2011-01-28 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for controlling screen backlight
CN102984352A (en) * 2012-11-02 2013-03-20 北京小米科技有限责任公司 Method and device of adjusting of screen luminance of terminal and terminal
CN103167128A (en) * 2012-08-07 2013-06-19 深圳市金立通信设备有限公司 System and method for achieving automatic sleep of mobile phone based on proximity sensor
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697563A (en) * 2009-10-26 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Power saving method for mobile terminal and mobile terminal
CN102176733A (en) * 2011-01-28 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for controlling screen backlight
CN103167128A (en) * 2012-08-07 2013-06-19 深圳市金立通信设备有限公司 System and method for achieving automatic sleep of mobile phone based on proximity sensor
CN102984352A (en) * 2012-11-02 2013-03-20 北京小米科技有限责任公司 Method and device of adjusting of screen luminance of terminal and terminal
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918309A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Energy-saving method and device for mobile terminal
CN105847661A (en) * 2015-06-18 2016-08-10 维沃移动通信有限公司 Shooting method and mobile terminal
CN105282446A (en) * 2015-10-29 2016-01-27 小米科技有限责任公司 Camera management method and device
CN106385493A (en) * 2016-09-06 2017-02-08 广东欧珀移动通信有限公司 Gravity sensor registration method and device, and mobile terminal
CN106385493B (en) * 2016-09-06 2019-08-23 Oppo广东移动通信有限公司 A kind of gravity sensor register method, device and mobile terminal
CN106973232A (en) * 2017-04-26 2017-07-21 广东小天才科技有限公司 A kind of terminal camera control method and device
CN110198410A (en) * 2019-05-31 2019-09-03 广东小天才科技有限公司 Shoot based reminding method, wearable device and storage medium
CN110198410B (en) * 2019-05-31 2021-02-23 广东小天才科技有限公司 Shooting reminding method, wearable device and storage medium
CN112653831A (en) * 2019-10-12 2021-04-13 青岛海信移动通信技术股份有限公司 Photographing terminal and photographing control method

Also Published As

Publication number Publication date
CN104639833B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN104639833A (en) Method for controlling camera device
CN107219515A (en) The parameter calibrating method and terminal of a kind of range sensor
CN102520858B (en) Mobile terminal application control method and device
CN104618649A (en) Terminal
CN103369142B (en) Method and system for avoiding call-up malfunction
EP3521992A1 (en) Method and apparatus for operating a display and storage medium
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
EP2214091A2 (en) Mobile terminal having dual touch screen and method for displaying user interface thereof
CN105959461B (en) Screen induction control method and device and terminal equipment
CN111314610B (en) Control method and electronic equipment
US20150277720A1 (en) Systems and Methods for Managing Operating Modes of an Electronic Device
CN104335260A (en) Infrared distance measurement collision avoidance method and terminal
CN108710469A (en) The startup method and mobile terminal and medium product of a kind of application program
CN106851013A (en) SOT state of termination determination methods, device and terminal
CN108881645B (en) Screen control method and device for mobile phone call
CN108646959A (en) Screen control method, device and mobile terminal
CN106131334B (en) Method and device for controlling screen state of mobile terminal
CN104914979A (en) Display control method and terminal
CN109151348B (en) Image processing method, electronic equipment and computer readable storage medium
CN104780312A (en) Terminal
CN105353942A (en) Information output method and terminal
CN108769299A (en) Screen control method, device and mobile terminal
CN105159540A (en) Control method of screen state and terminal
CN106101402A (en) Adjust the method and system of proximity transducer threshold of perception current
CN104679245A (en) Terminal

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210224

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.