CN110312082A - Camera arrangement and its flash lamp control method, mobile terminal and storage medium - Google Patents
Camera arrangement and its flash lamp control method, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN110312082A CN110312082A CN201910628000.9A CN201910628000A CN110312082A CN 110312082 A CN110312082 A CN 110312082A CN 201910628000 A CN201910628000 A CN 201910628000A CN 110312082 A CN110312082 A CN 110312082A
- Authority
- CN
- China
- Prior art keywords
- flash lamp
- camera arrangement
- lamp control
- flash
- control method
- 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
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000005611 electricity Effects 0.000 claims description 39
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 210000003205 muscle Anatomy 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 239000000047 product Substances 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
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
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- 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/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of flash lamp control methods of camera arrangement, comprising the following steps: obtains the status information of camera arrangement;According to the state information, the flash lamp of the camera arrangement is controlled.The invention also discloses a kind of camera arrangement, mobile terminal and computer readable storage mediums.The present invention is during camera arrangement is taken pictures, by the status information for obtaining camera arrangement, control the flash lamp of the camera arrangement according to the state information in turn, so flash lamp can be controlled according to status information, realize flash lamp usage mode different under different conditions information, flash lamp flashes flexibly, easy to use.
Description
Technical field
The present invention relates to field of camera technology more particularly to a kind of camera arrangement and its flash lamp control method, movements eventually
End and storage medium.
Background technique
With the development of science and technology, camera arrangement is provided on more and more electronic products now, such as mobile phone, bracelet, plate
Computer etc., these products have the characteristics that easy to carry, therefore by consumers, going out whenever and wherever possible can be electric with these
Sub- product is taken pictures.
In order to guarantee effect of taking pictures, especially guarantees that night takes pictures effect, be typically provided flash lamp on camera arrangement and mended
Light, flash lamp at work, needs excessively high electric current, electric at this time if electronic product not enough power supply, is also flashed using flash lamp
The voltage in source is very low, when the load current of system becomes larger suddenly, will cause system voltage and generates certain pressure drop, finally make
It obtains system voltage and reaches the under-voltage protection limit, so that system reboot, therefore the setting of existing camera arrangement is when the power is insufficient, it cannot
Carry out flash lamp polishing operation.
The condition that existing camera arrangement setting flash lamp flashes is to need to judge electricity, when low battery, then does not allow to beat
It dodges.However in use, inventor has found that above scheme mode at least has following technical problem: in camera arrangement electricity
User cannot take pictures at night when low, can just make the normal work of flash lamp when only etc. being charged to certain electricity
Make, it is inconvenient for use.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of camera arrangement and its flash lamp control methods, mobile terminal and storage
Medium, it is intended to solve existing camera arrangement and not have to take pictures using flash lamp in the case where not enough power supply, and need to wait until to charge
It could be taken pictures using flash lamp when to certain electricity, the technical problem of use and its inconvenience.
To achieve the above object, the present invention provides a kind of flash lamp control method of camera arrangement, the camera arrangement
Flash lamp control method the following steps are included:
Obtain the status information of camera arrangement;
According to the state information, the flash lamp of the camera arrangement is controlled.
Optionally, it is described according to the state information, the step of controlling the flash lamp of the camera arrangement includes:
Judge whether the status information meets flash lamp and flash condition;
The status information meet the flash lamp flash condition when, take pictures dress described in control according to the state information
The flash lamp set.
Optionally, it is described judge the status information whether meet flash lamp flash condition the step of include:
Judge whether the current electric quantity of camera arrangement is greater than or equal to preset value, wherein the status information includes current
Electricity;
When the current electric quantity is greater than or equal to the preset value, determine that the status information meets flash lamp and flashes item
Part.
Optionally, it is described judge the status information whether meet flash lamp flash condition the step of further include:
When the current electric quantity is less than the preset value, whether the charging interface state for detecting the camera arrangement is connection
State, wherein the status information further includes charging interface state;
When the charging interface state is connection status, determine that the status information meets flash lamp and flashes condition.
Optionally, the flash lamp control method of the camera arrangement further includes including:
When the state of the charging interface is connection status, judge whether the connection status is charged state, wherein institute
Stating status information further includes charged state;
When the connection status is charged state, determine that the status information meets flash lamp and flashes condition.
Optionally, the flash lamp control method of the camera arrangement further include:
When the current electric quantity of the camera arrangement is less than default electricity, electricity prompting message is exported.
Optionally, the flash lamp control method of the camera arrangement further include:
Detect photographing operation;
Alternatively, executing the shape for obtaining camera arrangement when detecting photographing operation and ambient brightness and being less than predetermined luminance
The step of state information.
To achieve the goals above, the present invention also provides a kind of camera arrangement, the camera arrangement includes: memory, place
It manages device and is stored in the flash lamp control program that can be run on the memory and on the processor, the flash lamp control
Program realizes each step of the flash lamp control method of camera arrangement as described above when being executed by the processor.
The present invention also provides a kind of mobile terminal, the mobile terminal includes camera arrangement, memory, processor and storage
On the memory and the flash lamp control program that can run on the processor, flash lamp control program are described
Processor realizes each step of the flash lamp control method of camera arrangement as described above when executing.
In addition, being stored on the computer readable storage medium the present invention also provides a kind of computer readable storage medium
There is flash lamp to control program, the flash lamp control program realizes the flash of light of camera arrangement as described above when being executed by processor
Each step of lamp control method.
A kind of camera arrangement and its flash lamp control method, mobile terminal and storage medium that the embodiment of the present invention proposes,
During camera arrangement is taken pictures, by obtaining the status information of camera arrangement, and then according to the state information to control
The flash lamp of camera arrangement is stated, flash lamp can be so controlled according to status information, is realized different under different conditions information
Flash lamp usage mode, flash lamp flashes flexibly, easy to use.
Detailed description of the invention
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the flash lamp control method first embodiment of camera arrangement of the present invention;
Fig. 3 is the flow diagram that step S20 is further refined in Fig. 2;
Fig. 4 is the flow diagram of the flash lamp control method second embodiment of camera arrangement of the present invention;
Fig. 5 is the flow diagram of the flash lamp control method 3rd embodiment of camera arrangement of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: obtaining the status information of camera arrangement;According to the state information,
Control the flash lamp of the camera arrangement.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention can be smart phone, tablet computer, video camera, video camera, E-book reader,
MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level
3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard
Audio level 3) terminal device with camera function such as player, portable computer.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It optionally, can also include camera, (Radio Frequency, is penetrated RF when terminal is mobile phone or tablet computer
Frequently circuit), sensor, voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and its
His sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can root
The brightness of display screen is adjusted according to the light and shade of ambient light, proximity sensor can close aobvious when mobile terminal is moved in one's ear
Display screen and/or backlight.As a kind of motion sensor, gravity accelerometer can detect (generally three in all directions
Axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile terminal posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
Certainly, mobile terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor,
This is repeated no more.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe that module, Subscriber Interface Module SIM and flash lamp control program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor
1001 can be used for that the flash lamp stored in memory 1005 is called to control program, and execute following operation:
Obtain the status information of camera arrangement;
According to the state information, the flash lamp of the camera arrangement is controlled.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
Judge whether the status information meets flash lamp and flash condition;
The status information meet the flash lamp flash condition when, take pictures dress described in control according to the state information
The flash lamp set.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
Judge whether the current electric quantity of camera arrangement is greater than or equal to preset value, wherein the status information includes current
Electricity;
When the current electric quantity is greater than or equal to the preset value, determine that the status information meets flash lamp and flashes item
Part.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
When the current electric quantity is less than the preset value, whether the charging interface state for detecting the camera arrangement is connection
State, wherein the status information further includes charging interface state;
When the charging interface state is connection status, determine that the status information meets flash lamp and flashes condition.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
When the state of the charging interface is connection status, judge whether the connection status is charged state, wherein institute
Stating status information further includes charged state;
When the connection status is charged state, determine that the status information meets flash lamp and flashes condition.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
When the current electric quantity of the camera arrangement is less than default electricity, electricity prompting message is exported.
Further, processor 1001 can call the flash lamp stored in memory 1005 control program, also execute with
Lower operation:
Detect photographing operation;
Alternatively, executing the shape for obtaining camera arrangement when detecting photographing operation and ambient brightness and being less than predetermined luminance
The step of state information.
Referring to Fig. 2, the flash lamp control method first embodiment of camera arrangement of the present invention, the flash lamp of the camera arrangement
Control method the following steps are included:
Step S10 obtains the status information of camera arrangement;
Step S20 controls the flash lamp of the camera arrangement according to the state information.
The executing subject of the present embodiment can be camera arrangement such as camera, video camera, video recorder etc., or be installed with
The terminal of camera arrangement, such as mobile phone, plate.In order to guarantee effect of taking pictures, camera arrangement is provided with flash lamp and provides light, and
Flash lamp needs high voltage in moment of flashing, therefore flash lamp needs the enough electricity of power supply offer that can carry out work of flashing
Make.
The present embodiment first obtains the status information of camera arrangement in the case of camera arrangement is taken pictures, and then according to described
Status information determines how the flash lamp of control camera arrangement.Wherein, the mode for controlling the flash lamp of the camera arrangement includes
The flash lamp that the flash lamp for controlling the camera arrangement flashed and controlled the camera arrangement does not flash.Referring in particular to Fig. 3, institute
It states that be controlled the step of the flash lamp of the camera arrangement flashes according to the state information include: step S21, judges the shape
Whether state information, which meets flash lamp, flashes condition, step S22, the status information meet the flash lamp flash condition when,
The flash lamp of the camera arrangement is controlled according to the state information.The flash lamp as described in meeting the status information flashes condition
When, it controls the flash lamp and flashes, the status information is unsatisfactory for controlling the flash lamp when the flash lamp flashes condition
It does not flash.
The status information includes current electric quantity, charging interface state etc., can when being taken pictures using the present embodiment camera arrangement
To obtain the current electric quantity and/or charging interface state of the camera arrangement, and then according to the current electric quantity and/or charging
Mouth state, controls the flash lamp of the camera arrangement.
Camera arrangement can star flash lamp and flash when taking pictures, and can also carry out in the case where flashless lamp flashes
It takes pictures, but is generally flashed using flash lamp under night or the lower situation of light luminance and just can guarantee shooting effect, therefore be
Flash lamp is used convenient for user's property selected, the flash lamp Starting mode that the camera arrangement is arranged can select touching based on user
Hair flashes, and such as detects to take pictures and flash when operating, and judgement needs to start flash lamp, can also be opened automatically based on current environment factor
Dynamic to flash, such as when detecting photographing operation and current environment brightness is less than predetermined luminance, judgement needs to start flash lamp,
In, the predetermined luminance is that preset flash lamp starts the ambient brightness critical value flashed automatically, in the ring of current environment
When border brightness is greater than the ambient brightness critical value, camera arrangement, which can not start, to flash, and the ambient brightness of current environment is enough full
Requirement of the sufficient camera arrangement to light, and when the ambient brightness of current environment is less than the ambient brightness critical value, current environment
Ambient brightness be not able to satisfy camera arrangement to optical requirement, camera arrangement starts flash lamp automatically and flashes.Since starting is dodged
Light lamp needs enough electricity, therefore after determining to need to start flash lamp, obtain the status information of the camera arrangement, Jin Ergen
According to the status information, the flash lamp of the camera arrangement is controlled.
Specifically, terminal detects taking pictures for user's triggering and flashes when operating, determine user using the camera arrangement into
When row is taken pictures, need to start flash lamp, terminal obtains the status information of the camera arrangement at this time, and then according to the dress of taking pictures
The status information set controls the flash lamp.
Alternatively, terminal detects user when triggering photographing operation, the ambient brightness where camera arrangement is obtained, described in judgement
Whether ambient brightness is less than predetermined luminance, if so, needing to start sudden strain of a muscle when determining that user is taken pictures using the camera arrangement
Light lamp, terminal obtains the status information of the camera arrangement at this time, and then according to the status information of the camera arrangement, controls institute
State flash lamp.
Further, it is described according to the state information, the step of controlling the flash lamp of the camera arrangement, can also wrap
It includes:
Step S23, the status information be unsatisfactory for the flash lamp flash condition when, reduce the sudden strain of a muscle of the camera arrangement
The light emission luminance of light lamp.
Also even user uses the camera arrangement to take pictures and needs to start the flash lamp, and the camera arrangement at this time
Status information be unsatisfactory for it is described flash condition when, the light emission luminance of the flash lamp can be reduced to reduce when it flashes to electricity
The voltage requirements that source provides, to realize that flash lamp flashes.Such as default flash lamp light emission luminance grade, different brightness sizes are corresponding
Voltage requirements it is different, status information such as electricity be unsatisfactory for normal brightness flash condition when, using the low brightness of brightness degree
It flashes, to reduce the demand to voltage, is also able to satisfy requirement of flashing when realizing not enough power supply.
Alternatively, in other embodiments, the status information be unsatisfactory for the flash lamp flash condition when, forbid the sudden strain of a muscle
Light lamp flashes.
The present embodiment is during camera arrangement is taken pictures, by obtaining the status information of camera arrangement, and then according to described
Status information controls the flash lamp of the camera arrangement, flash lamp can be so controlled according to status information, realizes different
Different flash lamp usage mode under status information, flash lamp flashes flexibly, easy to use.
In addition, the present embodiment judge the status information meet flash lamp flash condition when, according to the state information
The flash lamp for controlling the camera arrangement meets flash lamp based on the status information and flashes condition, then dress of taking pictures described in control
The flash lamp set flashes, wherein the status information meet flash lamp flash condition the case where there are many, as electricity foot, take pictures
Device has external power supply to provide voltage etc., flashes at this point it is possible to control flash lamp, is realized not based on the case where judging status information
Flexibly flash lamp is called to flash under the conditions of, realizes the flexible Application of flash lamp.
Referring to Fig. 4, the flash lamp control method second embodiment of camera arrangement of the present invention, the present embodiment is based on above-mentioned first
Embodiment, it is described judge the status information whether meet flash lamp flash condition the step of include:
Step S211, judges whether the current electric quantity of camera arrangement is greater than or equal to preset value, wherein the status information
Including current electric quantity;
Step S212 when the current electric quantity is greater than or equal to the preset value, determines described in the status information satisfaction
Flash lamp flashes condition.
Step S213 detects the charging interface state of the camera arrangement when current electric quantity is less than the preset value
It whether is connection status, wherein the status information further includes charging interface state;
When the charging interface state is connection status, determine that the status information meets the flash lamp and flashes condition.
The status information includes current electric quantity, before camera arrangement is taken pictures, and to flash lamp flash demand when, obtain
The current electric quantity of the camera arrangement then illustrates that the camera arrangement is worked as when the current electric quantity is greater than or equal to preset value
Preceding electricity meets requirement of flashing, and enough voltage can be provided to the flash lamp, so that the flash lamp normally flashes.
Conversely, determine that the camera arrangement current electric quantity is insufficient if the current electric quantity is less than the preset value, it is insufficient
Flashed required voltage with providing flash lamp, in this prior under electricity, flash lamp can not normal luminous flash.The present embodiment in order to
Realizing flexibly can also easily use flash lamp even if in the case where not enough power supply, by detecting filling for the camera arrangement
Whether electrical interface state is connection status, if the charging interface state is connection status, determines that the status information meets
The flash lamp flashes condition, controls the flash lamp and flashes.
Wherein, the status information further includes charging interface state, specifically, first obtaining and clapping when camera arrangement is taken pictures
According to the current electric quantity of device, when the current electric quantity is less than preset value, then the state of charging interface is judged, in the charging
Mouthful state when being connection status, illustrate that camera arrangement is connect by the charging interface with external equipment at this time, be based on it is outer
Equipment connection in portion's can provide enough voltage by the external equipment, meet the voltage requirements that flash lamp flashes, then control institute
It states flash lamp to flash, realizes the flash lamp for controlling camera arrangement according to status information.Wherein, external equipment can be charging and set
It is standby, it is also possible to other connection equipment, when such as charging interface being USB interface, charging equipment can be by the USB interface to institute
Camera arrangement charging is stated, connection equipment can also transmit data etc. to the camera arrangement by USB interface, and connection equipment is also
Electronic equipment, in some embodiments, the connection equipment can also provide electricity to the camera arrangement by the USB interface
Pressure, therefore in the present embodiment when electricity is less than preset value, by judging that the status information of charging interface determines whether to control
Flash lamp flashes, if charging interface state is connection status, meets flash lamp and flashes condition, then control the flash lamp and flash,
While ensuring that flash lamp can normally flash, flash lamp is flexibly called.
In other embodiments, when the charging interface state is notconnect state, then determine that the status information is discontented
The foot flash lamp flashes condition, and the flash lamp is forbidden to flash at this time.
In other embodiments, when the current electric quantity of the camera arrangement is less than default electricity, in addition to taking pictures described in detection
Whether the charging interface state of device is that can also export electricity when current electric quantity is less than default electricity except connection status
Prompting message understands the current electric quantity situation of the camera arrangement for user, is based on the electricity prompting message, and user can select
It selects and continues to use flash lamp, or selection is flashed without using flash lamp, improves the interactive experience of camera arrangement and user.
It is understood that the electricity prompting message may include electricity size, the current of camera arrangement is such as only exported
Electricity is reminded.Alternatively, the electricity prompting message can also include solution prompting message, as camera arrangement current electric quantity is small
When preset value, it is unsatisfactory for the electrical demand of flash lamp, solution prompt information is exported at this time, such as in the display of camera arrangement
Flash lamp prompting message, or the prompting message etc. of output connection charge port are closed in output on interface, and user can be according to described
Prompting message on display interface selects corresponding operation, such as connects external equipment by the charging interface, described in solving
The problem of causing flash lamp that cannot flash when current electric quantity is less than preset value.
Further, the connection is connected according to the prompting message selection external equipment on the display interface based on user
When interface, whether terminal is connection status based on the charging interface state that the selection operation of user detects the camera arrangement, if
It is then to determine that the status information meets the flash lamp and flashes requirement, flashes at this point, controlling the flash lamp.
Remind user's current electric quantity too low by the way of prompting, one convenient can choose whether to continue to allow based on user sudden strain of a muscle
Light lamp flashes, and on the other hand, after user knows information about power, can charge to the camera arrangement, not influence in time so
The flash lamp of camera arrangement subsequent execution flashes operation, increases human-computer interaction process, so that camera arrangement is more intelligent.
Referring to Fig. 5, the flash lamp control method 3rd embodiment of camera arrangement of the present invention, the present embodiment is based on above-mentioned second
Embodiment is flashed condition to more accurately determine that the status information of camera arrangement meets flash lamp, is glistened with reasonable callings
Lamp flashes, and the flash lamp control method of the camera arrangement further includes including:
Step S214 when the state of the charging interface is connection status, judges whether the connection status is charging shape
State, wherein the status information further includes charged state;
When the connection status is charged state, determine that the status information meets flash lamp and flashes condition.
The connection status of the charging interface of the camera arrangement includes charged state and non-charged state, the specific charging
Interface can be USB interface.When the connection of the charging interface is charged state, the external charge power supply of charging interface then may be used
Using the power supply as camera arrangement, at this point, the voltage of camera arrangement is provided by the charge power supply of outer machine, the electricity based on charge power supply
Amount is enough to provide the flash lamp of camera arrangement and flashes, thus do not need to supplement with money to the electric quantity of power supply of camera arrangement it is a certain amount of after
Flash lamp is allowed to flash operation, in this way, detecting camera arrangement charging interface as long as realizing in the case where not enough power supply
Whether connection status is that charged state controls flash lamp and flashes, without that could open flash of light until electricity supplements a certain amount of with money
Lamp flashes, and flash lamp usage mode is more convenient.
Specifically, described to judge that the step of whether connection status is charged state includes:
Detect the voltage value of charging interface;
When detecting that the voltage value is greater than or equal to preset voltage value, determine that the connection status of the charging interface is
Charged state.
By taking charging interface is USB interface as an example, the detection of the connection status of the charging interface can be connect by detecting USB
Mouthful whether have insertion operation, when the USB interface has insertion operation, judge the voltage value of the USB interface whether be greater than or
The charging interface is determined when the voltage of the USB interface is greater than or equal to the preset voltage value equal to preset voltage value
Connection status be charged state, conversely, then be non-charged state.
It is understood that the detection mode of the connection status of the charging interface can also be examined by setting flag bit
It surveys, when the corresponding flag bit of the charging interface of the camera arrangement is default mark, determines the connection status of the charging interface
For charged state, wherein in the connection status variation of the charging interface, update the flag bit.The flag bit is pre-
If the connection status for being used to mark charging interface label, when the flag bit is shown as default mark, such as default mark is
1, when the flag bit is shown as 1, determine the connection status of the charging interface for charged state.When the connection shape of charging interface
When state changes, when such as becoming non-charged state from charged state, the flag bit is updated, is specifically updated to 0, in other words, if
When detect that the flag bit shows is not the default mark, when being shown as 0 such as flag bit, the charging interface is determined
Connection status is non-charged state.
Specifically, being equipped with voltage check device, voltage comparator and register in the camera arrangement, wherein described
Voltage comparator is connect with the voltage check device and the register respectively, and the register is for depositing flag bit, institute
Voltage check device is stated to be arranged at the charging interface position.The flash lamp control method of the camera arrangement further include: real
When or timing detect charging interface voltage value, detect the voltage value be greater than or equal to preset voltage value when, the mark
Will bit identification is default mark.Namely after the voltage check device detects the voltage value of the charging interface, by voltage value
It is sent to the voltage comparator, the voltage comparator voltage value and charging voltage value are reached in the voltage value
When to the charging voltage value (voltage value be greater than or equal to preset voltage value), comparison result information is sent to the deposit
Device, the register deposit the default mark on the flag bit, in this way, detecting on the flag bit in camera arrangement
When mark is preset in display, determine the connection status of the charging interface for charged state.Conversely, being not up to institute in the voltage value
When stating charging voltage value, comparison result information is sent to the register, the register deposits 0 mark on the flag bit
Will, in this way, camera arrangement detect be shown as non-default mark on the flag bit when, determine the connection of the charging interface
State is non-charged state.
In the present embodiment, when the connection status for detecting the charging interface is non-charged state, the letter that flashes is never called
Number, camera arrangement flash lamp do not execute work of flashing.
Whether the present embodiment is charged state by the state of detection charging interface, is charged state in the charging interface
When, determine that the status information meets flash lamp and flashes condition, and then control flash lamp and flash, this is based on, in camera arrangement
In the case where not enough power supply, judged by the state to status information such as charging interface, to control the camera arrangement
Flash lamp flashes, and in the case where not enough power supply, as long as detecting that flash lamp can be used in camera arrangement charging, does not have to until electricity
Amount could open flash lamp when supplementing a certain amount of with money and flash, to the flexibility that flash lamp calls, so that flash lamp is easy to use.
Further, the present invention provides a kind of flash lamp control method fourth embodiment of camera arrangement, is based on above-mentioned institute
There are embodiment, the flash lamp control method of the camera arrangement further include:
When the connection status for detecting the charging interface is charged state, application program in operating status is obtained
Quantity;
When number of applications in operating status is greater than or equal to preset quantity, close in addition to camera program
Application program, and the step of execution is described according to the state information, and control flash lamp flashes.
For the present embodiment by taking executing subject is mobile phone as an example, mobile phone includes taking pictures application program and multiple second application programs such as
Wechat, QQ etc. can run multiple application programs based on mobile phone simultaneously, in multiple application program operational process, equal consumption power supplys
Circuit.In the present embodiment, charging voltage is divided by other application program in the case where low battery in order to prevent, it is ensured that camera arrangement
It can be normally carried out and take pictures, improve using effect of taking pictures, be less than default electricity checking current electric quantity, and detect described fill
When the connection status of electrical interface is charged state, number of applications in operating status is obtained, when in operating status
When number of applications is greater than or equal to preset quantity, application program of the automatic relationship in addition to camera program is other to reduce
The power consumption of level of application provides enough electricity for flash lamp, in order to which the flash lamp normally flashes.
Alternatively, in other embodiments, the flash lamp control method of the camera arrangement further include:
When the connection status for detecting the charging interface is non-charged state, application journey in operating status is obtained
Ordinal number amount;
When number of applications in operating status is greater than or equal to preset quantity, close in addition to camera program
Application program, and the step of execution is described according to the state information, and control flash lamp flashes.
When the connection status of the charging interface of camera arrangement is non-charged state, then illustrate that camera arrangement does not carry out currently
Charging can be beaten at this time in order to guarantee that flash lamp normally flashes by way of closing other power consumption application programs for flash lamp
It dodges and enough electricity is provided, in this way, controlling the flash lamp of the camera arrangement by multiple status informations, and be not limited to electricity
Amount, realizes flexible and changeable control flash lamp, improves the using effect of flash lamp.
To achieve the goals above, the present invention also provides a kind of camera arrangement, the camera arrangement includes: memory, place
It manages device and is stored in the flash lamp control program that can be run on the memory and on the processor, the flash lamp control
Program realizes each step of the flash lamp control method of camera arrangement as described above when being executed by the processor.
To achieve the goals above, the present invention also provides a kind of mobile terminal, the mobile terminal includes camera arrangement, deposits
The flash lamp control program that reservoir, processor and being stored in can be run on the memory and on the processor, the sudden strain of a muscle
Light lamp control program realizes each step of the flash lamp control method of camera arrangement as described above when being executed by the processor
Suddenly.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with flash lamp control program, flash lamp control program realizes following operation when being executed by processor:
Obtain the status information of camera arrangement;
According to the state information, the flash lamp of the camera arrangement is controlled.
Further, following operation is also realized when the flash lamp control program is executed by processor:
Judge whether the status information meets flash lamp and flash condition;
The status information meet the flash lamp flash condition when, take pictures dress described in control according to the state information
The flash lamp set.
Further, following operation is also realized when the flash lamp control program is executed by processor:
Judge whether the current electric quantity of camera arrangement is greater than or equal to preset value, wherein the status information includes current
Electricity;
When the current electric quantity is greater than or equal to the preset value, determine that the status information meets flash lamp and flashes item
Part.
Further, following operation is also realized when the flash lamp control program is executed by processor:
When the current electric quantity is less than the preset value, whether the charging interface state for detecting the camera arrangement is connection
State, wherein the status information further includes charging interface state;
When the charging interface state is connection status, determine that the status information meets flash lamp and flashes condition.
Further, following operation is also realized when the flash lamp control program is executed by processor:
When the state of the charging interface is connection status, judge whether the connection status is charged state, wherein institute
Stating status information further includes charged state;
When the connection status is charged state, determine that the status information meets flash lamp and flashes condition.
Further, following operation is also realized when the flash lamp control program is executed by processor:
When the current electric quantity of the camera arrangement is less than default electricity, electricity prompting message is exported.
Further, following operation is also realized when the flash lamp control program is executed by processor:
Detect photographing operation;
Alternatively, executing the shape for obtaining camera arrangement when detecting photographing operation and ambient brightness and being less than predetermined luminance
The step of state information.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Tablet computer, camera or video camera etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of flash lamp control method of camera arrangement, which is characterized in that the flash lamp control method packet of the camera arrangement
Include following steps:
Obtain the status information of camera arrangement;
According to the state information, the flash lamp of the camera arrangement is controlled.
2. the flash lamp control method of camera arrangement as described in claim 1, which is characterized in that described to be believed according to the state
Breath, the step of controlling the flash lamp of the camera arrangement include:
Judge whether the status information meets flash lamp and flash condition;
The status information meet the flash lamp flash condition when, control the camera arrangement according to the state information
Flash lamp.
3. the flash lamp control method of camera arrangement as claimed in claim 2, which is characterized in that the judgement state letter
Breath whether meet flash lamp flash condition the step of include:
Judge whether the current electric quantity of camera arrangement is greater than or equal to preset value, wherein the status information includes current electric quantity;
When the current electric quantity is greater than or equal to the preset value, determine that the status information meets flash lamp and flashes condition.
4. the flash lamp control method of camera arrangement as claimed in claim 3, which is characterized in that the judgement state letter
Breath whether meet flash lamp flash condition the step of further include:
When the current electric quantity is less than the preset value, whether the charging interface state for detecting the camera arrangement is connection shape
State, wherein the status information further includes charging interface state;
When the charging interface state is connection status, determine that the status information meets flash lamp and flashes condition.
5. the flash lamp control method of camera arrangement as claimed in claim 4, which is characterized in that the flash of light of the camera arrangement
Lamp control method further includes including:
When the state of the charging interface is connection status, judge whether the connection status is charged state, wherein the shape
State information further includes charged state;
When the connection status is charged state, determine that the status information meets flash lamp and flashes condition.
6. the flash lamp control method of camera arrangement as claimed in claim 4, which is characterized in that the flash of light of the camera arrangement
Lamp control method further include:
When the current electric quantity of the camera arrangement is less than default electricity, electricity prompting message is exported.
7. the flash lamp control method of camera arrangement as described in claim 1, which is characterized in that the flash of light of the camera arrangement
Lamp control method further include:
Detect operation of flashing of taking pictures;
Alternatively, executing the state letter for obtaining camera arrangement when detecting photographing operation and ambient brightness and being less than predetermined luminance
The step of breath.
8. a kind of camera arrangement, which is characterized in that the camera arrangement includes: memory, processor and is stored in the storage
On device and the flash lamp control program that can run on the processor, flash lamp control program are executed by the processor
The step of flash lamp control method of camera arrangement of the Shi Shixian as described in any one of claims 1 to 7.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes camera arrangement, memory, processor and is stored in
On the memory and the flash lamp control program that can run on the processor, flash lamp control program is by the place
The step of managing the flash lamp control method that the camera arrangement as described in any one of claims 1 to 7 is realized when device executes.
10. a kind of computer readable storage medium, which is characterized in that be stored with flash lamp on the computer readable storage medium
Program is controlled, the flash lamp control program realizes taking pictures as described in any one of claims 1 to 7 when being executed by processor
The step of flash lamp control method of device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910628000.9A CN110312082A (en) | 2019-07-11 | 2019-07-11 | Camera arrangement and its flash lamp control method, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910628000.9A CN110312082A (en) | 2019-07-11 | 2019-07-11 | Camera arrangement and its flash lamp control method, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110312082A true CN110312082A (en) | 2019-10-08 |
Family
ID=68080023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910628000.9A Pending CN110312082A (en) | 2019-07-11 | 2019-07-11 | Camera arrangement and its flash lamp control method, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110312082A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200725139A (en) * | 2005-12-23 | 2007-07-01 | Premier Image Technology Corp | Method for controlling the picture capturing process of a digital camera |
CN201450532U (en) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | Movable terminal |
CN104778040A (en) * | 2015-03-26 | 2015-07-15 | 深圳市金立通信设备有限公司 | Photographing device |
CN104822018A (en) * | 2015-03-26 | 2015-08-05 | 深圳市金立通信设备有限公司 | Flash lamp control method of photographing device |
CN105933965A (en) * | 2016-07-05 | 2016-09-07 | 广东欧珀移动通信有限公司 | Method and device for controlling to open flashlight and terminal |
CN106817540A (en) * | 2016-12-30 | 2017-06-09 | 广东欧珀移动通信有限公司 | A kind of camera control method and equipment |
-
2019
- 2019-07-11 CN CN201910628000.9A patent/CN110312082A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200725139A (en) * | 2005-12-23 | 2007-07-01 | Premier Image Technology Corp | Method for controlling the picture capturing process of a digital camera |
CN201450532U (en) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | Movable terminal |
CN104778040A (en) * | 2015-03-26 | 2015-07-15 | 深圳市金立通信设备有限公司 | Photographing device |
CN104822018A (en) * | 2015-03-26 | 2015-08-05 | 深圳市金立通信设备有限公司 | Flash lamp control method of photographing device |
CN105933965A (en) * | 2016-07-05 | 2016-09-07 | 广东欧珀移动通信有限公司 | Method and device for controlling to open flashlight and terminal |
CN106817540A (en) * | 2016-12-30 | 2017-06-09 | 广东欧珀移动通信有限公司 | A kind of camera control method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11626748B2 (en) | Electronic device and method for wired and wireless charging in electronic device | |
US10902772B2 (en) | Display driving method, display driver integrated circuit, and electronic device comprising the same | |
US10298045B2 (en) | Electronic device for checking battery abnormality and control method thereof | |
US20210389973A1 (en) | Electronic device and method for operating the same | |
CN105630129A (en) | Power control method and apparatus for reducing power consumption | |
CN105912091B (en) | Electronic device and method for reducing power consumption thereof | |
EP3197063A1 (en) | Electronic device and method for short range wireless communication in electronic device | |
CN105388931A (en) | Device for controlling performance of the device based on fluctuations in internal temperature and method thereof | |
CN113553130B (en) | Method for executing drawing operation by application and electronic equipment | |
KR20160027757A (en) | Method for managing heat generated by electronic device and the electronic device therefor | |
CN108427586B (en) | Using push terminal, method and the computer readable storage medium of theme | |
CN113761427A (en) | Method for generating card in self-adaptive mode, terminal device and server | |
CN116033056B (en) | Folding angle detection method and device for folding screen and readable storage medium | |
EP3920006A1 (en) | Granular power management of display devices based on user interest | |
CN105656113A (en) | Method for charging control and electronic device thereof | |
CN117198214A (en) | Refresh rate switching method, electronic device and storage medium | |
CN117129085B (en) | Ambient light detection method, electronic device and readable storage medium | |
CN113220176A (en) | Display method and device based on widget, electronic equipment and readable storage medium | |
KR20160096961A (en) | Method and apparatus for controlling battery charging of device | |
CN116010076A (en) | Application running method and related equipment | |
CN110312082A (en) | Camera arrangement and its flash lamp control method, mobile terminal and storage medium | |
CN108475921B (en) | Electronic device, power supply device of electronic device and power supply method | |
CN108228427A (en) | Electronic equipment prevents from falling method and Related product | |
KR20210031187A (en) | Electronic apparatus and method for executing multiple applications | |
CN109062651A (en) | Picture loading method, device, storage medium and the intelligent terminal at the interface UI |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191008 |