CN102523380A - Method for preventing camera of mobile terminal from shaking, and mobile terminal - Google Patents

Method for preventing camera of mobile terminal from shaking, and mobile terminal Download PDF

Info

Publication number
CN102523380A
CN102523380A CN201110372958XA CN201110372958A CN102523380A CN 102523380 A CN102523380 A CN 102523380A CN 201110372958X A CN201110372958X A CN 201110372958XA CN 201110372958 A CN201110372958 A CN 201110372958A CN 102523380 A CN102523380 A CN 102523380A
Authority
CN
China
Prior art keywords
change
displacement value
axle
camera
gyroscope
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
CN201110372958XA
Other languages
Chinese (zh)
Other versions
CN102523380B (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 Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201110372958.XA priority Critical patent/CN102523380B/en
Publication of CN102523380A publication Critical patent/CN102523380A/en
Application granted granted Critical
Publication of CN102523380B publication Critical patent/CN102523380B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for preventing a camera of a mobile terminal from shaking, and the mobile terminal. The method comprises the following steps: receiving a turn-on instruction for turning on the camera; acquiring a displacement change value from a gyroscope; and judging whether the displacement change value is in a preset threshold value range, if the displacement change value is in the preset threshold value range, sending a shaking prevention starting instruction to the camera. According to the scheme, the shaking prevention function of the camera can be started automatically by using the gyroscope arranged in the mobile terminal, so that the camera can be prevented from shaking.

Description

The camera of portable terminal prevented method and this portable terminal trembled
Technical field
The present invention relates to anti-tremble technology, relate in particular to the camera of portable terminal is prevented method and this portable terminal trembled.
Background technology
At present, digital camera is often prevented trembling through acceleration transducer, specifically comprises: acceleration transducer is set in digital camera; Digital camera is operated the unlatching camera function according to the user; Then utilize the acceleration of the current motion of acceleration transducer detection camera, and the threshold value of detected acceleration and setting is compared, if in the threshold value scope; Then point out the user to be not suitable for taking pictures, and provide the selection of whether storing photograph.
Such scheme carries out acceleration detection through acceleration transducer, and the change in location of perception digital camera is under the situation of shake detecting camera, and whether the prompting user stores photograph.Along with science and technology development, a lot of portable terminals are also built-in gyroscope is in order to the change in displacement value of testing mobile terminal, the change in location of perception portable terminal.
In addition, the camera on a lot of portable terminals all has anti-trembling function, when practical application, need be introduced into camera applications, manually opened anti-trembling function, and camera could prevent trembling processing when taking pictures.At present, the camera on the portable terminal does not often have to open automatically anti-function of trembling, inconvenient operation.
Summary of the invention
The invention provides a kind of camera to portable terminal and prevent the method for trembling, this method can utilize the built-in gyroscope of portable terminal to open the camera anti-trembling function automatically, and camera is anti-to be trembled to carry out.
The invention provides a kind of portable terminal and can utilize the built-in gyroscope of portable terminal to open the camera anti-trembling function automatically, camera is anti-to be trembled to carry out.
A kind of camera to portable terminal is prevented the method for trembling, this method:
Receive the enabled instruction of opening camera;
Obtain the change in displacement value from gyroscope;
Judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera.
A kind of portable terminal, this portable terminal comprise anti-tremble recognition unit, gyroscope and camera;
Saidly anti-tremble recognition unit, be used to receive the enabled instruction of opening camera, obtain the change in displacement value from gyroscope; Judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera;
Said gyroscope is used to test out the change in displacement value, sends the said anti-recognition unit of trembling to;
Said camera is used for receiving and prevents trembling open command, prevents trembling processing.
Can find out from such scheme, among the present invention, obtain the change in displacement value, compare, determine whether to open that camera is anti-trembles according to comparative result according to change in displacement value and the pre-set threshold obtained from the gyroscope of portable terminal.Thereby, realized utilizing the built-in gyroscope of portable terminal to open the camera anti-trembling function automatically, camera is anti-to be trembled to carry out.
Description of drawings
Fig. 1 prevents the method indicative flowchart trembled for the present invention to the camera of portable terminal;
Fig. 2 is the structural representation of portable terminal of the present invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with embodiment and accompanying drawing, to further explain of the present invention.
For built-in gyroscope, and camera has the portable terminal of anti-trembling function, can adopt method flow shown in Figure 1, opens the camera anti-trembling function automatically according to the change in displacement value that gyroscope provides.The flow process of Fig. 1 may further comprise the steps:
Step 101 receives the enabled instruction of opening camera.
The user opens the camera function of portable terminal, gets into exposal model; Correspondingly, portable terminal receives the enabled instruction of the unlatching camera of user's input, and then, execution in step 102 and 103 is carried out the judgement whether camera need prevent trembling operation.
Step 102 is obtained the change in displacement value from gyroscope.
Step 103 judges that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera.
If judge the change in displacement value not in the pre-set threshold scope, then do not process.
If judge the change in displacement value in the pre-set threshold scope, then send the anti-open command of trembling, after camera is received and prevented trembling open command, just can prevent trembling processing to camera.
In the present embodiment, gyroscope can adopt three-axis gyroscope, and to carry out the test of change in displacement value, three comprise X axle, Y axle and Z axle.Carry out the change in displacement value that threshold range is judged from gyroscope being used to of obtaining; Be at least one group; Every group of change in displacement value comprises the change in displacement value on X axle, Y axle and three directions of Z axle; Set corresponding threshold value separately on X axle, Y axle and three directions of Z axle respectively, three directions corresponding threshold respectively can have nothing in common with each other.
If in the step 102 of Fig. 1 flow process, the change in displacement value of obtaining from gyroscope is one group of change in displacement value; Then step 103 is said judges whether the change in displacement value comprises in the pre-set threshold scope: judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately; If then determine the change in displacement value in the pre-set threshold scope.
If in the step 102 of Fig. 1 flow process, the change in displacement value of obtaining from gyroscope is at least two group change in displacement values; Then step 103 is said judges whether the change in displacement value comprises in the pre-set threshold scope:
Every group of change in displacement value judged, judged that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately, if then determine this group change in displacement value less than threshold value;
Judge and whether respectively organize the change in displacement value, if then determine the change in displacement value in the pre-set threshold scope all less than threshold value.
The method of gyroscope testing mobile terminal change in displacement value is a prior art, carries out brief description here.As the three dimensions central point, in the T, the coordinate information that obtains perception that does not stop calculates the changes in coordinates value in all angles to gyroscope, obtains the change in displacement value on X axle, Y axle and three directions of Z axle at the appointed time with the portable terminal center.Need to prove that the change in displacement value of three directions that gyroscope calculates is a vector value, in an application of the invention, be used to judge when whether portable terminal is in dither state, get the absolute value of each displacement changing value.If Fig. 1 process step 102 said change in displacement values of obtaining from gyroscope are N group change in displacement value, then gyroscope in the T, obtains N group coordinate sample information at the appointed time; According to every group of sampled data, calculate the change in displacement value on X axle, Y axle and three directions of Z axle respectively again.
See also Fig. 2, Fig. 2 is the structural representation of portable terminal of the present invention.This portable terminal comprises gyroscope 210, anti-recognition unit 220 and the camera 230 trembled.
Prevent trembling recognition unit 220, be used to receive the enabled instruction of opening camera 230, obtain the change in displacement value from gyroscope 210; Judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera 230.
Gyroscope 210 is used for sending the change in displacement value that tests out to the anti-recognition unit 220 of trembling.
Camera 230 is used for receiving and prevents trembling open command, prevents trembling processing.
Alternatively, the anti-recognition unit 220 of trembling comprises that the change in displacement value obtains subelement 221 and change in displacement value judgment sub-unit 222.
The change in displacement value is obtained subelement 221, is used for sending the change in displacement value of obtaining from gyroscope 210 to said change in displacement value judgment sub-unit 222.
Change in displacement value judgment sub-unit 222 is used to judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera 230.
Alternatively, change in displacement value judgment sub-unit 222 is judged the change in displacement value not in the pre-set threshold scope, does not then process.
Alternatively, the change in displacement value of obtaining from gyroscope 210 comprises the change in displacement value of X axle, Y axle and Z-direction, the corresponding respectively threshold values separately of X axle, Y axle and three directions of Z axle;
Change in displacement value judgment sub-unit 222 comprises first judge module 2221; Be used to judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately; If then determine the change in displacement value in the pre-set threshold scope.
Alternatively, the change in displacement value of obtaining from gyroscope 210 comprises at least two groups, and every group comprises the change in displacement value on X axle, Y axle and three directions of Z axle, the corresponding respectively threshold value separately of X axle, Y axle and three directions of Z axle;
Change in displacement value judgment sub-unit 222 comprises second judge module 2222; Be used for every group of change in displacement value judged; Judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately, if then determine this group change in displacement value less than threshold value; Judge and whether respectively organize the change in displacement value, if then determine the change in displacement value in the pre-set threshold scope all less than threshold value.
Portable terminal of the present invention comprises mobile phone, personal digital assistant (PDA, Personal Digital Assistant) etc.
The present invention obtains the change in displacement value from the gyroscope of portable terminal; Change in displacement value and pre-set threshold according to obtaining compare; Judge whether portable terminal is in dither state at present, the anti-trembling function according to the state of judging is opened camera has automatically made things convenient for operation.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (10)

1. the method that the camera to portable terminal is prevented trembling is characterized in that, this method comprises:
Receive the enabled instruction of opening camera;
Obtain the change in displacement value from gyroscope;
Judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera.
2. the method for claim 1 is characterized in that, the said change in displacement value of obtaining from said gyroscope comprises the change in displacement value of X axle, Y axle and Z-direction, the corresponding respectively threshold values separately of X axle, Y axle and three directions of Z axle;
Said judge the change in displacement value whether the step in the pre-set threshold scope comprise: judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately; If confirm that then said change in displacement value is in said pre-set threshold scope.
3. the method for claim 1; It is characterized in that; The said change in displacement value of obtaining from said gyroscope comprises at least two groups, and every group comprises the change in displacement value on X axle, Y axle and three directions of Z axle, the corresponding respectively threshold value separately of X axle, Y axle and three directions of Z axle;
Said judge the change in displacement value whether the step in the pre-set threshold scope comprise:
Every group of change in displacement value judged, judged that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately, if then determine this group change in displacement value less than threshold value;
Judge and whether respectively organize the change in displacement value, if then determine said change in displacement value in said pre-set threshold scope all less than threshold value.
4. like claim 1,2 or 3 described methods, it is characterized in that, if said change in displacement value does not then process not in the pre-set threshold scope.
5. like claim 1,2 or 3 described methods, it is characterized in that said after the camera transmission prevents trembling open command, this method also comprises: camera prevents trembling processing.
6. a portable terminal is characterized in that, this portable terminal comprises anti-tremble recognition unit, gyroscope and camera;
Saidly anti-tremble recognition unit, be used to receive the enabled instruction of opening camera, obtain the change in displacement value from gyroscope; Judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera;
Said gyroscope is used to test out the change in displacement value, sends the said anti-recognition unit of trembling to;
Said camera is used for receiving and prevents trembling open command, prevents trembling processing.
7. portable terminal as claimed in claim 6 is characterized in that, the said anti-recognition unit of trembling comprises that the change in displacement value obtains subelement and change in displacement value judgment sub-unit;
Said change in displacement value is obtained subelement, is used for obtaining the change in displacement value from gyroscope, sends said change in displacement value judgment sub-unit to;
Said change in displacement value judgment sub-unit is used to judge that the change in displacement value is whether in the pre-set threshold scope, if then send the anti-open command of trembling to camera.
8. portable terminal as claimed in claim 7 is characterized in that, said change in displacement value judgment sub-unit judges that said change in displacement value not in said pre-set threshold scope, does not then process.
9. like claim 7 or 8 described portable terminals, it is characterized in that the change in displacement value of obtaining from gyroscope comprises the change in displacement value of X axle, Y axle and Z-direction, the corresponding respectively threshold values separately of X axle, Y axle and three directions of Z axle;
Said change in displacement value judgment sub-unit comprises first judge module; Be used to judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately; If confirm that then said change in displacement value is in said pre-set threshold scope.
10. like claim 7 or 8 described portable terminals; It is characterized in that; The change in displacement value of obtaining from gyroscope comprises at least two groups, and every group comprises the change in displacement value on X axle, Y axle and three directions of Z axle, the corresponding respectively threshold value separately of X axle, Y axle and three directions of Z axle;
Said change in displacement value judgment sub-unit comprises second judge module; Be used for every group of change in displacement value judged; Judge that change in displacement value on X axle, Y axle and three directions of Z axle is whether all less than corresponding threshold separately, if then determine this group change in displacement value less than threshold value; Judge and whether respectively organize the change in displacement value, if confirm that then said change in displacement value is in said pre-set threshold scope all less than threshold value.
CN201110372958.XA 2011-11-10 2011-11-10 Method for preventing camera of mobile terminal from shaking, and mobile terminal Expired - Fee Related CN102523380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110372958.XA CN102523380B (en) 2011-11-10 2011-11-10 Method for preventing camera of mobile terminal from shaking, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110372958.XA CN102523380B (en) 2011-11-10 2011-11-10 Method for preventing camera of mobile terminal from shaking, and mobile terminal

Publications (2)

Publication Number Publication Date
CN102523380A true CN102523380A (en) 2012-06-27
CN102523380B CN102523380B (en) 2015-05-27

Family

ID=46294164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110372958.XA Expired - Fee Related CN102523380B (en) 2011-11-10 2011-11-10 Method for preventing camera of mobile terminal from shaking, and mobile terminal

Country Status (1)

Country Link
CN (1) CN102523380B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
CN103124311A (en) * 2013-01-24 2013-05-29 广东欧珀移动通信有限公司 Mobile phone photographing method
CN103870257A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Continuous focusing method and device
CN104506722A (en) * 2014-12-19 2015-04-08 成都品果科技有限公司 Method and system for focusing through direction sensor of mobile phone
CN104780312A (en) * 2015-03-26 2015-07-15 深圳市金立通信设备有限公司 Terminal
CN104780311A (en) * 2015-03-26 2015-07-15 深圳市金立通信设备有限公司 Terminal control method
CN104967788A (en) * 2014-08-28 2015-10-07 小米科技有限责任公司 Shooting method and shooting device
CN105681626A (en) * 2016-02-25 2016-06-15 广东欧珀移动通信有限公司 Detection method, control method, detection device, control device and electronic device
CN106577350A (en) * 2016-11-22 2017-04-26 深圳市沃特沃德股份有限公司 Method and device for recognizing pet type
TWI609357B (en) * 2014-04-28 2017-12-21 鴻海精密工業股份有限公司 Method and system for standardized operation training
WO2019090592A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Intelligent terminal-based camera shake prevention method and system
CN111343381A (en) * 2020-02-28 2020-06-26 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142157A (en) * 1995-05-25 1997-02-05 三星电子株式会社 Method for compensating image-jitter of camera-videorecorder
CN101884213A (en) * 2007-12-03 2010-11-10 松下电器产业株式会社 Image processing device, photographing device, reproducing device, integrated circuit, and image processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142157A (en) * 1995-05-25 1997-02-05 三星电子株式会社 Method for compensating image-jitter of camera-videorecorder
CN101884213A (en) * 2007-12-03 2010-11-10 松下电器产业株式会社 Image processing device, photographing device, reproducing device, integrated circuit, and image processing method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870257A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Continuous focusing method and device
CN103051836B (en) * 2012-12-14 2016-03-30 中兴通讯股份有限公司 Mobile terminal stabilization photographic method and device
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
CN103124311A (en) * 2013-01-24 2013-05-29 广东欧珀移动通信有限公司 Mobile phone photographing method
CN103124311B (en) * 2013-01-24 2014-08-20 广东欧珀移动通信有限公司 Mobile phone photographing method
TWI609357B (en) * 2014-04-28 2017-12-21 鴻海精密工業股份有限公司 Method and system for standardized operation training
US9661223B2 (en) 2014-08-28 2017-05-23 Xiaomi Inc. Method and device for photographing including camera shake
CN104967788A (en) * 2014-08-28 2015-10-07 小米科技有限责任公司 Shooting method and shooting device
WO2016029637A1 (en) * 2014-08-28 2016-03-03 小米科技有限责任公司 Photographing method and apparatus
CN104506722A (en) * 2014-12-19 2015-04-08 成都品果科技有限公司 Method and system for focusing through direction sensor of mobile phone
CN104780311A (en) * 2015-03-26 2015-07-15 深圳市金立通信设备有限公司 Terminal control method
CN104780312A (en) * 2015-03-26 2015-07-15 深圳市金立通信设备有限公司 Terminal
CN105681626A (en) * 2016-02-25 2016-06-15 广东欧珀移动通信有限公司 Detection method, control method, detection device, control device and electronic device
CN105681626B (en) * 2016-02-25 2019-02-05 Oppo广东移动通信有限公司 Detection method, control method, detection device, control device and electronic device
CN106577350A (en) * 2016-11-22 2017-04-26 深圳市沃特沃德股份有限公司 Method and device for recognizing pet type
CN106577350B (en) * 2016-11-22 2020-10-09 深圳市沃特沃德股份有限公司 Pet type identification method and device
WO2019090592A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Intelligent terminal-based camera shake prevention method and system
CN111343381A (en) * 2020-02-28 2020-06-26 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and storage medium
CN111343381B (en) * 2020-02-28 2021-10-22 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN102523380B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN102523380A (en) Method for preventing camera of mobile terminal from shaking, and mobile terminal
EP2871815B1 (en) Authentication control system, authentication control method, and program
KR101534423B1 (en) Learning situations via pattern matching
US20150109511A1 (en) Camera-based orientation fix from portrait to landscape
KR20130056275A (en) Methods and apparatuses for gesture based remote control
CN113064823B (en) Method and device for testing functions of parts of automobile and computer storage medium
CN109565529B (en) Application starting method and terminal equipment
CN105049628A (en) Method and device for controlling terminal driving mode
US20220262035A1 (en) Method, apparatus, and system for determining pose
CN111522438A (en) Content transmission method, device and medium
US11882233B2 (en) Mobile terminal device with function limitation, function limitation method thereof, and processing program used in same
CN105068632A (en) Terminal charging method and device and terminal
WO2016169107A1 (en) Method and device for answering incoming call
CN103002145A (en) Phone answering method and device based on mobile terminal
CN111045737B (en) Equipment identifier acquisition method, device, terminal equipment and storage medium
CN112187995A (en) Illumination compensation method, illumination compensation device, and storage medium
CN105205101A (en) Evaluation method and device for network information, and terminal
KR20200086570A (en) Electronic device for recommending photographing spot for an image and method for operating thefeof
CN102215334A (en) Shooting device and shooting method thereof
CN104168179A (en) Information sending method and device
CN114720932A (en) Battery management system signal sampling precision testing method and device, upper computer and storage medium
KR20150106535A (en) Mobile terminal and controlling method thereof
CN112329909B (en) Method, apparatus and storage medium for generating neural network model
US20090316882A1 (en) Communication terminal, method for operating communication terminal, and computer program
KR101525224B1 (en) A portable terminal of having the auto photographing mode

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150527

Termination date: 20211110

CF01 Termination of patent right due to non-payment of annual fee