CN108449549B - Method and device for adjusting brightness of LED fill light lamp panel and storage medium - Google Patents

Method and device for adjusting brightness of LED fill light lamp panel and storage medium Download PDF

Info

Publication number
CN108449549B
CN108449549B CN201810225233.XA CN201810225233A CN108449549B CN 108449549 B CN108449549 B CN 108449549B CN 201810225233 A CN201810225233 A CN 201810225233A CN 108449549 B CN108449549 B CN 108449549B
Authority
CN
China
Prior art keywords
adjusting
lamp panel
value
subunit
target
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
CN201810225233.XA
Other languages
Chinese (zh)
Other versions
CN108449549A (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.)
Zhejiang Guozi Robot Technology Co Ltd
Original Assignee
Zhejiang Guozi Robot Technology 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 Zhejiang Guozi Robot Technology Co Ltd filed Critical Zhejiang Guozi Robot Technology Co Ltd
Priority to CN201810225233.XA priority Critical patent/CN108449549B/en
Publication of CN108449549A publication Critical patent/CN108449549A/en
Application granted granted Critical
Publication of CN108449549B publication Critical patent/CN108449549B/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
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Traffic Control Systems (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a storage medium for adjusting the brightness of an LED fill light lamp panel, wherein an image acquisition device performs graying processing on an acquired image to acquire the gray value of each pixel point in the image; according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point; calculating first target values corresponding to all the first type pixel points and second target values corresponding to all the second type pixel points; the value of the first target value and the value of the second target value reflect the brightness condition of the image, and the number of the lighted LED lamps on the LED light supplement lamp panel is adjusted according to the first target value and the second target value so as to realize automatic adjustment of the light supplement intensity of the LED light supplement lamp panel and ensure that the image with qualified brightness is shot.

Description

Method and device for adjusting brightness of LED fill light lamp panel and storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a device for adjusting the brightness of an LED fill light lamp panel and a storage medium.
Background
The indoor mobile robot needs to be positioned and navigated by means of the two-dimension code, and therefore the two-dimension code image with qualified brightness can be acquired by the image acquisition equipment, and the two-dimension code information can be correctly analyzed to complete positioning and navigation.
The acquisition brightness of an image is an important factor affecting the image quality. The captured image cannot be identified due to the fact that the brightness of the image acquisition is too high or too low. In order to ensure that the collection brightness of the image meets the requirement, an LED light supplementing lamp panel is arranged in the robot image collection equipment. The LED light supplement lamp panel comprises a plurality of groups of LED lamps.
In the traditional mode, workers manually adjust the on and off of each group of LED lamps on the LED light supplementing lamp plate according to the quality of images collected by the image collecting equipment so as to collect images with qualified brightness. Manual adjustment not only consumes human resources, but also the timeliness and accuracy of adjustment are not guaranteed.
Therefore, how to realize the automatic adjustment of the light supplement intensity of the LED light supplement lamp panel is a problem to be solved urgently by the technical personnel in the field.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and a storage medium for adjusting the brightness of an LED light supplement lamp panel, which can realize automatic adjustment of the light supplement intensity of the LED light supplement lamp panel.
In order to solve the technical problem, an embodiment of the present invention provides a method for adjusting luminance of an LED fill light panel, including:
carrying out graying processing on the collected image to obtain the gray value of each pixel point in the image;
according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point;
calculating first average values corresponding to all the first type pixel points and second average values corresponding to all the second type pixel points;
and adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to the first average value and the second average value.
Optionally, the adjusting the number of the LED lamps on the LED light supplement lamp panel according to the first average value and the second average value includes:
judging whether the first average value is smaller than a first threshold value;
if yes, adjusting the number of the lighted LED lamps on the LED light supplementing lamp plate according to a first rule, and acquiring images again according to the adjusted LED light supplementing lamp plate;
if not, judging whether the second average value is larger than a second threshold value;
when the second average value is larger than the second threshold value, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a second rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the second average value is less than or equal to the second threshold value.
Optionally, the adjusting the number of the LED lamps on the LED light supplement lamp panel according to the first average value and the second average value includes:
calculating a target ratio of the first average value to the second average value according to a preset rule;
judging whether the target ratio is smaller than a third threshold value;
if yes, adjusting the number of the lighted LED lamps on the LED light supplementing lamp plate according to a first rule, and acquiring images again according to the adjusted LED light supplementing lamp plate;
if not, judging whether the target ratio is larger than a fourth threshold value;
when the target ratio is larger than the fourth threshold, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a second rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the target ratio is smaller than or equal to the fourth threshold.
Optionally, the adjusting the number of the LED lamps on the LED light supplement lamp panel according to the first average value and the second average value includes:
calculating a target difference value of the first average value and the second average value according to a preset rule;
judging whether the target difference value is smaller than a fifth threshold value;
if yes, adjusting the number of the lighted LED lamps on the LED light supplementing lamp plate according to a first rule, and acquiring images again according to the adjusted LED light supplementing lamp plate;
if not, judging whether the target difference value is larger than a sixth threshold value;
when the target difference value is larger than the sixth threshold value, adjusting the number of the lighted LED lamps on the LED light supplementing lamp panel according to a second rule, and acquiring images again according to the adjusted LED light supplementing lamp panel;
and when the target difference value is smaller than or equal to the sixth threshold value, ending the operation.
The embodiment of the invention also provides a device for adjusting the brightness of the LED fill-in light lamp panel, which comprises an acquisition unit, a processing unit, a calculation unit and an adjustment unit;
the acquisition unit is used for carrying out graying processing on the acquired image to acquire the gray value of each pixel point in the image;
the processing unit is used for carrying out binarization processing on a target area of the image according to a preset threshold value so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point;
the calculating unit is used for calculating first average values corresponding to all the first pixel points and second average values corresponding to all the second pixel points;
and the adjusting unit is used for adjusting the number of the LED lamps on the LED light supplementing lamp panel according to the first average value and the second average value.
Optionally, the adjusting unit includes a first determining subunit, a first adjusting subunit, a second determining subunit, and a second adjusting subunit;
the first judging subunit is configured to judge whether the first average value is smaller than a first threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judging subunit, where the second judging subunit is configured to judge whether the second average value is greater than a second threshold;
when the second average value is larger than the second threshold value, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the second average value is less than or equal to the second threshold value.
Optionally, the adjusting unit includes a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit, and a second adjusting subunit;
the calculating subunit is configured to calculate a target ratio of the first average value to the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target ratio is smaller than a third threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target ratio is greater than a fourth threshold;
when the target ratio is greater than the fourth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the target ratio is smaller than or equal to the fourth threshold.
Optionally, the adjusting unit includes a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit, and a second adjusting subunit;
the calculating subunit is configured to calculate a target difference value between the first average value and the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target difference is smaller than a fifth threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target difference is greater than a sixth threshold;
when the difference is greater than the sixth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and when the target difference value is smaller than or equal to the sixth threshold value, ending the operation.
The embodiment of the invention also provides a device for adjusting the brightness of the LED fill-in lamp panel, which comprises the following components:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the method for adjusting the brightness of the LED supplementary lighting lamp panel.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for adjusting the brightness of the LED supplementary lighting lamp panel are realized.
According to the technical scheme, the image acquisition equipment performs graying processing on the acquired image to acquire the gray value of each pixel point in the image; according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point; calculating first target values corresponding to all the first type pixel points and second target values corresponding to all the second type pixel points; the value of the first target value and the value of the second target value reflect the brightness condition of the image, and the number of the lighted LED lamps on the LED light supplement lamp panel is adjusted according to the first target value and the second target value so as to realize automatic adjustment of the light supplement intensity of the LED light supplement lamp panel and ensure that the image with qualified brightness is shot.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for adjusting luminance of an LED fill-in light panel according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for adjusting the brightness of an LED fill-in light panel according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a device for adjusting the brightness of an LED fill-in light lamp panel according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, a method for adjusting the brightness of the LED fill-in light panel according to an embodiment of the present invention is described in detail. Fig. 1 is a flowchart of a method for adjusting luminance of an LED fill-in light panel according to an embodiment of the present invention, where the method includes:
s101: carrying out graying processing on the collected image to obtain the gray value of each pixel point in the image.
The image is grayed, so that the color information with little influence can be removed, the storage space can be reduced, and the decoding speed can be increased.
In the grayed image, the gray value of the pure white point is 255, and the gray value of the pure black point is 0.
S102: and carrying out binarization processing on the target area of the image according to a preset threshold value so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point.
The target area refers to an effective area for performing brightness analysis on the image. Taking the collected two-dimensional code image as an example, the target area refers to an area where the two-dimensional code image is located. In specific implementation, the region where the two-dimensional code is located can be intercepted from the image, and binarization processing is performed on pixel points in the region.
Through binarization processing, all pixel points in the target area can be divided into two types, namely first type pixel points and second type pixel points.
The first type of pixel points may be pixel points with a gray value greater than a threshold, and correspondingly, the second type of pixel points may be pixel points with a gray value less than or equal to the threshold. For convenience of subsequent introduction, the pixels with the gray value greater than the threshold value are taken as the first type of pixels, and the pixels with the gray value less than or equal to the threshold value are taken as the second type of pixels for example.
The threshold value may be set according to actual requirements, for example, the threshold value may be set to 128.
S103: and calculating a first average value corresponding to all the first type pixel points and a second average value corresponding to all the second type pixel points.
In S102, the pixel points in the target region may be divided into two types, in the embodiment of the present invention, an averaging method may be adopted to calculate respective target values corresponding to the two types of pixel points, that is, the gray values of the pixel points belonging to the first type of pixel points are added and averaged, and the obtained average value is the first target value; and adding and averaging the gray values of all the pixels belonging to the second type of pixels to obtain an average value, namely a second target value.
S104: and adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to the first average value and the second average value.
The value sizes of the first target value and the second target value reflect the brightness condition of the image. The method can accurately judge the brightness degree of the image, namely accurately judge whether the brightness of the image is slightly bright or slightly dark, and is a key for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel.
There are various ways to determine the brightness level of an image, and in the embodiment of the present invention, three ways are taken as an example for description.
In the first determination method, two corresponding thresholds may be set for the first target value and the second target value, where the first target value corresponds to the first threshold, and the second target value corresponds to the second threshold.
Specifically, it may be determined whether the first average value is smaller than a first threshold. When the first target value is smaller than the first threshold value, it is indicated that the acquired image is dark, at this time, the number of the lighted LED lamps on the LED light supplement lamp panel can be adjusted according to a first rule, and the image acquisition is performed again according to the adjusted LED light supplement lamp panel.
And when the first target value is greater than or equal to the first threshold value, further judging whether the second average value is greater than a second threshold value. When the second target value is greater than the second threshold value, it is indicated that the acquired image is slightly bright, at this time, the number of the lighted LED lamps on the LED light supplement lamp panel can be adjusted according to a second rule, and the image acquisition is performed again according to the adjusted LED light supplement lamp panel. When the second target value is less than or equal to the second threshold, it indicates that the brightness level of the image is satisfactory, and the operation may be ended.
In the second determination mode, the ratio of the first target value to the second target value is calculated, and the target ratio is compared with a set corresponding threshold value to determine the brightness of the image.
Specifically, the target ratio of the first average value and the second average value may be calculated according to a preset rule.
The preset rule includes a specific rule for calculating the target ratio. In the embodiment of the present invention, there may be a plurality of ways to calculate the target ratio, and taking two calculation ways as an example, the first calculation way may directly use a value obtained by dividing the first target value by the second target value as the target ratio. The second calculation method may be to calculate a square value of the first target value and a square value of the second target value, and to use a value obtained by dividing the square value of the first target value by the square value of the second target value as the target ratio. It should be noted that, the calculation manner of the target ratio is different, and the values of the corresponding thresholds are also different.
Judging whether the target ratio is smaller than a third threshold value; when the target ratio is smaller than the third threshold value, it is indicated that the acquired image is dark, the number of the lighted LED lamps on the LED light supplement lamp panel can be adjusted according to the first rule, and the image is acquired again according to the adjusted LED light supplement lamp panel.
And when the target ratio is greater than or equal to the third threshold, further judging whether the target ratio is greater than a fourth threshold.
When the target ratio is greater than the fourth threshold, it is indicated that the acquired image is slightly bright, at this time, the number of the lighted LED lamps on the LED light supplement lamp panel can be adjusted according to a second rule, and the image is acquired again according to the adjusted LED light supplement lamp panel. When the target ratio is smaller than or equal to the fourth threshold, it indicates that the brightness of the image is satisfactory, and the operation may be ended.
In a third determination mode, the brightness of the image can be determined by calculating a difference between the first target value and the second target value, and comparing the difference with a set corresponding threshold.
Specifically, the target difference between the first average value and the second average value may be calculated according to a preset rule.
The preset rule includes a specific rule for calculating the target difference. In the embodiment of the present invention, there may be a plurality of ways to calculate the target difference, and taking two calculation ways as an example, the first calculation way may directly use a value obtained by subtracting the second target value from the first target value as the target difference. The second calculation method may be to calculate a square value of the first target value and a square value of the second target value, and to use a value obtained by subtracting the square value of the second target value from the square value of the first target value as the target difference. It should be noted that, the calculation manner of the target difference is different, and the values of the corresponding thresholds are also different.
Judging whether the target difference value is smaller than a fifth threshold value; when the target difference value is smaller than the fifth threshold value, it is indicated that the acquired image is dark, the number of the lighted LED lamps on the LED light supplement lamp panel can be adjusted according to the first rule, and the image is acquired again according to the adjusted LED light supplement lamp panel.
When the target difference value is greater than or equal to a fifth threshold value, further judging whether the target difference value is greater than a sixth threshold value; when the target difference is greater than the sixth threshold, it is indicated that the acquired image is slightly bright, at this time, the number of lighted LED lamps on the LED light supplement lamp panel can be adjusted according to a second rule, and the image acquisition is performed again according to the adjusted LED light supplement lamp panel; when the target difference is smaller than or equal to the sixth threshold, it indicates that the brightness of the image meets the requirement, and the operation may be ended.
The LED light supplement lamp panel is provided with a plurality of groups of LED lamps, and all the LED lamps on the LED light supplement lamp panel can be grouped according to actual conditions. The number of the LED lamps in each group can be one or more.
The first rule includes a specific adjusting method for the light supplement intensity of the LED light supplement lamp panel when the image is dark. When the image is dark, the number that LED lamp was lighted on the LED light filling lamp plate can be increased, also light a set of or multiunit LED lamp on original basis promptly to promote image acquisition's luminance.
The second rule includes a specific adjusting method for the light supplement intensity of the LED light supplement lamp panel when the image is slightly bright. When the image is on a partial scale, the number of the LED lamps on the LED light supplementing lamp plate can be reduced, and one or more groups of LED lamps are turned off on the original basis to reduce the brightness of image acquisition.
After the number of the LED lamps is lightened on the LED light supplement lamp plate is adjusted once, whether the acquisition brightness of the image meets the requirement or not is judged according to the adjusted LED light supplement lamp plate, so that the acquisition of the image needs to be carried out again according to the adjusted LED light supplement lamp plate after the light intensity of the LED light supplement lamp plate is adjusted.
Considering that the aging and brightness attenuation of the LED lamps are gradual processes, in general, when the brightness of the acquired image is dark, only one group of LED lamps needs to be increased, one group of LED lamps can be increased firstly, namely, one group of LED lamps is lightened on the original basis, then the image is acquired again, and whether the brightness of the image meets the requirement or not is judged.
Correspondingly, when the brightness of the collected image is slightly bright, the collected brightness of the image can be reduced according to a group of reduction modes, a group of LED lamps can be reduced firstly, namely, the group of LED lamps is turned off on the original basis, then the image is collected again, and whether the brightness of the image meets the requirement or not is judged. By repeatedly executing the steps, the light supplement intensity of the LED light supplement lamp plate can be continuously adjusted, and therefore images with qualified brightness can be shot.
According to the technical scheme, the image acquisition equipment performs graying processing on the acquired image to acquire the gray value of each pixel point in the image; according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point; calculating first target values corresponding to all the first type pixel points and second target values corresponding to all the second type pixel points; the value of the first target value and the value of the second target value reflect the brightness condition of the image, and the number of the lighted LED lamps on the LED light supplement lamp panel is adjusted according to the first target value and the second target value so as to realize automatic adjustment of the light supplement intensity of the LED light supplement lamp panel and ensure that the image with qualified brightness is shot.
Fig. 2 is a schematic structural diagram of a device for adjusting luminance of an LED fill-in light panel according to an embodiment of the present invention, including an obtaining unit 21, a processing unit 22, a calculating unit 23, and an adjusting unit 24;
the acquiring unit 21 is configured to perform graying processing on the acquired image to acquire a grayscale value of each pixel point in the image;
the processing unit 22 is configured to perform binarization processing on a target region of the image according to a preset threshold value, so as to classify each pixel point in the target region into a first type pixel point or a second type pixel point;
the calculating unit 23 is configured to calculate first average values corresponding to all the first type pixel points and second average values corresponding to all the second type pixel points;
and the adjusting unit 24 is configured to adjust the number of the lit LED lamps on the LED supplementary lighting lamp panel according to the first average value and the second average value.
Optionally, the adjusting unit includes a first determining subunit, a first adjusting subunit, a second determining subunit, and a second adjusting subunit;
the first judging subunit is configured to judge whether the first average value is smaller than a first threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judging subunit, where the second judging subunit is configured to judge whether the second average value is greater than a second threshold;
when the second average value is larger than the second threshold value, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the second average value is less than or equal to the second threshold value.
Optionally, the adjusting unit includes a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit, and a second adjusting subunit;
the calculating subunit is configured to calculate a target ratio of the first average value to the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target ratio is smaller than a third threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target ratio is greater than a fourth threshold;
when the target ratio is greater than the fourth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and ending the operation when the target ratio is smaller than or equal to the fourth threshold.
Optionally, the adjusting unit includes a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit, and a second adjusting subunit;
the calculating subunit is configured to calculate a target difference value between the first average value and the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target difference is smaller than a fifth threshold;
if yes, triggering the first adjusting subunit, wherein the first adjusting subunit is used for adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target difference is greater than a sixth threshold;
when the target difference is greater than the sixth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
and when the target difference value is smaller than or equal to the sixth threshold value, ending the operation.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, the image acquisition equipment performs graying processing on the acquired image to acquire the gray value of each pixel point in the image; according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point; calculating first target values corresponding to all the first type pixel points and second target values corresponding to all the second type pixel points; the value of the first target value and the value of the second target value reflect the brightness condition of the image, and the number of the lighted LED lamps on the LED light supplement lamp panel is adjusted according to the first target value and the second target value so as to realize automatic adjustment of the light supplement intensity of the LED light supplement lamp panel and ensure that the image with qualified brightness is shot.
Fig. 3 is a schematic diagram of a hardware structure of a device 30 for adjusting luminance of an LED fill-in light panel according to an embodiment of the present invention, which includes a memory 31 for storing a computer program;
and the processor 32 is configured to execute the computer program to implement the steps of the method for adjusting the brightness of the LED fill-in light panel.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for adjusting the brightness of the LED supplementary lighting lamp panel are realized.
The method, the device and the storage medium for adjusting the brightness of the LED fill-in light lamp panel provided by the embodiment of the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (4)

1. The method for adjusting the brightness of the LED supplementary lighting lamp panel is characterized by comprising the following steps of:
carrying out graying processing on the collected image to obtain the gray value of each pixel point in the image;
according to a preset threshold value, carrying out binarization processing on a target area of the image so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point;
calculating first average values corresponding to all the first type pixel points and second average values corresponding to all the second type pixel points;
adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to the first average value and the second average value;
according to first average value with the second average value, the number that the LED lamp was lighted on the adjustment LED light filling lamp plate includes:
calculating a target ratio of the first average value to the second average value according to a preset rule;
judging whether the target ratio is smaller than a third threshold value;
if the target ratio is smaller than a third threshold, adjusting the LED supplementary lighting according to a first ruleThe number of the lighted LED lamps on the lamp panel is adjusted according to the adjusted LED light supplementing lamp panel to acquire images again
If not, judging whether the target ratio is larger than a fourth threshold value;
when the target ratio is larger than the fourth threshold, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a second rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
when the target ratio is less than or equal to the fourth threshold, ending the operation;
or the number of the LED lamps on the LED light supplement lamp panel adjusted according to the first average value and the second average value comprises:
calculating a target difference value of the first average value and the second average value according to a preset rule;
judging whether the target difference value is smaller than a fifth threshold value;
if the target difference value is smaller than a fifth threshold value, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, judging whether the target difference value is larger than a sixth threshold value;
when the target difference value is larger than the sixth threshold value, adjusting the number of the lighted LED lamps on the LED light supplementing lamp panel according to a second rule, and acquiring images again according to the adjusted LED light supplementing lamp panel;
when the target difference value is less than or equal to the sixth threshold value, ending the operation;
the first rule comprises lighting a group of LED lamps on the original basis; the second rule includes extinguishing a group of LED lights on an original basis.
2. A device for adjusting the brightness of an LED fill light lamp panel is characterized by comprising an acquisition unit, a processing unit, a calculation unit and an adjustment unit;
the acquisition unit is used for carrying out graying processing on the acquired image to acquire the gray value of each pixel point in the image;
the processing unit is used for carrying out binarization processing on a target area of the image according to a preset threshold value so as to classify each pixel point in the target area into a first type pixel point or a second type pixel point;
the calculating unit is used for calculating first average values corresponding to all the first pixel points and second average values corresponding to all the second pixel points;
the adjusting unit is used for adjusting the number of the lighted LED lamps on the LED light supplementing lamp panel according to the first average value and the second average value;
the adjusting unit comprises a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit and a second adjusting subunit;
the calculating subunit is configured to calculate a target ratio of the first average value to the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target ratio is smaller than a third threshold; if the target ratio is smaller than a third threshold value, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target ratio is greater than a fourth threshold;
when the target ratio is greater than the fourth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
when the target ratio is less than or equal to the fourth threshold, ending the operation;
or the adjusting unit comprises a calculating subunit, a first judging subunit, a first adjusting subunit, a second judging subunit and a second adjusting subunit;
the calculating subunit is configured to calculate a target difference value between the first average value and the second average value according to a preset rule;
the first judging subunit is configured to judge whether the target difference is smaller than a fifth threshold; if the target difference value is smaller than a fifth threshold value, adjusting the number of the lighted LED lamps on the LED light supplement lamp panel according to a first rule, and acquiring images again according to the adjusted LED light supplement lamp panel;
if not, triggering the second judgment subunit, where the second judgment subunit is used to judge whether the target difference is greater than a sixth threshold;
when the target difference is greater than the sixth threshold, triggering the second adjusting subunit, where the second adjusting subunit is used to adjust the number of lit LED lamps on the LED light supplement lamp panel according to a second rule, and collecting images again according to the adjusted LED light supplement lamp panel;
when the target difference value is less than or equal to the sixth threshold value, ending the operation;
the first rule comprises lighting a group of LED lamps on the original basis; the second rule includes extinguishing a group of LED lights on an original basis.
3. The utility model provides an adjust device of LED light filling lamp plate luminance which characterized in that includes:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for adjusting the brightness of the LED fill light panel according to claim 1.
4. A computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the method for adjusting the brightness of the LED fill light panel of claim 1.
CN201810225233.XA 2018-03-19 2018-03-19 Method and device for adjusting brightness of LED fill light lamp panel and storage medium Active CN108449549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810225233.XA CN108449549B (en) 2018-03-19 2018-03-19 Method and device for adjusting brightness of LED fill light lamp panel and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810225233.XA CN108449549B (en) 2018-03-19 2018-03-19 Method and device for adjusting brightness of LED fill light lamp panel and storage medium

Publications (2)

Publication Number Publication Date
CN108449549A CN108449549A (en) 2018-08-24
CN108449549B true CN108449549B (en) 2021-02-12

Family

ID=63195199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810225233.XA Active CN108449549B (en) 2018-03-19 2018-03-19 Method and device for adjusting brightness of LED fill light lamp panel and storage medium

Country Status (1)

Country Link
CN (1) CN108449549B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031255B (en) * 2018-10-09 2021-07-27 科沃斯机器人股份有限公司 Method, device and storage medium for light supplement
CN109634027B (en) * 2019-01-04 2020-11-10 广东智媒云图科技股份有限公司 Method and device for adjusting brightness and position of light source
CN110933799B (en) * 2019-12-25 2021-06-18 浙江杜比医疗科技有限公司 Dynamic self-adaptive linear prediction control method, system and device
CN111083388B (en) * 2019-12-26 2021-04-16 浙江大华技术股份有限公司 Light supplement lamp control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102017608A (en) * 2006-03-17 2011-04-13 高通股份有限公司 Systems, methods, and apparatus for exposure control
CN105069390A (en) * 2015-07-27 2015-11-18 深圳市民德电子科技股份有限公司 Bar code reader using planar light source for illumination
CN107220578A (en) * 2017-05-31 2017-09-29 维沃移动通信有限公司 A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium
CN107566695A (en) * 2017-08-14 2018-01-09 厦门美图之家科技有限公司 A kind of light compensation method and mobile terminal
CN107749920A (en) * 2017-10-11 2018-03-02 奇酷互联网络科技(深圳)有限公司 Brightness adjusting method, device and the mobile terminal of flashlight

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7568628B2 (en) * 2005-03-11 2009-08-04 Hand Held Products, Inc. Bar code reading device with global electronic shutter control
TWI532413B (en) * 2013-09-11 2016-05-01 晶睿通訊股份有限公司 Light compensating system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102017608A (en) * 2006-03-17 2011-04-13 高通股份有限公司 Systems, methods, and apparatus for exposure control
CN105069390A (en) * 2015-07-27 2015-11-18 深圳市民德电子科技股份有限公司 Bar code reader using planar light source for illumination
CN107220578A (en) * 2017-05-31 2017-09-29 维沃移动通信有限公司 A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium
CN107566695A (en) * 2017-08-14 2018-01-09 厦门美图之家科技有限公司 A kind of light compensation method and mobile terminal
CN107749920A (en) * 2017-10-11 2018-03-02 奇酷互联网络科技(深圳)有限公司 Brightness adjusting method, device and the mobile terminal of flashlight

Also Published As

Publication number Publication date
CN108449549A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108449549B (en) Method and device for adjusting brightness of LED fill light lamp panel and storage medium
CN103345766B (en) A kind of signal lamp recognition methods and device
CN101442679B (en) Automatic white balance control system and method thereof
CN110335273B (en) Detection method, detection device, electronic apparatus, and medium
CN106846352B (en) Knife edge picture acquisition method and device for lens analysis force test
CN111145138B (en) Detection method, device and equipment for LED lamp panel and storage medium
KR20000038213A (en) Method and apparatus for detecting temperature of illumination color
CN106778534B (en) Method for identifying ambient light during vehicle running
CN111261079B (en) Method for detecting abnormal phenomena of bright and dark spots
CN112802133B (en) Mini Led display screen unit plate ink color detection and sorting method based on machine vision
EP3220101A1 (en) Texture evaluation apparatus, texture evaluation method, and computer-readable recording medium
CN116503388B (en) Defect detection method, device and storage medium
CN111179362B (en) Test paper color uniformity detection method based on dynamic illumination correction algorithm
CN114004834B (en) Method, equipment and device for analyzing foggy weather condition in image processing
CN113191988B (en) Brightness correction method and device, storage medium and electronic device
CN109035225B (en) Design quality evaluation method for automobile brake pad appearance quality inspection lighting system
CN104408709A (en) Rapid correction method of image with non-uniform gray scale of linear-array CCD camera
CN111712021A (en) Intelligent adjusting method, device and system for lamplight of art gallery
CN116137022B (en) Data enhancement method for underground mining remote monitoring
CN110807406B (en) Foggy day detection method and device
CN109982012B (en) Image processing method and device, storage medium and terminal
CN111126300B (en) Human body image detection method and device, electronic equipment and readable storage medium
CN112819844A (en) Image edge detection method and device
CN110398344B (en) Method, device and equipment for detecting backlight lamp panel of display equipment and storage medium
CN113306486A (en) In-vehicle lighting device control method, storage medium, and electronic 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
CB02 Change of applicant information

Address after: Room 501-516, 518, 5 / F, building 4, No. 66, Dongxin Avenue, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Zhejiang Guozi Robot Technology Co., Ltd

Address before: 310053 3 building, 2 six Binjiang District Road 309, Hangzhou, Zhejiang.

Applicant before: ZHEJIANG GUOZI ROBOT TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180824

Assignee: ZHEJIANG GUOZI INTELLIGENT EQUIPMENT Co.,Ltd.

Assignor: Zhejiang Guozi Robot Technology Co., Ltd

Contract record no.: X2021330000267

Denomination of invention: The invention relates to a method, device and storage medium for adjusting the brightness of LED fill lamp board

Granted publication date: 20210212

License type: Exclusive License

Record date: 20210907

EE01 Entry into force of recordation of patent licensing contract