CN108919883A - A kind of camera head protecting method and mobile terminal - Google Patents

A kind of camera head protecting method and mobile terminal Download PDF

Info

Publication number
CN108919883A
CN108919883A CN201810551286.0A CN201810551286A CN108919883A CN 108919883 A CN108919883 A CN 108919883A CN 201810551286 A CN201810551286 A CN 201810551286A CN 108919883 A CN108919883 A CN 108919883A
Authority
CN
China
Prior art keywords
mobile terminal
height
gravity
acceleration
camera
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.)
Pending
Application number
CN201810551286.0A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810551286.0A priority Critical patent/CN108919883A/en
Publication of CN108919883A publication Critical patent/CN108919883A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a kind of camera head protecting method and mobile terminal, the method includes:When the lift camera of the mobile terminal is in raised configuration, the acceleration of gravity of the mobile terminal is detected;Judge whether the acceleration of gravity is within the scope of default acceleration of gravity;If so, control lift camera is contracted in the shell of mobile terminal.Can be realized when the camera of mobile terminal be in raised configuration and in fall state when, it is automatic to shrink lift camera, it is not damaged that camera is effectively protected.

Description

A kind of camera head protecting method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of camera head protecting method and mobile terminal.
Background technique
With the development of mobile terminal technology, shield mobile terminal comprehensively from concept to universal fast development.But before being limited by The presence of camera is set, mobile terminal front can not accomplish absolutely to be all screen.For such limitation, at present using liter Drop formula camera, when user needs to use front camera, camera can rise automatically, when switching rear camera or closing When front camera, camera can land automatically again.
Although lift camera can make mobile terminal front screen reach bigger screen accounting and can retain mobile whole The function of self-timer is held, but for lift camera, lift camera and mobile Terminals are point after rise From, and the thickness of device itself is less than the thickness of fuselage, encounters ground when falling or collides it during falling Its hard object easily leads to the damage of lift camera.
Summary of the invention
The embodiment of the present invention provides a kind of camera head protecting method and mobile terminal, is taken the photograph with solving lift in the prior art As head problem easy to damage after rise.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, the embodiment of the invention provides a kind of camera head protecting methods, including:When the liter of the mobile terminal When drop formula camera is in raised configuration, the acceleration of gravity of the mobile terminal is detected;Whether judge the acceleration of gravity Within the scope of default acceleration of gravity;It is contracted in the shell of the mobile terminal if so, controlling the lift camera.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes:
Detection module, for detecting the movement when the lift camera of the mobile terminal is in raised configuration The acceleration of gravity of terminal;Judgment module, for judging whether the acceleration of gravity is within the scope of default acceleration of gravity; Shrink module, if the judging result for the judgment module be it is yes, control the lift camera and be contracted to the movement In the shell of terminal.
The third aspect the embodiment of the invention also provides a kind of mobile terminal, including processor, memory and is stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor The step of realizing the camera head protecting method.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Computer program is stored on storage media, and the camera head protecting method is realized when the computer program is executed by processor Step.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.
Detailed description of the invention
Fig. 1 is a kind of flow chart of camera head protecting method of the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of camera head protecting method of the embodiment of the present invention two;
Fig. 3 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention three;
Fig. 4 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention four;
Fig. 5 is a kind of hardware structural diagram of mobile terminal of the embodiment of the present invention five.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of flow chart of camera head protecting method of the embodiment of the present invention one is shown.
Camera head protecting method provided in an embodiment of the present invention includes the following steps:
Step 101:When the lift camera of mobile terminal is in raised configuration, the gravity for detecting mobile terminal accelerates Degree.
Mobile terminal provided in an embodiment of the present invention is the mobile terminal comprising lift camera, when user needs to carry out When self-timer, lift camera is in raised configuration, when needing that rear camera is called to be shot or when stopping self-timer, Then lift camera is in and is contracted in mobile terminal shell.
When the lift camera of mobile terminal is in raised configuration, GPS (Global Positioning is called System, global positioning system) sensor, distance measuring sensor etc. obtain the acceleration of gravity in the unit time.
Step 102:Judge whether acceleration of gravity is within the scope of default acceleration of gravity.
Acceleration of gravity is compared with default acceleration of gravity range, is accelerated when acceleration of gravity is in default gravity It spends in range, then shows that mobile terminal is in and fall state, preset acceleration of gravity range when acceleration of gravity is less than, then show Mobile terminal is in a safe condition.
It should be noted that those skilled in the art can according to the actual situation set default acceleration of gravity range It sets, default acceleration of gravity range can be set to (8-9.8m/s2)。
Step 103:If so, control lift camera is contracted in the shell of mobile terminal.
If acceleration of gravity is in default acceleration of gravity range, controls lift camera and be contracted to mobile terminal In shell, to prevent damage of the mobile terminal when falling to lift camera.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.
Embodiment two
Referring to Fig. 2, a kind of flow chart of camera head protecting method of the embodiment of the present invention two is shown.
Camera head protecting method provided in an embodiment of the present invention includes the following steps:
Step 201:When the lift camera of mobile terminal is in raised configuration, mobile terminal is obtained relative to level First height in face.
Mobile terminal provided in an embodiment of the present invention is the mobile terminal comprising lift camera, when user needs to carry out When self-timer, camera is in raised configuration, when needing that rear camera is called to be shot or when stopping self-timer, then images Head is contracted in mobile terminal shell.
Wherein, the acquisition of the first height can be obtained in the following manner:It is obtained by distance measuring sensor mobile whole The first height of end with respect to the horizontal plane;Or mobile terminal with respect to the horizontal plane first high is obtained by global positioning system Degree;Or the first height of mobile terminal with respect to the horizontal plane is obtained by camera ranging.
Step 202:After prefixed time interval, the second height of mobile terminal with respect to the horizontal plane is obtained.
Step 203:According to the first height and the second height, the first speed of mobile terminal within a preset time interval is calculated Degree.
The first height of current mobile terminal with respect to the horizontal plane is obtained, after prefixed time interval, is determined mobile whole The second height of end with respect to the horizontal plane, calculates the difference of the first height and the second height, according to difference and prefixed time interval Calculate the First Speed of mobile terminal within a preset time interval.
It should be noted that those skilled in the art can according to the actual situation be configured prefixed time interval, In, prefixed time interval can be set to 0.05s, 0.03s, 0.02s etc., and the embodiment of the present invention is not made to have to prefixed time interval Body limitation.
Step 204:After obtaining the prefixed time interval after the second height, the of mobile terminal with respect to the horizontal plane is obtained Three height.
Step 205:According to third height and the second height, the second speed of mobile terminal within a preset time interval is calculated Degree.
Step 204 is similar to the description of step 205 and the description of step 201 to step 203, repeats no more to this.
By following acceleration of gravity formula, the acceleration of gravity of mobile terminal is calculated.
Wherein, vtFor second speed, v0For First Speed, t is prefixed time interval.
Step 206:Judge whether acceleration of gravity is within the scope of default acceleration of gravity.
Acceleration of gravity is compared with default acceleration of gravity range, is accelerated when acceleration of gravity is in default gravity It spends in range, then shows that mobile terminal is in and fall state, preset acceleration of gravity range when acceleration of gravity is less than, then show Mobile terminal is in a safe condition.
It should be noted that those skilled in the art can according to the actual situation set default acceleration of gravity range It sets, default acceleration of gravity range can be set to (9-9.8m/s2)。
Step 207:If so, control lift camera is contracted in the shell of mobile terminal.
When acceleration of gravity is within the scope of default acceleration of gravity, then shows that mobile terminal is in and fall state, be The camera of protection mobile terminal is not damaged, then controls lift camera and be contracted in the shell of mobile terminal.
In order to reduce power consumption, after camera is contracted in the shell of mobile terminal, distance measuring sensor, the whole world are simultaneously closed off Positioning system or camera ranging.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.In addition, distance measuring sensor, global positioning system or camera ranging are closed after camera landing, with drop Low-loss promotes the usage experience of user.
Embodiment three
Referring to Fig. 3, a kind of structural block diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes:Detection module 301, for working as the lift of the mobile terminal When camera is in raised configuration, the acceleration of gravity of the mobile terminal is detected;Judgment module 302 is described heavy for judging Whether power acceleration is within the scope of default acceleration of gravity;Module 303 is shunk, if the judging result for the judgment module Be it is yes, control the lift camera and be contracted in the shell of the mobile terminal.
When the lift camera of mobile terminal is in raised configuration, the gravity that detection module obtained in the unit time adds Speed.
If judgment module judges that acceleration of gravity is in default acceleration of gravity range, module control lift camera shooting is shunk Head is contracted in the shell of mobile terminal, to prevent mobile terminal when falling to the damage of camera.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.
Example IV
Referring to Fig. 4, a kind of structural block diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes:Detection module 401, for working as the lift of the mobile terminal When camera is in raised configuration, the acceleration of gravity of the mobile terminal is detected;Judgment module 402 is described heavy for judging Whether power acceleration is within the scope of default acceleration of gravity;Module 403 is shunk, if the judging result for the judgment module Be it is yes, control the lift camera and be contracted in the shell of the mobile terminal.
Preferably, the detection module 401 includes:Submodule 4011 is opened, for working as the lift of the mobile terminal When camera is in raised configuration, the first height of mobile terminal with respect to the horizontal plane is obtained;First acquisition submodule 4012 is used In after prefixed time interval, obtain the mobile terminal with respect to the horizontal plane second height;First computational submodule 4013, for calculating the mobile terminal in the prefixed time interval according to first height and second height First Speed;Second acquisition submodule 4014, for obtaining after obtaining the prefixed time interval after second height Take the third height of the mobile terminal with respect to the horizontal plane;Second computational submodule 4015, for according to the third height With second height, second speed of the mobile terminal in the prefixed time interval is calculated;Third computational submodule 4016, for calculating the acceleration of gravity of the mobile terminal according to the First Speed and the second speed.
Preferably, acceleration of gravity is calculated in the following manner:Wherein, vtFor second speed, v0It is first Speed, t are prefixed time interval.
Preferably, the first acquisition module is specifically used for:By distance measuring sensor obtain the mobile terminal relative to First height of horizontal plane;Or the first height of the mobile terminal with respect to the horizontal plane is obtained by global positioning system;Or The first height of the mobile terminal with respect to the horizontal plane is obtained by camera ranging.
Mobile terminal provided in an embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 1 to Fig. 2 and realize Each process, to avoid repeating, which is not described herein again.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.In addition, distance measuring sensor, global positioning system or camera ranging are closed after camera landing, with drop Low-loss promotes the usage experience of user.
Embodiment five
Referring to Fig. 5, the hardware structural diagram of a kind of mobile terminal of each embodiment to realize the present invention.
The mobile terminal 500 includes but is not limited to:It is radio frequency unit 501, network module 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, for detecting the movement when the lift camera of the mobile terminal is in raised configuration The acceleration of gravity of terminal;Judge whether the acceleration of gravity is within the scope of default acceleration of gravity;If so, described in control Lift camera is contracted in the shell of the mobile terminal.
In embodiments of the present invention, when the lift camera of mobile terminal is in raised configuration, mobile terminal is detected Acceleration of gravity, by judging whether acceleration of gravity is within the scope of default acceleration of gravity, if acceleration of gravity is in Within the scope of predetermined acceleration, then controls lift camera and be contracted in the shell of mobile terminal, can be realized and work as mobile terminal Lift camera be in raised configuration and in when falling state, it is automatic to shrink lift camera, be effectively protected and take the photograph Picture is not damaged.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510 Each process of the above-mentioned camera head protecting embodiment of the method for Shi Shixian, and identical technical effect can be reached, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned camera head protecting embodiment of the method when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of camera head protecting method is applied to mobile terminal, which is characterized in that the mobile terminal includes lift camera shooting Head, the method includes:
When the lift camera of the mobile terminal is in raised configuration, the acceleration of gravity of the mobile terminal is detected;
Judge whether the acceleration of gravity is within the scope of default acceleration of gravity;
It is contracted in the shell of the mobile terminal if so, controlling the lift camera.
2. the method according to claim 1, wherein described when the lift camera of the mobile terminal is in When raised configuration, the step of detecting the acceleration of gravity of the mobile terminal, including:
When the lift camera of the mobile terminal is in raised configuration, the mobile terminal is obtained with respect to the horizontal plane First height;
After prefixed time interval, the second height of the mobile terminal with respect to the horizontal plane is obtained;
According to first height and second height, first of the mobile terminal in the prefixed time interval is calculated Speed;
After obtaining the prefixed time interval after second height, the of the mobile terminal with respect to the horizontal plane is obtained Three height;
According to the third height and second height, second of the mobile terminal in the prefixed time interval is calculated Speed;
According to the First Speed and the second speed, the acceleration of gravity of the mobile terminal is calculated.
3. according to the method described in claim 2, it is characterized in that, calculating acceleration of gravity in the following manner:
Wherein, vtFor second speed, v0For First Speed, t is prefixed time interval.
4. according to the method described in claim 2, it is characterized in that, it is described obtain the mobile terminal with respect to the horizontal plane the The step of one height, including:
The first height of the mobile terminal with respect to the horizontal plane is obtained by distance measuring sensor;
Or
The first height of the mobile terminal with respect to the horizontal plane is obtained by global positioning system;
Or
The first height of the mobile terminal with respect to the horizontal plane is obtained by camera ranging.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Detection module, for detecting the mobile terminal when the lift camera of the mobile terminal is in raised configuration Acceleration of gravity;
Judgment module, for judging whether the acceleration of gravity is within the scope of default acceleration of gravity;
Shrink module, if the judging result for the judgment module be it is yes, control described in the lift camera is contracted to In the shell of mobile terminal.
6. mobile terminal according to claim 5, which is characterized in that the detection module includes:
Submodule is opened, it is described mobile whole for obtaining when the lift camera of the mobile terminal is in raised configuration The first height of end with respect to the horizontal plane;
First acquisition submodule, for obtaining second of the mobile terminal with respect to the horizontal plane after prefixed time interval Highly;
First computational submodule, for calculating the mobile terminal described according to first height and second height First Speed in prefixed time interval;
Second acquisition submodule, for obtaining the movement after obtaining the prefixed time interval after second height The third height of terminal with respect to the horizontal plane;
Second computational submodule, for calculating the mobile terminal described according to the third height and second height Second speed in prefixed time interval;
Third computational submodule, for calculating the gravity of the mobile terminal according to the First Speed and the second speed Acceleration.
7. mobile terminal according to claim 6, which is characterized in that calculate acceleration of gravity in the following manner:
Wherein, vtFor second speed, v0For First Speed, t is prefixed time interval.
8. mobile terminal according to claim 6, which is characterized in that first acquisition submodule is specifically used for:Pass through Distance measuring sensor obtains the first height of the mobile terminal with respect to the horizontal plane;
Or
The first height of the mobile terminal with respect to the horizontal plane is obtained by global positioning system;
Or
The first height of the mobile terminal with respect to the horizontal plane is obtained by camera ranging.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4 The step of described in any item camera head protecting methods.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the computer program realize camera head protecting method according to any one of claims 1 to 4 when being executed by processor The step of.
CN201810551286.0A 2018-05-31 2018-05-31 A kind of camera head protecting method and mobile terminal Pending CN108919883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810551286.0A CN108919883A (en) 2018-05-31 2018-05-31 A kind of camera head protecting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810551286.0A CN108919883A (en) 2018-05-31 2018-05-31 A kind of camera head protecting method and mobile terminal

