CN108810284A - A kind of mode switching method and electronic equipment of camera - Google Patents
A kind of mode switching method and electronic equipment of camera Download PDFInfo
- Publication number
- CN108810284A CN108810284A CN201810762962.9A CN201810762962A CN108810284A CN 108810284 A CN108810284 A CN 108810284A CN 201810762962 A CN201810762962 A CN 201810762962A CN 108810284 A CN108810284 A CN 108810284A
- Authority
- CN
- China
- Prior art keywords
- camera
- mode
- electronic equipment
- battery
- information
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/52—Details of telephonic subscriber devices including functional features of a camera
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the present invention provides a kind of mode switching method and electronic equipment of camera, this method is applied to an electronic equipment, an at least camera for the electronic equipment is provided with first mode and second mode, wherein, camera in the first mode is accommodated in the accommodating space in the electronic equipment, the at least partly structure of camera in the second mode is located at outside the accommodating space, the method includes:In the case where the camera is in the second mode, the state parameter of the electronic equipment is obtained;In the case where the state parameter meets preset condition, the camera is switched into the first mode;Wherein, the state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate the electronic equipment with the presence or absence of abnormal.The embodiment of the present invention can solve the problems, such as that camera in the prior art is damaged because that can not recycle.
Description
Technical field
The present invention relates to field of communication technology more particularly to the mode switching methods and electronic equipment of a kind of camera.
Background technology
Pursuit with people to electronic equipment height screen accounting, full frame mobile phone concept gradually become each mainstream mobile phone
Manufacturer attracts the shining point of user.Wherein, part manufacturer sets camera to telescopic mode, and screen is improved to reach
The purpose of curtain accounting.
However, although telescopic camera can obtain better full frame visual experience, if user is taking pictures,
The unexpected stuck or mobile phone of mobile phone is in low battery and shuts down suddenly, the problem of camera can not be recycled normally will occurs, thus
When being contacted with other objects, the damage to camera is easily caused.
Invention content
The embodiment of the present invention provides a kind of mode switching method and electronic equipment of camera, in the prior art to solve
The problem of camera is damaged because that can not recycle.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, the embodiment provides a kind of mode switching method of camera, set applied to an electronics
Standby, an at least camera for the electronic equipment is provided with first mode and second mode, wherein in the first mode
Camera is accommodated in the accommodating space in the electronic equipment, at least partly structure of the camera in the second mode
Outside the accommodating space, the method includes:
In the case where the camera is in the second mode, the state parameter of the electronic equipment is obtained;
In the case where the state parameter meets preset condition, the camera is switched into the first mode;Its
In,
The state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate institute
Electronic equipment is stated with the presence or absence of abnormal.
Second aspect, the embodiments of the present invention also provide a kind of electronic equipment, at least one camera shooting of the electronic equipment
Head is provided with first mode and second mode, wherein the camera in the first mode is accommodated in the electronic equipment
Accommodating space in, at least partly structure of camera in the second mode is located at outside the accommodating space, the electricity
Sub- equipment includes:
First acquisition module, in the case where the camera is in the second mode, obtaining the electronics and setting
Standby state parameter;
Handover module, in the case where the state parameter meets preset condition, the camera to be switched to institute
State first mode;Wherein,
The state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate institute
Electronic equipment is stated with the presence or absence of abnormal.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, including processor, memory and are 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 mode switching method of camera as described above.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
Computer program is stored on storage media, the computer program realizes the mould of camera as described above when being executed by processor
The step of formula switching method.
In this way, in the embodiment of the present invention, by the case where camera is in second mode, obtaining its state parameter,
The state parameter includes whether information about power and/or abnormal feedback information, the exception feedback information are used to indicate the electronic equipment
There are exceptions, then further understand the application scenarios of camera by the status information, default to meet in state parameter
In the case of condition, the camera is switched into first mode in time so that camera is located at the part-structure outside accommodating space
It is recycled in accommodating space, avoids camera that from can not normally recycling the damage of generation.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without having to pay creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is one of the flow diagram of mode switching method of camera of the embodiment of the present invention;
Fig. 2 is the two of the flow diagram of the mode switching method of the camera of the embodiment of the present invention;
Fig. 3 is one of the structural schematic diagram of electronic equipment of the embodiment of the present invention;
Fig. 4 is the second structural representation of the electronic equipment of the embodiment of the present invention;
Fig. 5 is the third structural representation of the electronic equipment of the embodiment of the present invention;
Fig. 6 is the four of the structural schematic diagram of the electronic equipment of the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the electronic equipment of another embodiment of the present invention.
Specific implementation mode
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 describes, 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, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, the mode switching method of the camera of the embodiment of the present invention, is applied to an electronic equipment, the electricity
An at least camera for sub- equipment is provided with first mode and second mode, wherein the camera in the first mode is received
It is contained in the accommodating space in the electronic equipment, at least partly structure of the camera in the second mode is positioned at described
Outside accommodating space, the method includes:
Step 101, in the case where the camera is in the second mode, the state ginseng of the electronic equipment is obtained
Number, the state parameter include information about power and/or abnormal feedback information, and the exception feedback information is used to indicate the electronics
Equipment is with the presence or absence of abnormal.
Here, state parameter can be the information about power for the remaining capacity for indicating the electronic equipment;And/or instruction electricity
Sub- equipment can be used in auxiliary electronic equipment and understand taking the photograph for its own with the presence or absence of abnormal abnormal feedback information, the state parameter
As whether head is in abnormal conditions, such as crash or low battery.In this step, electronic equipment is in the second mould in its camera
In the case of formula, by obtaining the state parameter, next step is executed.
Step 102, in the case where the state parameter meets preset condition, the camera is switched to described first
Pattern.
Here, preset condition is promptly to recycle condition for the pre-set camera of state parameter, for judging camera shooting
Head needs the scene promptly recycled.In this step, in the case where the state parameter that step 101 is got meets preset condition,
Camera is switched into first mode in time, i.e., camera is located at the part-structure outside accommodating space is recycled to accommodating space
It is interior.
In this way, through the above steps 101 and step 102, electronic equipment pass through the case where camera is in second mode
Under, its state parameter is obtained, to understand the application scenarios of camera, thus in the case where state parameter meets preset condition,
The camera is switched into first mode in time so that the part-structure that camera is located at outside accommodating space is recycled to accommodating space
It is interior, avoid camera that from can not normally recycling the damage of generation.
Wherein, after step 102, the method further includes:
When being in the first mode in the camera, and receiving the instruction for switching the camera mode, obtain
The working condition of the camera and correlation module for switching the camera mode;
If the working condition indicates operation irregularity, reset reset process is carried out to the camera or correlation module.
Here, by being in first mode in camera, and receive switching camera mode instruction when, get
The working condition of the camera and correlation module for switching the camera mode, it is thus understood that the camera and/or the phase
After closing module operation irregularity, reset resetting will be carried out to the camera and/or correlation module of operation irregularity, camera is avoided to visit
After going out accommodating space, due to the operation irregularity of the camera and/or correlation module causes camera that can not be recovered to accommodating space
It damages.
Wherein, the correlation module for switching the camera mode may include:The instruction of switching camera mode is executed,
Recycle the module of camera;The module for obtaining state parameter and being compared with preset condition;Generate the switching command of camera mode
Module etc..
In embodiments of the present invention, on the one hand, the state parameter is the electricity letter for the remaining capacity for indicating electronic equipment
Breath, in this way, electronic equipment before remaining capacity can not support recycling video camera, can in time will according to the information about power
Video camera recycles.
For example, the information about power is battery dump energy, preset condition is that battery dump energy is less than recycling power threshold.
In this way, electronic equipment can get battery dump energy in real time in the case where camera is in second mode, and by its
With the recycling power threshold of preset condition, if once battery dump energy be less than the recycling power threshold, just switch camera extremely
First mode realizes the timely recycling of camera.
However, it should be appreciated that, with usage time aging can occur for the battery of electronic equipment, and same electricity is supported
Standby time will also change.It is cut according to above-mentioned battery dump energy and the mode for recycling power threshold to determine
The opportunity of camera mode is changed, there are large errors.Preferably, therefore, the information about power is standby time;
As shown in Fig. 2, in step 101, the step of the state parameter for obtaining the electronic equipment, including:
Step 201, the current residual electricity and ageing state data of the battery of the electronic equipment, the aging shape are obtained
State data include the charge and discharge number of the battery.
In this step, by getting the current residual electricity and ageing state data of the battery of electronic equipment, to execute
In next step, the standby time for estimating the corresponding current residual electricity, to determine the switching time of camera mode.Wherein, aging
Status data includes but is not limited to the charge and discharge number of battery, can also include battery size, service life etc..
Step 202, the current residual electricity of the battery and ageing state data are substituted into the battery status being obtained ahead of time
In measurement model, the standby time for corresponding to the current residual electricity is obtained.
Here, with one the battery shape of standby time is determined for the remaining capacity for battery in advance in electronic equipment
State measurement model.In this step, the current residual electricity of battery that step 201 is got and ageing state data are substituted into the electricity
Pond state measurement model, it will be able to obtain corresponding to the standby time of the current residual electricity.
In this way, according to step 201 and step 202, electronic equipment can in the case where camera is in second mode,
Corresponding standby time is obtained in conjunction with the current residual electricity and ageing state data of battery, to be determined based on standby time
Accurately switching time, switching camera further realize the timely recycling of camera to first mode.
Optionally, the preset condition is that the standby time of the electronic equipment is less than the first preset duration;
Step 102, including:
When obtained standby time is less than first preset duration, the first switching command is generated;
In response to first switching command, the camera is switched to the first mode by drive motor.
In this way, passing through step 201 and step 202, obtain after battery dump energy can be supported standby time, can with it is pre-
If the first preset duration in condition compares in real time, once standby time is less than first preset duration, it will just generate first and cut
Change instruction;Later in response to first switching command, the camera of second mode is switched to first mode by drive motor, complete
At the recycling of camera.Due to combining the current residual electricity and ageing state of battery, mould will be more accurately determined
On the opportunity of formula switching, reduce switching error.
In this embodiment, optionally, the information about power be the electronic equipment main battery information about power or
The information about power of the reserve battery of camera described in person.
That is, when electronic equipment is the pattern switching for supporting video camera by main battery, then switch institute's foundation
Information about power be electronic equipment main battery information about power;It is exclusively used in supporting the standby of camera when electronic equipment is provided with
With battery, then information about power based on switching is the information about power of the reserve battery of camera.Certainly, it is provided with reserve battery
Electronic equipment, the reserve battery can also main battery not enough power supply with support camera mode switch after be powered.
It should also be appreciated that in the embodiment, in order to ensure the stability of battery status measurement model, optionally,
Before step 101, further include:
The battery information of the electronic equipment is substituted into and is preset in measurement model, the determination of model parameter is carried out;Wherein, institute
It includes multiple battery service lives to state battery information, and when each electricity is corresponding standby under different battery service lives
It is long;
According to determining model parameter and the default measurement model, battery status measurement model is built.
Through the above steps, electronic equipment will include multiple battery service lives, and under different battery service lives
The battery information of the corresponding standby time of each electricity is updated to Optimized model parameter in default measurement model, determines specifically
Model parameter constructs the battery for determining standby time then according to identified model parameter and default measurement model
State measurement model increases the output stability of the battery status measurement model.
Assuming that electronic equipment is supported the pattern switching of video camera by main battery, which is then by primary electricity
Pond model and shipment batch acquire what the degradation status data of the battery of same shipment batch and model obtained, such as【It uses
1 year, the standby time of remaining capacity 20% was 1 hour】,【Using 1 year, the standby time of remaining capacity 10% was 30 minutes】,
【Using 2 years, the standby time of remaining capacity 20% was 50 minutes】,【Using 5 years, the standby time of remaining capacity 20% was 30
Minute】Etc..In this way, combining the model parameter for presetting measurement model and battery information progress depth optimization so that battery status
The output of measurement model is more stable.
In embodiments of the present invention, on the other hand, the state parameter is to indicate electronic equipment with the presence or absence of the different of exception
Normal feedback information.
Optionally, electronic equipment inquires central processor CPU by the fixed cycle, to determine whether CPU occurs
It is abnormal, to determine camera mode switching time.
Optionally, the preset condition is not receive the abnormal feedback information in the second preset duration;
Step 102, including:
In second preset duration after sending abnormal inquiry to CPU, the abnormal feedback information is not received, it is raw
When at the second switching command;
In response to second switching command, the camera is switched to the first mode by drive motor.
In this way, when sending inquiry message to CPU by the fixed cycle, but do not received in the second preset duration later
When to corresponding abnormal feedback information, the second switching command will be generated;Later in response to second switching command, drive motor,
The camera of second mode is switched into first mode, the recycling of camera is completed in the case where CPU is abnormal in time, subtracts
The damage of camera is lacked.
In addition, electronic equipment causes the irretrievable scene of camera extremely, it cannot be in the second preset duration except above-mentioned CPU
It is interior to be sent outside abnormal feedback information for abnormal inquiry, can also be that CPU has sent abnormal feedback information, but the exception feedback letter
Breath instruction electronic equipment exist it is abnormal, at this point, can equally generate switching command so that electronic equipment in response to the switching command,
Camera is switched to first mode by drive motor.
In conclusion the mode switching method of the camera of the embodiment of the present invention, by being in second mode in camera
In the case of, its state parameter is obtained, which is to include information about power and/or instruction electronic equipment with the presence or absence of abnormal
Abnormal feedback information, the application scenarios of camera are further then understood by the status information, to full in state parameter
In the case of sufficient preset condition, the camera is switched into first mode in time so that camera is located at the portion outside accommodating space
Separation structure is recycled in accommodating space, avoids camera that from can not normally recycling the damage of generation.
Fig. 3 is the block diagram of the electronic equipment of one embodiment of the invention.At least the one of electronic equipment 300 shown in Fig. 3 takes the photograph
As head is provided with first mode and second mode, wherein the camera in the first mode is accommodated in the electronic equipment
In interior accommodating space, at least partly structure of the camera in the second mode is located at outside the accommodating space, described
Electronic equipment 300 includes the first acquisition module 301 and handover module 302.
First acquisition module 301, in the case where the camera is in the second mode, obtaining the electronics
The state parameter of equipment;
Handover module 302, in the case where the state parameter meets preset condition, the camera to be switched to
The first mode;Wherein,
The state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate institute
Electronic equipment is stated with the presence or absence of abnormal.
On the basis of Fig. 3, optionally, as shown in figure 4, the electronic equipment 300 further includes:
Second acquisition module 303 for being in the first mode in the camera, and receives the switching camera shooting
When the instruction of head mould formula, the working condition of the camera and the correlation module for switching the camera mode is obtained;
Processing module 304, if indicate operation irregularity for the working condition, to the camera or correlation module into
Row resets reset process.
On the basis of Fig. 3, optionally, as shown in figure 5, the information about power is standby time;
First acquisition module 301 includes:
Acquisition submodule 3011, the current residual electricity and ageing state number of the battery for obtaining the electronic equipment
According to the ageing state data include the charge and discharge number of the battery;
Submodule 3012 is handled, for the current residual electricity of the battery and the substitution of ageing state data to be obtained ahead of time
Battery status measurement model in, obtain correspond to the current residual electricity standby time.
Optionally, the preset condition is that the standby time of the electronic equipment is less than the first preset duration;
The handover module 302 includes:
First generates submodule 3021, for when obtained standby time is less than first preset duration, generating the
One switching command;
First switching submodule 3022, in response to first switching command, drive motor to cut the camera
Shift to the first mode.
Optionally, the information about power is the information about power of the main battery of the electronic equipment or the camera
The information about power of reserve battery.
Optionally, the electronic equipment 300 further includes:
Determining module 305 is preset for substituting into the battery information of the electronic equipment in measurement model, and model ginseng is carried out
Several determinations;Wherein, the battery information includes multiple battery service lives, and each electricity under different battery service lives
Measure corresponding standby time;
Module 306 is built, for according to determining model parameter and the default measurement model, structure battery status to measure
Model.
On the basis of Fig. 3, optionally, as shown in fig. 6, the preset condition is not received in the second preset duration
The exception feedback information;
The handover module 302 includes:
Second generates submodule 3023, in second preset duration after sending abnormal inquiry to CPU, not connecing
When receiving the abnormal feedback information, the second switching command is generated;
Second switching submodule 3024, in response to second switching command, drive motor to cut the camera
Shift to the first mode.
Electronic equipment 300 can realize each process that electronic equipment is realized in the embodiment of the method for Fig. 1 and Fig. 2, to keep away
Exempt to repeat, which is not described herein again.The electronic equipment of the embodiment of the present invention is by the case where camera is in second mode, obtaining
Its state parameter is taken, which is the information about power or instruction electronic equipment for the remaining capacity for indicating electronic equipment
The abnormal feedback informations of CPU exceptions further understands the application scenarios of camera, in state parameter by the status information
In the case of meeting preset condition, the camera is switched into first mode in time so that camera is located at outside accommodating space
Part-structure is recycled in accommodating space, avoids camera that from can not normally recycling the damage of generation.
The hardware architecture diagram of Fig. 7 a kind of electronic equipment of each embodiment to realize the present invention, the electronic equipment 700
Including but not limited to:Radio frequency unit 701, audio output unit 703, input unit 704, sensor 705, is shown network module 702
Show unit 706, user input unit 707, interface unit 708, memory 709, processor 710, power supply 711 and camera
712 equal components.Wherein, camera 712 is provided with first mode and second mode, and the camera in first mode is accommodated in electricity
In accommodating space in sub- equipment, at least partly structure of the camera in second mode is located at outside accommodating space.This field
Technical staff is appreciated that electronic devices structure shown in Fig. 7 does not constitute the restriction to electronic equipment, and electronic equipment can be with
Including than illustrating more or fewer components, either combining certain components or different components arrangement.In the embodiment of the present invention
In, electronic equipment include but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device,
And pedometer etc..
Wherein, processor 710, in the case where the camera is in the second mode, obtaining the electronics
The state parameter of equipment;In the case where the state parameter meets preset condition, the camera is switched to described first
Pattern;Wherein, the state parameter is information about power, and the information about power is used to indicate the remaining capacity of the electronic equipment
's;Or the state parameter is abnormal feedback information, the exception feedback information is used to indicate the center of the electronic equipment
Processor CPU is abnormal.
As it can be seen that the electronic equipment is by the case where camera is in second mode, obtaining its state parameter, the state
Parameter includes that information about power and/or abnormal feedback information, the exception feedback information are used to indicate the electronic equipment and whether there is
It is abnormal, the application scenarios of camera are further then understood by the status information, to meeting preset condition in state parameter
In the case of, the camera is switched into first mode in time so that camera is located at the recycling of the part-structure outside accommodating space
To accommodating space, avoid camera that from can not normally recycling the damage of generation.
It should be understood that the embodiment of the present invention in, radio frequency unit 701 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 710 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by radio communication system and network and other set
Standby communication.
Electronic equipment has provided wireless broadband internet to the user by network module 702 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 703 can receive radio frequency unit 701 or network module 702 or in memory 709
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 703 can also provide and electricity
The relevant audio output of specific function that sub- equipment 700 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 703 includes loud speaker, buzzer and receiver etc..
Input unit 704 is for receiving audio or video signal.Input unit 704 may include graphics processor
(Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 706.Through graphics processor 7041, treated that picture frame can be deposited
Storage is sent in memory 709 (or other storage mediums) or via radio frequency unit 701 or network module 702.Mike
Wind 7042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 701 by being converted in the case of telephone calling model.
Electronic equipment 700 further includes at least one sensor 705, 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 7061, and proximity sensor can close when electronic equipment 700 is moved in one's ear
Display panel 7061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify electronic equipment posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 705 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 706 is for showing information input by user or being supplied to the information of user.Display unit 706 can wrap
Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 7061.
User input unit 707 can be used for receiving the number or character information of input, and generate the use with electronic equipment
Family is arranged and the related key signals input of function control.Specifically, user input unit 707 include touch panel 7071 and
Other input equipments 7072.Touch panel 7071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 7071 or in touch panel 7071
Neighbouring operation).Touch panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and 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 710, receiving area
It manages the order that device 710 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 7071.In addition to touch panel 7071, user input unit 707 can also include other input equipments
7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 7071 can be covered on display panel 7061, when touch panel 7071 is detected at it
On or near touch operation after, send processor 710 to determine the type of touch event, be followed by subsequent processing device 710 according to touch
The type for touching event provides corresponding visual output on display panel 7061.Although in the figure 7, touch panel 7071 and display
Panel 7061 is to realize the function that outputs and inputs of electronic equipment as two independent components, but in some embodiments
In, can be integrated by touch panel 7071 and display panel 7061 and realize the function that outputs and inputs of electronic equipment, it is specific this
Place does not limit.
Interface unit 708 is the interface that external device (ED) is connect with electronic equipment 700.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 708 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 electronic equipment 700 or can be used in 700 He of electronic equipment
Transmission data between external device (ED).
Memory 709 can be used for storing software program and various data.Memory 709 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 709 may include high-speed random access memory, 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 710 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection
A part by running or execute the software program and/or module that are stored in memory 709, and calls and is stored in storage
Data in device 709 execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.Place
Reason device 710 may include one or more processing units;Preferably, processor 710 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 710.
Electronic equipment 700 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711
Can be logically contiguous by power-supply management system and processor 710, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, electronic equipment 700 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of electronic equipment, including processor, memory and is stored in memory
Computer program that is upper and can running on the processor, the computer program realize above-mentioned camera when being executed by processor
Mode switching method embodiment each process, and identical technique effect can be reached, it is no longer superfluous here to avoid repeating
It states.
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 mistake of the mode switching method embodiment of above-mentioned camera when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only 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 this
There is also other identical elements in the process of element, method, 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station 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 in 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 the protection of the present invention.
Claims (12)
1. a kind of mode switching method of camera, is applied to an electronic equipment, an at least camera for the electronic equipment is set
It is equipped with first mode and second mode, wherein the camera in the first mode is accommodated in the appearance in the electronic equipment
In between emptying, at least partly structure of the camera in the second mode is located at outside the accommodating space, which is characterized in that
The method includes:
In the case where the camera is in the second mode, the state parameter of the electronic equipment is obtained;
In the case where the state parameter meets preset condition, the camera is switched into the first mode;
Wherein, the state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate institute
Electronic equipment is stated with the presence or absence of abnormal.
2. the mode switching method of camera according to claim 1, which is characterized in that set in the acquisition electronics
After the step of standby state parameter, the method further includes:
When being in the first mode in the camera, and receiving the instruction for switching the camera mode, described in acquisition
The working condition of camera and correlation module for switching the camera mode;
If the working condition indicates operation irregularity, reset reset process is carried out to the camera or correlation module.
3. the mode switching method of camera according to claim 1, which is characterized in that when the information about power is standby
It is long;
The step of state parameter for obtaining the electronic equipment, including:
The current residual electricity and ageing state data of the battery of the electronic equipment are obtained, the ageing state data include institute
State the charge and discharge number of battery;
The current residual electricity of the battery and ageing state data are substituted into the battery status measurement model being obtained ahead of time, obtained
To the standby time of the correspondence current residual electricity.
4. the mode switching method of camera according to claim 3, which is characterized in that the preset condition is the electricity
The standby time of sub- equipment is less than the first preset duration;
It is described in the case where the state parameter meets preset condition, the camera is switched to the step of the first mode
Suddenly, including:
When obtained standby time is less than first preset duration, the first switching command is generated;
In response to first switching command, the camera is switched to the first mode by drive motor.
5. the mode switching method of camera according to claim 1, which is characterized in that the information about power is the electricity
The information about power of the reserve battery of the information about power of the main battery of sub- equipment or the camera.
6. the mode switching method of camera according to claim 1, which is characterized in that set in the acquisition electronics
Before the step of standby state parameter, further include:
The battery information of the electronic equipment is substituted into and is preset in measurement model, the determination of model parameter is carried out;Wherein, the electricity
Pond information includes multiple battery service lives, and the corresponding standby time of each electricity under different battery service lives;
According to determining model parameter and the default measurement model, battery status measurement model is built.
7. the mode switching method of camera according to claim 1, which is characterized in that the preset condition is second
The abnormal feedback information is not received in preset duration;
It is described in the case where the state parameter meets preset condition, the camera is switched to the step of the first mode
Suddenly, including:
In second preset duration after sending abnormal inquiry to CPU, when not receiving the abnormal feedback information, generate
Second switching command;
In response to second switching command, the camera is switched to the first mode by drive motor.
8. an at least camera for a kind of electronic equipment, the electronic equipment is provided with first mode and second mode, wherein place
It is accommodated in the accommodating space in the electronic equipment in the camera of the first mode, is in the camera shooting of the second mode
At least partly structure of head is located at outside the accommodating space, which is characterized in that the electronic equipment includes:
First acquisition module, in the case where the camera is in the second mode, obtaining the electronic equipment
State parameter;
Handover module, in the case where the state parameter meets preset condition, the camera to be switched to described
One pattern;Wherein,
The state parameter includes information about power and/or abnormal feedback information, and the exception feedback information is used to indicate the electricity
Sub- equipment is with the presence or absence of abnormal.
9. electronic equipment according to claim 8, which is characterized in that the electronic equipment further includes:
Second acquisition module for being in the first mode in the camera, and receives the switching camera mode
Instruction when, obtain the working condition of the camera and the correlation module for switching the camera mode;
Processing module resets the camera or correlation module if indicate operation irregularity for the working condition
Reset process.
10. electronic equipment according to claim 8, which is characterized in that the information about power is standby time;
First acquisition module includes:
Acquisition submodule, the current residual electricity and ageing state data of the battery for obtaining the electronic equipment are described old
Change the charge and discharge number that status data includes the battery;
Submodule is handled, for the current residual electricity of the battery and ageing state data to be substituted into the battery shape being obtained ahead of time
In state measurement model, the standby time for corresponding to the current residual electricity is obtained.
11. electronic equipment according to claim 10, which is characterized in that the preset condition is waiting for for the electronic equipment
Machine duration is less than the first preset duration;
The handover module includes:
First generates submodule, refers to for when obtained standby time is less than first preset duration, generating the first switching
It enables;
First switching submodule, in response to first switching command, drive motor to switch to the camera described
First mode.
12. a kind of electronic equipment, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 7 is realized when the computer program is executed by the processor
Any one of described in camera mode switching method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810762962.9A CN108810284B (en) | 2018-07-12 | 2018-07-12 | Mode switching method of camera and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810762962.9A CN108810284B (en) | 2018-07-12 | 2018-07-12 | Mode switching method of camera and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108810284A true CN108810284A (en) | 2018-11-13 |
CN108810284B CN108810284B (en) | 2021-01-29 |
Family
ID=64074961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810762962.9A Active CN108810284B (en) | 2018-07-12 | 2018-07-12 | Mode switching method of camera and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810284B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417966A (en) * | 2019-07-25 | 2019-11-05 | RealMe重庆移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN112597899A (en) * | 2020-12-24 | 2021-04-02 | 北京市商汤科技开发有限公司 | Behavior state detection method and device, electronic equipment and storage medium |
CN113687636A (en) * | 2021-08-23 | 2021-11-23 | 明度智云(浙江)科技有限公司 | Equipment management method, system and storage medium for industrial production |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580864A (en) * | 2015-01-21 | 2015-04-29 | 广东欧珀移动通信有限公司 | Resetting method and device for camera |
CN105229555A (en) * | 2013-05-31 | 2016-01-06 | 惠普发展公司,有限责任合伙企业 | The operation of mass-memory unit |
CN106094990A (en) * | 2016-06-12 | 2016-11-09 | 张帆 | The screen maximized electronic equipment of accounting and using method thereof |
WO2017075511A1 (en) * | 2015-10-30 | 2017-05-04 | Essential Products, Inc. | Camera integrated into a display |
CN106817540A (en) * | 2016-12-30 | 2017-06-09 | 广东欧珀移动通信有限公司 | A kind of camera control method and equipment |
CN106993125A (en) * | 2017-05-23 | 2017-07-28 | 维沃移动通信有限公司 | A kind of terminal device |
US20170302828A1 (en) * | 2013-03-14 | 2017-10-19 | Joergen Geerds | Camera system |
US20170318201A1 (en) * | 2015-10-30 | 2017-11-02 | Essential Products, Inc. | Apparatus and method to maximize the display area of a mobile device |
-
2018
- 2018-07-12 CN CN201810762962.9A patent/CN108810284B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170302828A1 (en) * | 2013-03-14 | 2017-10-19 | Joergen Geerds | Camera system |
CN105229555A (en) * | 2013-05-31 | 2016-01-06 | 惠普发展公司,有限责任合伙企业 | The operation of mass-memory unit |
CN104580864A (en) * | 2015-01-21 | 2015-04-29 | 广东欧珀移动通信有限公司 | Resetting method and device for camera |
WO2017075511A1 (en) * | 2015-10-30 | 2017-05-04 | Essential Products, Inc. | Camera integrated into a display |
US20170318201A1 (en) * | 2015-10-30 | 2017-11-02 | Essential Products, Inc. | Apparatus and method to maximize the display area of a mobile device |
CN106094990A (en) * | 2016-06-12 | 2016-11-09 | 张帆 | The screen maximized electronic equipment of accounting and using method thereof |
CN106817540A (en) * | 2016-12-30 | 2017-06-09 | 广东欧珀移动通信有限公司 | A kind of camera control method and equipment |
CN106993125A (en) * | 2017-05-23 | 2017-07-28 | 维沃移动通信有限公司 | A kind of terminal device |
Non-Patent Citations (1)
Title |
---|
搜狐: "OPPO Find X双轨潜望技术:跌落自动回收模块更安全", 《OPPO FIND X双轨潜望技术:跌落自动回收模块更安全》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417966A (en) * | 2019-07-25 | 2019-11-05 | RealMe重庆移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN110417966B (en) * | 2019-07-25 | 2021-10-19 | RealMe重庆移动通信有限公司 | Terminal control method, device, mobile terminal and storage medium |
CN112597899A (en) * | 2020-12-24 | 2021-04-02 | 北京市商汤科技开发有限公司 | Behavior state detection method and device, electronic equipment and storage medium |
CN113687636A (en) * | 2021-08-23 | 2021-11-23 | 明度智云(浙江)科技有限公司 | Equipment management method, system and storage medium for industrial production |
CN113687636B (en) * | 2021-08-23 | 2022-11-08 | 明度智云(浙江)科技有限公司 | Equipment management method, system and storage medium for industrial production |
Also Published As
Publication number | Publication date |
---|---|
CN108810284B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536411A (en) | A kind of method for controlling mobile terminal and mobile terminal | |
CN107800821B (en) | One kind preventing motor and shake sub-resonance method and mobile terminal | |
CN109445736A (en) | A kind of multi-screen display method and mobile terminal | |
CN108495029A (en) | A kind of photographic method and mobile terminal | |
CN110445984A (en) | A kind of shooting reminding method and electronic equipment | |
CN109271297A (en) | A kind of abnormal prompt method and mobile terminal | |
CN108469968A (en) | A kind of applied program processing method and mobile terminal | |
CN109743503A (en) | Reminding method and terminal | |
CN109145731A (en) | A kind of fingerprint identification method, device and mobile terminal | |
CN110365853A (en) | A kind of reminding method and electronic equipment | |
CN109885153A (en) | A kind of screen control method and mobile terminal | |
CN108512980A (en) | A kind of detection method and mobile terminal of mobile terminal | |
CN109388223A (en) | One kind putting out screen display method, apparatus and terminal | |
CN108810284A (en) | A kind of mode switching method and electronic equipment of camera | |
CN109379700A (en) | Localization method and mobile terminal | |
CN109144393A (en) | A kind of image display method and mobile terminal | |
CN109033912A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN108616650A (en) | A kind of dust removal method and mobile terminal | |
CN108718360A (en) | A kind of charging method and mobile terminal | |
CN108170310A (en) | A kind of touch screen control method and mobile terminal | |
CN107704334A (en) | A kind of SDK processing method and mobile terminal | |
CN108366166A (en) | A kind of operation method and mobile terminal of mobile terminal | |
CN108363914A (en) | Unlocked by fingerprint control method and device | |
CN108228357A (en) | A kind of memory method for cleaning and mobile terminal | |
CN109960557A (en) | A kind of display methods and terminal device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |