CN104243790B - Electronic device camera unit method for closing and system - Google Patents

Electronic device camera unit method for closing and system Download PDF

Info

Publication number
CN104243790B
CN104243790B CN201310242738.4A CN201310242738A CN104243790B CN 104243790 B CN104243790 B CN 104243790B CN 201310242738 A CN201310242738 A CN 201310242738A CN 104243790 B CN104243790 B CN 104243790B
Authority
CN
China
Prior art keywords
camera unit
electronic device
illumination
intensity
time interval
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
CN201310242738.4A
Other languages
Chinese (zh)
Other versions
CN104243790A (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 Futaihong Precision Industry Co Ltd
Original Assignee
Shenzhen Futaihong Precision Industry 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 Futaihong Precision Industry Co Ltd filed Critical Shenzhen Futaihong Precision Industry Co Ltd
Priority to CN201310242738.4A priority Critical patent/CN104243790B/en
Publication of CN104243790A publication Critical patent/CN104243790A/en
Application granted granted Critical
Publication of CN104243790B publication Critical patent/CN104243790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention provides a kind of electronic device camera unit method for closing, and the method comprising the steps of: obtaining the intensity of illumination of the external environment of intensity of illumination corresponding to the camera unit of electronic device and electronic device;Judge whether camera unit is in shielding status according to the intensity of illumination of intensity of illumination corresponding to the camera unit and the external environment;When camera unit is in shielding status, the acceleration value of electronic device is obtained;Analyze whether electronic device remains static in a prefixed time interval according to the acceleration value;And when electronic device remains static in the prefixed time interval, control camera unit is closed.The present invention also provides a kind of electronic device camera units to close system.The present invention can control camera unit closing when the camera unit of electronic device is in idle state.

Description

Electronic device camera unit method for closing and system
Technical field
The present invention relates to a kind of electronic apparatus control method and systems, take the photograph more particularly, to a kind of close in an electronic As the method and system of unit.
Background technique
Currently, being all mounted with camera on mobile phone, the operations such as user can take pictures and image using the camera.When When camera is in idle state, i.e., camera is in the open state but and is not used for the operation such as taking pictures or image, in idle The camera of state will cause the waste of mobile phone electricity.In order to solve this wasting phenomenon, mobile phone detects camera at one When being in idle state in preset time, then camera closing is triggered.Aforesaid way can not learn the idle shape of camera immediately State is unfavorable for the effective use of mobile phone electricity.Therefore needing to find one kind quick when camera is in idle state can obtain The method known the idle state of camera and close the camera for being in idle state.
Summary of the invention
In view of the foregoing, it is necessary to a kind of electronic device camera unit method for closing and system are provided, it can be in electronics When the camera unit of device is in idle state, the idle state of camera unit is quickly learnt, and controlling should be in idle state Camera unit close.
A kind of electronic device camera unit method for closing, the method comprising the steps of :(a) obtains the camera unit of electronic device The intensity of illumination of the external environment of corresponding intensity of illumination and electronic device;(b) light according to corresponding to the camera unit Judge whether camera unit is in shielding status according to the intensity of illumination of intensity and the external environment;(c) when camera unit is in When shielding status, the acceleration value of electronic device is obtained;(d) whether pre- at one according to acceleration value analysis electronic device If remaining static in time interval;And (e) when electronic device remains static in the prefixed time interval, control Camera unit processed is closed.
A kind of electronic device camera unit closing system, which includes: acquisition module, for obtaining taking the photograph for electronic device The intensity of illumination of the intensity of illumination as corresponding to unit and the external environment of electronic device;Judgment module, for being taken the photograph according to The intensity of illumination of the intensity of illumination as corresponding to unit and the external environment judges whether camera unit is in shielding status;Institute Acquisition module is stated, is also used to obtain the acceleration value of electronic device when camera unit is in shielding status;Analysis module is used In analyzing whether electronic device remains static in a prefixed time interval according to the acceleration value;And control mould Block, for when electronic device remains static in the prefixed time interval, control camera unit to be closed.
It compared to the prior art, can be with using electronic device camera unit method for closing provided by the present invention and system Whether it is in whether shielding status and electronic device in a prefixed time interval are in quiet according to the camera unit of electronic device Only state quickly judges whether camera unit is in idle state, and when camera unit is in idle state, controls at this It is closed in the camera unit of idle state, to achieve the purpose that power saving, to realize the effective use of electronic device power.
Detailed description of the invention
Fig. 1 is the hardware architecture diagram that electronic device camera unit of the present invention closes system preferred embodiment.
Fig. 2 is the operation process chart of electronic device camera unit method for closing preferred embodiment of the present invention.
Main element symbol description
Electronic device 100
Electronic device camera unit closes system 10
Obtain module 11
Judgment module 12
Analysis module 13
Receiving module 14
Control module 15
Storage unit 20
Camera unit 30
Optical sensor 40
Gravity sensor 50
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
As shown in fig.1, being the hardware architecture diagram that electronic device camera unit of the present invention closes system preferred embodiment.It should Electronic device camera unit is closed system 10 and is run in electronic device 100, which can be mobile phone, plate electricity The equipment that brain, palm PC (Personal Digital Assistant, PDA) etc. have camera unit 30.The electronic device 100 further include component, such as storage unit 20, optical sensor 40 and gravity sensor 50.The component 10-50 of electronic device passes through System bus is communicated.
The storage unit 20 is for the data in storage electronics 100.The camera unit 30 is for taking pictures And the operation such as camera shooting, it can be the photographic devices, for example front camera or rear camera of mobile phone such as camera.The illumination Sensor 40 is used to detect the intensity of illumination of external environment locating for electronic device 100.The gravity sensor 50 is for measuring electricity The acceleration value of sub-device 100.The electronic device camera unit closes system 10 for judging whether camera unit 30 is in Idle state, and when camera unit 30 is in idle state, control camera unit 30 is closed.It is opened when camera unit 30 is in State and when being not used for taking pictures or image etc. operation in a preset time, then camera unit 30 is in idle state, described Preset time is defined by the user, the time values such as example 1 second, 2 seconds.
It includes obtaining module 11, judgment module 12, analysis module 13, receiving that the electronic device camera unit, which closes system 10, Module 14 and control module 15.Module 11-15 includes computerization program instruction.
Obtain that module 11 is used to obtain intensity of illumination corresponding to camera unit 30 and that optical sensor 40 is detected is outer The intensity of illumination of portion's environment.Camera unit 30 in the open state, camera unit 30 is per second to obtain a certain number of pictures, Later, the intensity of illumination according to corresponding to the brightness calculation camera unit 30 of the picture of module 11 is obtained.The figure of the acquisition Piece quantity determines by the shooting performance of camera unit 30, such as 25.
Judgment module 12 is used for the intensity of illumination according to corresponding to the camera unit 30 and the external environment of the detecting Intensity of illumination, judge camera unit 30 whether in shielding status.In the preferred embodiment, when 30 institute of camera unit Less than one default intensity of illumination of corresponding intensity of illumination, and the intensity of illumination of the external environment of the detecting is default not less than this When intensity of illumination, then judgment module 12 determines that camera unit 30 is in shielding status.The light corresponding to the camera unit 30 According to intensity not less than intensity of illumination corresponding to the default intensity of illumination or the camera unit 30 and the outside of the detecting When the intensity of illumination of environment is both less than the default intensity of illumination, then judgment module 12 determines that camera unit 30 is not on masking shape State.The default intensity of illumination is an empirical value, corresponding light when being in shielding status according to camera unit 30 by user Summarize and obtain according to intensity, for example, the lux 1lux() or 0.1lux equivalence.
For example, the rear camera at 100 back side of electronic device is close to desktop when electronic device 100 is placed on, At this point, rear camera 25 pictures of acquisition per second, and it is right according to the brightness calculation of 25 picture to obtain rear camera institute The intensity of illumination answered is 0.2lux.At this point, optical sensor 40 is located at the positive top of electronic device 100, that detects is outer The intensity of illumination of portion's environment is 100lux.The default intensity of illumination is 1lux, then illustrates that the rear camera is in masking State.
When camera unit 30 is in shielding status, the acquisition module 11 is also used to obtain measured by gravity sensor 50 Acceleration value.
Analysis module 13 is used to analyze electronic device 100 whether in a prefixed time interval according to the acceleration value It remains static.The prefixed time interval is configured by user, the time values such as example 1 second or 2 seconds.Receiving module 14 For receiving time value corresponding to the prefixed time interval of user setting.
In the preferred embodiment, when the acceleration value is the same value in the prefixed time interval, then Analysis module 13 determines that electronic device 100 remains static in the prefixed time interval.When the acceleration value is in institute When stating in prefixed time interval as the same value, then analysis module 13 determines electronic device 100 in the prefixed time interval Inside it is not at stationary state.
When electronic device 100 remains static in the prefixed time interval, control module 15 is taken the photograph for controlling As unit 30 is closed.
In the present invention, electronic device camera unit close system 10 according to camera unit 30 whether in shielding status and Whether whether electronic device 100 remains static in the prefixed time interval, to judge electronic device 100 in idle State.When camera unit 30 is in shielding status and electronic device 100 remains static in the prefixed time interval, Then determine that electronic device 100 is in idle state, and then control camera unit 30 is closed.
As shown in fig.2, being the flow chart of electronic device camera unit method for closing preferred embodiment of the present invention.
Step S10, obtains intensity of illumination corresponding to the acquisition camera unit 30 of module 11 and optical sensor 40 is detected External environment intensity of illumination.Camera unit 30 in the open state, camera unit 30 it is per second obtain it is a certain number of Picture obtains the intensity of illumination according to corresponding to the brightness calculation camera unit 30 of the picture of module 11 later.
The outside of step S20, the intensity of illumination according to corresponding to the camera unit 30 of judgment module 12 and the detecting Whether the intensity of illumination of environment judges camera unit 30 in shielding status.When camera unit 30 is in shielding status, execute Otherwise step S30 directly terminates process.
In the preferred embodiment, less than one default illumination of intensity of illumination corresponding to the camera unit 30 is strong Degree, and when the intensity of illumination of the external environment of the detecting is not less than the default intensity of illumination, then judgment module 12 determines camera shooting Unit 30 is in shielding status.The intensity of illumination corresponding to the camera unit 30 is not less than the default intensity of illumination, or The intensity of illumination of intensity of illumination corresponding to the camera unit 30 and the external environment of the detecting is both less than the default illumination When intensity, then judgment module 12 determines that camera unit 30 is not on shielding status.The default intensity of illumination is an experience Value, corresponding intensity of illumination summary when be in shielding status according to camera unit 30 by user and obtain, for example, 1lux or 0.1lux is equivalent.
Step S30 obtains module 11 and obtains acceleration value measured by gravity sensor 50.
Step S40, analysis module 13 analyze electronic device 100 whether between a preset time according to the acceleration value It remains static every interior.The prefixed time interval is configured by user, the time values such as example 1 second or 2 seconds.This is default Time value corresponding to time interval is received user setting by receiving module 14 and is obtained.When electronic device 100 is described default When remaining static in time interval, otherwise executing step S50 directly terminates process.
In the preferred embodiment, when the acceleration value is the same value in the prefixed time interval, then Analysis module 13 determines that electronic device 100 remains static in the prefixed time interval.When the acceleration value is in institute When stating in prefixed time interval as the same value, then analysis module 13 determines electronic device 100 in the prefixed time interval Inside it is not at stationary state.
Step S50, control module 15 control camera unit 30 and close.
It should be noted that above-mentioned step S10 to step S20, step S30 to step S40 can be interchangeable, i.e., first Judge whether electronic device 100 remains static in the prefixed time interval, then judges whether camera unit 30 is in Shielding status.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although ginseng It is described the invention in detail according to the above preferred embodiment, those skilled in the art should understand that, it can be to this The technical solution of invention is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of electronic device camera unit method for closing, which is characterized in that this method comprises:
First obtaining step: the external environment of intensity of illumination corresponding to the camera unit of electronic device and electronic device is obtained Intensity of illumination;
Judgment step: judge to image according to the intensity of illumination of intensity of illumination corresponding to the camera unit and the external environment Whether unit is in shielding status;
Second obtaining step: when camera unit is in shielding status, the acceleration value of electronic device is obtained;
Analytical procedure: analyze whether electronic device is in static shape in a prefixed time interval according to the acceleration value State;And
Rate-determining steps: when electronic device remains static in the prefixed time interval, control camera unit is closed.
2. electronic device camera unit method for closing as described in claim 1, which is characterized in that the judgment step includes:
Less than one default intensity of illumination of intensity of illumination corresponding to the camera unit, and the illumination of the external environment is strong When degree is not less than the default intensity of illumination, then determine that camera unit is in shielding status;And
The intensity of illumination corresponding to the camera unit is not less than corresponding to the default intensity of illumination or the camera unit Intensity of illumination and the intensity of illumination of external environment when being both less than the default intensity of illumination, then determine that camera unit is not located In shielding status.
3. electronic device camera unit method for closing as described in claim 1, which is characterized in that the analytical procedure includes:
When the acceleration value is the same value in the prefixed time interval, then determine electronic device described default It remains static in time interval;And
When the acceleration value is not the same value in the prefixed time interval, then determine electronic device described default Stationary state is not in time interval.
4. electronic device camera unit method for closing as claimed in claim 3, which is characterized in that this method further includes receiving step It is rapid:
Receive time value corresponding to the prefixed time interval of user setting.
5. electronic device camera unit method for closing as described in claim 1, which is characterized in that first obtaining step is logical Cross intensity of illumination corresponding to the brightness calculation of a certain number of pictures of the camera unit acquisition per second camera unit.
6. a kind of electronic device camera unit closes system, which is characterized in that the system includes:
Module is obtained, for obtaining the external environment of intensity of illumination corresponding to the camera unit of electronic device and electronic device Intensity of illumination;
Judgment module judges for the intensity of illumination of the intensity of illumination according to corresponding to the camera unit and the external environment Whether camera unit is in shielding status;
The acquisition module is also used to obtain the acceleration value of electronic device when camera unit is in shielding status;
Analysis module, for according to the acceleration value analyze electronic device whether in a prefixed time interval in static State;And
Control module, for when electronic device remains static in the prefixed time interval, control camera unit to be closed It closes.
7. electronic device camera unit as claimed in claim 6 closes system, which is characterized in that the judgment module by with Lower step judges whether camera unit is in shielding status:
Less than one default intensity of illumination of intensity of illumination corresponding to the camera unit, and the illumination of the external environment is strong When degree is not less than the default intensity of illumination, then determine that camera unit is in shielding status;And
The intensity of illumination corresponding to the camera unit is not less than corresponding to the default intensity of illumination or the camera unit Intensity of illumination and the intensity of illumination of external environment when being both less than the default intensity of illumination, then determine that camera unit is not located In shielding status.
8. electronic device camera unit as claimed in claim 6 closes system, which is characterized in that the analysis module by with Lower step judges whether electronic device remains static in the prefixed time interval:
When the acceleration value is the same value in the prefixed time interval, then determine electronic device described default It remains static in time interval;And
When the acceleration value is not the same value in the prefixed time interval, then determine electronic device described default Stationary state is not in time interval.
9. electronic device camera unit as claimed in claim 8 closes system, which is characterized in that the system further include:
Receiving module, for receiving time value corresponding to the prefixed time interval of user setting.
10. electronic device camera unit as claimed in claim 6 closes system, which is characterized in that the acquisition module passes through Intensity of illumination corresponding to the brightness calculation of a certain number of pictures of the camera unit acquisition per second camera unit.
CN201310242738.4A 2013-06-19 2013-06-19 Electronic device camera unit method for closing and system Active CN104243790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310242738.4A CN104243790B (en) 2013-06-19 2013-06-19 Electronic device camera unit method for closing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310242738.4A CN104243790B (en) 2013-06-19 2013-06-19 Electronic device camera unit method for closing and system

Publications (2)

Publication Number Publication Date
CN104243790A CN104243790A (en) 2014-12-24
CN104243790B true CN104243790B (en) 2019-01-25

Family

ID=52231065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310242738.4A Active CN104243790B (en) 2013-06-19 2013-06-19 Electronic device camera unit method for closing and system

Country Status (1)

Country Link
CN (1) CN104243790B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639833B (en) * 2015-01-29 2018-05-15 深圳市金立通信设备有限公司 A kind of control method of camera device
CN104618649B (en) * 2015-01-29 2018-03-13 深圳市金立通信设备有限公司 A kind of terminal
CN105959540A (en) * 2016-05-10 2016-09-21 青岛海信电器股份有限公司 Mobile terminal processing method and mobile terminal processing device
CN107040715A (en) * 2016-12-30 2017-08-11 维沃移动通信有限公司 The method of automatic closing camera a kind of and apply its mobile terminal
CN107124550A (en) * 2017-05-16 2017-09-01 珠海市魅族科技有限公司 A kind of camera closing, open method and device
CN107566722A (en) * 2017-09-07 2018-01-09 深圳天珑无线科技有限公司 A kind of mobile terminal and its method and system for reducing self-timer power consumption
CN108989668A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of working method and mobile terminal of camera
CN109587451A (en) * 2018-12-25 2019-04-05 青岛小鸟看看科技有限公司 A kind of video capture device and its control method showing equipment for virtual reality

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102416A (en) * 2007-07-25 2008-01-09 北京中星微电子有限公司 A method and device for automatic control of light supplementary light of shooting device
CN101378563A (en) * 2007-08-28 2009-03-04 深圳富泰宏精密工业有限公司 Electricity-saving system and method for mobile phones
CN102158643A (en) * 2010-12-17 2011-08-17 上海合合信息科技发展有限公司 Method and system for automatically starting and stopping camera unit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5648844B2 (en) * 2010-12-21 2015-01-07 ソニー株式会社 Image display control apparatus and image display control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102416A (en) * 2007-07-25 2008-01-09 北京中星微电子有限公司 A method and device for automatic control of light supplementary light of shooting device
CN101378563A (en) * 2007-08-28 2009-03-04 深圳富泰宏精密工业有限公司 Electricity-saving system and method for mobile phones
CN102158643A (en) * 2010-12-17 2011-08-17 上海合合信息科技发展有限公司 Method and system for automatically starting and stopping camera unit

Also Published As

Publication number Publication date
CN104243790A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104243790B (en) Electronic device camera unit method for closing and system
CN105979125B (en) A kind of photographic method and system based on screen light filling
CN104488258B (en) Method and apparatus for double camera shutter
CN106210330B (en) A kind of image processing method and terminal
CN104137028A (en) Device and method for controlling rotation of displayed image
EP2081374A3 (en) Imaging apparatus and its control method
RU2007145734A (en) METHOD AND DEVICE FOR DETECTING SMOKE
US9338338B2 (en) Electronic device and method of camera control
PH12018501448A1 (en) Information image display method and apparatus
EP3345089B1 (en) Auto-calibrating light sensor data of a mobile device
CN104780320B (en) Ambient light detection method and electronic device
EP2779632A3 (en) Electronic device and method of operating the same
CN106384348B (en) The method for detecting abnormality and device of monitoring image
JP2013025650A5 (en)
CN110634163A (en) Method, device and equipment for calibrating parameters of terminal camera and storage medium
WO2013178145A1 (en) Backlight compensation method, device and terminal
EP2793216A3 (en) Image processing method of display device and display device thereof
Saipullah et al. Measuring power consumption for image processing on android smartphone
CN107784471B (en) The method that a kind of pair of dangerous material are monitored monitoring
CN105426068A (en) Photographing control system and photographing method
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
CN103868828A (en) Dust detection device based on mobile terminal
WO2015131647A1 (en) Method and device for adjusting screen brightness
CN105681600B (en) A kind of photographic method, device and intelligent terminal
EP3448017A3 (en) Electronic apparatus, method for controlling the same, and recording medium

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