CN103024173A - Method for opening camera based on gravity sensing - Google Patents
Method for opening camera based on gravity sensing Download PDFInfo
- Publication number
- CN103024173A CN103024173A CN2012105289767A CN201210528976A CN103024173A CN 103024173 A CN103024173 A CN 103024173A CN 2012105289767 A CN2012105289767 A CN 2012105289767A CN 201210528976 A CN201210528976 A CN 201210528976A CN 103024173 A CN103024173 A CN 103024173A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- cellphone
- accekeration
- threshold values
- state
- 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
Links
- 230000005484 gravity Effects 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
Abstract
The invention discloses a method for opening a camera based on gravity sensing. The method is applied to cellphones provided with gravity sensors and comprises the following steps: step 1, a cellphone is in an unlocking interface, and a gravity sensor is started at the background; step 2, entering a detection judging program, and judging whether the cellphone is in a horizontal or vertical state; step 3, judging whether the time of the horizontal or vertical state of the cellphone exceeds a preset time T, entering next step on yes judgment, and returning back on no judgement; and step 4, opening a cellphone camera, and entering a shooting mode. By means of the method, the gravity sensor is used for detecting placing state of the cellphone, and when the user place the cellphone in a state for shooting, namely the cellphone is in a horizontal or vertical state, the cellphone can automatically open the camera and enter the shooting state, so that the operations for looking for shortcut icons from various shortcut icons to enter the shooting mode can be avoided. Simultaneously, the cellphone is scientific, and enjoyment of the cellphone is increased.
Description
Technical field
The present invention relates to a kind of method of opening mobile phone cam, be specifically related to a kind of method of opening mobile phone cam based on gravity sensing.
Background technology
The smart mobile phone major part of main flow has all been removed the physical button of taking pictures now, all adopts touch key-press to realize entering camera and takes the photograph according to pattern, thereby realized cell phone appearance, structural attractive in appearance succinct.Along with increasing of smart mobile phone function, also increase on the mobile phone desktop thereupon and enter the shortcut icon of corresponding function program, and that some cellphone subscribers like pursuing is personalized, often can change mobile phone theme, mobile phone theme perhaps is set carries out timing switching.When shortcut icon was more on the mobile phone desktop, the shortcut icon of taking pictures that need to search and open camera, enter exposal model can seem cumbersome; And when causing the background patterns of mobile phone desktop or the shortcut icon of taking pictures that some occur when changing mobile phone theme changing, also can cause the user because being familiar with not needing the cost regular hour to find the shortcut icon of taking pictures, and some trouble that also seems in the operating process, even therefore possibility miss the record to fine scene.
Summary of the invention
For overcoming deficiency of the prior art, the invention provides a kind of method of opening camera based on gravity sensing, avoid searching the shortcut icon of taking pictures in need to be on the mobile phone desktop numerous shortcut icon of user, reduce user's operating procedure.
The present invention is achieved by the following technical solutions: a kind of method of opening camera based on gravity sensing, be applied to be provided with in the mobile phone of gravity sensor, and may further comprise the steps:
Step 1, mobile phone are in the release interface, and the backstage starts gravity sensor;
Step 2, enter the detection determining program, judge whether mobile phone is in horizontal vertical or upright state;
Step 3, judge that mobile phone keeps the horizontal time vertical or upright state whether to surpass preset time T, is then to enter next step, otherwise returns step 2;
Step 4, open mobile phone cam, enter exposal model.
Further, the described detection determining program of step 2 specifically comprises:
Step 201, detect and obtain the accekeration Gx of gravity sensor X-direction and the accekeration Gy of Y direction;
Step 202, judge whether accekeration Gx or Gy are equal to or greater than and preset threshold values, if accekeration Gx, judges then that mobile phone is in horizontal vertical state greater than presetting threshold values; Preset threshold values if accekeration Gy is equal to or greater than, judge that then mobile phone is in upright state; If accekeration Gx and Gy all less than presetting threshold values, then return step step 201.
Preferably, the described threshold values that presets of step 202 is 0.95G; The described preset time T of step 3 is 3S.
The invention provides a kind of new method of opening mobile phone cam, utilize gravity sensor to come the placement state of detection of handset, when the user puts out the state (being that mobile phone is in horizontal vertical or upright state) that need to take pictures with mobile phone, mobile phone will automatically opening camera enters exposal model immediately, avoided the user to need in numerous shortcut icons, to search the operation that the shortcut icon of taking pictures enters exposal model, also make simultaneously mobile phone have more the science and technology sense, increased the interest of mobile phone.
Description of drawings
Accompanying drawing 1 is schematic diagram of the present invention;
Embodiment
For the ease of those skilled in the art's understanding, the invention will be further described below in conjunction with accompanying drawing.
As shown in Figure 1, a kind of method of opening camera based on gravity sensing is applied to be provided with in the mobile phone of gravity sensor, may further comprise the steps:
Step 1, mobile phone are in the release interface, and the backstage starts gravity sensor.
Step 2, enter the detection determining program, judge whether mobile phone is in horizontal vertical or upright state.
Described detection determining program specifically comprises: step 201, detect and obtain the accekeration Gx of gravity sensor X-direction and the accekeration Gy of Y direction; Step 202, judge whether accekeration Gx or Gy are equal to or greater than and preset threshold values, if accekeration Gx, judges then that mobile phone is in horizontal vertical state greater than presetting threshold values; Preset threshold values if accekeration Gy is equal to or greater than, judge that then mobile phone is in upright state; If accekeration Gx and Gy all less than presetting threshold values, then return step step 201.
Step 3, judge mobile phone keeps the horizontal time vertical or upright state whether to surpass in preset time T(the present embodiment, and T gets 3S), be then to enter next step, otherwise return step 2.
Step 4, open mobile phone cam, enter exposal model.
Preferably, the described threshold values that presets of step 202 is 0.95G; The threshold values that presets is here got 0.95G, is a better value, is not limitation of the present invention, and concrete value also can be done corresponding the correction according to the error of the gravity sensor self of each mobile phone, or can arrange in cell phone system according to user's use habit; In like manner, the described preset time T of step 3 is 3S, also can make corresponding modification setting in cell phone system according to user's use habit, as change 3.5S, 4S etc. into
Described mobile phone cam can be post-positioned pick-up head or the front-facing camera of mobile phone.Default setting of the present invention is the post-positioned pick-up head of mobile phone, and the user can arrange middle its and be set to front-facing camera or post-positioned pick-up head mobile phone is relevant.
The invention provides a kind of new method of opening mobile phone cam, utilize gravity sensor to come the placement state of detection of handset, when the user puts out mobile phone the state that need to take pictures, be that mobile phone is when being in horizontal vertical or upright state, mobile phone will automatically be opened camera and enter exposal model, avoid the user to need in numerous shortcut icons, to search the operation that the shortcut icon of taking pictures enters exposal model, also made mobile phone have more the science and technology sense simultaneously, increased the interest of mobile phone.
The content of mentioning in above-described embodiment is preferred embodiment of the present invention, is not to be limitation of the invention, and without departing from the inventive concept of the premise, any apparent replacement is all within protection scope of the present invention.
Claims (4)
1. a method of opening camera based on gravity sensing is applied to be provided with in the mobile phone of gravity sensor, may further comprise the steps:
Step 1, mobile phone are in the release interface, and the backstage starts gravity sensor;
Step 2, enter the detection determining program, judge whether mobile phone is in horizontal vertical or upright state;
Step 3, judge that mobile phone keeps the horizontal time vertical or upright state whether to surpass preset time T, is then to enter next step, otherwise returns step 2;
Step 4, open mobile phone cam, enter exposal model.
2. method according to claim 1 is characterized in that, the described detection determining program of step 2 specifically comprises:
Step 201, detect and obtain the accekeration Gx of gravity sensor X-direction and the accekeration Gy of Y direction;
Step 202, judge whether accekeration Gx or Gy are equal to or greater than and preset threshold values, if accekeration Gx, judges then that mobile phone is in horizontal vertical state greater than presetting threshold values; Preset threshold values if accekeration Gy is equal to or greater than, judge that then mobile phone is in upright state; If accekeration Gx and Gy all less than presetting threshold values, then return step step 201.
3. method according to claim 2, it is characterized in that: the described threshold values that presets of step 202 is 0.95G.
4. each described method according to claim 1-3 is characterized in that: the described preset time T of step 3 is 3S.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210528976.7A CN103024173B (en) | 2012-12-11 | 2012-12-11 | Method for opening camera based on gravity sensing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210528976.7A CN103024173B (en) | 2012-12-11 | 2012-12-11 | Method for opening camera based on gravity sensing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103024173A true CN103024173A (en) | 2013-04-03 |
CN103024173B CN103024173B (en) | 2014-11-12 |
Family
ID=47972285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210528976.7A Expired - Fee Related CN103024173B (en) | 2012-12-11 | 2012-12-11 | Method for opening camera based on gravity sensing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103024173B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015188441A1 (en) * | 2014-06-09 | 2015-12-17 | 中兴通讯股份有限公司 | Method and apparatus for automatically waking up terminal device |
CN106412430A (en) * | 2016-09-29 | 2017-02-15 | 珠海格力电器股份有限公司 | Shooting method and apparatus |
WO2017124706A1 (en) * | 2016-01-18 | 2017-07-27 | 乐视控股(北京)有限公司 | Picture-taking method, device and mobile terminal |
CN107358078A (en) * | 2017-06-13 | 2017-11-17 | 广东欧珀移动通信有限公司 | Input method and device, the terminal and computer-readable recording medium of terminal |
CN107800885A (en) * | 2017-11-14 | 2018-03-13 | 佛山市百里洲科技有限公司 | A kind of mobile phone photograph method based on deliberate action |
CN108650451A (en) * | 2014-02-27 | 2018-10-12 | 华为终端有限公司 | A kind of photographic method and mobile terminal |
US20220341965A1 (en) * | 2021-04-22 | 2022-10-27 | Asustek Computer Inc. | Electronic device with function of recording falling and hitting events and falling and hitting event recording method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101754462A (en) * | 2009-12-24 | 2010-06-23 | 深圳华为通信技术有限公司 | Method and terminal for setting state of mobile terminal |
CN101764929A (en) * | 2008-12-24 | 2010-06-30 | 奥林巴斯映像株式会社 | Camera |
CN101872105A (en) * | 2010-06-02 | 2010-10-27 | 华为终端有限公司 | Method and device for photographing |
CN102158643A (en) * | 2010-12-17 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method and system for automatically starting and stopping camera unit |
-
2012
- 2012-12-11 CN CN201210528976.7A patent/CN103024173B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764929A (en) * | 2008-12-24 | 2010-06-30 | 奥林巴斯映像株式会社 | Camera |
CN101754462A (en) * | 2009-12-24 | 2010-06-23 | 深圳华为通信技术有限公司 | Method and terminal for setting state of mobile terminal |
CN101872105A (en) * | 2010-06-02 | 2010-10-27 | 华为终端有限公司 | Method and device for photographing |
CN102158643A (en) * | 2010-12-17 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method and system for automatically starting and stopping camera unit |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108650451A (en) * | 2014-02-27 | 2018-10-12 | 华为终端有限公司 | A kind of photographic method and mobile terminal |
WO2015188441A1 (en) * | 2014-06-09 | 2015-12-17 | 中兴通讯股份有限公司 | Method and apparatus for automatically waking up terminal device |
WO2017124706A1 (en) * | 2016-01-18 | 2017-07-27 | 乐视控股(北京)有限公司 | Picture-taking method, device and mobile terminal |
CN106412430A (en) * | 2016-09-29 | 2017-02-15 | 珠海格力电器股份有限公司 | Shooting method and apparatus |
CN106412430B (en) * | 2016-09-29 | 2019-06-11 | 珠海格力电器股份有限公司 | Photographic method and device |
CN107358078A (en) * | 2017-06-13 | 2017-11-17 | 广东欧珀移动通信有限公司 | Input method and device, the terminal and computer-readable recording medium of terminal |
CN107800885A (en) * | 2017-11-14 | 2018-03-13 | 佛山市百里洲科技有限公司 | A kind of mobile phone photograph method based on deliberate action |
US20220341965A1 (en) * | 2021-04-22 | 2022-10-27 | Asustek Computer Inc. | Electronic device with function of recording falling and hitting events and falling and hitting event recording method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103024173B (en) | 2014-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103024173B (en) | Method for opening camera based on gravity sensing | |
CN106843786B (en) | Display screen opening method, display screen opening device and terminal | |
KR101517459B1 (en) | Method for automatically switching user interface of handheld terminal device, and handheld terminal device | |
CN102135854B (en) | Wallpaper exchanging method and electronic equipment using same | |
CN106094535B (en) | Apparatus control method and device, electronic equipment | |
CN104184901A (en) | Method for controlling handheld device by means of gravity sensor and acceleration sensor | |
CN104123081B (en) | Electronic device and sleep awakening method thereof | |
JP2016178647A (en) | Locked camera access | |
CN104077017B (en) | A kind of electronic equipment and control method | |
CN102957799B (en) | A kind of mobile terminal and control method thereof | |
CN105022577B (en) | A kind of display methods and device of multi-screen mobile terminal | |
CN105554255B (en) | Method of controlling operation thereof and device for terminal device | |
CN111309209B (en) | Method and device for quickly opening application or application function and terminal equipment | |
CN104902186A (en) | Method for fast starting camera program and mobile terminal using the method | |
CN101854430A (en) | Mobile phone and incoming call processing method thereof | |
CN101771976A (en) | Control method for mobile communication device, control device thereof and computer readable media thereof | |
CN102833389A (en) | Mobile terminal and energy conservation method therefor | |
CN109040351B (en) | Camera control method and device, mobile terminal and storage medium | |
CN103123394B (en) | A kind of method and system that threshold value of proximity sensor is set | |
CN202267942U (en) | Mobile terminal | |
CN106250025A (en) | The method of camera, device and mobile terminal is called under screen lock state | |
CN107562289A (en) | Charge anti-interference method and device | |
CN102932595A (en) | Method and device for sound-control photographing and terminal | |
CN106210516A (en) | One is taken pictures processing method and terminal | |
CN103226389A (en) | Method for executing application program according to gesture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141112 |
|
CF01 | Termination of patent right due to non-payment of annual fee |