CN109120864B - Light supplement processing method and device, storage medium and mobile terminal - Google Patents

Light supplement processing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN109120864B
CN109120864B CN201811237549.7A CN201811237549A CN109120864B CN 109120864 B CN109120864 B CN 109120864B CN 201811237549 A CN201811237549 A CN 201811237549A CN 109120864 B CN109120864 B CN 109120864B
Authority
CN
China
Prior art keywords
information
portrait
light supplement
determining
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811237549.7A
Other languages
Chinese (zh)
Other versions
CN109120864A (en
Inventor
王宇鹭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811237549.7A priority Critical patent/CN109120864B/en
Publication of CN109120864A publication Critical patent/CN109120864A/en
Application granted granted Critical
Publication of CN109120864B publication Critical patent/CN109120864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application discloses a light supplement processing method, a light supplement processing device, a storage medium and a terminal, wherein the method comprises the following steps: firstly, when a portrait is a shooting subject, acquiring physical position information of the portrait; secondly, determining supplementary lighting information according to the physical position information; and thirdly, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image. By adopting the technical scheme, the light supplement information can be determined according to the physical position information of the portrait, the light supplement matched with the physical position information of the portrait is realized, and the definition of the target image is improved.

Description

Light supplement processing method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a light supplement processing method and device, a storage medium and a mobile terminal.
Background
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal. When people's image is shot under the dark light environment, the flash lamp needs to be started, but the light supplement mechanism of the flash lamp often has the problems of excessive light supplement and the like at present, so that image distortion is caused.
Disclosure of Invention
The embodiment of the application provides a light supplement processing method and device, a storage medium and a mobile terminal, which can improve the image definition.
In a first aspect, an embodiment of the present application provides a light supplement processing method, including:
when the portrait is a shooting subject, acquiring physical position information of the portrait;
determining light supplement information according to the physical position information;
and when a photographing instruction is detected, photographing according to the light supplement information to obtain a target image.
In a second aspect, an embodiment of the present application provides a light supplement processing apparatus, including:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring physical position information of a portrait when the portrait is a shooting subject;
a supplementary lighting information determining module, configured to determine supplementary lighting information according to the physical location information acquired by the acquiring module;
and the shooting module is used for shooting according to the light supplement information determined by the light supplement information determining module when a shooting instruction is detected, so as to obtain a target image.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a light supplement processing method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement the light supplement processing method according to the embodiment of the present application.
According to the light supplement processing scheme provided by the embodiment of the application, firstly, when a portrait is a shooting subject, physical position information of the portrait is obtained; secondly, determining supplementary lighting information according to the physical position information; and thirdly, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image. By adopting the technical scheme, the light supplement information can be determined according to the physical position information of the portrait, the light supplement matched with the physical position information of the portrait is realized, and the definition of the target image is improved.
Drawings
Fig. 1 is a schematic flow chart of a light supplement processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another light supplement processing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another light supplement processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another light supplement processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart illustrating another light supplement processing method according to an embodiment of the present disclosure;
fig. 6 is a schematic flow chart of another light supplement processing method according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a light supplement processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal. When people's image is shot under the dark light environment, the flash lamp needs to be started, but the light supplement mechanism of the flash lamp often has the problems of excessive light supplement and the like at present, so that image distortion is caused.
The embodiment of the application provides a light supplement processing method, which can acquire physical position information of a portrait when the portrait is shot, then determine light supplement information according to the physical position information, and supplement light by a flash lamp according to the light supplement information when the portrait is shot to obtain a target image. The specific scheme is as follows:
fig. 1 is a schematic flow chart of a light supplement processing method according to an embodiment of the present disclosure, where the method is suitable for a case of taking a picture with a flash lamp. The method can be executed by a mobile terminal with a photographing function, the mobile terminal can be a smart phone, a tablet computer, wearable equipment (a smart watch or smart glasses) and the like, and the method specifically comprises the following steps:
and 110, when the portrait is a shooting subject, acquiring physical position information of the portrait.
In the preview stage, image analysis is carried out on the preview frame image to determine the shooting subject. And judging whether the shooting subject is a portrait or not according to the contour analysis. The physical location information may include the location, distance, scale, etc. of the portrait.
And step 120, determining supplementary lighting information according to the physical position information.
And determining the light supplement information requested by the physical position information through the trained machine learning model. Fill-in information may include the intensity, time, and range of the flash.
Further, physical location information is modeled. And determining the intensity, time and range of the flash lamp according to the modeling result.
A three-dimensional model of the portrait may be created, which may represent the distance between the terminal and the photographed person.
And step 130, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image.
And after the user enters the camera function, clicking a photographing button to trigger a photographing instruction. After a photographing instruction is triggered, the flash lamp carries out light supplement according to the light supplement information, and the photosensitive elements such as the camera acquire a target image.
The embodiment of the application provides a light supplement processing method. And secondly, determining supplementary lighting information according to the physical position information. And thirdly, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image. By adopting the technical scheme, the light supplement information can be determined according to the physical position information of the portrait, the light supplement matched with the physical position information of the portrait is realized, and the definition of the target image is improved. Compared with the light supplement method adopting fixed light supplement parameters for light supplement, the light supplement effect is poor, the light supplement processing method provided by the embodiment of the application can acquire the physical position information of the portrait when the portrait is shot, then determines the light supplement information according to the physical position information, and carries out light supplement according to the light supplement information by the flash lamp when the portrait is shot to obtain the target image, so that light supplement matched with the physical position information of the portrait is carried out, and the definition of the target image is improved.
Fig. 2 is a schematic flow chart of another light supplement processing method according to an embodiment of the present application, which is further described in the foregoing embodiment, and the method includes the following steps:
step 210, the subject is detected in the preview frame image.
And step 220, if the shot object is a portrait, starting a flash lamp to acquire physical position information of the portrait.
And if the ambient brightness is smaller than the preset threshold value, acquiring an image containing a portrait through a camera after starting the flash lamp, and acquiring the physical position information of the portrait according to the image.
And if the ambient brightness is greater than the preset threshold value, acquiring an image containing a portrait through a camera, and acquiring the physical position information of the portrait according to the image.
Alternatively, the physical location information of the portrait may be measured by a distance sensor or an ultrasonic sensor.
And step 230, determining supplementary lighting information according to the physical position information.
And step 240, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image.
The light supplement processing method provided by the embodiment of the application can detect the shot object in the preview frame image, and can supplement light suitable for the portrait when the shot object is the portrait, so that the definition of the target image is improved.
Fig. 3 is a schematic flow chart of another light supplement processing method according to an embodiment of the present application, which is further described in the foregoing embodiment, and the method includes the following steps:
and 310, when the portrait is a shooting subject, acquiring the position information of the portrait.
The position information may detect distance information by a distance sensor. Alternatively, the location information may include the relative location of the portrait at the terminal.
And step 320, determining shooting brightness and a shooting range according to the position information and the brightness information of the flash lamp.
If the distance increases, the shooting brightness needs to be improved. If the portrait position is located at the corner of the screen, the terminal shooting range needs to be adjusted through prompting.
Further, the supplementary lighting information can be determined by combining the distance information of the portrait and the proportion of the portrait in the preview frame image.
And step 330, determining supplementary lighting information according to the shooting brightness and the shooting range.
And 340, when a photographing instruction is detected, photographing according to the supplementary lighting information to obtain a target image.
The light supplement processing method provided by the embodiment of the application can adjust the light supplement information of the flash lamp based on the position information of the portrait, and the light supplement efficiency is improved.
Fig. 4 is a schematic flow chart of another light supplement processing method according to an embodiment of the present application, which is used to further describe the foregoing embodiment, and the method includes the following steps:
and step 410, when the portrait is a shooting subject, obtaining distance information of the portrait.
And step 420, determining the power of the flash lamp and the frequent lighting of the flash lamp according to the distance information and the brightness information of the flash lamp.
And step 430, determining light supplement information frequently according to the flash lamp power and the flash lamp lighting.
And step 440, when the photographing instruction is detected, photographing according to the light supplement information to obtain a target image.
The light supplement processing method provided by the embodiment of the application can adjust the light supplement information of the flash lamp based on the distance information of the portrait, and light supplement efficiency is improved.
Fig. 5 is a schematic flow chart of another light supplement processing method according to an embodiment of the present application, which is used to further describe the foregoing embodiment, and the method includes the following steps:
and step 510, when the portrait is a shooting subject, acquiring proportion information of the portrait in the preview frame image.
And step 520, if the proportion information is larger than a preset proportion threshold, determining supplementary lighting information according to the physical position information.
And step 530, when a photographing instruction is detected, photographing is carried out according to the light supplement information to obtain a target image.
The light supplement processing method provided by the embodiment of the application can adjust the light supplement information of the flash lamp based on the portrait ratio, and the light supplement efficiency is improved.
Fig. 6 is a schematic flow chart of another light supplement processing method according to an embodiment of the present application, which is further described in the foregoing embodiment, and the method includes the following steps:
and step 610, when the portrait is a shooting subject, acquiring physical position information of the portrait.
And step 620, determining supplementary lighting information according to the physical position information.
And step 630, when the photographing instruction is detected, detecting the information of the reflectors in the photographing range according to the preview frame image.
The light reflecting object in the shooting range can be detected and determined through the light source, and the coordinates of the light reflecting object are determined.
And step 640, determining the range and the intensity of the flash lamp according to the reflector information.
If the reflector can enhance the light, the power of the flash lamp can be properly reduced. Meanwhile, if the reflected light of the reflector is too strong, the light-giving angle of the flashing point needs to be adjusted, or a user is prompted to change the shooting position.
The light supplementing processing method provided by the embodiment of the application can realize intelligent light supply based on the information of the reflector, and improves the shooting efficiency.
Fig. 7 is a block diagram of a light supplement processing apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal having a photographing function, and may execute the light supplement processing methods according to the foregoing embodiments. As shown in fig. 7, the apparatus includes: an acquisition module 710, a fill light information determination module 720, and a photographing module 730.
An obtaining module 710, configured to obtain physical location information of a portrait when the portrait is a subject of shooting;
a supplementary lighting information determining module 720, configured to determine supplementary lighting information according to the physical location information acquired by the acquiring module 710;
the shooting module 730 is configured to, when a shooting instruction is detected, shoot according to the light supplement information determined by the light supplement information determining module 720 to obtain a target image.
Further, the supplementary lighting information determining module 720 is configured to:
detecting a photographed object in the preview frame image;
and if the shot object is a portrait, starting a flash lamp to acquire the physical position information of the portrait.
Further, the obtaining module 710 is configured to: acquiring position information of the portrait;
the fill light information determining module 720 is configured to:
determining shooting brightness and a shooting range according to the position information and the brightness information of the flash lamp;
and determining light supplement information according to the shooting brightness and the shooting range.
Further, the obtaining module 710 is configured to: acquiring distance information of the portrait;
the fill light information determining module 720 is configured to:
determining the power of the flash lamp and the frequent lighting of the flash lamp according to the distance information and the brightness information of the flash lamp;
and determining light supplement information frequently according to the power of the flash lamp and the lighting of the flash lamp.
Further, the obtaining module 710 is configured to: acquiring the proportion information of the portrait in a preview frame image;
the fill light information determining module 720 is configured to:
and if the proportion information is larger than a preset proportion threshold, determining light supplement information according to the physical position information.
Further, the supplementary lighting information determining module 720 is configured to:
modeling physical position information;
and determining the intensity, time and range of the flash lamp according to the modeling result.
Further, the shooting module 730 is configured to:
detecting reflector information in a shooting range according to the preview frame image;
and determining the range and the intensity of the flash lamp according to the reflector information.
The embodiment of the application provides a light supplement processing device, which includes an acquisition module 710 for acquiring physical position information of a portrait when the portrait is a shooting subject; secondly, the supplementary lighting information determining module 720 determines supplementary lighting information according to the physical location information; and thirdly, when the photographing module 730 detects a photographing instruction, photographing according to the light supplement information to obtain a target image. By adopting the technical scheme, the light supplement information can be determined according to the physical position information of the portrait, the light supplement matched with the physical position information of the portrait is realized, and the definition of the target image is improved. Compared with the light supplement method adopting fixed light supplement parameters for light supplement, the light supplement effect is poor, the light supplement processing method provided by the embodiment of the application can acquire the physical position information of the portrait when the portrait is shot, then determines the light supplement information according to the physical position information, and carries out light supplement according to the light supplement information by the flash lamp when the portrait is shot to obtain the target image, so that light supplement matched with the physical position information of the portrait is carried out, and the definition of the target image is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, the terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 801 is used for storing executable program codes; the CPU802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 801.
The terminal further comprises: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal device 800 is merely one example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 812 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 812 may be classified by installation method: external hanging, internal or integral. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 812 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 802.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
Speaker 811 is used to convert the voice signals received by the smart speaker from the wireless network through RF circuit 805 into sound and play the sound to the user.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
In this embodiment, the cpu802 is configured to:
when the portrait is a shooting subject, acquiring physical position information of the portrait;
determining light supplement information according to the physical position information;
and when a photographing instruction is detected, photographing according to the light supplement information to obtain a target image.
Further, when the portrait is a subject of shooting, acquiring physical location information of the portrait, including:
detecting a photographed object in the preview frame image;
and if the shot object is a portrait, starting a flash lamp to acquire the physical position information of the portrait.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring position information of the portrait;
determining shooting brightness and a shooting range according to the position information and the brightness information of the flash lamp;
and determining light supplement information according to the shooting brightness and the shooting range.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring distance information of the portrait;
determining the power of the flash lamp and the frequent lighting of the flash lamp according to the distance information and the brightness information of the flash lamp;
and determining light supplement information frequently according to the power of the flash lamp and the lighting of the flash lamp.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring the proportion information of the portrait in a preview frame image;
and if the proportion information is larger than a preset proportion threshold, determining light supplement information according to the physical position information.
Further, the determining the supplementary lighting information according to the physical location information includes:
modeling physical position information;
and determining the intensity, time and range of the flash lamp according to the modeling result.
Further, photographing according to the supplementary lighting information to obtain a target image, including:
detecting reflector information in a shooting range according to the preview frame image;
and determining the range and the intensity of the flash lamp according to the reflector information.
Embodiments of the present application further provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform a method for calibrating white balance of an image, the method including:
when the portrait is a shooting subject, acquiring physical position information of the portrait;
determining light supplement information according to the physical position information;
and when a photographing instruction is detected, photographing according to the light supplement information to obtain a target image.
Further, when the portrait is a subject of shooting, acquiring physical location information of the portrait, including:
detecting a photographed object in the preview frame image;
and if the shot object is a portrait, starting a flash lamp to acquire the physical position information of the portrait.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring position information of the portrait;
determining shooting brightness and a shooting range according to the position information and the brightness information of the flash lamp;
and determining light supplement information according to the shooting brightness and the shooting range.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring distance information of the portrait;
determining the power of the flash lamp and the frequent lighting of the flash lamp according to the distance information and the brightness information of the flash lamp;
and determining light supplement information frequently according to the power of the flash lamp and the lighting of the flash lamp.
Further, the determining the supplementary lighting information according to the physical location information includes:
acquiring the proportion information of the portrait in a preview frame image;
and if the proportion information is larger than a preset proportion threshold, determining light supplement information according to the physical position information.
Further, the determining the supplementary lighting information according to the physical location information includes:
modeling physical position information;
and determining the intensity, time and range of the flash lamp according to the modeling result.
Further, photographing according to the supplementary lighting information to obtain a target image, including:
detecting reflector information in a shooting range according to the preview frame image;
and determining the range and the intensity of the flash lamp according to the reflector information.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-mentioned application recommendation operation, and may also perform related operations in the fill-in light processing method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A light supplement processing method is characterized by comprising the following steps:
detecting a shot object in the preview frame image, and starting a flash lamp to acquire physical position information of a portrait when the portrait is a shot subject;
determining light supplement information according to the physical position information;
when a photographing instruction is detected, detecting the information of the reflecting object in the photographing range according to the preview frame image;
when the reflected light is detected to enable the shooting light to be enhanced, the power of the flash lamp is reduced, and then shooting is carried out to obtain a target image;
and when the reflected light of the reflector is detected to be too strong, adjusting the light-giving angle of the flash point and then photographing to obtain a target image.
2. The fill-in light processing method according to claim 1, wherein the acquiring physical location information of the portrait includes: acquiring position information of the portrait;
correspondingly, the determining the supplementary lighting information according to the physical location information includes:
determining shooting brightness and a shooting range according to the position information and the brightness information of the flash lamp;
and determining light supplement information according to the shooting brightness and the shooting range.
3. The fill-in light processing method according to claim 1, wherein the acquiring physical location information of the portrait includes: acquiring distance information of the portrait;
correspondingly, the determining the supplementary lighting information according to the physical location information includes:
determining the power of the flash lamp and the frequent lighting of the flash lamp according to the distance information and the brightness information of the flash lamp;
and determining light supplement information frequently according to the power of the flash lamp and the lighting of the flash lamp.
4. The fill-in light processing method according to claim 1, wherein the acquiring physical location information of the portrait includes: acquiring the proportion information of the portrait in a preview frame image;
correspondingly, the determining the supplementary lighting information according to the physical location information includes:
and if the proportion information is larger than a preset proportion threshold, determining light supplement information according to the physical position information.
5. The method for fill-in light processing according to claim 1, wherein the determining fill-in light information according to the physical location information includes:
modeling physical position information;
and determining the intensity, time and range of the flash lamp according to the modeling result.
6. A light supplement processing device, comprising:
the acquisition module is used for detecting a shot object in the preview frame image and starting a flash lamp to acquire the physical position information of the portrait when the portrait is a shot subject;
a supplementary lighting information determining module, configured to determine supplementary lighting information according to the physical location information acquired by the acquiring module;
the shooting module is used for detecting the information of the reflectors in the shooting range according to the preview frame image when a shooting instruction is detected;
when the reflected light is detected to enable the shooting light to be enhanced, the power of the flash lamp is reduced, and then shooting is carried out to obtain a target image;
and when the reflected light of the reflecting object is detected to be too strong, adjusting the light-giving angle of the flash point and then photographing to obtain a target image.
7. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the fill light processing method according to any one of claims 1 to 5.
8. A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the light supplement processing method according to any one of claims 1 to 5.
CN201811237549.7A 2018-10-23 2018-10-23 Light supplement processing method and device, storage medium and mobile terminal Active CN109120864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237549.7A CN109120864B (en) 2018-10-23 2018-10-23 Light supplement processing method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237549.7A CN109120864B (en) 2018-10-23 2018-10-23 Light supplement processing method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109120864A CN109120864A (en) 2019-01-01
CN109120864B true CN109120864B (en) 2021-02-02

Family

ID=64855454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237549.7A Active CN109120864B (en) 2018-10-23 2018-10-23 Light supplement processing method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109120864B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086916B (en) * 2019-05-27 2021-01-08 维沃移动通信(杭州)有限公司 Photographing method and terminal
CN113395458B (en) * 2020-03-11 2022-08-23 浙江宇视科技有限公司 Control method and device of light supplement lamp, storage medium and equipment
CN112040099A (en) * 2020-08-05 2020-12-04 苏州吾爱易达物联网有限公司 Zoom linkage-based light supplementing method, device, system, terminal and storage medium
CN117541478A (en) * 2022-02-28 2024-02-09 荣耀终端有限公司 Image processing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827943A (en) * 2015-10-19 2016-08-03 维沃移动通信有限公司 Human eye-based self-shooting method and electronic device
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303266B (en) * 2015-05-19 2019-05-21 小米科技有限责任公司 Control method, device and the terminal of flash lamp
CN106534707A (en) * 2015-09-14 2017-03-22 中兴通讯股份有限公司 Photographing method and device
CN105931468B (en) * 2016-07-06 2018-09-11 成都市红亿科技有限公司 A kind of method for automatically regulating of the external light compensating lamp of Car license recognition
US20180359376A1 (en) * 2017-02-02 2018-12-13 Kameron Krause Mirror for Taking Selfies
CN107071272B (en) * 2017-02-17 2020-10-16 奇酷互联网络科技(深圳)有限公司 Method and device for controlling brightness of camera fill-in light and terminal
CN107645636B (en) * 2017-08-31 2019-11-29 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal
CN107948538B (en) * 2017-11-14 2020-02-21 Oppo广东移动通信有限公司 Imaging method, imaging device, mobile terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827943A (en) * 2015-10-19 2016-08-03 维沃移动通信有限公司 Human eye-based self-shooting method and electronic device
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures

Also Published As

Publication number Publication date
CN109120864A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
US11138434B2 (en) Electronic device for providing shooting mode based on virtual character and operation method thereof
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
US11006024B2 (en) Pop-up and rotational camera and electronic device including the same
JP6105953B2 (en) Electronic device, line-of-sight input program, and line-of-sight input method
CN109040524B (en) Artifact eliminating method and device, storage medium and terminal
US11606501B2 (en) Electronic device and image control method of the electronic device
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
US11968439B2 (en) Electronic device comprising camera and electronic device control method
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
CN108924375B (en) Ringtone volume processing method and device, storage medium and terminal
CN111459466B (en) Code generation method, device, equipment and storage medium
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN112116690A (en) Video special effect generation method and device and terminal
KR20200101233A (en) Electronic device and method for providing service corresponding to selection of object in image
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN109302563B (en) Anti-shake processing method and device, storage medium and mobile terminal
CN107622473B (en) Image rendering method, device, terminal and computer readable storage medium
KR20200102080A (en) Electronic device for providing visualized artificial intelligence service based on information of external object and method for the same
CN109218620B (en) Photographing method and device based on ambient brightness, storage medium and mobile terminal
CN110045999B (en) Method, device, terminal and storage medium for drawing assembly
CN108540726B (en) Method and device for processing continuous shooting image, storage medium and terminal
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN109246345B (en) Beautiful pupil shooting method and device, storage medium and mobile terminal
KR20210101416A (en) Image sensor controlling method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant