CN113873122A - Independent flash control method, system and device for double-flash camera and storage medium - Google Patents

Independent flash control method, system and device for double-flash camera and storage medium Download PDF

Info

Publication number
CN113873122A
CN113873122A CN202111126741.0A CN202111126741A CN113873122A CN 113873122 A CN113873122 A CN 113873122A CN 202111126741 A CN202111126741 A CN 202111126741A CN 113873122 A CN113873122 A CN 113873122A
Authority
CN
China
Prior art keywords
camera
flash
target
double
independent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111126741.0A
Other languages
Chinese (zh)
Inventor
朱俊南
何金锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Telepower Communication Co ltd
Original Assignee
Guangdong Telepower Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Telepower Communication Co ltd filed Critical Guangdong Telepower Communication Co ltd
Priority to CN202111126741.0A priority Critical patent/CN113873122A/en
Publication of CN113873122A publication Critical patent/CN113873122A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • G03B15/05Combinations of cameras with electronic flash apparatus; Electronic flash units
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B30/00Camera modules comprising integrated lens units and imaging units, specially adapted for being embedded in other devices, e.g. mobile phones or vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Stroboscope Apparatuses (AREA)

Abstract

The invention belongs to the technical field of computers, and particularly relates to an independent flash control method, system and device for a double-flash camera and a storage medium. The method comprises the following steps: acquiring a camera opening instruction; judging the type of a camera to be opened in the camera opening instruction to obtain a target camera; previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera; configuring a compensation brightness value of response according to exposure gain data of a picture acquired by the target camera; and configuring the compensation brightness value corresponding to the target camera to a light IC controller so as to change the output value of the current of the target camera and control the flash of a flash lamp of the target camera. The invention adopts a single-channel flash control scheme without increasing channels, so that the front camera and the rear camera have independent flash lamp control functions, the hardware design difficulty is reduced, and the cost is reduced.

Description

Independent flash control method, system and device for double-flash camera and storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to an independent flash control method, system and device for a double-flash camera and a storage medium.
Background
In recent years, with the development of network technologies, smart terminal devices such as mobile phones have become popular. At present, the number of intelligent terminal devices with a large number of rear cameras or front cameras and double flash lamps in the market is increasing, and for example, the intelligent terminal devices are widely used in existing intelligent mobile phones such as iPhone, huashi and millet. Meanwhile, due to the technical support of the intelligent chip module suppliers such as a high pass, MTK and the like at present, the universal rear camera or the front camera and the double flash lamps realize the standard design of the double flash lamps.
But to the special demand of intelligent terminal product, often have the demand that intelligent terminal equipment all need have independent flash of light or light filling control to possess the leading camera, for example testimony of a witness contrast terminal, receive high appearance of shooing by oneself etc. need under the not enough condition of light, start the leading flash light of rearmounted camera when the rearmounted camera is taken a picture and light up by the shooting article, then the leading flash light or light filling lamp that also needs of leading camera when switching to leading camera and taking a picture personage, light the people face.
In the intelligent module scheme of present trade, often only light filling lamp IO controller and flash lamp IO controller control the condition that needs the flash of light respectively with the condition that needs the light filling (the luminance demand of two kinds of conditions is different). At present, many intelligent terminal devices need to have independent light supplement or flash functions before and after achieving a good flash control effect, and often need to add a flash control channel, which is implemented by a flash IC control circuit and at least 2 GPIOs (General-purpose input/output) (as shown in fig. 1), and this design scheme often has the following problems and disadvantages:
1. and a flash lamp IC controller is added, so that the product cost is increased.
2. GPIO control is added, and chip control resources are more in short supply.
How to combine the two flash light control of general leading camera or rear camera together according to actual demand and actual conditions, reach finally in the treater by the control of a front and back camera demand control module realization front and back camera demand, provide the solution that satisfies its actual demand for the trade user and become one of the problem that needs to solve at present urgently.
Disclosure of Invention
In order to solve the problem that cost is increased due to the fact that a flashlight IC controller and at least 2 GPIOs are needed to control double flashlights of a front camera or a rear camera which are universal in the prior art, the invention provides an independent flashing control method, a system, a device and a storage medium of the double flashing camera.
The invention is realized by adopting the following technical scheme:
a double-flash camera independent flash control method comprises the following steps:
acquiring a camera opening instruction;
judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera;
configuring a compensation brightness value of response according to exposure gain data of a picture acquired by the target camera;
and configuring the compensation brightness value corresponding to the target camera to a light IC controller so as to change the output value of the current of the target camera and control the flash of a flash lamp of the target camera.
As a further scheme of the present invention, the camera opening instruction is an application request sent by a start application of the dual-flash camera terminal device, and a processor of the dual-flash camera terminal device receives the application request and responds.
As a further aspect of the present invention, the method for obtaining a target camera includes:
acquiring an application requirement in the camera opening instruction, wherein the application requirement comprises a front camera or a rear camera operation command responded by an application of the double-flash camera terminal equipment;
and feeding the application requirement back to a processor of the double-flash camera terminal equipment, identifying through a preset requirement control module in the processor, and judging a front camera or a rear camera corresponding to the application requirement to obtain a target camera.
Furthermore, the compensation brightness value is configured in advance by a flash lamp driving module configured by the double-flash camera terminal device, the compensation brightness value is configured based on the pre-flash brightness condition, and the compensation brightness value is obtained by debugging in the experimental environment in the development process.
Further, when a compensation brightness value corresponding to the target camera is configured to a light IC controller, the compensation brightness value includes a flash control brightness value or a fill-in control brightness value corresponding to the target camera;
when the target camera is a front camera, the compensation brightness value is a light supplement control brightness value and is used for controlling flash lamp light supplement of the front camera through a light IC controller;
and when the target camera is a rear camera, the compensation brightness value is a flash control brightness value and is used for controlling flash of a flash lamp of the rear camera through a lamplight IC controller.
The invention also comprises a double-flash camera independent flash control system, wherein the double-flash camera independent flash control system adopts the double-flash camera independent flash control method to realize independent control of the brightness of the front camera flash lamp and the rear camera flash lamp of the double-flash camera terminal equipment; the double-flash camera independent flash control system comprises an instruction acquisition module, a camera determination module, a switching module, a brightness acquisition module and a flash control module.
The instruction acquisition module is used for acquiring a camera opening instruction;
the camera determining module is used for judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
the switching module is used for previewing and reading the use state of the current camera according to the history record and switching the use state of the current camera to the target camera;
the brightness acquisition module is used for configuring a compensation brightness value of response according to the exposure gain data of the picture acquired by the target camera;
and the flash control module is used for configuring the compensation brightness value corresponding to the target camera to the light IC controller so as to change the output value and the current of the target camera and control the flash of the target camera.
Further, the instruction acquisition module comprises a processor of the double-flash camera terminal device, the processor is used for receiving application requirements and responding, and the application requirements are sent by the application installed on the double-flash camera terminal device when the camera needs to be started.
Further, the demand control module preset in the processor includes a camera determination module and a switching module, and is configured to read a front camera or a rear camera operation command included in the application demand, identify and determine the front camera or the rear camera corresponding to the application demand, and obtain the target camera.
The invention also comprises a double-flash camera independent flash control device which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the double-flash camera independent flash control method when executing the computer program.
The invention also includes a storage medium storing a computer program which, when executed by a processor, implements the steps of the dual-flash camera independent flash control method.
The technical scheme provided by the invention has the following beneficial effects:
1. according to the invention, under the condition that a single-channel flash control scheme is adopted without increasing channels, the front camera and the rear camera have independent flash lamp control functions, and the front camera and the rear camera have the flash lamp control functions under the condition that hardware is not increased, so that the hardware design difficulty is reduced, and the cost is reduced.
2. According to the invention, only one requirement control module is added in the kernel layer to record which camera needs to be opened, so that when the flash lamp needs to be opened, the light IC controller of the flash lamp can directly judge the current state and control to output different driving currents, and the flash lamps of the front and rear cameras can independently control the brightness.
3. The invention can also operate different output currents according to the requirement of the camera effect, thereby realizing that the front camera and the rear camera have the light IC controllers with adjustable brightness values for independent control, without increasing the complicated software channel drive, the front camera and the rear camera can have independently adjustable light flashes on the premise of not increasing the hardware circuit cost, the original structure of the double-flash camera terminal equipment can be utilized, the functions can be quickly realized, the compatibility is strong and the stability is high, the software development difficulty is reduced, the product can be quickly adapted, the stability is high, the compatibility is strong, and the hardware cost can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of an independent flash control method for a dual-flash camera in the prior art.
Fig. 2 is a flowchart of an independent flash control method for a dual-flash camera according to embodiment 1 of the present invention.
Fig. 3 is a flowchart of obtaining a target camera in the dual-flash camera independent flash control method in embodiment 1 of the present invention.
Fig. 4 is an execution architecture diagram of one light channel in the dual-flash camera independent flash control method according to embodiment 1 of the present invention.
Fig. 5 is a flowchart of single-channel flash control in a dual-flash camera independent flash control method in embodiment 1 of the present invention.
Fig. 6 is a system block diagram of an independent flash control system of a dual-flash camera in embodiment 2 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The independent flash control method, the system, the device and the storage medium for the double-flash camera provided by the invention enable a developer to realize that the front camera and the rear camera have flash lamp functions without being concentrated on the design of hardware, and can realize that the front camera and the rear camera have flash lamp functions by adopting a single-channel flash control scheme under the condition of not increasing channels, and record that the camera needs to be opened only by adding a demand control module at an inner core layer, so that when the flash lamp needs to be opened, different output currents are operated, the front camera and the rear camera have adjustable brightness values, the design difficulty is reduced, and the cost is also reduced.
Example 1
As shown in fig. 2, the present embodiment provides a dual-flash camera independent flash control method, which is used for independently controlling the brightness of front and rear camera flashes of a dual-flash camera terminal device, and includes the following steps:
and S1, acquiring a camera opening instruction.
In this embodiment, the camera opening instruction is issued by an application installed on the dual-flash camera terminal device and used for controlling the start of the front-and-back cameras. When the camera needs to be started, a user opens the application app controlled by the camera through clicking on the touch screen of the double-flash camera terminal device, the camera starting option on the application triggers the application to send an application demand, and the processor of the double-flash camera terminal device receives the application demand and responds, so that the system layer of the double-flash camera terminal device receives a corresponding camera opening instruction.
And S2, judging the type of the camera to be opened in the camera opening instruction to obtain the target camera.
In this embodiment, in order to accurately determine a camera that needs to be opened according to an acquired camera opening instruction, referring to fig. 3, the method for obtaining a target camera includes:
s21, acquiring application requirements in the camera opening instruction, wherein the application requirements comprise a front camera or a rear camera operation command responded by the application of the double-flash camera terminal equipment.
S22, feeding the application requirements back to a processor of the double-flash camera terminal equipment, identifying through a requirement control module preset in the processor, and judging a front camera or a rear camera corresponding to the application requirements to obtain a target camera.
The demand control module is a service preset in a processor of the double-flash camera terminal device and used for selecting a response camera according to application demands, the service can run on a system layer of the double-flash camera terminal device, the service is used for recording application apps, namely whether a front camera or a rear camera is controlled by software which needs to be used by a user currently, the service is also used for issuing a camera opening instruction according to the application apps operated by the user, the service is recorded as the front camera is used when the application apps are switched to the front camera, the service is recorded as the rear camera is used when the application apps are switched to the rear camera, the service is opened to a driving layer of the whole double-flash camera terminal device, and other matched drivers acquire control processing for the next step. The system layer and the kernel layer of the double-flash camera terminal equipment are software android systems running in the products, the user interface part of the android systems is divided into the system layer, and the driving part is the kernel layer. The double-flash camera terminal equipment further comprises a hardware layer, wherein the hardware layer is a front camera and a rear camera controlled by the driving part and a corresponding flash lamp part.
S3, previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera; .
In this embodiment, the requirement control module is used to record whether the software that needs to be used currently controls the front-facing camera or the rear-facing camera, and record the use state of the current camera. When the currently used camera is a rear camera and the target camera to be opened is a front camera, switching the use state from the rear camera to the rear camera; when the currently used camera is a front camera and the target camera to be opened is a rear camera, switching the use state from the front camera to the rear camera; when the front and rear cameras are not in a use state, the corresponding target cameras are directly opened; when the target camera is in a use state, the target camera is not required to be switched, and the target camera is kept in the use state.
And S4, configuring a compensation brightness value of response according to the exposure gain data of the picture acquired by the target camera.
In this embodiment, the compensation brightness value is configured in advance by a flash lamp driving module configured by the dual-flash camera terminal device, the compensation brightness value is configured based on a pre-flash brightness condition, and the compensation brightness value is obtained by debugging in an experimental environment in a development process.
In this embodiment, the compensation brightness value may be a brightness value corresponding to an LED lamp of a flash issued by a system layer of the dual-flash camera terminal device, and is transmitted to the light IC controller, so as to configure different lighting currents.
In this embodiment, the exposure gain data is a bright picture acquired by the current camera. Different exposure gain data are adaptive to different brightness values, the brightness values are obtained through experimental environment debugging in the early stage of product development and are made into corresponding parameters, and how dark pictures generate how bright brightness by using how large driving current. The greater the drive current, the brighter the LED. Specifically, the compensation brightness value is an exposure GAIN (input signal GAIN control) value obtained according to the bright condition of the picture, then the current corresponding relation obtained by early debugging is adapted, and then the corresponding current is selected, so that the brightness of the LED is changed. The brightness value referred to herein is the brightness of the picture. For example: when the current frame brightness gain value is 100, in the development process, it is determined how much current is used to drive the LED to make the brightness suitable under the brightness condition of 100, so that the frame has the best effect. If the LED is 200lux to be the best, we record how much LED drive current is at 200lux, e.g., 300 ma. Then in a later use environment, a picture of 100 brightness will drive the LEDs with a current of 300ma, making the picture the best. And analogizing a plurality of groups of data, wherein the data is the corresponding relation obtained by debugging in the early development stage according to different machine structures.
S5, configuring the compensation brightness value corresponding to the target camera to a light IC controller to change the output value of the current of the target camera and control the flash of the target camera
In this embodiment, when the compensation brightness value corresponding to the target camera is configured to the light IC controller, the compensation brightness value includes a flash control brightness value or a fill-in control brightness value corresponding to the target camera.
When the target camera is a front camera, the compensation brightness value is a light supplement control brightness value, namely a light supplement control IO, and the light supplement control IO is used for controlling flash lamps of the front camera to supplement light through a light IC controller;
and when the target camera is a rear camera, the compensation brightness value is a flash control brightness value, namely a flash control IO, and the flash control IO is used for controlling flash of a flash lamp of the rear camera through a light IC controller.
Referring to fig. 4, different lighting currents are configured, so that a light IC controller is used, and flash lamps capable of being independently controlled are arranged in front and rear cameras, and the brightness of the flash lamps can be configured. In this embodiment, referring to fig. 4 and 5, the process of the dual-flash camera independent flash control method is as follows:
when the application requires to open the camera demand, the system layer can inform the kernel layer whether the camera needs to be opened is a front-facing camera or a rear-facing camera, at the moment, the front-facing camera demand control module can record the state of the current preview camera, and judges whether the front-facing camera or the rear-facing camera is at the current time and stores the state.
When the application requires to start the flash shooting of a picture, the system sends a required compensation brightness value, the front and rear camera demand control modules acquire the state of the camera at that time, the GPIO is determined to be used for controlling the LED of the camera, and the LED brightness value acquired by the system is configured to the light control IC to realize the brightness control of the LED of the camera in a mode of changing the output current. Therefore, the single-channel flash control circuit is used, and the front camera and the rear camera are provided with flash lamps capable of independently controlling brightness.
By the independent flash control method for the double-flash camera, the independently controllable flash lamps can be arranged on the front camera and the rear camera through one light channel, and the brightness of the flash lamps can be configured. In the independent flash control method for the double-flash camera, one light channel consists of 1 flash lamp IO controller, 1 fill-in lamp IO controller and a light IC controller. Under the condition that the single-channel flash control scheme does not increase channels, the front camera and the rear camera have independent flash lamp control functions. Only through increasing a demand control module at the kernel layer, record which camera needs to be opened to when the flash light is opened to needs, the flash light drive can directly judge the state and control the different electric current of output, thereby the output current of the different GPIO of operation realizes that leading camera has the LED flash light of adjustable luminance value independent control.
Example 2
As shown in fig. 6, in an embodiment of the present invention, there is provided a dual-flash camera independent flash control system including: the system comprises an instruction acquisition module 100, a camera determination module 200, a switching module 300, a brightness acquisition module 400 and a flash control module 500. The instruction obtaining module 100 is configured to obtain a camera opening instruction. The camera determination module 200 is configured to determine the type of a camera to be opened in the camera opening instruction, so as to obtain a target camera. The switching module 300 is configured to preview and read a use state of a current camera according to a history record, and switch the use state of the current camera to a target camera. The brightness obtaining module 400 is configured to configure a compensation brightness value according to the exposure gain data of the picture obtained by the target camera. The flash control module 500 is configured to configure the compensation brightness value corresponding to the target camera to the light IC controller, so as to change the output value of the current of the target camera and control the flash of the target camera.
The instruction acquisition module 100 includes a processor of a dual-flash camera terminal device, the processor is configured to receive an application demand and respond, and the application demand is sent when the camera needs to be started by an application installed on the dual-flash camera terminal device.
The demand control module preset in the processor comprises a camera determining module 200 and a switching module 300, and is used for reading a front camera or rear camera operating command contained in the application demand, identifying and determining the front camera or rear camera corresponding to the application demand, and obtaining a target camera. The demand control module is a service preset in a processor of the double-flash camera terminal device and used for selecting a response camera according to application demands, the service can run on a system layer of the double-flash camera terminal device, the service is used for recording application apps, namely whether a front camera or a rear camera is controlled by software which needs to be used by a user currently, the service is also used for issuing a camera opening instruction according to the application apps operated by the user, the service is recorded as the front camera is used when the application apps are switched to the front camera, the service is recorded as the rear camera is used when the application apps are switched to the rear camera, the service is opened to a driving layer of the whole double-flash camera terminal device, and other matched drivers acquire control processing for the next step. The system layer and the kernel layer of the double-flash camera terminal equipment are software android systems running in the products, the user interface part of the android systems is divided into the system layer, and the driving part is the kernel layer. The double-flash camera terminal equipment further comprises a hardware layer, wherein the hardware layer is a front camera and a rear camera controlled by the driving part and a corresponding flash lamp part.
When the independent flashing control system of the double-flashing camera is adopted to realize the independent control of the brightness of the front and rear camera flashlights of the terminal equipment of the double-flashing camera, a light channel is designed in the system to realize that the front and rear cameras are provided with flashlights which can be independently controlled, and the brightness of the flashlights can be configured. And one light channel consists of 1 flash lamp IO controller, 1 supplementary lighting IO controller and a light IC controller. The front camera and the rear camera are provided with flash lamps which can be independently controlled, and the process of configuring the brightness of the flash lamps is as follows:
when the application requires to open the camera demand, the system layer can inform the kernel layer whether the camera needs to be opened is a front-facing camera or a rear-facing camera, at the moment, the front-facing camera demand control module can record the state of the current preview camera, and judges whether the front-facing camera or the rear-facing camera is at the current time and stores the state.
When the application requires to start the flash shooting of a picture, the system sends a required compensation brightness value, the front and rear camera demand control modules acquire the state of the camera at that time, the GPIO is determined to be used for controlling the LED of the camera, and the LED brightness value acquired by the system is configured to the light control IC to realize the brightness control of the LED of the camera in a mode of changing the output current. Therefore, the single-channel flash control circuit is used, and the front camera and the rear camera are provided with flash lamps capable of independently controlling brightness.
The steps of the dual-flash camera independent flash control method are adopted in the dual-flash camera independent flash control system during execution, and therefore, the operation process of the dual-flash camera independent flash control system is not described in detail in this embodiment.
The independent flash control system of the double-flash camera can realize that the front camera and the rear camera have the flash control function under the condition of not increasing hardware, thereby reducing the hardware design difficulty and the cost. The original structure of usable two flashing camera terminal equipment realizes the function fast, and compatible strong stability is high, has reduced the software development degree of difficulty, quick adaptation product, and stability is high, and compatible strong to can reduce the hardware cost.
Example 3
In an embodiment of the present invention, there is provided an independent flash control device for a dual-flash camera, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps in embodiment 1 of the foregoing method when executing the computer program:
acquiring a camera opening instruction;
judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera;
configuring a compensation brightness value of response according to exposure gain data of a picture acquired by the target camera;
and configuring the compensation brightness value corresponding to the target camera to a light IC controller so as to change the output value of the current of the target camera and control the flash of a flash lamp of the target camera.
Example 4
In an embodiment of the present invention, a storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the above-mentioned method embodiments:
acquiring a camera opening instruction;
judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera;
configuring a compensation brightness value of response according to exposure gain data of a picture acquired by the target camera;
and configuring the compensation brightness value corresponding to the target camera to a light IC controller so as to change the output value of the current of the target camera and control the flash of a flash lamp of the target camera.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory.
In summary, according to the technical scheme provided by the invention, under the condition that a single-channel flash control scheme is adopted, the front camera and the rear camera have independent flash lamp control functions, and the front camera and the rear camera have the flash lamp control functions under the condition that hardware is not added, so that the hardware design difficulty is reduced, and the cost is reduced. Only through increasing a demand control module at the kernel layer, record which camera needs to be opened to when the flash light needs to be opened, the light IC controller of flash light can directly judge the current state and control the different drive current of output, but the flash light of realization front and back camera all can independent control luminance.
Can also require according to the camera effect, thereby operate different output current and realize that leading-back camera possesses the light IC controller of adjustable luminance value independent control, need not to increase complicated software channel drive, control from the software aspect, under the prerequisite that does not increase hardware circuit cost, the camera can both possess the flash of light that independently can adjust luminance around realizing, the original structure of usable two camera terminal equipment that dodges, realize the function fast, the strong stability of compatibility is high, the software development degree of difficulty has been reduced, quick adaptation product, high stability, it is compatible strong, and can reduce the hardware cost.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A double-flash camera independent flash control method is used for independent brightness control of front and rear camera flash lamps of double-flash camera terminal equipment; the independent flash control method for the double-flash camera is characterized by comprising the following steps:
acquiring a camera opening instruction;
judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
previewing and reading the use state of the current camera according to the history record, and switching the use state of the current camera to a target camera;
configuring a compensation brightness value of response according to exposure gain data of a picture acquired by the target camera;
and configuring the compensation brightness value corresponding to the target camera to a light IC controller so as to change the output value of the current of the target camera and control the flash of a flash lamp of the target camera.
2. The dual-flash camera independent flash control method of claim 1, wherein: the camera opening instruction is that the application is started to send an application demand for the double-flash camera terminal equipment, and the application demand is received and responded by a processor of the double-flash camera terminal equipment.
3. The dual-flash camera independent flash control method of claim 2, wherein: the method for obtaining the target camera comprises the following steps:
acquiring an application requirement in the camera opening instruction, wherein the application requirement comprises a front camera or a rear camera operation command responded by an application of the double-flash camera terminal equipment;
and feeding the application requirement back to a processor of the double-flash camera terminal equipment, identifying through a preset requirement control module in the processor, and judging a front camera or a rear camera corresponding to the application requirement to obtain a target camera.
4. The dual-flash camera independent flash control method of claim 2, wherein: the compensation brightness value is configured in advance by a flash lamp driving module configured by the double-flash camera terminal equipment, the compensation brightness value is configured based on the pre-flash brightness condition, and the compensation brightness value is obtained by debugging in the experimental environment in the development process.
5. The dual-flash camera independent flash control method of claim 4, wherein: when the compensation brightness value corresponding to the target camera is configured to a light IC controller, the compensation brightness value comprises a flash control brightness value or a fill light control brightness value corresponding to the target camera;
when the target camera is a front camera, the compensation brightness value is a light supplement control brightness value and is used for controlling flash lamp light supplement of the front camera through a light IC controller;
and when the target camera is a rear camera, the compensation brightness value is a flash control brightness value and is used for controlling flash of a flash lamp of the rear camera through a lamplight IC controller.
6. The utility model provides a two independent flash of light control systems of camera which characterized in that: the double-flash camera independent flash control system adopts the double-flash camera independent flash control method of any one of claims 1 to 5 to realize independent brightness control of front and rear camera flash lamps of the double-flash camera terminal equipment; the independent flash control system of two flashing cameras includes:
the instruction acquisition module is used for acquiring a camera opening instruction;
the camera determining module is used for judging the type of a camera to be opened in the camera opening instruction to obtain a target camera;
the switching module is used for previewing and reading the use state of the current camera according to the history record and switching the use state of the current camera to the target camera;
the brightness acquisition module is used for configuring a compensation brightness value of response according to the exposure gain data of the picture acquired by the target camera;
and the flash control module is used for configuring the compensation brightness value corresponding to the target camera to the light IC controller so as to change the output value and the current of the target camera, and controlling the flash of the target camera.
7. The dual-flash camera independent flash control system of claim 6, wherein: the instruction acquisition module comprises a processor of the double-flash camera terminal equipment, the processor is used for receiving application requirements and responding, and the application requirements are sent by the application installed on the double-flash camera terminal equipment when the camera is required to be started.
8. The dual-flash camera independent flash control system of claim 7, wherein: the requirement control module preset in the processor comprises a camera determining module and a switching module and is used for reading a front camera or rear camera operation command contained in the application requirement, identifying and determining the front camera or rear camera corresponding to the application requirement and obtaining the target camera.
9. A dual-flash camera independent flash control device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A storage medium storing a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps of the method of any one of claims 1 to 5.
CN202111126741.0A 2021-09-26 2021-09-26 Independent flash control method, system and device for double-flash camera and storage medium Pending CN113873122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111126741.0A CN113873122A (en) 2021-09-26 2021-09-26 Independent flash control method, system and device for double-flash camera and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111126741.0A CN113873122A (en) 2021-09-26 2021-09-26 Independent flash control method, system and device for double-flash camera and storage medium

Publications (1)

Publication Number Publication Date
CN113873122A true CN113873122A (en) 2021-12-31

Family

ID=78994358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111126741.0A Pending CN113873122A (en) 2021-09-26 2021-09-26 Independent flash control method, system and device for double-flash camera and storage medium

Country Status (1)

Country Link
CN (1) CN113873122A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128488A (en) * 2021-04-21 2021-07-16 上海传英信息技术有限公司 Flash control method, flash control device, flash control terminal and storage medium
CN115883822A (en) * 2023-02-07 2023-03-31 深圳市永兴元科技股份有限公司 Method and device for debugging camera of online examination system and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008244991A (en) * 2007-03-28 2008-10-09 Fujifilm Corp Imaging apparatus and imaging method
CN203135986U (en) * 2013-01-31 2013-08-14 上海鼎为软件技术有限公司 Handset with shooting function
US20160037048A1 (en) * 2012-02-29 2016-02-04 Blackberry Limited Method and device for sharing a camera feature
CN205666992U (en) * 2016-06-06 2016-10-26 宁波萨瑞通讯有限公司 Switching drive circuit of front and back flash light
CN106686321A (en) * 2017-02-27 2017-05-17 维沃移动通信有限公司 Camera light supplementing device, camera light supplementing method and mobile terminal
CN106803896A (en) * 2017-02-28 2017-06-06 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal
CN107888842A (en) * 2017-12-28 2018-04-06 上海传英信息技术有限公司 A kind of flash lamp control method and control system based on intelligent terminal
CN108063982A (en) * 2018-01-11 2018-05-22 上海展扬通信技术有限公司 Adjust the method, apparatus and computer storage media of video calling brightness
CN110531564A (en) * 2019-07-30 2019-12-03 惠州Tcl移动通信有限公司 Flashlight driving circuit and intelligent terminal
CN111970458A (en) * 2020-08-10 2020-11-20 珠海格力电器股份有限公司 Mobile terminal and photographing light supplementing method
WO2020232679A1 (en) * 2019-05-22 2020-11-26 深圳市欢太科技有限公司 Photographing control method and related device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008244991A (en) * 2007-03-28 2008-10-09 Fujifilm Corp Imaging apparatus and imaging method
US20160037048A1 (en) * 2012-02-29 2016-02-04 Blackberry Limited Method and device for sharing a camera feature
CN203135986U (en) * 2013-01-31 2013-08-14 上海鼎为软件技术有限公司 Handset with shooting function
CN205666992U (en) * 2016-06-06 2016-10-26 宁波萨瑞通讯有限公司 Switching drive circuit of front and back flash light
CN106686321A (en) * 2017-02-27 2017-05-17 维沃移动通信有限公司 Camera light supplementing device, camera light supplementing method and mobile terminal
CN106803896A (en) * 2017-02-28 2017-06-06 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal
CN107888842A (en) * 2017-12-28 2018-04-06 上海传英信息技术有限公司 A kind of flash lamp control method and control system based on intelligent terminal
CN108063982A (en) * 2018-01-11 2018-05-22 上海展扬通信技术有限公司 Adjust the method, apparatus and computer storage media of video calling brightness
WO2020232679A1 (en) * 2019-05-22 2020-11-26 深圳市欢太科技有限公司 Photographing control method and related device
CN110531564A (en) * 2019-07-30 2019-12-03 惠州Tcl移动通信有限公司 Flashlight driving circuit and intelligent terminal
CN111970458A (en) * 2020-08-10 2020-11-20 珠海格力电器股份有限公司 Mobile terminal and photographing light supplementing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128488A (en) * 2021-04-21 2021-07-16 上海传英信息技术有限公司 Flash control method, flash control device, flash control terminal and storage medium
CN115883822A (en) * 2023-02-07 2023-03-31 深圳市永兴元科技股份有限公司 Method and device for debugging camera of online examination system and storage medium

