WO2022062802A1 - Flash lamp control method of mobile terminal, mobile terminal, storage medium, and device - Google Patents

Flash lamp control method of mobile terminal, mobile terminal, storage medium, and device Download PDF

Info

Publication number
WO2022062802A1
WO2022062802A1 PCT/CN2021/114263 CN2021114263W WO2022062802A1 WO 2022062802 A1 WO2022062802 A1 WO 2022062802A1 CN 2021114263 W CN2021114263 W CN 2021114263W WO 2022062802 A1 WO2022062802 A1 WO 2022062802A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash
mobile terminal
driving parameters
illuminance
driving
Prior art date
Application number
PCT/CN2021/114263
Other languages
French (fr)
Chinese (zh)
Inventor
陈鹏宇
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022062802A1 publication Critical patent/WO2022062802A1/en

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
    • 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

Definitions

  • the present disclosure relates to the technical field of mobile terminals, and in particular, to a method for controlling a flashlight of a mobile terminal, a mobile terminal, a computer storage medium, and an electronic device.
  • Flash refers to a photographic accessory that can emit strong light in a short period of time.
  • most photographic equipment such as card cameras, SLR cameras, mobile terminals with camera functions, etc.
  • instant lighting can be achieved, or, in brightly lit occasions, local fill light is provided to the subject, and sufficient illumination is provided for the camera to obtain pictures when taking pictures at night, but the light intensity distribution varies greatly.
  • the purpose of the present disclosure is to provide a flash control method for a mobile terminal, a mobile terminal, a computer storage medium, and an electronic device.
  • a method for controlling a flashlight of a mobile terminal wherein the mobile terminal is provided with at least a first flashlight and a second flashlight, wherein the illumination parameters of the first flashlight and the second flashlight are different, and the
  • the illuminance parameter includes central illuminance and surrounding illuminance; the central illuminance of the first flash is greater than the surrounding illuminance, and the central illuminance of the second flash is smaller than the surrounding illuminance, and the method includes: when the first flash and the first flash are detected When the second flashlight is on, identify the current application scene; according to the current application scene, adjust the driving parameters of the first flashlight and the second flashlight, so as to adjust all the first flashlight and the second flashlight. Describe the illuminance parameter.
  • a mobile terminal is provided, the mobile terminal is provided with at least a first flashlight and a second flashlight, the first flashlight and the second flashlight have different illumination parameters, the illumination parameters include a center illuminance and surrounding illuminance; the central illuminance of the first flash is greater than the surrounding illuminance, the central illuminance of the second flash is less than the surrounding illuminance, and the mobile terminal includes: a detection module for detecting the first flash and all When the second flash is turned on, identify the current application scene; an adjustment module is used to adjust the driving parameters of the first flash and the second flash according to the current application scene, so as to adjust the first flash and the second flash. the illuminance parameter of the second flash.
  • a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the above-mentioned flash control methods for a mobile terminal.
  • an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute via executing the executable instructions
  • the flash control method of the mobile terminal according to any one of the above.
  • FIG. 1 shows a schematic flowchart of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 2 shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 3A shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 3B shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure
  • 3C shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 4 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 5 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 6 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 7 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 8 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure
  • FIG. 9 shows a schematic structural diagram of a mobile terminal in an exemplary embodiment of the present disclosure.
  • FIG. 10 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • a method for controlling a flashlight of a mobile terminal is provided first, which overcomes the defect of uneven light intensity distribution in the related art at least to a certain extent.
  • FIG. 1 shows a schematic flowchart of a method for controlling a flashlight of a mobile terminal according to an exemplary embodiment of the present disclosure.
  • the execution subject of the method for controlling a flashlight of a mobile terminal may be a mobile terminal that controls the flashlight.
  • a method for controlling a flashlight of a mobile terminal includes the following steps:
  • Step S110 when it is detected that the first flashing light and the second flashing light are in an on state, identify the current application scene
  • Step S120 adjust the driving parameters of the first flash and the second flash to adjust the illuminance parameters of the first flash and the second flash.
  • the light of the first flash and the second flash can be superimposed to improve the uniformity of the light intensity distribution, and solve the technical problem of partial overexposure in night photography due to uneven light intensity distribution in the related art , which improves the quality of night shots and the visual effects of photos.
  • the current application scene is identified, and the driving parameters of the first flash and the second flash are adjusted according to the current application scene, so as to adjust the first flash and the second flash.
  • the illumination parameters of the flash can present different lighting effects according to different scenes and different user needs, which improves the problem of single and dazzling light effects of the traditional flash, and optimizes the user experience.
  • a mobile terminal refers to a computer device that can be used on the move.
  • a mobile terminal in the present disclosure may include a mobile phone, a notebook, a tablet computer, etc., which can be set according to actual conditions, and belong to the protection scope of the present disclosure.
  • the above-mentioned mobile terminal is provided with at least a first flashlight and a second flashlight, and the lampshade structures of the first flashlight and the second flashlight are different, so that the illuminance parameters (including the central illuminance and the surrounding illuminance) of the first flashlight and the second flashlight are different.
  • the central illuminance of the first flash can be set to be greater than the surrounding illuminance
  • the central illuminance of the second flash can be set to be lower than the surrounding illuminance.
  • an anti-reflection film may also be provided on the lampshade structure of the first flash according to actual needs (for example, an anti-reflection film is provided in the central area of the lampshade of the first flash), and/or, on the lampshade structure of the first flash
  • An anti-reflection film is provided (for example, an anti-reflection film is set around the lampshade of the first flash) to increase the transmitted light intensity in the central area and reduce the transmitted light intensity in the surrounding area, so that the central illuminance of the first flash is greater than the surrounding illuminance.
  • An anti-reflection film can also be arranged on the lampshade structure of the second flash (for example, an anti-reflection film is arranged in the central area of the lampshade of the second flash) to reduce the transmitted light intensity in the central area, so that the central illumination of the second flash is lower than that of the surrounding area. Illumination.
  • an anti-reflection film may also be disposed around the lampshade of the second flash to reduce the intensity of the transmitted light in the central area and increase the intensity of the transmitted light in the surrounding areas , so that the central illuminance of the second flash is smaller than the surrounding illuminance.
  • FIG. 2 shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows a schematic diagram of the positional relationship between the first flash and the second flash on the mobile terminal.
  • 201 Shown is a mobile terminal
  • the first flash 203 and the second flash 204 can be set around the camera 202 with a preset distance and a left-right positional relationship, or they can also be set with a preset distance and a top-bottom positional relationship. around the camera.
  • the form of annular distribution is set around the camera to ensure that the subject can be evenly illuminated by light and improve the shooting quality.
  • the central illuminance and the peripheral illuminance of the first flashlight and the second flashlight under different driving parameters may be measured in advance at different distances (the distance between the measurement position and the mobile terminal).
  • the driving parameter may be a driving current or a driving voltage, etc.
  • the driving parameter is a driving current as an example for description.
  • FIG. 3A shows a schematic diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that when the driving current is 1A, the central illuminance and the Referring to FIG. 3A for a schematic diagram of the surrounding illuminance, it can be known that the central illuminance at this time is A 1 , and the surrounding illuminance is B 1 .
  • the measured central illuminance A 1 of the first flash at this time is 100 lux
  • the surrounding illuminance B 1 is 20 lux
  • the ratio of the surrounding illuminance to the central illuminance is 1:5.
  • FIG. 3B shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows a schematic diagram of the central illuminance and the surrounding illuminance measured at the above target distance and only the second flash is turned on when the driving current is 1A 3B , it can be known that the central illuminance at this time is A 2 , and the surrounding illuminance is B 2 .
  • the measured central illuminance A 2 of the second flash at this time is 30 lux
  • the surrounding illuminance B 2 is 60 lux
  • the ratio of the surrounding illuminance to the central illuminance is 2:1.
  • 3C shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that when the driving current of the first flash is I 1 and the driving current of the second flash is I 2 , the above target distance measurement
  • the schematic diagram of the central illuminance and the surrounding illuminance formed by the superposition of the first flash and the second flash, the central illuminance at this time is A 1 *I 1 +A 2 *I 2
  • the surrounding illuminance is B 1 *I 1 +B 2 *I 2 .
  • the driving current of the first flash is set to be 0.9A (the central illuminance of the first flash can be measured to be 90 lux, and the ambient illuminance can be 18 lux), and the driving current of the second flash is 1.45 A (the central illuminance of the second flash can be measured to be 18 lux)
  • the ratio of the illuminance to the central illuminance is approximately 98.9%, so that the display effect in which the center and the surroundings are approximately as bright can be visually presented.
  • the uniformity of the light intensity distribution can be greatly improved, and the light intensity distribution can be solved A technical problem with poor photo quality caused by unevenness.
  • the driving current of the first flash is set to be 0.3A (the central illuminance of the first flash can be measured to be 30 lux, and the ambient illuminance can be 6 lux), and the driving current of the second flash is 1.3 A (the central illuminance of the second flash can be measured to be 6 lux)
  • the different lighting effects and the corresponding relevant parameters can be stored in advance, so as to facilitate the subsequent related processing process direct call.
  • Table 1 shows an exemplary table in which the above-mentioned lighting effects and related parameters are stored correspondingly:
  • step S110 when it is detected that the first flashing light and the second flashing light are in an on state, the current application scene is identified.
  • the current application scene can be identified.
  • the current application scene can include a shooting scene and a lighting scene.
  • FIG. 4 FIG. 4 .
  • a schematic diagram of a sub-process of identifying a current application scenario in an exemplary embodiment of the present disclosure is shown, including steps S401-S402. The specific implementation is explained below with reference to FIG. 4 .
  • step S401 when it is detected that the first flash and the second flash are in an on state and the mobile terminal is in a shooting mode, it is determined that the current application scene is a shooting scene.
  • the mobile terminal when the first flash and the second flash are turned on, if it is detected that the mobile terminal is in the shooting mode (for example, the current display interface of the mobile terminal is the shooting interface, the user performs a click operation on the shooting icon, etc., Then it is determined that the mobile terminal is in the shooting mode), and it can be determined that the current application scene is the shooting scene.
  • the shooting mode for example, the current display interface of the mobile terminal is the shooting interface, the user performs a click operation on the shooting icon, etc.
  • step S402 when it is detected that the first flashlight and the second flashlight are in an on state and the mobile terminal is in a torch mode, it is determined that the current application scene is a lighting scene.
  • the mobile terminal when the first flash and the second flash are turned on, if it is detected that the mobile terminal is in the shooting mode (for example: the current display interface of the mobile terminal is the shooting interface), it can be determined that the current application scene is lighting Scenes.
  • the shooting mode for example: the current display interface of the mobile terminal is the shooting interface
  • step S120 according to the current application scenario, the driving parameters of the first flash and the second flash are adjusted to adjust the illuminance parameters of the first flash and the second flash.
  • the relevant parameters corresponding to "the center is as bright as the surroundings or roughly the same as the surroundings" can be automatically called, that is, the first
  • the drive current of the flash is set to 0.9A
  • the drive current of the second flash is set to 1.45A, so that the center can be as bright or roughly as bright as the surroundings, so that the light is evenly distributed to avoid local overexposure , to improve the shooting quality.
  • the relevant parameters corresponding to "surroundings are brighter than the center” can be automatically called, that is, the driving current of the first flash is set to 0.3A, and the driving current of the second flash is set to 1.3A to show The surrounding lighting effect is brighter than the center, so that the lighting can be avoided to be too dazzling and the user experience can be optimized.
  • the specific parameter calling settings can be set by themselves according to the actual situation, and belong to the protection scope of the present disclosure.
  • FIG. 5 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, specifically illustrating adjusting the first flash and the first flash according to the brightness of the surrounding environment.
  • step S501 the brightness of the surrounding environment is acquired.
  • the brightness of the surrounding environment can be obtained through the brightness sensor of the mobile terminal (a sensor that uses a photoelectric device as a conversion element, which can be used to detect non-electricity that directly causes changes in light brightness, and a sensor that uses a photoelectric element as a detection element),
  • Brightness refers to the brightness of the picture, and the unit is candela per square meter (cd/m2) or nits, which is the number of candles per square meter.
  • the brightness of the surrounding environment obtained in this step may be L 1 (candela/square meter).
  • the first flash and/or the second flash may be controlled to be automatically turned off to Avoid in the case of high brightness, affecting the shooting effect.
  • step S502 according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash, the driving parameters of the first flash are adjusted; according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the second flash , adjust the driving parameters of the second flash.
  • the driving parameters of the first flash and the second flash may be adjusted according to the brightness of the surrounding environment.
  • the corresponding relationship between the preset brightness and the driving parameters of the first flash can be obtained (for example, the brightness is divided into a plurality of numerical intervals, and different numerical intervals correspond to different driving currents of the first flash.
  • the brightness can be set. The smaller the value, the greater the driving current of the first flash), and the corresponding relationship between the preset brightness and the driving current of the second flash (for example, the brightness is divided into multiple numerical intervals, and different numerical intervals correspond to the second flash).
  • the driving parameters of the first flash are adjusted to the first target value
  • the driving parameters of the second flash are adjusted to the third Two target values.
  • the driving parameters of the first flash and the driving parameters of the second flash can also be adjusted according to the brightness, so that the central illuminance after the light of the two is superimposed is equal to or approximately equal to the surrounding illuminance (the light is evenly distributed), so as to avoid shooting scenes at night.
  • the uneven distribution of light in the medium leads to a technical problem of local overexposure, improving the quality of the photo.
  • the present disclosure can adjust different driving parameters according to different brightness to control different illuminance parameters, and when the brightness of the surrounding environment is low (the surrounding environment is very dark), the illuminance parameters of the two flashes can be improved to Clearly illuminate the surrounding environment; when the brightness of the surrounding environment is high (the surrounding environment is slightly darker), the illumination parameters of the two flashes can be appropriately reduced to avoid excessive power consumption under the premise of clear lighting and prolong the flash’s service life.
  • FIG. 6 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure.
  • step S601 the distance between the photographed object and the mobile terminal is obtained.
  • the distance between the photographed object and the mobile terminal may be acquired through a distance detection unit or an infrared distance sensor of the mobile terminal.
  • step S602 according to the distance, the corresponding relationship between the preset distance and the driving parameters of the first flash, the driving parameters of the first flash are adjusted; according to the corresponding relationship between the distance, the preset distance and the driving parameters of the second flash , adjust the driving parameters of the second flash.
  • the driving parameters of the first flash and the second flash may be automatically adjusted according to the above distance.
  • the corresponding relationship between the preset distance and the driving parameters of the first flash can be obtained (for example, the distance is divided into a plurality of numerical intervals, and different numerical intervals correspond to different driving currents of the first flash.
  • the distance can be set.
  • the driving parameters of the first flash and the driving parameters of the second flash can also be adjusted according to the distance, so that the central illuminance after the light of the two is superimposed is equal or approximately equal to the surrounding illuminance (the light is evenly distributed), so as to avoid shooting scenes at night.
  • the uneven distribution of light in the medium leads to a technical problem of local overexposure, improving the quality of the photo.
  • the present disclosure can adjust different driving parameters according to different distances to control different illuminance parameters.
  • the illuminance parameters of the two flashes can be appropriately increased to clearly Illuminate the shooting target; when the surrounding environment is relatively close, you can appropriately reduce the illumination parameters of the two flashes to avoid overexposure and affect the shooting quality.
  • the driving parameters of the first flash and the driving parameters of the second flash can also be preset under different ambient brightness and different shooting distances, so as to present different lighting conditions according to different ambient brightness and different shooting distances. Lighting effect.
  • FIG. 7 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure.
  • step S701 a touch operation acting on a touch screen of the mobile terminal is detected.
  • the touch operation may be determined as a parameter adjustment operate.
  • one or more parameter adjustment icons may also be displayed on the touch screen of the mobile terminal, and further, the user may perform a touch operation on the above parameter adjustment icons to adjust the first flash and/or the second flash. drive parameters.
  • the touch operation may be a sliding operation, a dragging operation, or the like.
  • the above parameter adjustment icon may also be automatically hidden to reduce the occupancy rate of the graphical user interface. .
  • step S702 the driving parameters of the first flash and/or the second flash are adjusted according to the touch operation.
  • the driving parameters of the first flash and/or the second flash may be adjusted according to the detected touch operation.
  • the touch position can be detected, and when the touch position is located above the touch screen, the driving current of the first flash and/or the second flash is increased, When the touch position is located below the touch screen, the driving current of the first flash and the second flash is reduced, so that the user can easily adjust the lighting effect of the flash even when the screen is off.
  • one or more parameter adjustment icons may also be displayed on the graphical user interface, and further, when a touch operation acting on the parameter adjustment icon is detected, the direction of the touch track can be detected.
  • the direction is upward, the driving parameters of the first flash and/or the second flash can be increased, and when the direction of the touch track is downward, the driving parameters of the first flash and/or the second flash can be decreased.
  • FIG. 8 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that in the lighting scene, according to the detected adjustment button , a schematic diagram of a sub-flow for adjusting the driving parameters of the first flash and/or the second flash, including steps S801-S802, and the specific implementation is explained below with reference to FIG. 8 .
  • step S801 the change of the adjustment button is detected; the adjustment button is used to adjust the driving parameters of the first flash and/or the second flash.
  • the change of the adjustment key (used to adjust the driving parameters of the first flash and/or the second flash) may be detected, for example, the adjustment key may be a side volume key of the mobile terminal.
  • step S802 the driving parameters of the first flash and/or the second flash are adjusted according to the change of the adjustment button.
  • the driving parameters of the first flashing light and/or the second flashing light may be adjusted according to the detected change of the adjustment button.
  • the driving parameter as the driving current as an example, when it is detected that the user presses the "+" of the volume key, the driving current of the first flash and/or the second flash can be increased.
  • the driving current of the first flashing light and/or the second flashing light can be reduced, so that different lighting effects can be displayed according to different needs of users.
  • different lighting effects can also be automatically controlled according to different scenes.
  • multiple lighting modes can be preset, and the first flash and the first flash corresponding to the different lighting modes can be set.
  • Two driving parameters of the flash for example, a variety of lighting modes may include: Mode A (central illuminance is greater than ambient illuminance), Mode B (central illuminance is equal to or approximately equal to ambient illuminance), Mode C (central illuminance is less than ambient illuminance), Therefore, the user can select an appropriate lighting mode according to his own needs.
  • mode B can be selected to ensure uniform lighting without glare; when the user's current actual demand is to carefully observe the shape of a certain part, thread a needle, and find something, Mode A can be selected to make the light more concentrated and facilitate the observation and search of the target.
  • the present disclosure can not only improve the uniformity of the light intensity distribution by superimposing the light of the flash and the second flash, but also solve the technical problem of partial overexposure of night photography caused by uneven light intensity distribution in the related art, and improve the nighttime photos. the quality of the shots and the lighting effects of the photos. On the other hand, it can also present different lighting effects according to different scenes and different user needs, improve the single and dazzling problem of traditional flash light effects, and optimize the user experience.
  • FIG. 9 shows a schematic structural diagram of the mobile terminal in an exemplary embodiment of the present disclosure; as shown in FIG. 9 , the mobile terminal 900 may include a detection module 901 and an adjustment module 902 . in:
  • the detection module 901 is configured to identify the current application scene when it is detected that the first flashlight and the second flashlight are in an on state.
  • the adjusting module 902 is configured to adjust the driving parameters of the first flash and the second flash according to the current application scene, so as to adjust the illumination parameters of the first flash and the second flash.
  • the current application scene includes at least a shooting scene and a lighting scene; the detection module is configured to: when it is detected that the first flash and the second flash are turned on and the mobile terminal is in the shooting mode When it is detected that the current application scene is a shooting scene; when it is detected that the first flash and the second flash are turned on and the mobile terminal is in the torch mode, the current application scene is determined to be a lighting scene.
  • the adjustment module is configured to: obtain the brightness of the surrounding environment; and adjust the driving parameters of the first flash according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash ; Adjust the driving parameters of the second flashing light according to the brightness, the corresponding relationship between the preset brightness and the driving parameters of the second flashing light.
  • the adjustment module is configured to: acquire the distance between the shooting object and the mobile terminal; adjust the first flash according to the distance, the corresponding relationship between the preset distance and the driving parameters of the first flash
  • the driving parameters of the second flashing light are adjusted according to the distance, the corresponding relationship between the preset distance and the driving parameters of the second flashing light.
  • the adjustment module is configured to: detect a touch operation acting on a touch screen of the mobile terminal; and adjust the driving of the first flash and/or the second flash according to the touch operation parameter.
  • the adjustment module is configured to: detect changes in the adjustment keys; the adjustment keys are used to adjust the driving parameters of the first flash and/or the second flash; and according to the changes of the adjustment keys, adjust the first flash. Driving parameters of a flash and/or a second flash.
  • an anti-reflection film is provided in the central area of the lampshade of the first flashlight, and/or an anti-reflection film is provided in the surrounding area of the lampshade of the first flashlight.
  • an anti-reflection film is provided in a central area of the lampshade of the second flash lamp, and an anti-reflection film is provided in a peripheral area of the lampshade of the second flash lamp.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a mobile terminal, or a network device, etc.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or it may exist alone without being assembled into the electronic device.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the above embodiments.
  • aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", “module” or "system”.
  • the electronic device 1000 according to this embodiment of the present disclosure is described below with reference to FIG. 10 .
  • the electronic device 1000 shown in FIG. 10 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
  • electronic device 1000 takes the form of a general-purpose computing device.
  • Components of the electronic device 1000 may include, but are not limited to, the above-mentioned at least one processing unit 1010 , the above-mentioned at least one storage unit 1020 , a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010 ), and a display unit 1040 .
  • the storage unit stores program codes, and the program codes can be executed by the processing unit 1010, so that the processing unit 1010 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification.
  • Implementation steps For example, the processing unit 1010 may perform as shown in FIG. 1: step S110, when it is detected that the first flashing light and the second flashing light are turned on, identify the current application scene; step S120, adjust the first flashing light according to the current application scene The driving parameters of the first flash and the second flash are used to adjust the illuminance parameters of the first flash and the second flash.
  • the storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and/or a cache storage unit 10202 , and may further include a read only storage unit (ROM) 10203 .
  • RAM random access storage unit
  • ROM read only storage unit
  • the storage unit 1020 may also include a program/utility 10204 having a set (at least one) of program modules 10205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.
  • the bus 1030 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
  • the electronic device 1000 may also communicate with one or more external devices 1100 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 1050 . Also, the electronic device 1000 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through the network adapter 1060 . As shown, network adapter 1060 communicates with other modules of electronic device 1000 via bus 1030 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