Publications (1)

Publication Number Publication Date
CN108919883A true CN108919883A (en) 2018-11-30

Family

ID=64418736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810551286.0A Pending CN108919883A (en) 2018-05-31 2018-05-31 A kind of camera head protecting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108919883A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022411A (en) * 2019-05-14 2019-07-16 维沃移动通信有限公司 The control method and mobile terminal of camera lifting
CN110087000A (en) * 2019-05-30 2019-08-02 Oppo广东移动通信有限公司 A kind of camera control method, device and computer readable storage medium
CN110087012A (en) * 2019-04-17 2019-08-02 华为技术有限公司 A kind of control method and electronic equipment of camera
CN110365838A (en) * 2019-07-02 2019-10-22 Oppo广东移动通信有限公司 Guard method, device, medium and the electronic equipment of electronic equipment
CN110418027A (en) * 2019-06-17 2019-11-05 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN110445979A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 A kind of camera switching method and terminal device
CN111246011A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Lifting type camera protection method and device and mobile terminal
CN113138380A (en) * 2020-01-17 2021-07-20 北京小米移动软件有限公司 Control method and device of function module, mobile terminal and storage medium
CN114679513A (en) * 2022-03-28 2022-06-28 南昌黑鲨科技有限公司 Key protection system and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657732A (en) * 2016-11-17 2017-05-10 天津利顺利科技发展有限公司 Preparation method for mobile phone camera protection device
CN206370849U (en) * 2016-11-29 2017-08-01 芜湖赋兴光电有限公司 A kind of multi-functional mobile phone camera
CN107872582A (en) * 2017-11-20 2018-04-03 上海理工大学 A kind of mobile phone shatter-resistant self-protecting device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657732A (en) * 2016-11-17 2017-05-10 天津利顺利科技发展有限公司 Preparation method for mobile phone camera protection device
CN206370849U (en) * 2016-11-29 2017-08-01 芜湖赋兴光电有限公司 A kind of multi-functional mobile phone camera
CN107872582A (en) * 2017-11-20 2018-04-03 上海理工大学 A kind of mobile phone shatter-resistant self-protecting device and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴龙照: "《大千世界入掌来 智能终端技术及其在智慧城市的应用》", 31 December 2015 *
潘小青等: "《物理实验教程 蓝图[M]》", 31 December 2016 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087012A (en) * 2019-04-17 2019-08-02 华为技术有限公司 A kind of control method and electronic equipment of camera
CN110022411A (en) * 2019-05-14 2019-07-16 维沃移动通信有限公司 The control method and mobile terminal of camera lifting
CN110087000A (en) * 2019-05-30 2019-08-02 Oppo广东移动通信有限公司 A kind of camera control method, device and computer readable storage medium
CN110418027A (en) * 2019-06-17 2019-11-05 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN110445979A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 A kind of camera switching method and terminal device
CN110445979B (en) * 2019-06-26 2021-03-23 维沃移动通信有限公司 Camera switching method and terminal equipment
CN110365838A (en) * 2019-07-02 2019-10-22 Oppo广东移动通信有限公司 Guard method, device, medium and the electronic equipment of electronic equipment
CN111246011A (en) * 2020-01-03 2020-06-05 北京小米移动软件有限公司 Lifting type camera protection method and device and mobile terminal
CN113138380A (en) * 2020-01-17 2021-07-20 北京小米移动软件有限公司 Control method and device of function module, mobile terminal and storage medium
CN114679513A (en) * 2022-03-28 2022-06-28 南昌黑鲨科技有限公司 Key protection system and mobile terminal
CN114679513B (en) * 2022-03-28 2023-05-30 南昌黑鲨科技有限公司 Key protection system and mobile terminal

Similar Documents

Publication Publication Date Title
CN108919883A (en) A kind of camera head protecting method and mobile terminal
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN107800821B (en) One kind preventing motor and shake sub-resonance method and mobile terminal
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN109005262A (en) A kind of camera control method and terminal
CN108989672A (en) A kind of image pickup method and mobile terminal
CN109743503A (en) Reminding method and terminal
CN108616682A (en) A kind of camera head protecting method and terminal
CN110209313A (en) Icon moving method and terminal device
CN110300267A (en) Photographic method and terminal device
CN110445984A (en) A kind of shooting reminding method and electronic equipment
CN108984082A (en) A kind of image display method and mobile terminal
CN110096203A (en) A kind of screenshot method and mobile terminal
CN110018805A (en) A kind of display control method and mobile terminal
CN109005355A (en) A kind of image pickup method and mobile terminal
CN109739394A (en) A kind of processing method of SAR value, mobile terminal
CN109033912A (en) A kind of recognition methods of identification code and mobile terminal
CN109800606A (en) A kind of display control method and mobile terminal
CN109729301A (en) A kind of message inspection method and device
CN109218984A (en) A kind of method for tracing and mobile terminal
CN109474747A (en) A kind of information cuing method and mobile terminal
CN109005297A (en) A kind of display methods and mobile terminal of navigation application
CN108632535A (en) A kind of image processing method and mobile terminal
CN109164908A (en) A kind of interface control method and mobile terminal
CN110519443A (en) A kind of bright screen method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130