Similar Documents

Publication Publication Date Title
CN107888842B (en) Flash lamp control method and control system based on intelligent terminal
CN113873122A (en) Independent flash control method, system and device for double-flash camera and storage medium
CN104076898A (en) Method and device for controlling luminance of mobile terminal screen
CN108710306B (en) Control method and device of intelligent equipment and computer readable storage medium
CN106506749B (en) Mobile terminal with flash lamp component
CN105657281B (en) Filming control method, fill-flash control device and fill-flash control system
CN105530438A (en) Shooting system and xenon flash apparatus
WO2023184902A1 (en) Photographic device, and adaptive method for software function and photographic parameter thereof
CN111131720A (en) Television control method, television and storage medium
CN110442385B (en) Light editing, driving and controlling method, system, equipment and storage medium
CN104240676A (en) Method for adjusting electronic device and electronic device
KR20180060685A (en) An electronic device and a controlling method thereof
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN112087611B (en) Electronic equipment and display screen adjusting method thereof
CN105791694A (en) Shooting control device, auxiliary flashing device and auxiliary flashing control system
CN104767934A (en) Information processing method and electronic equipment
CN107809545B (en) Control method and device of intelligent equipment and storage medium
CN105681642A (en) Shooting control device, auxiliary flash control device and auxiliary flash control system
CN111970457A (en) Method, system and device for controlling shooting image and light source equipment
CN110769577B (en) Atmosphere lamp control method and device
US20230033157A1 (en) Displaying a light control ui on a device upon detecting interaction with a light control device
CN111818695B (en) Control system, method and display module
CN104469174A (en) Handheld communication device and method for adjusting flash module of handheld communication device
CN113099278A (en) Method and device for supplementing light of picture, television equipment and computer readable storage medium
CN112333931B (en) Remote control method and system of composite flash initiator, electronic equipment and storage medium

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