A flash lamp control method of a mobile terminal, the mobile terminal, a computer storage medium, and an electronic device. The flash lamp control method of the mobile terminal comprises: recognizing a current application scene when detecting that a first flash lamp and a second flash lamp are in an on state (S110); and adjusting driving parameters of the first flash lamp and the second flash lamp according to the current application scene, so as to adjust illumination parameters of the first flash lamp and the second flash lamp (S120). The method can not only improve the uniformity of light intensity distribution, but also present different lighting effects according to different application scenes and different user requirements.

Description

移动终端的闪光灯控制方法及移动终端、存储介质、设备Flash control method of mobile terminal and mobile terminal, storage medium and device
交叉引用cross reference
本申请要求于2020年09月22日提交中国专利局、申请号为202011003318.7、申请名称为“移动终端的闪光灯控制方法及移动终端、存储介质、设备”的专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the patent application filed with the China Patent Office on September 22, 2020, the application number is 202011003318.7, and the application name is "Flash control method for mobile terminal and mobile terminal, storage medium, device", the entire content of which is through Reference is incorporated in this application.
技术领域technical field
本公开涉及移动终端技术领域,特别涉及一种移动终端的闪光灯控制方法、移动终端、计算机存储介质及电子设备。The present disclosure relates to the technical field of mobile terminals, and in particular, to a method for controlling a flashlight of a mobile terminal, a mobile terminal, a computer storage medium, and an electronic device.
背景技术Background technique
闪光灯是指能在很短时间内发出强光线的摄影配件,目前,大多数摄像设备(例如卡片相机、单反相机、带有摄像功能的移动终端等)都配备有闪光灯,以用于在光线较暗的场合实现瞬间照明,或者,在光线较亮的场合给被拍摄对象局部补光、在夜晚拍照时为相机获取图片提供足够的照度,但其光强分布的差异性较大。Flash refers to a photographic accessory that can emit strong light in a short period of time. At present, most photographic equipment (such as card cameras, SLR cameras, mobile terminals with camera functions, etc.) In dark occasions, instant lighting can be achieved, or, in brightly lit occasions, local fill light is provided to the subject, and sufficient illumination is provided for the camera to obtain pictures when taking pictures at night, but the light intensity distribution varies greatly.
需要说明的是,上述背景技术部分公开的信息仅用于加强对本公开的背景的理解。It should be noted that the information disclosed in the above Background section is only used to enhance understanding of the background of the present disclosure.
发明内容SUMMARY OF THE INVENTION
本公开的目的在于提供一种移动终端的闪光灯控制方法、移动终端、计算机存储介质及电子设备。The purpose of the present disclosure is to provide a flash control method for a mobile terminal, a mobile terminal, a computer storage medium, and an electronic device.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的一个方面,提供一种移动终端的闪光灯控制方法,所述移动终端至少设置有第一闪光灯和第二闪光灯,所述第一闪光灯与所述第二闪光灯的照度参数不同,所述照度参数包括中心照度和周围照度;所述第一闪光灯的中心照度大于周围照度,所述第二闪光灯的中心照度小于周围照度,所述方法包括:当检测到所述第一闪光灯和所述第二闪光灯处于开启状态时,识别当前应用场景;根据所述当前应用场景,调节所述第一闪光灯和所述第二闪光灯的驱动参数,以调节所述第一闪光灯和所述第二闪光灯的所述照度参数。According to an aspect of the present disclosure, a method for controlling a flashlight of a mobile terminal is provided, wherein the mobile terminal is provided with at least a first flashlight and a second flashlight, wherein the illumination parameters of the first flashlight and the second flashlight are different, and the The illuminance parameter includes central illuminance and surrounding illuminance; the central illuminance of the first flash is greater than the surrounding illuminance, and the central illuminance of the second flash is smaller than the surrounding illuminance, and the method includes: when the first flash and the first flash are detected When the second flashlight is on, identify the current application scene; according to the current application scene, adjust the driving parameters of the first flashlight and the second flashlight, so as to adjust all the first flashlight and the second flashlight. Describe the illuminance parameter.
根据本公开的一个方面,提供一种移动终端,所述移动终端至少设置有第一闪光灯和第二闪光灯,所述第一闪光灯与所述第二闪光灯的照度参数不同,所述照度参数包括中心照度和周围照度;所述第一闪光灯的中心照度大于周围照度,所述第二闪光灯的中心照度小于周围照度,所述移动终端包括:检测模块,用于当检测到所述第一闪光灯和所述第二闪光灯处于开启状态时,识别当前应用场景;调节模块,用于根据 所述当前应用场景,调节所述第一闪光灯和所述第二闪光灯的驱动参数,以调节所述第一闪光灯和所述第二闪光灯的所述照度参数。According to an aspect of the present disclosure, a mobile terminal is provided, the mobile terminal is provided with at least a first flashlight and a second flashlight, the first flashlight and the second flashlight have different illumination parameters, the illumination parameters include a center illuminance and surrounding illuminance; the central illuminance of the first flash is greater than the surrounding illuminance, the central illuminance of the second flash is less than the surrounding illuminance, and the mobile terminal includes: a detection module for detecting the first flash and all When the second flash is turned on, identify the current application scene; an adjustment module is used to adjust the driving parameters of the first flash and the second flash according to the current application scene, so as to adjust the first flash and the second flash. the illuminance parameter of the second flash.
根据本公开的一个方面,提供一种计算机存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的移动终端的闪光灯控制方法。According to one aspect of the present disclosure, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the above-mentioned flash control methods for a mobile terminal.
根据本公开的一个方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的移动终端的闪光灯控制方法。According to one aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute via executing the executable instructions The flash control method of the mobile terminal according to any one of the above.
本公开应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood in the present disclosure that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出本公开一示例性实施例中移动终端的闪光灯控制方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图2示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图;FIG. 2 shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure;
图3A示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图;FIG. 3A shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure;
图3B示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图;FIG. 3B shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure;
图3C示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图;3C shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure;
图4示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图;FIG. 4 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图5示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图;FIG. 5 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图6示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图;FIG. 6 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图7示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图;FIG. 7 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图8示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图;FIG. 8 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure;
图9示出本公开示例性实施例中移动终端的结构示意图;FIG. 9 shows a schematic structural diagram of a mobile terminal in an exemplary embodiment of the present disclosure;
图10示出本公开示例性实施例中电子设备的结构示意图。FIG. 10 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
具体实施方式detailed description
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中 的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
附图中所示的流程图仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,下面所有的术语“第一”、“第二”仅是为了区分的目的,不应作为本公开内容的限制。The flow charts shown in the figures are merely illustrative and do not necessarily include all steps. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation. In addition, all the following terms "first" and "second" are only for the purpose of distinction and should not be used as a limitation of the present disclosure.
在本公开的实施例中,首先提供了一种移动终端的闪光灯控制方法,至少在一定程度上克服相关技术中光强分布不均匀的缺陷。In the embodiments of the present disclosure, a method for controlling a flashlight of a mobile terminal is provided first, which overcomes the defect of uneven light intensity distribution in the related art at least to a certain extent.
图1示出本公开一示例性实施例中移动终端的闪光灯控制方法的流程示意图,该移动终端的闪光灯控制方法的执行主体可以是对闪光灯进行控制的移动终端。FIG. 1 shows a schematic flowchart of a method for controlling a flashlight of a mobile terminal according to an exemplary embodiment of the present disclosure. The execution subject of the method for controlling a flashlight of a mobile terminal may be a mobile terminal that controls the flashlight.
参考图1,根据本公开的一个实施例的移动终端的闪光灯控制方法包括以下步骤:Referring to FIG. 1 , a method for controlling a flashlight of a mobile terminal according to an embodiment of the present disclosure includes the following steps:
步骤S110,当检测到第一闪光灯和第二闪光灯处于开启状态时,识别当前应用场景;Step S110, when it is detected that the first flashing light and the second flashing light are in an on state, identify the current application scene;
步骤S120,根据当前应用场景,调节第一闪光灯和第二闪光灯的驱动参数,以调节第一闪光灯和第二闪光灯的照度参数。Step S120, according to the current application scenario, adjust the driving parameters of the first flash and the second flash to adjust the illuminance parameters of the first flash and the second flash.
在图1所示实施例所提供的技术方案中,一方面,通过在移动终端上设置照度参数不同的第一闪光灯和第二闪光灯(具体的,第一闪光灯的中心照度大于周围照度,第二闪光灯的中心照度小于周围照度),能够通过第一闪光灯和第二闪光灯的光线叠加,提高光强分布的均匀性,解决相关技术中因光强分布不均匀所导致夜晚拍照局部过度曝光的技术问题,提高了夜晚的拍摄质量和照片的视觉效果。另一方面,当检测到第一闪光灯和第二闪光灯处于开启状态时,识别当前应用场景,并根据当前应用场景,调节第一闪光灯和第二闪光灯的驱动参数,以调节第一闪光灯和第二闪光灯的照度参数,能够根据不同的场景和不同的用户需求呈现出不同的打光光效,改善了传统闪光灯光效单一、刺眼的问题,优化了用户的使用体验。In the technical solution provided by the embodiment shown in FIG. 1 , on the one hand, by setting a first flash and a second flash with different illumination parameters on the mobile terminal (specifically, the central illumination of the first flash is greater than the ambient illumination, the second The central illuminance of the flash is less than the surrounding illuminance), the light of the first flash and the second flash can be superimposed to improve the uniformity of the light intensity distribution, and solve the technical problem of partial overexposure in night photography due to uneven light intensity distribution in the related art , which improves the quality of night shots and the visual effects of photos. On the other hand, when it is detected that the first flash and the second flash are turned on, the current application scene is identified, and the driving parameters of the first flash and the second flash are adjusted according to the current application scene, so as to adjust the first flash and the second flash. The illumination parameters of the flash can present different lighting effects according to different scenes and different user needs, which improves the problem of single and dazzling light effects of the traditional flash, and optimizes the user experience.
以下对图1中的各个步骤的具体实现过程进行详细阐述:The specific implementation process of each step in FIG. 1 is described in detail below:
移动终端是指可以在移动中使用的计算机设备,举例而言,本公开中的移动终端可以包括手机、笔记本、平板电脑等,可以根据实际情况自行设定,属于本公开的保护范围。A mobile terminal refers to a computer device that can be used on the move. For example, a mobile terminal in the present disclosure may include a mobile phone, a notebook, a tablet computer, etc., which can be set according to actual conditions, and belong to the protection scope of the present disclosure.
上述移动终端至少设置有第一闪光灯和第二闪光灯,第一闪光灯与第二闪光灯 的灯罩结构不同,使得第一闪光灯与第二闪光灯的照度参数(包括中心照度和周围照度)不同,示例性的,可以设置第一闪光灯的中心照度大于周围照度,设置第二闪光灯的中心照度小于周围照度。The above-mentioned mobile terminal is provided with at least a first flashlight and a second flashlight, and the lampshade structures of the first flashlight and the second flashlight are different, so that the illuminance parameters (including the central illuminance and the surrounding illuminance) of the first flashlight and the second flashlight are different. , the central illuminance of the first flash can be set to be greater than the surrounding illuminance, and the central illuminance of the second flash can be set to be lower than the surrounding illuminance.
示例性的,还可以根据实际需要在第一闪光灯的灯罩结构上设置增透膜(例如:在第一闪光灯的灯罩中心区域设置增透膜),和/或,在第一闪光灯的灯罩结构上设置减透膜(例如:在第一闪光灯的灯罩四周区域设置减透膜),以增加中心区域的透射光强度,减少四周区域的透射光强度,实现第一闪光灯的中心照度大于周围照度。Exemplarily, an anti-reflection film may also be provided on the lampshade structure of the first flash according to actual needs (for example, an anti-reflection film is provided in the central area of the lampshade of the first flash), and/or, on the lampshade structure of the first flash An anti-reflection film is provided (for example, an anti-reflection film is set around the lampshade of the first flash) to increase the transmitted light intensity in the central area and reduce the transmitted light intensity in the surrounding area, so that the central illuminance of the first flash is greater than the surrounding illuminance.
还可以在第二闪光灯的灯罩结构上设置减透膜(例如:在第二闪光灯的灯罩中心区域设置减透膜),以减小中心区域的透射光强度,实现第二闪光灯的中心照度小于周围照度。此外,在第二闪光灯的灯罩中心区域设置减透膜的基础上,还可以在第二闪光灯的灯罩四周区域设置增透膜,以减少中心区域的透射光的强度,增加四周区域的透射光强度,实现第二闪光灯的中心照度小于周围照度。An anti-reflection film can also be arranged on the lampshade structure of the second flash (for example, an anti-reflection film is arranged in the central area of the lampshade of the second flash) to reduce the transmitted light intensity in the central area, so that the central illumination of the second flash is lower than that of the surrounding area. Illumination. In addition, on the basis of disposing the anti-reflection film in the central area of the lampshade of the second flash, an anti-reflection film may also be disposed around the lampshade of the second flash to reduce the intensity of the transmitted light in the central area and increase the intensity of the transmitted light in the surrounding areas , so that the central illuminance of the second flash is smaller than the surrounding illuminance.
示例性的,图2示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图,具体示出上述第一闪光灯和第二闪光灯在移动终端上的位置关系的示意图,参考图2,201所示为移动终端,202所示为摄像头,上述第一闪光灯203和第二闪光灯204可以以预设间距、左右位置关系设置在摄像头202四周,或者,还可以以预设间距、上下位置关系设置在摄像头四周。需要说明的是,上述闪光灯的具体数量和相互的位置关系可以根据实际情况自行设定,属于本公开的保护范围,举例而言,当闪光灯数量大于两个时,还可以将其以等间距、环形分布的形式设置在摄像头四周,以保证被摄目标能够被光线均匀照射,提升拍摄质量。Exemplarily, FIG. 2 shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows a schematic diagram of the positional relationship between the first flash and the second flash on the mobile terminal. Referring to FIG. 2 , 201 Shown is a mobile terminal, and 202 is a camera. The first flash 203 and the second flash 204 can be set around the camera 202 with a preset distance and a left-right positional relationship, or they can also be set with a preset distance and a top-bottom positional relationship. around the camera. It should be noted that the specific number and mutual positional relationship of the above-mentioned flashing lights can be set by themselves according to the actual situation, and belong to the protection scope of the present disclosure. The form of annular distribution is set around the camera to ensure that the subject can be evenly illuminated by light and improve the shooting quality.
示例性的,可以预先在不同的距离(测定位置与移动终端的距离)下,测定第一闪光灯和第二闪光灯在不同驱动参数下的中心照度和周围照度。其中,驱动参数可以是驱动电流或驱动电压等,以下实施例中以驱动参数为驱动电流为例进行说明。Exemplarily, the central illuminance and the peripheral illuminance of the first flashlight and the second flashlight under different driving parameters may be measured in advance at different distances (the distance between the measurement position and the mobile terminal). Wherein, the driving parameter may be a driving current or a driving voltage, etc. In the following embodiments, the driving parameter is a driving current as an example for description.
示例性的,图3A示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图,具体示出当驱动电流为1A时,在目标距离测定的、仅开启第一闪光灯时的中心照度和周围照度的示意图,参考图3A可知,此时的中心照度为A 1,周围照度为B 1。举例而言,此时测得的第一闪光灯的中心照度A 1为100lux,周围照度B 1为20lux,其周围照度与中心照度的比值为1:5。 Exemplarily, FIG. 3A shows a schematic diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that when the driving current is 1A, the central illuminance and the Referring to FIG. 3A for a schematic diagram of the surrounding illuminance, it can be known that the central illuminance at this time is A 1 , and the surrounding illuminance is B 1 . For example, the measured central illuminance A 1 of the first flash at this time is 100 lux, the surrounding illuminance B 1 is 20 lux, and the ratio of the surrounding illuminance to the central illuminance is 1:5.
图3B示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图,具体示出当驱动电流为1A时,在上述目标距离测定的、仅开启第二闪光灯的中心照度和周围照度的示意图,参考图3B可知,此时的中心照度为A 2,周围照度为B 2。举例而言,此时测得的第二闪光灯的中心照度A 2为30lux,周围照度B 2为60lux,其周围照度与中心照度的比值为2:1。 3B shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows a schematic diagram of the central illuminance and the surrounding illuminance measured at the above target distance and only the second flash is turned on when the driving current is 1A 3B , it can be known that the central illuminance at this time is A 2 , and the surrounding illuminance is B 2 . For example, the measured central illuminance A 2 of the second flash at this time is 30 lux, the surrounding illuminance B 2 is 60 lux, and the ratio of the surrounding illuminance to the central illuminance is 2:1.
图3C示出本公开一示例性实施例中移动终端的闪光灯控制方法的示意图,具 体示出当第一闪光灯的驱动电流为I 1,第二闪光灯的驱动电流为I 2时,在上述目标距离测定的、第一闪光灯和第二闪光灯光线叠加后形成的中心照度和周围照度的示意图,此时的中心照度为A 1*I 1+A 2*I 2,周围照度为B 1*I 1+B 2*I 23C shows a schematic diagram of a flash control method of a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that when the driving current of the first flash is I 1 and the driving current of the second flash is I 2 , the above target distance measurement The schematic diagram of the central illuminance and the surrounding illuminance formed by the superposition of the first flash and the second flash, the central illuminance at this time is A 1 *I 1 +A 2 *I 2 , and the surrounding illuminance is B 1 *I 1 +B 2 *I 2 .
从而,当设定第一闪光灯的驱动电流为1A,第二闪光灯的驱动电流为1A时,则其自然叠加后形成的中心照度可以是100*1+30*1=130lux,周围照度可以是20*1+60*1=80lux,从而,视觉上可以呈现出中心比周围亮的显示效果。Therefore, when the driving current of the first flashing light is set to be 1A and the driving current of the second flashing light to 1A, the central illuminance formed by the natural superposition can be 100*1+30*1=130 lux, and the surrounding illuminance can be 20 *1+60*1=80lux, thus, a display effect in which the center is brighter than the surroundings can be visually presented.
当设定第一闪光灯的驱动电流为0.9A(测得第一闪光灯的中心照度可以是90lux,周围照度可以是18lux),第二闪光灯的驱动电流为1.45A时(测得第二闪光灯的中心照度可以是43.5lux,周围照度可以是87lux),则其自然叠加后形成的中心照度可以是90*0.9+43.5*1.45=144.075lux,周围照度为18*0.9+87*1.45=142.35lux,周围照度与中心照度的比值大致为98.9%,从而,视觉上可以呈现出中心与周围大致一样亮的显示效果,相比现有技术,能够大幅度的提高光强分布的均匀性,解决光强分布不均匀所导致的照片质量差的技术问题。When the driving current of the first flash is set to be 0.9A (the central illuminance of the first flash can be measured to be 90 lux, and the ambient illuminance can be 18 lux), and the driving current of the second flash is 1.45 A (the central illuminance of the second flash can be measured to be 18 lux) The illuminance can be 43.5lux, the surrounding illuminance can be 87lux), then the central illuminance formed by natural superposition can be 90*0.9+43.5*1.45=144.075lux, the surrounding illuminance is 18*0.9+87*1.45=142.35lux, the surrounding The ratio of the illuminance to the central illuminance is approximately 98.9%, so that the display effect in which the center and the surroundings are approximately as bright can be visually presented. Compared with the prior art, the uniformity of the light intensity distribution can be greatly improved, and the light intensity distribution can be solved A technical problem with poor photo quality caused by unevenness.
当设定第一闪光灯的驱动电流为0.3A(测得第一闪光灯的中心照度可以是30lux,周围照度可以是6lux),第二闪光灯的驱动电流为1.3A时(测得第二闪光灯的中心照度可以是39lux,周围照度可以是78lux),则其自然叠加后形成的中心照度可以是30*0.3+39*1.3=59.7lux,周围照度为6*0.3+78*1.3=103.2lux,从而,可以呈现出周围比中心亮的显示效果。When the driving current of the first flash is set to be 0.3A (the central illuminance of the first flash can be measured to be 30 lux, and the ambient illuminance can be 6 lux), and the driving current of the second flash is 1.3 A (the central illuminance of the second flash can be measured to be 6 lux) The illuminance can be 39lux, and the surrounding illuminance can be 78lux), then the central illuminance formed by natural superposition can be 30*0.3+39*1.3=59.7lux, and the surrounding illuminance is 6*0.3+78*1.3=103.2lux, thus, It is possible to present a display effect that the periphery is brighter than the center.
在测定出不同打光效果所对应的相关参数(第一闪光灯的驱动电流、第二闪光灯的驱动电流)之后,可以预先将不同打光效果与对应的相关参数对应存储,以便于后续相关处理过程的直接调用。示例性的,可以参考表1,表1示出将上述打光效果与相关参数对应存储的示例性表格:After the relevant parameters corresponding to different lighting effects (the driving current of the first flash, the driving current of the second flash) are determined, the different lighting effects and the corresponding relevant parameters can be stored in advance, so as to facilitate the subsequent related processing process direct call. Exemplarily, reference can be made to Table 1, which shows an exemplary table in which the above-mentioned lighting effects and related parameters are stored correspondingly:
表1Table 1
Figure PCTCN2021114263-appb-000001
Figure PCTCN2021114263-appb-000001
需要说明的是,不同的打光效果可以对应多组不同的相关参数,可结合实际情况自行设定,本公开对此不作特殊限定。It should be noted that different lighting effects may correspond to multiple sets of different related parameters, which may be set by themselves in combination with actual conditions, which is not specifically limited in the present disclosure.
继续参考图1,在步骤S110中,当检测到第一闪光灯和第二闪光灯处于开启状态时,识别当前应用场景。Continuing to refer to FIG. 1 , in step S110 , when it is detected that the first flashing light and the second flashing light are in an on state, the current application scene is identified.
本步骤中,当检测到第一闪光灯和第二闪光灯处于开启状态时,可以识别当前应 用场景,示例性的,当前应用场景可以包括拍摄场景和照明场景,具体的,可以参考图4,图4示出本公开一示例性实施例中识别当前应用场景的子流程示意图,包含步骤S401-S402,以下结合图4对具体的实施方式进行解释。In this step, when it is detected that the first flash and the second flash are turned on, the current application scene can be identified. Exemplarily, the current application scene can include a shooting scene and a lighting scene. For details, please refer to FIG. 4 , FIG. 4 . A schematic diagram of a sub-process of identifying a current application scenario in an exemplary embodiment of the present disclosure is shown, including steps S401-S402. The specific implementation is explained below with reference to FIG. 4 .
在步骤S401中,当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于拍摄模式下时,确定当前应用场景为拍摄场景。In step S401, when it is detected that the first flash and the second flash are in an on state and the mobile terminal is in a shooting mode, it is determined that the current application scene is a shooting scene.
本步骤中,在第一闪光灯和第二闪光灯处于开启状态的情况下,若检测到移动终端处于拍摄模式下(例如:当前移动终端的显示界面为拍摄界面、用户对拍照图标执行点击操作等,则确定移动终端处于拍摄模式),可以确定当前应用场景为拍摄场景。In this step, when the first flash and the second flash are turned on, if it is detected that the mobile terminal is in the shooting mode (for example, the current display interface of the mobile terminal is the shooting interface, the user performs a click operation on the shooting icon, etc., Then it is determined that the mobile terminal is in the shooting mode), and it can be determined that the current application scene is the shooting scene.
在步骤S402中,当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于手电筒模式下时,确定当前应用场景为照明场景。In step S402, when it is detected that the first flashlight and the second flashlight are in an on state and the mobile terminal is in a torch mode, it is determined that the current application scene is a lighting scene.
本步骤中,在第一闪光灯和第二闪光灯处于开启状态的情况下,若检测到移动终端处于拍摄模式下(例如:当前移动终端的显示界面为拍摄界面)时,可以确定当前应用场景为照明场景。In this step, when the first flash and the second flash are turned on, if it is detected that the mobile terminal is in the shooting mode (for example: the current display interface of the mobile terminal is the shooting interface), it can be determined that the current application scene is lighting Scenes.
继续参考图1,在步骤S120中,根据当前应用场景,调节第一闪光灯和第二闪光灯的驱动参数,以调节第一闪光灯和第二闪光灯的照度参数。Continuing to refer to FIG. 1 , in step S120 , according to the current application scenario, the driving parameters of the first flash and the second flash are adjusted to adjust the illuminance parameters of the first flash and the second flash.
本步骤中,示例性的,可以参照上述步骤的相关解释以及表1,若当前应用场景为拍摄场景,可以自动调用“中心与周围一样亮或大致一样亮”所对应的相关参数,即将第一闪光灯的驱动电流设置为0.9A,将第二闪光灯的驱动电流设置为1.45A,从而,可以呈现出中心与周围一样亮或大致一样亮的打光效果,使得光线均匀分布,以避免局部过度曝光,提高拍摄质量。若当前应用场景为照明场景,可以自动调用“周围比中心亮”所对应的相关参数,即将第一闪光灯的驱动电流设置为0.3A,将第二闪光灯的驱动电流设置为1.3A,以呈现出周围比中心亮的打光效果,从而,可以避免照明光线过于刺眼,优化用户体验。需要说明的是,具体的参数调用设置,可以根据实际情况自行设定,属于本公开的保护范围。In this step, exemplarily, referring to the relevant explanations of the above steps and Table 1, if the current application scene is a shooting scene, the relevant parameters corresponding to "the center is as bright as the surroundings or roughly the same as the surroundings" can be automatically called, that is, the first The drive current of the flash is set to 0.9A, and the drive current of the second flash is set to 1.45A, so that the center can be as bright or roughly as bright as the surroundings, so that the light is evenly distributed to avoid local overexposure , to improve the shooting quality. If the current application scene is a lighting scene, the relevant parameters corresponding to "surroundings are brighter than the center" can be automatically called, that is, the driving current of the first flash is set to 0.3A, and the driving current of the second flash is set to 1.3A to show The surrounding lighting effect is brighter than the center, so that the lighting can be avoided to be too dazzling and the user experience can be optimized. It should be noted that the specific parameter calling settings can be set by themselves according to the actual situation, and belong to the protection scope of the present disclosure.
若当前应用场景为拍摄场景,还可以参考图5,图5示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图,具体示出根据周围环境的亮度调节第一闪光灯和第二闪光灯的驱动参数,以实现不同的光强分布的子流程示意图,包含步骤S501-S502,以下结合图5对具体的实施方式进行解释。If the current application scene is a shooting scene, reference may also be made to FIG. 5 . FIG. 5 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, specifically illustrating adjusting the first flash and the first flash according to the brightness of the surrounding environment. A schematic diagram of a sub-flow for realizing different light intensity distributions by driving parameters of the two flash lamps, including steps S501-S502, the specific implementation is explained below with reference to FIG. 5 .
在步骤S501中,获取周围环境的亮度。In step S501, the brightness of the surrounding environment is acquired.
本步骤中,可以通过移动终端的亮度传感器(以光电器件作为转换元件的传感器,它可用于检测直接引起光亮度变化的非电量,是采用光电元件作为检测元件的传感器)获取周围环境的亮度,亮度指的是画面的明亮程度,单位是坎德拉每平方米(cd/m2)或称nits,也就是每平方公尺分之烛光。举例而言,本步骤中获取到周 围环境的亮度可以是L 1(坎德拉/平方米)。 In this step, the brightness of the surrounding environment can be obtained through the brightness sensor of the mobile terminal (a sensor that uses a photoelectric device as a conversion element, which can be used to detect non-electricity that directly causes changes in light brightness, and a sensor that uses a photoelectric element as a detection element), Brightness refers to the brightness of the picture, and the unit is candela per square meter (cd/m2) or nits, which is the number of candles per square meter. For example, the brightness of the surrounding environment obtained in this step may be L 1 (candela/square meter).
示例性的,在获取到周围环境的亮度之后,若判断出周围环境的亮度L 1大于亮度阈值L(预先设置的亮度值),还可以控制第一闪光灯和/或第二闪光灯自动关闭,以避免在亮度较高的情况下,影响拍摄效果。 Exemplarily, after acquiring the brightness of the surrounding environment, if it is determined that the brightness L1 of the surrounding environment is greater than the brightness threshold L (preset brightness value), the first flash and/or the second flash may be controlled to be automatically turned off to Avoid in the case of high brightness, affecting the shooting effect.
在步骤S502中,根据亮度、预先设定的亮度与第一闪光灯的驱动参数的对应关系,调节第一闪光灯的驱动参数;根据亮度、预先设定的亮度与第二闪光灯的驱动参数的对应关系,调节第二闪光灯的驱动参数。In step S502, according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash, the driving parameters of the first flash are adjusted; according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the second flash , adjust the driving parameters of the second flash.
本步骤中,可以根据周围环境的亮度调节第一闪光灯和第二闪光灯的驱动参数。具体的,可以获取预先设定的亮度与第一闪光灯的驱动参数的对应关系(例如:将亮度划分为多个数值区间,不同数值区间对应第一闪光灯的不同驱动电流,具体的,可以设置亮度越小,第一闪光灯的驱动电流越大),以及,获取预先设定的亮度与第二闪光灯的驱动电流的对应关系(例如:将亮度划分为多个数值区间,不同数值区间对应第二闪光灯的不同驱动电流,具体的,可以设置亮度越小,第二闪光灯的驱动电流越大),进而,将第一闪光灯的驱动参数调整为第一目标值,将第二闪光灯的驱动参数调整为第二目标值。In this step, the driving parameters of the first flash and the second flash may be adjusted according to the brightness of the surrounding environment. Specifically, the corresponding relationship between the preset brightness and the driving parameters of the first flash can be obtained (for example, the brightness is divided into a plurality of numerical intervals, and different numerical intervals correspond to different driving currents of the first flash. Specifically, the brightness can be set. The smaller the value, the greater the driving current of the first flash), and the corresponding relationship between the preset brightness and the driving current of the second flash (for example, the brightness is divided into multiple numerical intervals, and different numerical intervals correspond to the second flash). Specifically, the lower the brightness can be set, the greater the driving current of the second flash), and then, the driving parameters of the first flash are adjusted to the first target value, and the driving parameters of the second flash are adjusted to the third Two target values.
示例性的,还可以根据亮度调节第一闪光灯的驱动参数和第二闪光灯的驱动参数,使得二者光线叠加之后的中心照度与周围照度相等或近似相等(光线均匀分布),以避免夜晚拍摄场景中光线分布不均匀导致局部曝光过度的技术问题,提高照片拍摄质量。Exemplarily, the driving parameters of the first flash and the driving parameters of the second flash can also be adjusted according to the brightness, so that the central illuminance after the light of the two is superimposed is equal to or approximately equal to the surrounding illuminance (the light is evenly distributed), so as to avoid shooting scenes at night. The uneven distribution of light in the medium leads to a technical problem of local overexposure, improving the quality of the photo.
从而,本公开能够实现根据不同的亮度调节不同的驱动参数,以控制不同的照度参数,当周围环境的亮度较低(周围环境很暗)的情况下,可以提高两个闪光灯的照度参数,以清楚的照亮周围环境;当周围环境的亮度较高(周围环境稍暗)的情况下,可以适当降低两个闪光灯的照度参数,以在清楚照亮的前提下避免电量过度消耗,延长闪光灯的使用寿命。Therefore, the present disclosure can adjust different driving parameters according to different brightness to control different illuminance parameters, and when the brightness of the surrounding environment is low (the surrounding environment is very dark), the illuminance parameters of the two flashes can be improved to Clearly illuminate the surrounding environment; when the brightness of the surrounding environment is high (the surrounding environment is slightly darker), the illumination parameters of the two flashes can be appropriately reduced to avoid excessive power consumption under the premise of clear lighting and prolong the flash’s service life.
若当前应用场景为拍摄场景,还可以参考图6,图6示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图,具体示出根据拍摄目标与移动终端的距离调节第一闪光灯和/或第二闪光灯的驱动参数,以实现不同的光强分布的子流程示意图,包含步骤S601-S602,以下结合图6对具体的实施方式进行解释。If the current application scene is a shooting scene, reference may also be made to FIG. 6 . FIG. 6 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure. A schematic diagram of a sub-flow for realizing different light intensity distributions by driving parameters of the flash and/or the second flash, including steps S601-S602, the specific implementation will be explained below with reference to FIG. 6 .
在步骤S601中,获取拍摄对象与移动终端的距离。In step S601, the distance between the photographed object and the mobile terminal is obtained.
本步骤中,可以通过移动终端的距离检测单元或红外距离传感器获取拍摄对象与移动终端的距离。In this step, the distance between the photographed object and the mobile terminal may be acquired through a distance detection unit or an infrared distance sensor of the mobile terminal.
在步骤S602中,根据距离、预先设定的距离与第一闪光灯的驱动参数的对应关系,调节第一闪光灯的驱动参数;根据距离、预先设定的距离与第二闪光灯的驱动参数的对应关系,调节第二闪光灯的驱动参数。In step S602, according to the distance, the corresponding relationship between the preset distance and the driving parameters of the first flash, the driving parameters of the first flash are adjusted; according to the corresponding relationship between the distance, the preset distance and the driving parameters of the second flash , adjust the driving parameters of the second flash.
本步骤中,可以根据上述距离自动调节第一闪光灯和第二闪光灯的驱动参数。具体的,可以获取预先设定的距离与第一闪光灯的驱动参数的对应关系(例如:将距离划分为多个数值区间,不同数值区间对应第一闪光灯的不同驱动电流,具体的,可以设置距离越大,第一闪光灯的驱动电流越大),以及,获取预先设定的距离与第二闪光灯的驱动参数的对应关系(例如:将距离划分为多个数值区间,不同数值区间对应第二闪光灯的不同驱动电流,具体的,可以设置距离越大,第二闪光灯的驱动电流越大),进而,将第一闪光灯的驱动参数调整为第三目标值,将第二闪光灯的驱动参数调整为第四目标值。In this step, the driving parameters of the first flash and the second flash may be automatically adjusted according to the above distance. Specifically, the corresponding relationship between the preset distance and the driving parameters of the first flash can be obtained (for example, the distance is divided into a plurality of numerical intervals, and different numerical intervals correspond to different driving currents of the first flash. Specifically, the distance can be set. The larger the value is, the larger the driving current of the first flash is), and the corresponding relationship between the preset distance and the driving parameters of the second flash is obtained (for example, the distance is divided into multiple numerical intervals, and different numerical intervals correspond to the second flash (specifically, the larger the setting distance, the larger the driving current of the second flash), and then, the driving parameters of the first flash are adjusted to the third target value, and the driving parameters of the second flash are adjusted to the third Four target values.
示例性的,还可以根据距离调节第一闪光灯的驱动参数和第二闪光灯的驱动参数,使得二者光线叠加之后的中心照度与周围照度相等或近似相等(光线均匀分布),以避免夜晚拍摄场景中光线分布不均匀导致局部曝光过度的技术问题,提高照片拍摄质量。Exemplarily, the driving parameters of the first flash and the driving parameters of the second flash can also be adjusted according to the distance, so that the central illuminance after the light of the two is superimposed is equal or approximately equal to the surrounding illuminance (the light is evenly distributed), so as to avoid shooting scenes at night. The uneven distribution of light in the medium leads to a technical problem of local overexposure, improving the quality of the photo.
从而,本公开能够实现根据不同的距离调节不同的驱动参数,以控制不同的照度参数,当拍摄目标与移动终端的距离较远的情况下,可以适当提高两个闪光灯的照度参数,以清楚的照亮拍摄目标;当周围环境的距离较近的情况下,可以适当降低两个闪光灯的照度参数,以避免过度曝光,影响拍摄质量。Therefore, the present disclosure can adjust different driving parameters according to different distances to control different illuminance parameters. When the distance between the shooting target and the mobile terminal is relatively far, the illuminance parameters of the two flashes can be appropriately increased to clearly Illuminate the shooting target; when the surrounding environment is relatively close, you can appropriately reduce the illumination parameters of the two flashes to avoid overexposure and affect the shooting quality.
需要说明的是,还可以预先设定在不同环境亮度、不同拍摄距离下,第一闪光灯的驱动参数和第二闪光灯的驱动参数,以实现根据不同的环境亮度、不同的拍摄距离,呈现不同的打光效果。It should be noted that the driving parameters of the first flash and the driving parameters of the second flash can also be preset under different ambient brightness and different shooting distances, so as to present different lighting conditions according to different ambient brightness and different shooting distances. Lighting effect.
若当前应用场景为照明场景,则可以参考图7,图7示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图,具体示出在照明场景下,根据检测到用户的触控操作,调节第一闪光灯和/或第二闪光灯的驱动参数的子流程示意图,包含步骤S701-S702,以下结合图7对具体的实施方式进行解释。If the current application scene is a lighting scene, reference may be made to FIG. 7 . FIG. 7 shows a schematic sub-flow diagram of a method for controlling a flashlight of a mobile terminal in an exemplary embodiment of the present disclosure. A schematic diagram of a sub-flow for adjusting the driving parameters of the first flasher and/or the second flasher, including steps S701-S702, the specific implementation will be explained below with reference to FIG. 7 .
在步骤S701中,检测作用于移动终端的触控屏幕上的触控操作。In step S701, a touch operation acting on a touch screen of the mobile terminal is detected.
本步骤中,示例性的,若在照明场景下,检测到用户在上述移动终端的触控屏幕进行触控操作(例如:单击、双击等),则可以将该触控操确定为参数调整操作。In this step, exemplarily, if it is detected that the user performs a touch operation on the touch screen of the mobile terminal (for example, single click, double click, etc.) in the lighting scene, the touch operation may be determined as a parameter adjustment operate.
示例性的,还可以在移动终端的触控屏幕上显示一个或多个参数调整图标,进而,用户可以通过在上述参数调整图标上进行触控操作,以调节第一闪光灯和/或第二闪光灯的驱动参数。需要说明的是,该触控操作可以是滑动操作、拖动操作等。示例性的,若在预设时间段内(例如:10秒)未检测到用户对上述参数调整图标的触控操作,还可以对上述参数调整图标进行自动隐藏,以降低图形用户界面的占有率。Exemplarily, one or more parameter adjustment icons may also be displayed on the touch screen of the mobile terminal, and further, the user may perform a touch operation on the above parameter adjustment icons to adjust the first flash and/or the second flash. drive parameters. It should be noted that the touch operation may be a sliding operation, a dragging operation, or the like. Exemplarily, if the user's touch operation on the above parameter adjustment icon is not detected within a preset time period (for example: 10 seconds), the above parameter adjustment icon may also be automatically hidden to reduce the occupancy rate of the graphical user interface. .
在步骤S702中,根据触控操作,调节第一闪光灯和/或第二闪光灯的驱动参数。In step S702, the driving parameters of the first flash and/or the second flash are adjusted according to the touch operation.
本步骤中,可以根据检测到的触控操作,调节第一闪光灯和/或第二闪光灯的驱 动参数。In this step, the driving parameters of the first flash and/or the second flash may be adjusted according to the detected touch operation.
具体的,参考上述步骤S701的相关解释,示例性的,可以检测其触控位置,当该触控位置位于触控屏幕上方时,则增大第一闪光灯和/或第二闪光灯的驱动电流,当该触控位置位于触控屏幕下方时,则减小第一闪光灯和第二闪光灯的驱动电流,从而,即使是在熄屏状态下,用户也可以很方便的调节闪光灯的打光效果。Specifically, referring to the relevant explanation of the above step S701, exemplarily, the touch position can be detected, and when the touch position is located above the touch screen, the driving current of the first flash and/or the second flash is increased, When the touch position is located below the touch screen, the driving current of the first flash and the second flash is reduced, so that the user can easily adjust the lighting effect of the flash even when the screen is off.
示例性的,还可以在图形用户界面显示一个或多个参数调整图标,进而,当检测到作用于参数调整图标上的触控操作时,可以检测其触控轨迹的方向,当触控轨迹的方向为向上时,则可以增大第一闪光灯和/或第二闪光灯的驱动参数,当触控轨迹的方向为向下时,则可以减小第一闪光灯和/或第二闪光灯的驱动参数。Exemplarily, one or more parameter adjustment icons may also be displayed on the graphical user interface, and further, when a touch operation acting on the parameter adjustment icon is detected, the direction of the touch track can be detected. When the direction is upward, the driving parameters of the first flash and/or the second flash can be increased, and when the direction of the touch track is downward, the driving parameters of the first flash and/or the second flash can be decreased.
若当前应用场景为照明场景,还可以参考图8,图8示出本公开一示例性实施例中移动终端的闪光灯控制方法的子流程示意图,具体示出在照明场景下,根据检测到的调节按键的变化,调节第一闪光灯和/或第二闪光灯的驱动参数的子流程示意图,包含步骤S801-S802,以下结合图8对具体的实施方式进行解释。If the current application scene is a lighting scene, you can also refer to FIG. 8 . FIG. 8 shows a schematic sub-flow diagram of a flash control method for a mobile terminal in an exemplary embodiment of the present disclosure, and specifically shows that in the lighting scene, according to the detected adjustment button , a schematic diagram of a sub-flow for adjusting the driving parameters of the first flash and/or the second flash, including steps S801-S802, and the specific implementation is explained below with reference to FIG. 8 .
在步骤S801中,检测调节按键的变化;调节按键用于调节第一闪光灯和/或第二闪光灯的驱动参数。In step S801, the change of the adjustment button is detected; the adjustment button is used to adjust the driving parameters of the first flash and/or the second flash.
在本步骤中,可以检测调节按键(用于调节第一闪光灯和/或第二闪光灯的驱动参数)的变化,示例性的,该调节按键可以是移动终端的侧边音量键。In this step, the change of the adjustment key (used to adjust the driving parameters of the first flash and/or the second flash) may be detected, for example, the adjustment key may be a side volume key of the mobile terminal.
在步骤S802中,根据调节按键的变化,调节第一闪光灯和/或第二闪光灯的驱动参数。In step S802, the driving parameters of the first flash and/or the second flash are adjusted according to the change of the adjustment button.
本步骤中,可以根据检测到的调节按键的变化,调节第一闪光灯和/或第二闪光灯的驱动参数。示例性的,以驱动参数为驱动电流为例进行说明,当检测到用户按下音量键的“+”时,可以增大第一闪光灯和/或第二闪光灯的驱动电流,当检测到用户按下音量键的“-”时,可以减小第一闪光灯和/或第二闪光灯的驱动电流,从而,可以根据用户的不同需要,展示不同的打光效果。In this step, the driving parameters of the first flashing light and/or the second flashing light may be adjusted according to the detected change of the adjustment button. Exemplarily, taking the driving parameter as the driving current as an example, when it is detected that the user presses the "+" of the volume key, the driving current of the first flash and/or the second flash can be increased. When the "-" of the volume key is pressed, the driving current of the first flashing light and/or the second flashing light can be reduced, so that different lighting effects can be displayed according to different needs of users.
示例性的,在照明场景下,还可以自动根据场景的不同以控制不同的打光效果,示例性的,可以预先设定多种照明模式,并设定不同照明模式对应的第一闪光灯和第二闪光灯的驱动参数,举例而言,多种照明模式可以包括:模式A(中心照度大于周围照度)、模式B(中心照度等于或近似等于周围照度)、模式C(中心照度小于周围照度),从而,用户可以根据自身需要,选取适当的照明模式。Exemplarily, in a lighting scene, different lighting effects can also be automatically controlled according to different scenes. Exemplarily, multiple lighting modes can be preset, and the first flash and the first flash corresponding to the different lighting modes can be set. Two driving parameters of the flash, for example, a variety of lighting modes may include: Mode A (central illuminance is greater than ambient illuminance), Mode B (central illuminance is equal to or approximately equal to ambient illuminance), Mode C (central illuminance is less than ambient illuminance), Therefore, the user can select an appropriate lighting mode according to his own needs.
举例而言,当用户当前的实际需求为普通照亮时,可以选择模式B,以保证光照均匀不刺眼;当用户当前的实际需求为细致观察某一部件的形状、穿针、找东西时,则可以选择模式A,以使得光线更加汇聚,便于目标的观察和寻找。For example, when the user's current actual demand is general lighting, mode B can be selected to ensure uniform lighting without glare; when the user's current actual demand is to carefully observe the shape of a certain part, thread a needle, and find something, Mode A can be selected to make the light more concentrated and facilitate the observation and search of the target.
基于上述技术方案,本公开不仅能够通过闪光灯和第二闪光灯的光线叠加,提高光强分布的均匀性,解决相关技术中因光强分布不均匀所导致夜晚拍照局部过度 曝光的技术问题,提高夜晚的拍摄质量和照片的打光效果。另一方面,还能够根据不同的场景和不同的用户需求呈现出不同的打光光效,改善传统闪光灯光效单一、刺眼的问题,优化用户的使用体验。Based on the above technical solutions, the present disclosure can not only improve the uniformity of the light intensity distribution by superimposing the light of the flash and the second flash, but also solve the technical problem of partial overexposure of night photography caused by uneven light intensity distribution in the related art, and improve the nighttime photos. the quality of the shots and the lighting effects of the photos. On the other hand, it can also present different lighting effects according to different scenes and different user needs, improve the single and dazzling problem of traditional flash light effects, and optimize the user experience.
本公开还提供了一种移动终端,图9示出本公开示例性实施例中移动终端的结构示意图;如图9所示,移动终端900可以包括检测模块901和调节模块902。其中:The present disclosure also provides a mobile terminal. FIG. 9 shows a schematic structural diagram of the mobile terminal in an exemplary embodiment of the present disclosure; as shown in FIG. 9 , the mobile terminal 900 may include a detection module 901 and an adjustment module 902 . in:
检测模块901,用于当检测到第一闪光灯和第二闪光灯处于开启状态时,识别当前应用场景。The detection module 901 is configured to identify the current application scene when it is detected that the first flashlight and the second flashlight are in an on state.
调节模块902,用于根据当前应用场景,调节第一闪光灯和第二闪光灯的驱动参数,以调节第一闪光灯和第二闪光灯的照度参数。The adjusting module 902 is configured to adjust the driving parameters of the first flash and the second flash according to the current application scene, so as to adjust the illumination parameters of the first flash and the second flash.
在本公开的一种示例性实施例中,当前应用场景至少包括拍摄场景和照明场景;检测模块被配置为:当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于拍摄模式下时,确定当前应用场景为拍摄场景;当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于手电筒模式下时,确定当前应用场景为照明场景。In an exemplary embodiment of the present disclosure, the current application scene includes at least a shooting scene and a lighting scene; the detection module is configured to: when it is detected that the first flash and the second flash are turned on and the mobile terminal is in the shooting mode When it is detected that the current application scene is a shooting scene; when it is detected that the first flash and the second flash are turned on and the mobile terminal is in the torch mode, the current application scene is determined to be a lighting scene.
在本公开的一种示例性实施例中,调节模块被配置为:获取周围环境的亮度;根据亮度、预先设定的亮度与第一闪光灯的驱动参数的对应关系,调节第一闪光灯的驱动参数;根据亮度、预先设定的亮度与第二闪光灯的驱动参数的对应关系,调节第二闪光灯的驱动参数。In an exemplary embodiment of the present disclosure, the adjustment module is configured to: obtain the brightness of the surrounding environment; and adjust the driving parameters of the first flash according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash ; Adjust the driving parameters of the second flashing light according to the brightness, the corresponding relationship between the preset brightness and the driving parameters of the second flashing light.
在本公开的一种示例性实施例中,调节模块被配置为:获取拍摄对象与移动终端的距离;根据距离、预先设定的距离与第一闪光灯的驱动参数的对应关系,调节第一闪光灯的驱动参数;根据距离、预先设定的距离与第二闪光灯的驱动参数的对应关系,调节第二闪光灯的驱动参数。In an exemplary embodiment of the present disclosure, the adjustment module is configured to: acquire the distance between the shooting object and the mobile terminal; adjust the first flash according to the distance, the corresponding relationship between the preset distance and the driving parameters of the first flash The driving parameters of the second flashing light are adjusted according to the distance, the corresponding relationship between the preset distance and the driving parameters of the second flashing light.
在本公开的一种示例性实施例中,调节模块被配置为:检测作用于移动终端的触控屏幕上的触控操作;根据触控操作,调节第一闪光灯和/或第二闪光灯的驱动参数。In an exemplary embodiment of the present disclosure, the adjustment module is configured to: detect a touch operation acting on a touch screen of the mobile terminal; and adjust the driving of the first flash and/or the second flash according to the touch operation parameter.
在本公开的一种示例性实施例中,调节模块被配置为:检测调节按键的变化;调节按键用于调节第一闪光灯和/或第二闪光灯的驱动参数;根据调节按键的变化,调节第一闪光灯和/或第二闪光灯的驱动参数。In an exemplary embodiment of the present disclosure, the adjustment module is configured to: detect changes in the adjustment keys; the adjustment keys are used to adjust the driving parameters of the first flash and/or the second flash; and according to the changes of the adjustment keys, adjust the first flash. Driving parameters of a flash and/or a second flash.
在本公开的一种示例性实施例中,第一闪光灯的灯罩中心区域设有增透膜,和/或,第一闪光灯的灯罩四周区域设有减透膜。In an exemplary embodiment of the present disclosure, an anti-reflection film is provided in the central area of the lampshade of the first flashlight, and/or an anti-reflection film is provided in the surrounding area of the lampshade of the first flashlight.
在本公开的一种示例性实施例中,第二闪光灯的灯罩中心区域设有减透膜,以及,第二闪光灯的灯罩四周区域设有增透膜。In an exemplary embodiment of the present disclosure, an anti-reflection film is provided in a central area of the lampshade of the second flash lamp, and an anti-reflection film is provided in a peripheral area of the lampshade of the second flash lamp.
上述移动终端中各模块的具体细节已经在对应的移动终端的闪光灯控制方法中 进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned mobile terminal have been described in detail in the corresponding flashlight control method of the mobile terminal, and therefore will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or it may exist alone without being assembled into the electronic device.
计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读存储介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中所述的方法。The computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the above embodiments.
此外,在本公开实施例中还提供了一种能够实现上述方法的电子设备。In addition, an electronic device capable of implementing the above method is also provided in the embodiments of the present disclosure.
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".
下面参照图10来描述根据本公开的这种实施方式的电子设备1000。图10显示的电子设备1000仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。The electronic device 1000 according to this embodiment of the present disclosure is described below with reference to FIG. 10 . The electronic device 1000 shown in FIG. 10 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
如图10所示,电子设备1000以通用计算设备的形式表现。电子设备1000的组件可以包括但不限于:上述至少一个处理单元1010、上述至少一个存储单元1020、连接不同系统组件(包括存储单元1020和处理单元1010)的总线1030以及显示单元1040。As shown in FIG. 10, electronic device 1000 takes the form of a general-purpose computing device. Components of the electronic device 1000 may include, but are not limited to, the above-mentioned at least one processing unit 1010 , the above-mentioned at least one storage unit 1020 , a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010 ), and a display unit 1040 .
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元1010执行,使得所述处理单元1010执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元1010可以执行如图1中所示的:步骤S110,当检测到第一闪光灯和第二闪光灯处于开启状态时,识别当前应用场景;步骤S120,根据当前应用场景,调节第一闪光灯和第二闪光灯的驱动参数,以调节第一闪光灯和第二闪光灯的照度参数。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 1010, so that the processing unit 1010 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification. Implementation steps. For example, the processing unit 1010 may perform as shown in FIG. 1: step S110, when it is detected that the first flashing light and the second flashing light are turned on, identify the current application scene; step S120, adjust the first flashing light according to the current application scene The driving parameters of the first flash and the second flash are used to adjust the illuminance parameters of the first flash and the second flash.
存储单元1020可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)10201和/或高速缓存存储单元10202,还可以进一步包括只读存储单元(ROM)10203。The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and/or a cache storage unit 10202 , and may further include a read only storage unit (ROM) 10203 .
存储单元1020还可以包括具有一组(至少一个)程序模块10205的程序/实用工具10204,这样的程序模块10205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 1020 may also include a program/utility 10204 having a set (at least one) of program modules 10205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.
总线1030可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 1030 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
电子设备1000也可以与一个或多个外部设备1100(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备1000交互的设备通信,和/或与使得该电子设备1000能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口1050进行。并且,电子设备1000还可以通过网络适配器1060与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器1060通过总线1030与电子设备1000的其它模块通信。应当明白,尽管 图中未示出,可以结合电子设备1000使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 1000 may also communicate with one or more external devices 1100 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 1050 . Also, the electronic device 1000 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through the network adapter 1060 . As shown, network adapter 1060 communicates with other modules of electronic device 1000 via bus 1030 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.

Claims (20)

  1. 一种移动终端的闪光灯控制方法,其特征在于,所述移动终端至少设置有第一闪光灯和第二闪光灯,所述第一闪光灯与所述第二闪光灯的照度参数不同,所述照度参数包括中心照度和周围照度;所述第一闪光灯的中心照度大于周围照度,所述第二闪光灯的中心照度小于周围照度,所述方法包括:A flashlight control method for a mobile terminal, wherein the mobile terminal is provided with at least a first flashlight and a second flashlight, the first flashlight and the second flashlight have different illuminance parameters, and the illuminance parameter includes a center Illuminance and ambient illumination; the central illumination of the first flash is greater than the ambient illumination, the central illumination of the second flash is smaller than the ambient illumination, and the method includes:
    当检测到所述第一闪光灯和所述第二闪光灯处于开启状态时,识别当前应用场景;When it is detected that the first flashing light and the second flashing light are in an on state, identifying the current application scene;
    根据所述当前应用场景,调节所述第一闪光灯和所述第二闪光灯的驱动参数,以调节所述第一闪光灯和所述第二闪光灯的所述照度参数。According to the current application scenario, the driving parameters of the first flash and the second flash are adjusted to adjust the illumination parameters of the first flash and the second flash.
  2. 根据权利要求1所述的方法,其特征在于,所述当前应用场景至少包括拍摄场景和照明场景;所述方法还包括:The method according to claim 1, wherein the current application scene includes at least a shooting scene and a lighting scene; the method further comprises:
    当检测到所述第一闪光灯和所述第二闪光灯处于开启状态、且所述移动终端处于拍摄模式下时,确定所述当前应用场景为所述拍摄场景;When it is detected that the first flash and the second flash are turned on and the mobile terminal is in a shooting mode, determining that the current application scene is the shooting scene;
    当检测到所述第一闪光灯和所述第二闪光灯处于开启状态、且所述移动终端处于手电筒模式下时,确定所述当前应用场景为所述照明场景。When it is detected that the first flashlight and the second flashlight are in an on state and the mobile terminal is in a torch mode, it is determined that the current application scene is the lighting scene.
  3. 根据权利要求2所述的方法,其特征在于,当所述当前应用场景为拍摄场景时,所述方法包括:The method according to claim 2, wherein when the current application scene is a shooting scene, the method comprises:
    获取周围环境的亮度;Get the brightness of the surrounding environment;
    根据所述亮度、预先设定的亮度与所述第一闪光灯的驱动参数的对应关系,调节所述第一闪光灯的驱动参数;adjusting the driving parameters of the first flash according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash;
    根据所述亮度、预先设定的亮度与所述第二闪光灯的驱动参数的对应关系,调节所述第二闪光灯的驱动参数。The driving parameters of the second flash are adjusted according to the brightness, the corresponding relationship between the preset brightness and the driving parameters of the second flash.
  4. 根据权利要求3所述的方法,其特征在于,当所述当前应用场景为拍摄场景时,所述方法包括:The method according to claim 3, wherein when the current application scene is a shooting scene, the method comprises:
    获取拍摄对象与所述移动终端的距离;obtaining the distance between the photographed object and the mobile terminal;
    根据所述距离、预先设定的距离与所述第一闪光灯的驱动参数的对应关系,调节所述第一闪光灯的驱动参数;adjusting the driving parameter of the first flashing light according to the distance, the corresponding relationship between the preset distance and the driving parameter of the first flashing light;
    根据所述距离、预先设定的距离与所述第二闪光灯的驱动参数的对应关系,调节所述第二闪光灯的驱动参数。The driving parameter of the second flash is adjusted according to the distance, the corresponding relationship between the preset distance and the driving parameter of the second flash.
  5. 根据权利要求2所述的方法,其特征在于,当所述当前应用场景为照明场景时,所述方法包括:The method according to claim 2, wherein when the current application scene is a lighting scene, the method comprises:
    检测作用于所述移动终端的触控屏幕上的触控操作;所述触控操作用于调节所述第一闪光灯和/或所述第二闪光灯的驱动参数;Detecting a touch operation acting on the touch screen of the mobile terminal; the touch operation is used to adjust the driving parameters of the first flash and/or the second flash;
    根据所述触控操作,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the touch operation, the driving parameters of the first flash and/or the second flash are adjusted.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述触控操作,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数,包括:The method according to claim 5, wherein the adjusting the driving parameters of the first flash and/or the second flash according to the touch operation comprises:
    根据所述触控操作的触控位置,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the touch position of the touch operation, the driving parameters of the first flash and/or the second flash are adjusted.
  7. 根据权利要求5所述的方法,其特征在于,所述根据所述触控操作,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数,包括:The method according to claim 5, wherein the adjusting the driving parameters of the first flash and/or the second flash according to the touch operation comprises:
    在所述移动终端的触控屏幕上显示一参数调整图标;displaying a parameter adjustment icon on the touch screen of the mobile terminal;
    根据作用于所述参数调整图标上的所述触控操作,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the touch operation acting on the parameter adjustment icon, the driving parameters of the first flash and/or the second flash are adjusted.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    响应于预设时间段内未检测到作用于所述参数调整图标上的所述触控操作,隐藏所述参数调整图标。In response to the touch operation acting on the parameter adjustment icon not being detected within a preset time period, the parameter adjustment icon is hidden.
  9. 根据权利要求5所述的方法,其特征在于,当所述当前应用场景为照明场景时,所述方法包括:The method according to claim 5, wherein when the current application scene is a lighting scene, the method comprises:
    检测调节按键的变化;所述调节按键用于调节所述第一闪光灯和/或所述第二闪光灯的驱动参数;Detecting the change of the adjustment button; the adjustment button is used to adjust the driving parameters of the first flash and/or the second flash;
    根据所述调节按键的变化,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the change of the adjustment button, the driving parameters of the first flash and/or the second flash are adjusted.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:所述第一闪光灯的灯罩中心区域设有增透膜,和/或,所述第一闪光灯的灯罩四周区域设有减透膜。The method according to claim 1, characterized in that, the method further comprises: an anti-reflection coating is provided in the central area of the lampshade of the first flasher, and/or the area around the lampshade of the first flasher is provided with an antireflection coating. permeable membrane.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:所述第二闪光灯的灯罩中心区域设有减透膜,以及,所述第二闪光灯的灯罩四周区域设有增透膜。The method according to claim 1, wherein the method further comprises: an anti-reflection film is provided in the central area of the lampshade of the second flash lamp, and an anti-reflection film is provided in the surrounding area of the lampshade of the second flash lamp .
  12. 一种移动终端,其特征在于,所述移动终端至少设置有第一闪光灯和第二闪光灯,所述第一闪光灯与所述第二闪光灯的照度参数不同,所述照度参数包括中心照度和周围照度;所述第一闪光灯的中心照度大于周围照度,所述第二闪光灯的中心照度小于周围照度,所述移动终端包括:A mobile terminal, characterized in that the mobile terminal is provided with at least a first flashlight and a second flashlight, the first flashlight and the second flashlight have different illuminance parameters, and the illuminance parameters include a central illuminance and a peripheral illuminance ; The central illuminance of the first flash is greater than the surrounding illuminance, the central illuminance of the second flash is less than the surrounding illuminance, and the mobile terminal includes:
    检测模块,用于当检测到所述第一闪光灯和所述第二闪光灯处于开启状态时,识别当前应用场景;a detection module, configured to identify the current application scene when it is detected that the first flashing light and the second flashing light are in an on state;
    调节模块,用于根据所述当前应用场景,调节所述第一闪光灯和所述第二闪光灯的驱动参数,以调节所述第一闪光灯和所述第二闪光灯的所述照度参数。An adjustment module, configured to adjust the driving parameters of the first flash and the second flash according to the current application scenario, so as to adjust the illumination parameters of the first flash and the second flash.
  13. 根据权利要求12所述的移动终端,其特征在于,当前应用场景至少包括拍摄场景和照明场景;所述检测模块被配置为:The mobile terminal according to claim 12, wherein the current application scene includes at least a shooting scene and a lighting scene; the detection module is configured to:
    当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于拍摄模式下时,确定当前应用场景为拍摄场景;When it is detected that the first flash and the second flash are turned on and the mobile terminal is in the shooting mode, determining that the current application scene is the shooting scene;
    当检测到第一闪光灯和第二闪光灯处于开启状态、且移动终端处于手电筒模式下时,确定当前应用场景为照明场景。When it is detected that the first flashlight and the second flashlight are in an on state and the mobile terminal is in the torch mode, it is determined that the current application scene is a lighting scene.
  14. 根据权利要求13所述的移动终端,其特征在于,所述调节模块被配置为:The mobile terminal according to claim 13, wherein the adjustment module is configured to:
    获取周围环境的亮度;Get the brightness of the surrounding environment;
    根据亮度、预先设定的亮度与第一闪光灯的驱动参数的对应关系,调节第一闪光灯的驱动参数;adjusting the driving parameters of the first flash according to the corresponding relationship between the brightness, the preset brightness and the driving parameters of the first flash;
    根据亮度、预先设定的亮度与第二闪光灯的驱动参数的对应关系,调节第二闪光灯的驱动参数。The driving parameters of the second flash are adjusted according to the brightness, the corresponding relationship between the preset brightness and the driving parameters of the second flash.
  15. 根据权利要求14所述的移动终端,其特征在于,所述调节模块被配置为:The mobile terminal according to claim 14, wherein the adjustment module is configured to:
    获取拍摄对象与所述移动终端的距离;obtaining the distance between the photographed object and the mobile terminal;
    根据所述距离、预先设定的距离与所述第一闪光灯的驱动参数的对应关系,调节所述第一闪光灯的驱动参数;adjusting the driving parameter of the first flashing light according to the distance, the corresponding relationship between the preset distance and the driving parameter of the first flashing light;
    根据所述距离、预先设定的距离与所述第二闪光灯的驱动参数的对应关系,调节所述第二闪光灯的驱动参数。The driving parameter of the second flash is adjusted according to the distance, the corresponding relationship between the preset distance and the driving parameter of the second flash.
  16. 根据权利要求13所述的移动终端,其特征在于,所述调节模块被配置为:The mobile terminal according to claim 13, wherein the adjustment module is configured to:
    检测作用于移动终端的触控屏幕上的触控操作;所述触控操作用于调节所述第一闪光灯和/或所述第二闪光灯的驱动参数;Detecting a touch operation acting on the touch screen of the mobile terminal; the touch operation is used to adjust the driving parameters of the first flash and/or the second flash;
    根据触控操作,调节第一闪光灯和/或第二闪光灯的驱动参数。According to the touch operation, the driving parameters of the first flash and/or the second flash are adjusted.
  17. 根据权利要求16所述的移动终端,其特征在于,所述调节模块被配置为:The mobile terminal according to claim 16, wherein the adjustment module is configured to:
    根据所述触控操作的触控位置,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the touch position of the touch operation, the driving parameters of the first flash and/or the second flash are adjusted.
  18. 根据权利要求16所述的移动终端,其特征在于,所述调节模块被配置为:The mobile terminal according to claim 16, wherein the adjustment module is configured to:
    在所述移动终端的触控屏幕上显示参数调整图标;displaying a parameter adjustment icon on the touch screen of the mobile terminal;
    根据作用于所述参数调整图标上的所述触控操作,调节所述第一闪光灯和/或所述第二闪光灯的驱动参数。According to the touch operation acting on the parameter adjustment icon, the driving parameters of the first flash and/or the second flash are adjusted.
  19. 一种计算机存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1~11中任意一项所述的移动终端的闪光灯控制方法。A computer storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the flash control method for a mobile terminal according to any one of claims 1 to 11 is implemented.
  20. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;以及processor; and
    存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1~11中任意一项所述的移动终端的闪光灯控制方法。Wherein, the processor is configured to execute the flash control method of the mobile terminal according to any one of claims 1 to 11 by executing the executable instructions.
PCT/CN2021/114263 2020-09-22 2021-08-24 Flash lamp control method of mobile terminal, mobile terminal, storage medium, and device WO2022062802A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011003318.7 2020-09-22
CN202011003318.7A CN111935388B (en) 2020-09-22 2020-09-22 Flash lamp control method of mobile terminal, storage medium and equipment

Publications (1)

Publication Number Publication Date
WO2022062802A1 true WO2022062802A1 (en) 2022-03-31

Family

ID=73334004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114263 WO2022062802A1 (en) 2020-09-22 2021-08-24 Flash lamp control method of mobile terminal, mobile terminal, storage medium, and device

Country Status (2)

Country Link
CN (1) CN111935388B (en)
WO (1) WO2022062802A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935388B (en) * 2020-09-22 2022-01-04 Oppo广东移动通信有限公司 Flash lamp control method of mobile terminal, storage medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120293092A1 (en) * 2011-05-20 2012-11-22 Samsung Electronics Co. Ltd. Apparatus and method for controlling flash in portable terminal
CN102998875A (en) * 2012-12-28 2013-03-27 广东欧珀移动通信有限公司 Flash lamp lens structure and shooting device with same
CN103595842A (en) * 2013-11-13 2014-02-19 广东欧珀移动通信有限公司 Method for adjusting illuminating brightness of flashlight serving as electric torch and mobile terminal
US20180205864A1 (en) * 2017-01-17 2018-07-19 Bby Solutions, Inc. Camera Mounted LED Telephoto Spotlight
CN109788174A (en) * 2019-01-11 2019-05-21 维沃移动通信有限公司 A kind of light compensation method and terminal
US20190229137A1 (en) * 2018-01-22 2019-07-25 Canon Kabushiki Kaisha Image capturing apparatus, method for controlling the same, and accessory
CN111935388A (en) * 2020-09-22 2020-11-13 Oppo广东移动通信有限公司 Flash lamp control method of mobile terminal, storage medium and equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509043B2 (en) * 2004-05-25 2009-03-24 Nikon Corporation Illuminating device for photographing and camera
US7733931B2 (en) * 2007-01-09 2010-06-08 Seiko Epson Corporation Light source device, projector device, monitor device, and lighting device
US8154650B2 (en) * 2009-03-23 2012-04-10 Apple Inc. Electronic device having a camera flash redirector
TWM435624U (en) * 2011-11-10 2012-08-11 Yang-Shan Yeh Flashlight structure for camera function of handheld electronic device
CN105744177A (en) * 2016-02-17 2016-07-06 广州视睿电子科技有限公司 Lighting control method and system for video presenter
CN205859909U (en) * 2016-06-27 2017-01-04 东莞市度润光电科技有限公司 A kind of wedge angle flashlight lens
CN107919096A (en) * 2016-10-11 2018-04-17 中兴通讯股份有限公司 A kind of control method and headset equipment
CN106603929B (en) * 2017-02-08 2021-03-23 惠州Tcl移动通信有限公司 Screen light supplementing photographing method and system based on mobile terminal
JP7249996B2 (en) * 2017-07-21 2023-03-31 ルミレッズ ホールディング ベーフェー How to control a segmented flash system
CN107809599B (en) * 2017-11-16 2020-02-18 维沃移动通信有限公司 Light supplementing method and device and mobile terminal
CN108965675A (en) * 2018-08-28 2018-12-07 北京小米移动软件有限公司 Terminal
CN109413235A (en) * 2018-11-08 2019-03-01 维沃移动通信有限公司 A kind of terminal device and control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120293092A1 (en) * 2011-05-20 2012-11-22 Samsung Electronics Co. Ltd. Apparatus and method for controlling flash in portable terminal
CN102998875A (en) * 2012-12-28 2013-03-27 广东欧珀移动通信有限公司 Flash lamp lens structure and shooting device with same
CN103595842A (en) * 2013-11-13 2014-02-19 广东欧珀移动通信有限公司 Method for adjusting illuminating brightness of flashlight serving as electric torch and mobile terminal
US20180205864A1 (en) * 2017-01-17 2018-07-19 Bby Solutions, Inc. Camera Mounted LED Telephoto Spotlight
US20190229137A1 (en) * 2018-01-22 2019-07-25 Canon Kabushiki Kaisha Image capturing apparatus, method for controlling the same, and accessory
CN109788174A (en) * 2019-01-11 2019-05-21 维沃移动通信有限公司 A kind of light compensation method and terminal
CN111935388A (en) * 2020-09-22 2020-11-13 Oppo广东移动通信有限公司 Flash lamp control method of mobile terminal, storage medium and equipment

Also Published As

Publication number Publication date
CN111935388B (en) 2022-01-04
CN111935388A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
US20240104814A1 (en) Information display using electronic diffusers
TWI433135B (en) Display adjusting device and display adjusting method
JP6273026B2 (en) Method and apparatus for controlling light emission
US10503250B2 (en) System and method for setting display brightness of display of electronic device
JP6250696B2 (en) Image capture device in network environment
WO2019011090A1 (en) White balance synchronization method and apparatus, and terminal device
WO2018201875A1 (en) Image sensor, camera module, and electronic device
CN103312986A (en) Mobile terminal based front photographing fill light method and mobile terminal
CN109587459B (en) Projection system and automatic setting method thereof
CN109587458B (en) Projection system and automatic setting method thereof
CN111314586B (en) Light supplementing assembly, control method thereof, camera module and mobile terminal
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
JP7138743B2 (en) Image acquisition module, electronic device, image acquisition method and storage medium
CN107094346B (en) Flash lamp brightness adjusting method and system of intelligent terminal
KR102623342B1 (en) Method and apparatus for controlling brightness of display in electronic device
WO2018201876A1 (en) Image sensor, camera module, and electronic device
WO2022062802A1 (en) Flash lamp control method of mobile terminal, mobile terminal, storage medium, and device
TW201610977A (en) Method for adjusting luminance of monitor of electrical device
TWI633536B (en) Electronic device and method for adjusting display screen
WO2015154531A1 (en) Method and device for adjusting illumination brightness, illumination method and illumination device
CN111726542A (en) Camera light supplementing method, terminal and storage medium
JP2011109188A (en) Display device
WO2019047115A1 (en) Control method and control system for flashlight of smart terminal
JP2001250696A (en) Automatic illumination setting system
KR20030005539A (en) Lcd backlight controlling method for mobile communication device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871175

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871175

Country of ref document: EP

Kind code of ref document: A1