CN110418069B - Light supplementing control method, mobile terminal and computer readable storage medium - Google Patents

Light supplementing control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110418069B
CN110418069B CN201910691478.6A CN201910691478A CN110418069B CN 110418069 B CN110418069 B CN 110418069B CN 201910691478 A CN201910691478 A CN 201910691478A CN 110418069 B CN110418069 B CN 110418069B
Authority
CN
China
Prior art keywords
brightness value
pixel
preview image
light
value
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
CN201910691478.6A
Other languages
Chinese (zh)
Other versions
CN110418069A (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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201910691478.6A priority Critical patent/CN110418069B/en
Publication of CN110418069A publication Critical patent/CN110418069A/en
Application granted granted Critical
Publication of CN110418069B publication Critical patent/CN110418069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The invention discloses a light supplementing control method, a mobile terminal and a computer readable storage medium, wherein the light supplementing control method comprises the following steps: acquiring a first preview image and analyzing a first brightness value of the first preview image; and controlling the light supplementing equipment to supplement light to the shooting object according to the first brightness value and the preset rule. The invention can avoid the technical problem that the light supplementing lamp cannot be automatically started because of high ambient brightness when photographing is in a backlight scene.

Description

Light supplementing control method, mobile terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of camera shooting, in particular to a light supplementing control method, a mobile terminal and a computer readable storage medium.
Background
At present, most mobile phones are provided with light supplementing lamps, and the light supplementing lamps are mainly used for providing auxiliary light rays when shooting under the condition of lack of light rays so as to adjust brightness and color temperature, and the front light supplementing lamps installed on the mobile phones are controlled to be turned on or off according to ambient brightness.
Therefore, it is necessary to provide a novel light supplementing control method to solve the above technical problems.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a light supplementing control method, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem that a light supplementing lamp cannot be automatically started due to high environment brightness when photographing is in a backlight scene.
In order to achieve the above object, the present invention provides a light supplementing control method, including:
acquiring a first preview image and analyzing a first brightness value of the first preview image;
and controlling the light supplementing equipment to supplement light to the shooting object according to the first brightness value and the preset rule.
Preferably, the step of acquiring a first preview image and analyzing a first luminance value of the first preview image includes:
controlling an image pickup module to view the first preview image, acquiring a first exposure parameter for viewing the first preview image, and calculating the first brightness value according to the first exposure parameter, wherein the first exposure parameter is aperture size, exposure time and photosensitivity.
Preferably, the step of controlling the light supplementing device to supplement light to the shooting object according to the first brightness value and a preset rule includes:
judging whether the first brightness value is smaller than a first preset value or not;
and if the first brightness value is smaller than the first preset value, starting the light supplementing equipment.
Preferably, after the step of turning on the light compensating device if the first brightness value is smaller than the first preset value, the method further includes:
controlling the camera module to view a second preview image, acquiring a second exposure parameter for viewing the second preview image, and calculating a second brightness value of a viewing environment according to the second exposure parameter;
judging whether the second brightness value is larger than a second preset value, wherein the first preset value is smaller than the second preset value;
and if the second brightness value is larger than the second preset value, closing the light supplementing equipment.
Preferably, after the step of determining whether the first luminance value is less than the first preset value of the ambient luminance, the method further includes:
if the first brightness value is greater than or equal to the first preset value, dividing the first preview image into a plurality of view finding areas;
and obtaining characteristic parameter values of each view finding area, and calculating the characteristic parameter values according to a preset algorithm.
Preferably, the framing area includes a central area located at a central position of the first preview image, and a peripheral area disposed around the central area, the peripheral area including a vertex angle of the first preview image.
Preferably, the surrounding area includes a vertex angle area and a spacing area, the vertex angle area and the spacing area are arranged at intervals, and the vertex angle area is located at a vertex angle of the first preview image.
Preferably, the step of obtaining the feature parameter values of each of the viewfinder areas and calculating the feature parameter values according to a preset algorithm includes:
acquiring the number of the region blocks of the central region, the number of the pixel points in the region blocks and the brightness value of each pixel point, and calculating to obtain a first pixel average brightness value according to a preset algorithm;
acquiring the number of the area blocks of the surrounding area or the vertex angle area, the number of the pixel points in the area blocks and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to the preset algorithm;
judging whether the first pixel average brightness value is smaller than the second pixel average brightness value;
and if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, starting the light supplementing equipment.
Preferably, after the step of turning on the light compensating device if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, the method further includes:
controlling the camera module to view a third preview image in real time, and dividing the third preview image into a plurality of view-finding areas; acquiring characteristic parameter values of the view finding areas and executing: obtaining the number of the pixel points in each region block belonging to the surrounding region or the vertex angle region, the number of the region blocks, the number of the pixel points in each region block and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to a preset algorithm;
judging whether the average brightness value of the second pixel is smaller than a preset pixel brightness value or not;
and if the average brightness value of the second pixel is smaller than the preset pixel brightness value, the light supplementing equipment is turned off.
Preferably, the step of controlling the camera module to view the first preview image, acquiring a first exposure parameter for viewing the first preview image, and calculating a first brightness value of a viewing environment according to the first exposure parameter includes:
controlling an image pickup module to view a first preview image, and acquiring a first exposure parameter for viewing the first preview image, wherein the first exposure parameter is aperture size, exposure time and photosensitivity;
in order to achieve the above object, the present invention further provides a mobile terminal, which is characterized by comprising an image capturing module, a light supplementing device, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the steps of the light supplementing control method when executing the program;
in order to achieve the above object, the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program when executed by a processor implements the steps of the light supplementing control method described above.
According to the light supplementing control method, the mobile terminal and the computer-readable storage medium, the first brightness value of the environment is obtained through calculation, and the light supplementing equipment is controlled to be started or stopped according to the first brightness value of the environment and the preset rule, so that the light supplementing equipment can automatically supplement light to a shooting object when a shooting is in a backlight scene.
Drawings
FIG. 1 is a schematic diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the light supplementing control method of the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the light supplementing control method of the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of the light supplementing control method of the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of a light supplementing control method according to the present invention;
FIG. 6 is a schematic flow chart of a fifth embodiment of a light supplementing control method according to the present invention;
FIG. 7 is a flowchart of a light supplementing control method according to a sixth embodiment of the present invention;
fig. 8 is a flowchart of a seventh embodiment of a light supplementing control method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a light supplementing control method, a mobile terminal and a computer readable storage medium.
As shown in fig. 1, the method of the present invention is applicable to mobile terminals, including but not limited to the following mobile terminals: cell phones, tablets, computers, etc. The mobile terminal may include: a processor 1001 such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, an image capturing module, and a light supplementing apparatus. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a display, touchpad, touch screen, keyboard, and the optional user interface 1003 may also include a standard wired interface, wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a flash RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above. The camera module may include a shutter, a lens, a digital signal processing chip, and an image sensor. The light supplementing device may be a light supplementing lamp or a flash lamp.
Optionally, the mobile terminal may also include RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of ambient light. Of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a light supplement control program may be included in the memory 1005 as one type of computer storage medium.
In the mobile terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call up the light-supplementing control program stored in the memory 1005 and perform the following operations:
acquiring a first preview image and analyzing a first brightness value of the first preview image;
and controlling the light supplementing equipment to supplement light to the shooting object according to the first brightness value and the preset rule.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
controlling an image pickup module to view the first preview image, acquiring a first exposure parameter for viewing the first preview image, and calculating the first brightness value according to the first exposure parameter, wherein the first exposure parameter is any two or three of aperture size, exposure time and photosensitivity.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
judging whether the first brightness value is smaller than a first preset value or not;
and if the first brightness value is smaller than the first preset value, starting the light supplementing equipment.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
controlling the camera module to view a second preview image, acquiring a second exposure parameter for viewing the second preview image, and calculating a second brightness value of a viewing environment according to the second exposure parameter;
judging whether the second brightness value is larger than a second preset value, wherein the first preset value is smaller than the second preset value;
and if the second brightness value is larger than the second preset value, closing the light supplementing equipment.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
if the first brightness value is greater than or equal to the first preset value, dividing the first preview image into a plurality of view finding areas;
and obtaining characteristic parameter values of each view finding area, and calculating the characteristic parameter values according to a preset algorithm.
Further, the view finding area includes a center area located at a center position of the first preview image, and a surrounding area disposed around the center area, the surrounding area including a vertex angle of the first preview image.
Further, the surrounding area comprises a vertex angle area and a spacing area, the vertex angle area and the spacing area are arranged at intervals, and the vertex angle area is positioned at the vertex angle of the first preview image.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
acquiring the number of the region blocks of the central region, the number of the pixel points in the region blocks and the brightness value of each pixel point, and calculating to obtain a first pixel average brightness value according to a preset algorithm;
acquiring the number of the area blocks of the surrounding area or the vertex angle area, the number of the pixel points in the area blocks and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to the preset algorithm;
judging whether the first pixel average brightness value is smaller than the second pixel average brightness value;
and if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, starting the light supplementing equipment.
Further, the processor 1001 may call the light supplement control program stored in the memory 1005, and further perform the following operations:
controlling the camera module to view a third preview image in real time, and dividing the third preview image into a plurality of view-finding areas; acquiring characteristic parameter values of the view finding areas and executing: acquiring the number of pixel points in each region block belonging to the surrounding region or the vertex angle region, the number of pixel points in each region block and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to a preset algorithm;
judging whether the average brightness value of the second pixel is smaller than a preset pixel brightness value or not;
and if the average brightness value of the second pixel is smaller than the preset pixel brightness value, the light supplementing equipment is turned off.
Based on the above hardware structure, various embodiments of the light compensation control method in the present application are presented.
Referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the light supplementing control method according to the present invention.
A first embodiment of the present invention provides a light supplementing control method, including:
step S100, a first preview image is obtained, and a first brightness value of the first preview image is analyzed;
in this embodiment, step S100 is specifically:
controlling an image pickup module to view a first preview image, acquiring a first exposure parameter for viewing the first preview image, and calculating a first brightness value of a viewing environment according to the first exposure parameter;
in this step, before shooting with the mobile terminal, the user may view a first preview image through the image capturing module, where the first preview image may be displayed on a display screen of the mobile terminal, the user may adjust a first exposure parameter to obtain a most satisfactory first preview image, the mobile terminal obtains the first exposure parameter, where the first exposure parameter may be any two or three of exposure time, sensitivity, and aperture size, and a first brightness value correspondence of the computing environment according to the first exposure parameter may be: the sum of the aperture size and the exposure time is equal to the sum of the sensitivity and the first luminance value.
In other embodiments, step S100 may further be framing the first preview image by an infrared camera. The infrared camera emits infrared light, the infrared light is reflected at a photographed object, the infrared camera receives the reflected infrared light, and an image formed by the reflection of the infrared light is generated.
Step S110, controlling the light supplementing device to supplement light to the shooting object according to the first brightness value and the preset rule.
In this step, the preset rule is set by a person skilled in the art, where the preset rule may be to set a reasonable threshold, determine a magnitude relation between the first brightness value and the threshold, so as to determine an environment where the photographic subject is located when photographing, and control on or off of the light compensating device according to the environment, so that the purpose of controlling the light compensating device to supplement light to the photographic subject when the photographic subject is photographed in a backlight scene is specifically achieved.
In this embodiment, the first brightness value of the environment is calculated, and the light supplementing device is controlled to supplement light to the shooting object according to the first brightness value and the preset rule, so that the situation that the light supplementing device cannot automatically start to supplement light to the shooting object when a backlight scene is photographed is avoided.
Further, referring to fig. 3, a second embodiment of the present application provides a light supplementing control method, based on the foregoing embodiment, the step S110 includes:
step 200, judging whether the first brightness value is smaller than a first preset value;
step S210, if the first brightness value is smaller than the first preset value, turning on the light supplementing device.
In this embodiment, the first preset value may be set to be very small, and when the first brightness value is smaller than the first preset value, this indicates that the first brightness value of the environment is very small at this time, the surrounding environment is relatively dark when the mobile terminal is used for shooting, and the light is relatively weak, and at this time, the light supplementing device is turned on to supplement light to the shooting object, so that when the environment is relatively dark during shooting, the light supplementing device can be turned on to supplement light.
Further, referring to fig. 4, a third embodiment of the present application provides a light supplementing control method, based on the foregoing embodiment, after the step S210, further includes:
step S300, controlling the camera module to view a second preview image, acquiring a second exposure parameter for viewing the second preview image, and calculating a second brightness value of a viewing environment according to the second exposure parameter;
in this step, based on the above second embodiment, when the user photographs with the mobile terminal after the light supplementing device is turned on, the image capturing module may be controlled to view the second preview image when the user continues photographing with the mobile terminal because the surrounding environment changes in real time and the second brightness value of the environment changes.
Step S310, judging whether the second brightness value is larger than a second preset value, wherein the first preset value is smaller than the second preset value;
step S320, if the second brightness value is greater than the second preset value, turning off the light supplementing device.
And if the second brightness value is smaller than or equal to the second preset value, not processing.
In this embodiment, the second preset value may be set to be larger than the first preset value, and when the second brightness value is larger than the second preset value, this indicates that the second brightness value of the environment is larger at this time, the surrounding environment is brighter when the mobile terminal is used for shooting, the light is stronger, and the light supplementing device is turned off at this time, so that the light supplementing device can be turned off when the environment is brighter when shooting is ensured, and the quality of the shot photo is prevented from being influenced by the excessively bright environment.
Further, referring to fig. 5, a fourth embodiment of the present application provides a light supplementing control method, based on the above embodiment, after the step S200, further includes:
step S400, if the first brightness value is greater than or equal to the first preset value, dividing the first preview image into a plurality of view finding areas;
in this step, based on the second embodiment, if the first luminance value is greater than or equal to the first preset value of the ambient luminance, the first preview image is divided into a plurality of view areas, and the dividing of the first preview image into a plurality of view areas may be performed by dividing the first preview image into a plurality of view areas of equal size according to the size of the first preview image, or may be performed by dividing the first preview image into a plurality of view areas of different pixel attributes according to the pixel attribute of the first preview image.
Step S410, obtaining the feature parameter values of each view finding area, and calculating the feature parameter values according to a preset algorithm.
In this step, the obtaining the feature parameter value of each view finding area may specifically be obtaining the number of pixels of each view finding area, the brightness value of each pixel, and the number of area blocks of each view finding area of the first preview image, where the preset algorithm may be an average algorithm, and average calculation is performed on the feature parameter value according to the average algorithm.
In this embodiment, the first preview image is divided into a plurality of viewing areas, so that it is beneficial to analyze the characteristics of the first preview image in different viewing areas, and further classify each of the viewing areas.
Further, referring to fig. 6, a fifth embodiment of the present application provides a light compensation control method, based on the foregoing embodiment, the view finding area includes a center area located at a center position of the first preview image, and a surrounding area disposed around the center area, where the surrounding area includes a vertex angle of the first preview image. Further, the surrounding area comprises a vertex angle area and a spacing area, the vertex angle area and the spacing area are arranged at intervals, and the vertex angle area is positioned at the vertex angle of the first preview image.
In this embodiment, the number of central areas is 1, the number of surrounding areas is 4, and the number of interval areas is 4, because the shooting object is generally at the right center of the image and the surroundings are the environments where the shooting object is located when shooting, the classification processing is performed on the framing area of the first preview image by using the positional relationship between the shooting object and the environments, which is beneficial to obtaining different characteristic parameters of the shooting object and the environments on the first preview image.
Further, referring to fig. 7, a sixth embodiment of the present application provides a light supplementing control method, based on the above embodiment, the step S410 includes:
step S500, obtaining the number of the region blocks of the central region, the number of the pixel points in the region blocks and the brightness value of each pixel point, and calculating to obtain a first pixel average brightness value according to a preset algorithm;
in this embodiment, since the center area includes a view finding area located at the center of the image, the number of area blocks is 1, and the calculating the average brightness value of the first pixel according to the preset algorithm may be dividing the sum of the brightness values of the pixel points by the number of pixel points and the number of area blocks.
Step S510, obtaining the number of the area blocks in the surrounding area or the vertex angle area, the number of the pixel points in the area blocks, and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to the preset algorithm;
in this step, referring to fig. 6, the number of area blocks belonging to or the vertex area may be 4, and the calculation of the average brightness value of the second pixel is described in step S500, which is not described in detail.
In this embodiment, the feature parameter values of the different types of region blocks, that is, the number of pixel points, the brightness value of each pixel point, and the number of region blocks are obtained, and the feature parameter values are calculated according to a preset algorithm, so that the feature of the different region blocks of the first preview image is advantageously converted into digital information.
Step S520, determining whether the first pixel average luminance value is smaller than the second pixel average luminance value;
in this step, the first pixel average luminance value may represent a pixel average luminance value of the subject on the first preview image, and the second pixel average luminance value may represent a pixel average luminance value of an environment in which the subject is located on the first preview image.
Step S530, if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, starting the light supplementing device;
if the average brightness value of the first pixel is larger than or equal to the average brightness value of the second pixel, no processing is performed.
In this embodiment, based on the fourth embodiment, it may be considered that the brightness of the environment is not low and the average brightness value of the first pixel is smaller than the average brightness value of the second pixel at this time, then it may be considered that the brightness of the shooting object is lower than the brightness of the environment, and the shooting object is in a backlight environment, and at this time, the light supplementing device is turned on to supplement light to the shooting object, so that when photographing is in the backlight environment, the light supplementing can be performed to the shooting object according to the illumination condition of the environment.
Further, referring to fig. 8, a seventh embodiment of the present application provides a light supplementing control method, based on the foregoing embodiment, after the step S530, further including:
step S600, the camera module is controlled to view a third preview image in real time, and the third preview image is divided into a plurality of view areas; acquiring the characteristic parameter values of each view finding area and executing step S510;
in this step, when the photographing object is in a backlight scene and the light supplementing device is turned on, the user photographs with the mobile terminal, the second pixel average brightness value is calculated in real time because the surrounding environment changes in real time and the photographed image also changes in real time.
Step S610, judging whether the average brightness value of the second pixel is smaller than a preset pixel brightness value;
step S620, if the second pixel average brightness value is smaller than the pixel brightness preset value, the light supplementing device is turned off;
if the average brightness value of the second pixel is greater than or equal to the preset pixel brightness value, the processing is not performed.
In this step, based on the above-described fourth embodiment, when the second pixel average luminance value is smaller than the pixel luminance preset value, it can be considered that the environment luminance where the photographic subject is located is low at this time, but the first luminance value of the environment is still larger than the first preset value, the photographic subject is not in a backlight scene, and the light supplementing apparatus should be turned off at this time.
In the real-time example, when photographing is not in a backlight environment, the light supplementing equipment can be closed according to the ambient illumination condition.
The specific embodiments of the computer readable storage medium of the present invention are substantially the same as the embodiments of the light supplementing control method described above, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a mobile terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (11)

1. A light supplementing control method, characterized in that the light supplementing control method comprises:
acquiring a first preview image and analyzing a first brightness value of the first preview image;
controlling the light supplementing equipment to supplement light to the shooting object according to the first brightness value and a preset rule;
according to the first brightness value and a preset rule, controlling the light supplementing device to supplement light to the shooting object, including:
when the shooting object is in the central area of the first preview image, if the first brightness value is greater than or equal to a first preset value, acquiring a first pixel average brightness value corresponding to the shooting object in the first preview image and acquiring a second pixel average brightness value corresponding to the environment where the shooting object is located in the first preview image;
and if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, starting the light supplementing equipment.
2. The light supplement control method of claim 1, wherein the step of acquiring a first preview image and analyzing a first luminance value of the first preview image comprises:
controlling an image pickup module to view the first preview image, acquiring a first exposure parameter for viewing the first preview image, and calculating the first brightness value according to the first exposure parameter, wherein the first exposure parameter is any two or three of aperture size, exposure time and photosensitivity.
3. The light-compensating control method according to claim 1, wherein the step of controlling the light-compensating apparatus to compensate light of the photographic subject according to the first luminance value and a preset rule comprises:
judging whether the first brightness value is smaller than a first preset value or not;
and if the first brightness value is smaller than the first preset value, starting the light supplementing equipment.
4. The light-compensating control method as claimed in claim 3, wherein after the step of turning on the light-compensating device if the first luminance value is smaller than the first preset value, further comprises:
controlling the camera module to view a second preview image, acquiring a second exposure parameter for viewing the second preview image, and calculating a second brightness value of a viewing environment according to the second exposure parameter;
judging whether the second brightness value is larger than a second preset value, wherein the first preset value is smaller than the second preset value;
and if the second brightness value is larger than the second preset value, closing the light supplementing equipment.
5. The light supplementing control method according to claim 3, wherein after the step of determining whether the first luminance value is smaller than a first preset value, further comprising:
if the first brightness value is greater than or equal to the first preset value, dividing the first preview image into a plurality of view finding areas;
and obtaining characteristic parameter values of each view finding area, and calculating the characteristic parameter values according to a preset algorithm.
6. The light supplementing control method according to claim 5, wherein the framing region includes a center region located at a center position of the first preview image, and a surrounding region disposed around the center region, the surrounding region including a vertex angle of the first preview image.
7. The light supplementing control method according to claim 6, wherein the surrounding area includes a vertex angle area and a spacing area, the vertex angle area and the spacing area being disposed at a spacing, the vertex angle area being located at a vertex angle of the first preview image.
8. The light-supplementing control method according to claim 7, wherein the step of obtaining the characteristic parameter values of the respective view-finding areas, and calculating the characteristic parameter values according to a preset algorithm, comprises:
acquiring the number of each region block of the central region, the number of pixel points in each region block and the brightness value of each pixel point, and calculating to obtain a first pixel average brightness value according to a preset algorithm;
acquiring the number of the area blocks of the surrounding area or the vertex angle area, the number of the pixel points in the area blocks and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to the preset algorithm;
judging whether the first pixel average brightness value is smaller than the second pixel average brightness value;
and if the average brightness value of the first pixel is smaller than the average brightness value of the second pixel, starting the light supplementing equipment.
9. The light compensation control method as recited in claim 8, wherein after the step of turning on the light compensation device if the first pixel average luminance value is smaller than the second pixel average luminance value, further comprises:
the real-time control camera module views a third preview image, and the third preview image is divided into a plurality of view finding areas;
acquiring characteristic parameter values of the view finding areas and executing: acquiring the number of pixel points in each region block belonging to the surrounding region or the vertex angle region, the number of pixel points in each region block and the brightness value of each pixel point, and calculating to obtain a second pixel average brightness value according to a preset algorithm;
judging whether the average brightness value of the second pixel is smaller than a preset pixel brightness value or not;
and if the average brightness value of the second pixel is smaller than the preset pixel brightness value, the light supplementing equipment is turned off.
10. A mobile terminal comprising an imaging module, a light supplementing device, and a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the light supplementing method according to any of claims 1 to 9 when the program is executed.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the light supplementing control method according to any one of claims 1 to 9.
CN201910691478.6A 2019-07-29 2019-07-29 Light supplementing control method, mobile terminal and computer readable storage medium Active CN110418069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910691478.6A CN110418069B (en) 2019-07-29 2019-07-29 Light supplementing control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910691478.6A CN110418069B (en) 2019-07-29 2019-07-29 Light supplementing control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110418069A CN110418069A (en) 2019-11-05
CN110418069B true CN110418069B (en) 2024-02-20

Family

ID=68363938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910691478.6A Active CN110418069B (en) 2019-07-29 2019-07-29 Light supplementing control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110418069B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995992B (en) 2019-12-04 2021-04-06 深圳传音控股股份有限公司 Light supplement device, control method of light supplement device, and computer storage medium
CN111083388B (en) * 2019-12-26 2021-04-16 浙江大华技术股份有限公司 Light supplement lamp control method and device, electronic equipment and storage medium
CN111586309A (en) * 2020-04-24 2020-08-25 山东易华录信息技术有限公司 Image acquisition method and device for underwater automatic light supplement
CN111812920B (en) * 2020-08-14 2022-01-21 李站茹 Disabled person monitoring facilities based on big data
CN112312019A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Light supplementing method and device and electronic equipment
CN112492224A (en) * 2020-11-16 2021-03-12 广州博冠智能科技有限公司 Adaptive scene light supplement method and device for video camera
CN112890728A (en) * 2021-01-19 2021-06-04 佛山市顺德区美的洗涤电器制造有限公司 Light supplementing method and device for dish washing machine and dish washing machine

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303280A (en) * 2016-09-09 2017-01-04 广东欧珀移动通信有限公司 One is taken pictures light compensation method, device and terminal
CN106791467A (en) * 2016-12-23 2017-05-31 珠海格力电器股份有限公司 Photographing light supplementing method and device and electronic equipment
CN107071272A (en) * 2017-02-17 2017-08-18 奇酷互联网络科技(深圳)有限公司 Control method, device and the terminal of camera light compensating lamp brightness
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
CN109547701A (en) * 2019-01-04 2019-03-29 Oppo广东移动通信有限公司 Image capturing method, device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303280A (en) * 2016-09-09 2017-01-04 广东欧珀移动通信有限公司 One is taken pictures light compensation method, device and terminal
CN106791467A (en) * 2016-12-23 2017-05-31 珠海格力电器股份有限公司 Photographing light supplementing method and device and electronic equipment
CN107071272A (en) * 2017-02-17 2017-08-18 奇酷互联网络科技(深圳)有限公司 Control method, device and the terminal of camera light compensating lamp brightness
CN107734225A (en) * 2017-10-24 2018-02-23 维沃移动通信有限公司 A kind of image pickup method and device
CN109547701A (en) * 2019-01-04 2019-03-29 Oppo广东移动通信有限公司 Image capturing method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110418069A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110418069B (en) Light supplementing control method, mobile terminal and computer readable storage medium
CN109345485B (en) Image enhancement method and device, electronic equipment and storage medium
US10074165B2 (en) Image composition device, image composition method, and recording medium
CN113411498B (en) Image shooting method, mobile terminal and storage medium
US11783450B2 (en) Method and device for image processing, terminal device and storage medium
CN105450932A (en) Backlight photographing method and device
CN106791451B (en) Photographing method of intelligent terminal
CN105391940B (en) A kind of image recommendation method and device
US20240163566A1 (en) Exposure compensation method and apparatus, and electronic device
US20240273909A1 (en) Camera shooting parameter adjustment method and apparatus, and electronic device
CN111492653B (en) Method and device for quickly adjusting white balance of camera and computer readable storage medium
CN116337412A (en) Screen detection method, device and storage medium
CN112351197B (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
CN111602390A (en) Terminal white balance processing method, terminal and computer readable storage medium
CN111567034A (en) Exposure compensation method, device and computer readable storage medium
CN110971814B (en) Shooting adjustment method and device, electronic equipment and storage medium
US20200288066A1 (en) Delivery of notifications for feedback over visual quality of images
CN111429377B (en) Image processing method, terminal and storage medium
CN112752031B (en) Image acquisition and detection method and device, electronic equipment and storage medium
CN111543047A (en) Video shooting method and device and computer readable storage medium
CN116152078A (en) Image processing method, device, system and storage medium
JP2005196252A (en) Object region detecting device, photographing device, target region detecting method and computer program
CN114339028A (en) Photographing method, electronic device and computer-readable storage medium
CN110809119A (en) Photographing method, photographing apparatus, and computer-readable storage medium
JP5504895B2 (en) Mobile terminal, photometry area selection method, photometry area selection program, and program recording medium

Legal Events

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