CN108259738A - Camera control method, equipment and electronic equipment - Google Patents
Camera control method, equipment and electronic equipment Download PDFInfo
- Publication number
- CN108259738A CN108259738A CN201711156473.0A CN201711156473A CN108259738A CN 108259738 A CN108259738 A CN 108259738A CN 201711156473 A CN201711156473 A CN 201711156473A CN 108259738 A CN108259738 A CN 108259738A
- Authority
- CN
- China
- Prior art keywords
- camera
- sample rate
- electronic equipment
- condition
- equipment
- 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
Links
Classifications
-
- 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
- H04N23/65—Control of camera operation in relation to power supply
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0287—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
- H04W52/029—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment reducing the clock frequency of the controller
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a kind of camera control method, equipment and electronic equipments.This method is applied to the electronic equipment with camera, including:Obtain the current working status of camera;It when camera is in opening, detects when meeting preset sample rate regularization condition, the first current sample rate of camera is adjusted to the second sample rate, wherein, sample rate regularization condition turns down condition including at least sample rate.According to the present invention it is possible to adaptively the sample rate of adjustment camera avoids influencing the performance of electronic equipment, promotes the usage experience of user to reduce power consumption.
Description
Technical field
The present invention relates to fields of communication technology, are set more particularly, to a kind of camera control method, equipment and electronics
It is standby.
Background technology
With mobile terminal intelligent development and popularize, camera become mobile terminal standard configuration.People are
Through getting used to being taken pictures by the camera of smart mobile phone, this kind of mobile terminal of tablet computer, image.Particularly, with increasing
The appearance of strong reality (AR) technology, the image data of external object is directly acquired by the camera of mobile terminal, utilizes offer
After the application program of augmented reality function is to the image data decoding of the external object, synthesize to obtain augmented reality with virtual image
Image is presented on by the display device of mobile terminal on corresponding human-computer interaction interface, provides the interaction of user's augmented reality
Experience.
But camera is in when opening for a long time, and electronic equipment energy consumption can be caused to increase, equipment heating, equipment occur
Phenomena such as hydraulic performance decline, affects the usage experience of user.
Therefore, it has been recognised by the inventors that it is necessary to above-mentioned problems of the prior art are improved.
Invention content
It is an object of the present invention to provide a kind of for controlling the new solution of camera.
According to the first aspect of the invention, a kind of control method of camera is provided, applied to the electricity with camera
Sub- equipment, including:
Obtain the current working status of camera;
When the camera is in opening, detects when meeting preset sample rate regularization condition, taken the photograph described
As the first current sample rate of head is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
Optionally, the sample rate turn down condition be when the camera is in opening in the first preset duration not
Preset equipment moving event occurs.
Optionally, the sample rate regularization condition further includes sample rate and condition is turned up.
Optionally, the sample rate be turned up condition be after the sample rate for turning down the camera in the second preset duration
The equipment moving event occurs.
Optionally, the method further includes:
It after the sample rate for turning down the camera, detects when meeting preset camera closedown condition, described in closing
Camera;
And/or
It when the camera is closed, detects when meeting preset camera unlocking condition, described in unlatching
Camera, and the sample rate of the camera is set as preset initial samples rate.
Optionally,
The camera closedown condition is not occurred in third preset duration after the sample rate for turning down the camera
The equipment moving event;
The camera unlocking condition be when the camera is closed in the 4th preset duration occur described in
Equipment moving event.
Optionally,
The equipment moving event is that the displacement of the electronic equipment is more than preset displacement threshold value.
Optionally,
The electronic equipment also has motion sensor;
The method further includes:
According to the signal that the motion sensor obtains, the displacement of the electronic equipment is obtained.
According to the second aspect of the invention, a kind of camera control device is provided, is set applied to the electronics with camera
It is standby, including:
State acquiring unit, for obtaining the current working status of camera
Sample rate adjustment unit, for when the camera is in opening, detecting and meeting preset sample rate
During regularization condition, the first current sample rate of the camera is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
According to the third aspect of the invention we, a kind of electronic equipment is provided, including:
Camera;
Memory, for storing executable instruction;
Processor for the control according to described instruction, runs the electronic equipment and performs such as the first aspect of the present invention
The camera control method of offer.
It was found by the inventors of the present invention that it in the prior art, when the camera of electronic equipment is in unlatching for a long time, can lead
Electronic equipment energy consumption is caused to increase, phenomena such as equipment heating, equipment performance decline occurs, affects the usage experience of user.This hair
The new solution for being used to control camera of bright offer, can be adaptive to adjust according to the working condition of acquired camera
The sample rate of whole camera reduces the power consumption of camera, saves the energy consumption of mobile phone, and mobile phone is avoided fever, hydraulic performance decline etc. occur
Phenomenon, while the picture quality presented is not influenced, promote the usage experience of user.Therefore, the technology of the invention to be realized is appointed
It is being engaged in either the technical problem to be solved is that those skilled in the art never expecting or it is not expected that, therefore the present invention is
A kind of new technical solution.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Description of the drawings
It is combined in the description and the attached drawing of a part for constitution instruction shows the embodiment of the present invention, and even
With its explanation together principle for explaining the present invention.
Fig. 1 is the block diagram of the example for the hardware configuration for showing the electronic equipment available for realizing the embodiment of the present invention.
Fig. 2 shows the flow charts of the camera control method of the embodiment of the present invention.
Fig. 3 shows the schematic diagram of the example of the camera control method of the embodiment of the present invention.
Fig. 4 shows the block diagram of the camera control device of the embodiment of the present invention.
Fig. 5 shows the block diagram of the electronic equipment of the embodiment of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should be noted that:Unless in addition have
Body illustrates that the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
It is illustrative to the description only actually of at least one exemplary embodiment below, is never used as to the present invention
And its application or any restrictions that use.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
In shown here and discussion all examples, any occurrence should be construed as merely illustrative, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need to that it is further discussed.
<Hardware configuration>
Fig. 1 is the block diagram for showing to realize the hardware configuration of the electronic equipment 1000 of the embodiment of the present invention.
Electronic equipment 1000 can be the mobile terminals such as mobile phone, tablet computer, palm PC.
As shown in Figure 1, electronic equipment 1000 can include processor 1100, memory 1200, interface arrangement 1300, communication
Device 1400, display device 1500, input unit 1600, output device 1700, photographic device 1800 etc..
Wherein, processor 1100 can be central processor CPU, Micro-processor MCV etc..Memory 1200 for example including
ROM (read-only memory), RAM (random access memory), hard disk nonvolatile memory etc..Interface arrangement 1300
Such as include USB interface, earphone interface.Communication device 1400 can for example carry out wired or wireless communication, can specifically wrap
Include Wifi communications, Bluetooth communication, 2G/3G/4G/5G communications etc..Display device 1500 is, for example, liquid crystal display, touch display screen
Deng.Input unit 1600 can include touch screen, keyboard, body-sensing input, microphone input voice messaging etc..Output device can be with
Loud speaker including exporting acoustic information etc..Photographic device 1800 includes one or more camera units for obtaining image input,
The camera unit can be camera etc..
Electronic equipment shown in FIG. 1 is merely illustrative and is in no way intended to the invention, its application, or uses
Any restrictions.Applied in the embodiment of the present invention, the memory 1200 of electronic equipment 1000 is for storing instruction, described
It instructs that the processor 1100 is controlled to be operated the camera to perform any one provided in the embodiment of the present invention
Control method.
It will be appreciated by those skilled in the art that although showing multiple devices to electronic equipment 1000 in Fig. 1,
The present invention can only relate to partial devices therein, for example, electronic equipment 1000 pertains only to processor 1100 and storage device
1200.Technical staff can instruct according to presently disclosed conceptual design.How control processor is operated for instruction, this is
It is known in the art that it therefore is not described in detail herein.
<Embodiment>
<Camera control method>
In the present embodiment, a kind of camera control method is provided, applied to the electronic equipment with camera.The electronics
Equipment can be mobile phone, tablet computer etc..In one example, which can be as shown in Figure 1.
The camera control method, as shown in Fig. 2, including step S2100 to S2200.
Step S2100 obtains the current working status of camera.
For the electronic equipment with camera, can be provided for example, by the operating system that electronic equipment is based on
, with camera relevant application interface obtain the current working status of camera.The current working status of camera includes
Opening and closed state.
Step S2200 when camera is in opening, detected when meeting preset sample rate regularization condition, will
The first current sample rate of camera is adjusted to the second sample rate,
Wherein, sample rate regularization condition turns down condition including at least sample rate.
The sample rate of camera is that camera samples the number for obtaining image data within the preset sampling period.Work as electronics
When the camera of equipment is in opening, external image data are obtained based on preset sample rate, it after the decoding will be corresponding
External image presentation will be in the display device of electronic equipment.
In the application scenarios of augmented reality, camera is based on after sample rate obtains external image data, using carrying
For augmented reality function application program to the image data decoding of the external object after, it is (such as empty with preset virtual image
Intend animation) synthesis obtain augmented reality image, then the application program by providing augmented reality function, based on preset rendering frame
Rate, rendering are presented in the display device of electronic equipment.
Inventor has found, reduces the sample rate of camera, can't influence finally to be presented on the display device of electronic equipment
On image rendering frame per second, that is, do not interfere with and picture quality on the display apparatus be presented.
For example, it is assumed that the first sample rate based on original camera:
The camera of 1 second inner electronic equipment obtains image data:A,B,C,D,E,F,G,H,I,J,K;
The virtual animation data of application program in 1 second:a,b,c,d,e,f,g,h,i,j,k;
The augmented reality image of synthesis is presented in inner electronic equipment within 1 second:
Aa,Bb,Cc,Dd,Ee,Ff,Gg,Hh,Ii,Jj,Kk;
It turns down as after the second sample rate:
The camera of 1 second inner electronic equipment obtains image data:A,B;
The virtual animation data of application program in 1 second:a,b,c,d,e,f,g,h,i,j,k
The augmented reality image of synthesis is presented in inner electronic equipment within 1 second:
Aa,Ab,Ac,Ad,Ae,Af,Ag,Ah,Ai,Aj,Bk。
As it can be seen that by when camera is opened, when detecting that meeting sample rate turns down condition, by camera it is current first
Sample rate is turned down as the second sample rate, and the external image data obtained based on the second sample rate are synthesized with virtual image, is obtained pair
The augmented reality image answered, it is to reduce the image data that camera obtains to reduce sample rate, can't influence what is finally presented
The rendering frame per second of augmented reality image does not interfere with the picture quality of the augmented reality image of presentation.
And the sample rate of camera is reduced, the working frequency of camera can be reduced, reduces the work consumption that camera is brought
Energy.Simultaneously, it is possible to reduce the image data that camera obtains correspondingly reduces the decoding process energy consumption of image data.
In the present embodiment, by the way that when camera is opened, when detecting that meeting sample rate turns down condition, camera is worked as
The first preceding sample rate is turned down as the second sample rate, under the premise of image rendering qualities are ensured, reduces the energy consumption of electronic equipment,
Phenomena such as avoiding the occurrence of equipment heating, equipment performance decline promotes the usage experience of user.
It should be understood that the first sample rate, the second sample rate can be according to concrete application scene or engineering experience values
Setting.
Specifically, sample rate turns down the application conditions that condition applies to reduce the working frequency of camera.It can basis
Specific application scenarios are configured.
For example, in certain application scenarios (such as augmented reality application scenarios), when electronic equipment moves, camera must be with
Certain sample rate works to obtain new image data in time, and when electronic equipment does not occur mobile, the figure that camera obtains
As data do not change, working frequency can be reduced.
Sample rate turn down condition can be do not occur in the first preset duration when the camera is in opening it is pre-
If equipment moving event.First preset duration can be historical experience value or experiment simulation in corresponding application scenarios
Value, for example, the first preset duration can be 3 seconds.
Specifically, it can start timer after obtaining camera and being in opening and carry out timing, by pre-setting
Monitoring module (such as electronic equipment operating system provide monitoring interface), monitor the state of electronic equipment, arrived in timing
Up to before the first preset duration, when detecting that preset equipment moving event occurs for electronic equipment, stop timer and count again
When, otherwise, after timing reaches the first preset duration, perform the step of subsequently turning down the sample rate of camera.
Specifically, equipment moving event is that mobile event occurs for characterization of electronic equipment, can be according to specific applied field
Scape is pre-set.
For example, the displacement that equipment moving event can be the electronic equipment is more than preset displacement threshold value.Wherein, this is pre-
If displacement threshold value can be historical experience value or experiment simulation value in corresponding application scenarios,
In one example, electronic equipment also has motion sensor.The signal that can be obtained according to motion sensor, is obtained
Take the displacement of electronic equipment.
The motion sensor is can be with the sensor of detection device motion state.
For example, usually there is gyroscope (also known as angular-rate sensor) or acceleration when electronic equipment is mobile phone, in mobile phone
This kind of motion sensor is counted, signal value of the mobile phone in three axis of X, Y, Z axis can be obtained by detection, with X, Y, Z signal value
It calculates or the displacement of characterization mobile phone, specific computational methods is not limited in the present embodiment.
During practical application, after the sample rate for the camera for turning down electronic equipment, since the transformation of application scenarios images
The sample rate of head mismatches scene after transformation, for example, electronic equipment moves, the sample rate of camera is too low to be obtained in time
Take the image data after scene change.
In the present embodiment, sample rate regularization condition can also include sample rate height-regulating condition.
After the sample rate detection for turning down camera, to when meeting sample rate condition be turned up, by camera it is current first
Sample rate is turned up as the second sample rate so that the sample rate of camera can match the transformation of application scenarios, obtain scene in time
Image data after transformation ensures the usage experience of user.
The application conditions that condition applies to improve the working frequency of camera are turned up in sample rate.It can be answered according to specific
It is configured with scene.
For example, in certain application scenarios (such as augmented reality application scenarios), in the sampling for the camera for turning down electronic equipment
After rate, user's mobile electronic device can cause extraneous scene changes, and the sample rate of camera should be turned up, to ensure to obtain electricity in time
New image data after sub- equipment movement.
Therefore, it is that occurrence of equipment is moved in the second preset duration after the sample rate for turning down camera that condition, which is turned up, in sample rate
Dynamic event.Second preset duration can be historical experience value or experiment simulation value in corresponding application scenarios, for example, second
Preset duration can be 3 seconds.
Specifically, it can start timer after the sample rate of camera is turned down and carry out timing, pass through pre-set prison
Module (such as the operating system of electronic equipment provide monitoring interface) is provided, monitors the state of electronic equipment, the is reached in timing
Before two preset durations, when detecting that preset equipment moving event occurs for electronic equipment, adopting for follow-up height-regulating camera is performed
Otherwise the step of sample rate, stops timer reclocking.
Equipment moving event is that mobile event occurs for characterization of electronic equipment, can be carried out according to specific application scenarios pre-
First set.The example of equipment moving event has been specifically described above, and details are not described herein.
In augmented reality application scenarios, after the sample rate of camera is turned down, the second preset duration inner electronic equipment hair
Generating apparatus moving event, it is the second sample rate that the first current sample rate of camera, which is turned up, is obtained based on the second sample rate
External image data are synthesized with virtual image, obtain corresponding new augmented reality image in time, ensure the augmented reality of user
Experience.
In practical applications, inventor has found that, if electronic equipment continues remains stationary (not moving), camera obtains
The image taken will not change, and close camera, have no effect on the augmented reality figure presented in the display device of electronic equipment
Picture.
For example, after camera is closed:
The last frame image data that camera obtains before closing:A;
The virtual animation data of application program in 1 second:a,b,c,d,e,f,g,h,i,j,k;
The augmented reality image of synthesis is presented in inner electronic equipment within 1 second:
Aa,Ab,Ac,Ad,Ae,Af,Ag,Ah,Ai,Aj,Ak。
As it can be seen that the last frame external image data obtained before being closed based on camera are synthesized with virtual image, obtain pair
The augmented reality image answered can't influence the picture quality of the augmented reality image presented.
Therefore, in the present embodiment, after the sample rate of camera is turned down, preset camera shooting can also be met detecting
During head closedown condition, camera is closed.The last frame external image data and virtual image obtained before being closed based on camera
Synthesis, obtains corresponding augmented reality image.The power consumption for the electronic equipment that camera is brought is preferably minimized, and avoids camera long
Phenomena such as equipment heating that time service is brought, equipment performance decline promotes the usage experience of user.
Specifically, camera closedown condition applies to close the application conditions of camera.It can be according to specific application
Scene is configured.
For example, camera closedown condition can be after the sample rate for turning down the camera in third preset duration not
The equipment moving event occurs.
Third preset duration can be historical experience value or experiment simulation value in corresponding application scenarios, for example,
Three preset durations can be 3 seconds.
Specifically, after the sample rate that camera can be turned down, start timer and carry out timing, pass through pre-set monitoring
Module (such as monitoring interface of the operating system offer of electronic equipment), monitors the state of electronic equipment, third is reached in timing
Before preset duration, when detecting that preset equipment moving event occurs for electronic equipment, stop timer reclocking, it is no
Then, after timing reaches third preset duration, camera is closed.
Equipment moving event is that mobile event occurs for characterization of electronic equipment, can be carried out according to specific application scenarios pre-
First set.The example of equipment moving event has been specifically described above, and details are not described herein.
During practical application, when the camera of electronic equipment is initially in closed state or is meeting camera closedown condition
After being closed by control, it may appear that application scenarios transformation needs to reopen the situation of camera.For example, when electronic equipment is sent out again
Raw movement, camera need to obtain the new external image after variation.
Therefore, in the present embodiment, when camera is closed, detect and meet preset camera open strip
During part, camera is opened, and the sample rate of camera is set as preset initial samples rate.
Initial samples rate can be pre-set according to the engineering experience under specific application scenarios or experiment simulation.
Camera unlocking condition applies to open the application conditions of camera.It can be carried out according to specific application scenarios
Setting.
For example, camera unlocking condition can be camera when being closed in the 4th preset duration occurrence of equipment
Moving event.4th preset duration can be historical experience value or experiment simulation value in corresponding application scenarios, for example,
Four preset durations can be 3 seconds.
Specifically, after determining that camera is closed, start timer and carry out timing, pass through pre-set monitoring module
(such as monitoring interface of the operating system offer of electronic equipment) monitors the state of electronic equipment, it is default to reach the 4th in timing
Before duration, when detecting that preset equipment moving event occurs for electronic equipment, open camera and sample rate is set, otherwise,
Stop timer reclocking.
Equipment moving event is that mobile event occurs for characterization of electronic equipment, can be carried out according to specific application scenarios pre-
First set.The example of equipment moving event has been specifically described above, and details are not described herein.
In augmented reality application scenarios, after closing camera, moved in the 4th preset duration inner electronic equipment occurrence of equipment
Dynamic event, opening camera and the sample rate for setting camera are initial samples rate, the extraneous figure obtained based on initial samples rate
Picture data are synthesized with virtual image, obtain corresponding new augmented reality image in time, ensure the augmented reality experience of user.
It should be understood that the words such as " first ", " second ", " third ", " the 4th " are only intended to distinguish in the present embodiment
The term of the same type of restriction, is easy to understand, and is not intended to limitation order priority or numerical values recited.
In addition, although the example in the present embodiment is mostly by taking the application in augmented reality scene as an example, it is not meant to
The application scenarios of the present embodiment are limited, the camera control method provided in the present embodiment can be adapted for any due to electronics
Equipment camera, which works long hours, brings electronic equipment hydraulic performance decline, influences the application scenarios of user experience.
<Example>
The camera control method provided in the present embodiment is provided below with reference to Fig. 3.
The electronic equipment of method application in this example is the mobile phone for having camera.In the present example it is assumed that first is default
Shi Changwei t1, the second preset duration are t2, and third preset duration is t3, and the 4th preset duration is t4.
The camera control method of this example includes:
Step S301 obtains the current state of the camera of mobile phone, when the camera of mobile phone is in opening, enters
Otherwise step S302, enters step S310;
Step S302 obtains the displacement of the mobile phone in t1, when displacement is more than preset displacement threshold value, enters step
Otherwise S303, enters step S304;
Step S303 restarts timer reclocking, enters step S302 later;
Step S304 turns down the current sample rate of camera, for example, the current sample rate of camera is the first sampling
Rate turns down second sample rate lower for sampling rate score, enters step S305 later;
Step S305 after the sample rate of camera is turned down, obtains the displacement of the mobile phone in t2, when displacement is more than preset
During displacement threshold value, S306 is entered step, otherwise, enters step S307;
The current sample rate of camera is turned up in step S306, for example, the current sample rate of camera is the first sampling
Rate is turned up to sample higher second sample rate of rate score, enters step S303 later;
Step S307 after the sample rate of camera is turned down, obtains the displacement of the mobile phone in t3, when displacement is more than preset
During displacement threshold value, S308 is entered step, otherwise enters step S309;
Step S308 restarts timer reclocking, enters step S305 later;
Step S309 closes camera, enters step S310 later;
Step S310 when camera is closed, obtains displacement of the mobile phone in t4, when displacement is more than preset position
When moving threshold value, S311 is entered step, otherwise, it is 312 to enter step;
Step S311 opens camera, and sets the sample rate of camera as initial samples rate, which can be with
It is configured according to concrete application demand, enters step S302 later;
Step S312 restarts timer reclocking, enters step S310 later.
In this example, can be judged by the displacement of mobile phone after practical application scenarios the sample rate of adjustment camera and
It opens, close, the adaptive power consumption for reducing camera saves the energy consumption of mobile phone, mobile phone avoided fever, hydraulic performance decline etc. occur existing
As, and ensure that camera can obtain external image data in time, promote user experience.
<Camera control device>
In the present embodiment, a kind of camera control device 4000 is also provided, applied to the electronic equipment with camera,
As shown in figure 4, including state acquiring unit 4100, sample rate adjustment unit 4200, it is arbitrary for implementing to provide in the present embodiment
One camera control method, details are not described herein.
Camera control device 4000, including:
State acquiring unit 4100, for obtaining the current working status of camera
Sample rate adjustment unit 4200, for when the camera is in opening, detecting and meeting preset adopt
During sample rate regularization condition, the first current sample rate of the camera is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
Optionally, the sample rate turn down condition be when the camera is in opening in the first preset duration not
Preset equipment moving event occurs.
Optionally, the sample rate regularization condition further includes sample rate and condition is turned up.
Optionally, the sample rate be turned up condition be after the sample rate for turning down the camera in the second preset duration
The equipment moving event occurs.
Optionally, the camera control device 4000 is additionally operable to:
It after the sample rate for turning down the camera, detects when meeting preset camera closedown condition, described in closing
Camera;
And/or
It when the camera is closed, detects when meeting preset camera unlocking condition, described in unlatching
Camera, and the sample rate of the camera is set as preset initial samples rate.
Optionally,
The camera closedown condition is not occurred in third preset duration after the sample rate for turning down the camera
The equipment moving event;
The camera unlocking condition be when the camera is closed in the 4th preset duration occur described in
Equipment moving event.
Optionally, it is more than preset displacement threshold value that the equipment moving event, which is the displacement of the electronic equipment,.
Optionally, the electronic equipment also has motion sensor;
The camera control device 4000 is additionally operable to:
According to the signal that the motion sensor obtains, the displacement of the electronic equipment is obtained.
In the present embodiment, camera control device 4000 can be disposed on the software program or hard in electronic equipment
Part module or the function module that electronic equipment is embedded in a manner of plug-in unit or download installation etc., can also be and pass through nothing
Peripheral apparatus of line or wired forms connection electronic equipment etc..
It will be appreciated by those skilled in the art that camera control device 4000 can be realized by various modes.For example,
Camera control device 4000 can be realized by instructing configuration processor.For example, instruction can be stored in the ROM, and
And when starting the device, instruction from ROM is read and camera control device 4000 is realized in programming device.It for example, can
Camera control device 4000 is cured in dedicated devices (such as ASIC).Camera control device 4000 can be divided into
They can be merged realization by mutually independent unit.Camera control device 4000 can be by above-mentioned each
One kind in kind of realization method is realized or can be by the group of two or more modes in above-mentioned various realization methods
It closes to realize.
<Electronic equipment>
In the present embodiment, a kind of electronic equipment is also provided, as shown in figure 5, including:
Camera 5100;
Memory 5200, for storing executable instruction;
Processor 5300 for the control according to described instruction, runs the electronic equipment and performs in the present embodiment and provide
The camera control method of any one, including:
Obtain the current working status of camera;
When the camera is in opening, detects when meeting preset sample rate regularization condition, taken the photograph described
As the first current sample rate of head is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
In the present embodiment, electronic equipment 5000 can be the mobile terminals such as mobile phone, tablet computer.A specific example
In, electronic equipment 1000 that electronic equipment 5000 can be as shown in Figure 1.
Attached drawing is had been combined above and describes the embodiment of the present invention, according to the present embodiment, provides a kind of control of camera
Method processed, equipment and electronic equipment, can be according to the working condition of acquired camera, the adaptive sampling for adjusting camera
Rate reduces the power consumption of camera, saves the energy consumption of mobile phone, mobile phone is avoided phenomena such as fever, hydraulic performance decline occur, while from not influencing
The picture quality of presentation promotes the usage experience of user.
The present invention can be system, method and/or computer program product.Computer program product can include computer
Readable storage medium storing program for executing, containing for make processor realize various aspects of the invention computer-readable program instructions.
Computer readable storage medium can keep and store to perform the tangible of the instruction that uses of equipment by instruction
Equipment.Computer readable storage medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium
More specific example (non exhaustive list) includes:Portable computer diskette, random access memory (RAM), read-only is deposited hard disk
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable
Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
It is stored with the punch card of instruction or groove internal projection structure and above-mentioned any appropriate combination.Calculating used herein above
Machine readable storage medium storing program for executing is not interpreted instantaneous signal in itself, and the electromagnetic wave of such as radio wave or other Free propagations leads to
It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire
Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment downloads to outer computer or outer by network, such as internet, LAN, wide area network and/or wireless network
Portion's storage device.Network can include copper transmission cable, optical fiber transmission, wireless transmission, router, fire wall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
For perform the computer program instructions that operate of the present invention can be assembly instruction, instruction set architecture (ISA) instruction,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages
Arbitrarily combine the source code or object code write, the programming language includes the programming language of object-oriented-such as
Procedural programming languages-such as " C " language or similar programming language of Smalltalk, C++ etc. and routine.Computer
Readable program instructions can be performed fully, partly perform on the user computer, is only as one on the user computer
Vertical software package performs, part performs or on the remote computer completely in remote computer on the user computer for part
Or it is performed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind
Include LAN (LAN) or wide area network (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as profit
Pass through Internet connection with ISP).In some embodiments, by using computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to fulfill each side of the present invention
Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/
Or block diagram describes various aspects of the invention.It should be appreciated that each box and flow chart of flow chart and/or block diagram and/
Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special purpose computer or other programmable datas
The processor of processing unit, so as to produce a kind of machine so that these instructions are passing through computer or other programmable datas
When the processor of processing unit performs, produce and realize work(specified in one or more of flow chart and/or block diagram box
The device of energy/action.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, so as to be stored with instruction
Computer-readable medium then includes a manufacture, including realizing in one or more of flow chart and/or block diagram box
The instruction of the various aspects of defined function/action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other
In equipment so that series of operation steps are performed on computer, other programmable data processing units or miscellaneous equipment, with production
Raw computer implemented process, so that performed on computer, other programmable data processing units or miscellaneous equipment
Function/action specified in one or more of flow chart and/or block diagram box is realized in instruction.
Flow chart and block diagram in attached drawing show the system, method and computer journey of multiple embodiments according to the present invention
Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation
One module of table, program segment or a part for instruction, the module, program segment or a part for instruction include one or more use
In the executable instruction of logic function as defined in realization.In some implementations as replacements, the function of being marked in box
It can be occurred with being different from the sequence marked in attached drawing.For example, two continuous boxes can essentially be held substantially in parallel
Row, they can also be performed in the opposite order sometimes, this is depended on the functions involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and/or flow chart can use function or dynamic as defined in performing
The dedicated hardware based system made is realized or can be realized with the combination of specialized hardware and computer instruction.It is right
It is well known that, realized for those skilled in the art by hardware mode, realized by software mode and by software and
It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
Best explain each embodiment principle, practical application or to the technological improvement in market or make the art its
Its those of ordinary skill is understood that each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.
Claims (10)
1. a kind of control method of camera, applied to the electronic equipment with camera, including:
Obtain the current working status of camera;
When the camera is in opening, detect when meeting preset sample rate regularization condition, by the camera
The first current sample rate is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
2. according to the method described in claim 1, it is characterized in that,
The sample rate turn down condition be do not occur in the first preset duration when the camera is in opening it is preset
Equipment moving event.
3. according to the method described in claim 2, it is characterized in that,
The sample rate regularization condition further includes sample rate and condition is turned up.
4. according to the method described in claim 3, it is characterized in that,
Condition, which is turned up, in the sample rate is set described in generation in the second preset duration after the sample rate for turning down the camera
Standby moving event.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
After the sample rate for turning down the camera, detect when meeting preset camera closedown condition, close the camera shooting
Head;
And/or
When the camera is closed, detects when meeting preset camera unlocking condition, open the camera shooting
Head, and the sample rate of the camera is set as preset initial samples rate.
6. according to the method described in claim 5, it is characterized in that,
The camera closedown condition be do not occur in third preset duration after the sample rate for turning down the camera it is described
Equipment moving event;
The camera unlocking condition is that when being closed in the 4th preset duration the equipment occurs for the camera
Moving event.
7. according to the method described in claim 2, it is characterized in that,
The equipment moving event is that the displacement of the electronic equipment is more than preset displacement threshold value.
8. the method according to the description of claim 7 is characterized in that
The electronic equipment also has motion sensor;
The method further includes:
According to the signal that the motion sensor obtains, the displacement of the electronic equipment is obtained.
9. a kind of camera control device, applied to the electronic equipment with camera, which is characterized in that including:
State acquiring unit, for obtaining the current working status of camera
Sample rate adjustment unit meets preset sample rate adjustment for when the camera is in opening, detecting
During condition, the first current sample rate of the camera is adjusted to the second sample rate,
Wherein, the sample rate regularization condition turns down condition including at least sample rate.
10. a kind of electronic equipment, which is characterized in that including:
Camera;
Memory, for storing executable instruction;
Processor for the control according to described instruction, runs camera shooting of the electronic equipment execution as described in claim 1-8
Head controlling method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711156473.0A CN108259738A (en) | 2017-11-20 | 2017-11-20 | Camera control method, equipment and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711156473.0A CN108259738A (en) | 2017-11-20 | 2017-11-20 | Camera control method, equipment and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108259738A true CN108259738A (en) | 2018-07-06 |
Family
ID=62722054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711156473.0A Pending CN108259738A (en) | 2017-11-20 | 2017-11-20 | Camera control method, equipment and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108259738A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408128A (en) * | 2018-11-10 | 2019-03-01 | 歌尔科技有限公司 | Split type AR equipment communication means and AR equipment |
CN112333382A (en) * | 2020-10-14 | 2021-02-05 | 维沃移动通信(杭州)有限公司 | Shooting method and device and electronic equipment |
CN115543061A (en) * | 2022-04-12 | 2022-12-30 | 荣耀终端有限公司 | Power consumption control method and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789313A (en) * | 2012-03-19 | 2012-11-21 | 乾行讯科(北京)科技有限公司 | User interaction system and method |
US20150229395A1 (en) * | 2012-02-09 | 2015-08-13 | N2 Imaging Systems, LLC | Intrapersonal data communication systems |
CN104869211A (en) * | 2014-02-20 | 2015-08-26 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105430272A (en) * | 2015-12-16 | 2016-03-23 | 深圳市金立通信设备有限公司 | Method for reducing power consumption of camera and terminal |
CN105704478A (en) * | 2015-08-31 | 2016-06-22 | 深圳超多维光电子有限公司 | Stereoscopic display method, device and electronic equipment used for virtual and reality scene |
CN105847680A (en) * | 2016-03-28 | 2016-08-10 | 维沃移动通信有限公司 | Camera power consumption control method and mobile terminal |
CN106843456A (en) * | 2016-08-16 | 2017-06-13 | 深圳超多维光电子有限公司 | A kind of display methods, device and virtual reality device followed the trail of based on attitude |
CN106873778A (en) * | 2017-01-23 | 2017-06-20 | 深圳超多维科技有限公司 | A kind of progress control method of application, device and virtual reality device |
-
2017
- 2017-11-20 CN CN201711156473.0A patent/CN108259738A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150229395A1 (en) * | 2012-02-09 | 2015-08-13 | N2 Imaging Systems, LLC | Intrapersonal data communication systems |
CN102789313A (en) * | 2012-03-19 | 2012-11-21 | 乾行讯科(北京)科技有限公司 | User interaction system and method |
WO2013139181A1 (en) * | 2012-03-19 | 2013-09-26 | 乾行讯科(北京)科技有限公司 | User interaction system and method |
CN104869211A (en) * | 2014-02-20 | 2015-08-26 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105704478A (en) * | 2015-08-31 | 2016-06-22 | 深圳超多维光电子有限公司 | Stereoscopic display method, device and electronic equipment used for virtual and reality scene |
CN105430272A (en) * | 2015-12-16 | 2016-03-23 | 深圳市金立通信设备有限公司 | Method for reducing power consumption of camera and terminal |
CN105847680A (en) * | 2016-03-28 | 2016-08-10 | 维沃移动通信有限公司 | Camera power consumption control method and mobile terminal |
CN106843456A (en) * | 2016-08-16 | 2017-06-13 | 深圳超多维光电子有限公司 | A kind of display methods, device and virtual reality device followed the trail of based on attitude |
CN106873778A (en) * | 2017-01-23 | 2017-06-20 | 深圳超多维科技有限公司 | A kind of progress control method of application, device and virtual reality device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408128A (en) * | 2018-11-10 | 2019-03-01 | 歌尔科技有限公司 | Split type AR equipment communication means and AR equipment |
CN112333382A (en) * | 2020-10-14 | 2021-02-05 | 维沃移动通信(杭州)有限公司 | Shooting method and device and electronic equipment |
WO2022078241A1 (en) * | 2020-10-14 | 2022-04-21 | 维沃移动通信(杭州)有限公司 | Photographing method and apparatus, and electronic device |
CN115543061A (en) * | 2022-04-12 | 2022-12-30 | 荣耀终端有限公司 | Power consumption control method and electronic equipment |
CN115543061B (en) * | 2022-04-12 | 2023-11-07 | 荣耀终端有限公司 | Power consumption control method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7038829B2 (en) | Face recognition methods and devices, electronic devices and storage media | |
EP3089402B1 (en) | Method and apparatus for grouping smart device in smart home system | |
EP3055756B1 (en) | Automatic sending of an electronic message to a caller indicating a called user will return the incoming call in a time frame corresponding to a numerical count of detected user gesture(s) | |
JP7064593B2 (en) | Target object processing methods, devices, electronic devices and storage media | |
CN108388142A (en) | Methods, devices and systems for controlling home equipment | |
CN104780338A (en) | Method and electronic equipment for loading expression effect animation in instant video | |
CN106791893A (en) | Net cast method and device | |
CN108702480A (en) | Electronic equipment and method for driving its display | |
WO2020114047A1 (en) | Image style transfer and data storage method and apparatus, and electronic device | |
US20170055221A1 (en) | Method and apparatus for starting energy saving mode | |
CN110475065A (en) | Method, apparatus, electronic equipment and the storage medium of image procossing | |
CN108259738A (en) | Camera control method, equipment and electronic equipment | |
CN107871494B (en) | Voice synthesis method and device and electronic equipment | |
CN110909815A (en) | Neural network training method, neural network training device, neural network processing device, neural network training device, image processing device and electronic equipment | |
CN112130940B (en) | Terminal control method and device, storage medium and electronic equipment | |
CN107908447A (en) | Using switching method, equipment and virtual reality device | |
JP2022518520A (en) | Image deformation control method, equipment and hardware equipment | |
CN107995676A (en) | terminal control method and device | |
CN108073572A (en) | Information processing method and its device, simultaneous interpretation system | |
CN106095544B (en) | Central processing unit control method and device | |
KR20200094732A (en) | Method and system for classifying time series data | |
CN107508573A (en) | Crystal oscillator oscillation frequency correction method and device | |
US20170308397A1 (en) | Method and apparatus for managing task of instant messaging application | |
CN112530205A (en) | Airport parking apron airplane state detection method and device | |
CN108364635A (en) | A kind of method and apparatus of speech recognition |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200601 Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 100083, Beijing, Haidian District, Cheng Fu Road, No. 28, A building, block 12 Applicant before: UC MOBILE Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |