CN112312030A - Photographing light supplement method and device, computer equipment and storage medium - Google Patents

Photographing light supplement method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112312030A
CN112312030A CN201910708222.1A CN201910708222A CN112312030A CN 112312030 A CN112312030 A CN 112312030A CN 201910708222 A CN201910708222 A CN 201910708222A CN 112312030 A CN112312030 A CN 112312030A
Authority
CN
China
Prior art keywords
brightness value
brightness
light supplement
comparison result
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910708222.1A
Other languages
Chinese (zh)
Inventor
杨鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201910708222.1A priority Critical patent/CN112312030A/en
Publication of CN112312030A publication Critical patent/CN112312030A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/993Evaluation of the quality of the acquired pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to a photographing light supplement method, which is applied to a photographing light supplement system, and the system comprises: a fill light, the method comprising: acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result; and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement. The method for supplementing light during photographing can automatically adjust the light, improves the photographing effect of the target, and is favorable for improving the accuracy of subsequent OCR recognition. In addition, a light supplementing device for photographing, computer equipment and a storage medium are also provided.

Description

Photographing light supplement method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a photographing light supplementing method and device, computer equipment and a storage medium.
Background
In many financial devices, before performing business processing, OCR (Optical Character Recognition) is performed on a document number of a document such as a certificate, a check, or a deposit receipt to perform Character Recognition. However, photographing through the camera is affected by conditions such as light source and distance, so that a large light and shade difference exists in a photographing effect, and subsequent OCR recognition is prone to making mistakes.
Therefore, it is desirable to provide a light supplement method capable of improving the shooting effect.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for supplementing light for photographing, a computer device and a storage medium for improving photographing effect.
The embodiment of the invention provides a photographing light supplement method, which is applied to a photographing light supplement system, and the system comprises: a fill light, the method comprising:
acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
A light supplementing apparatus for photographing, the apparatus comprising:
the comparison module is used for acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and the adjusting module is used for adjusting the brightness of the light supplementing lamp according to the comparison result when the comparison result exceeds a preset range, so that the brightness value of the target image obtained by shooting after adjustment meets the requirement.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
According to the method, the device, the computer equipment and the storage medium for shooting and supplementing light, the current image is obtained by shooting the target, then the brightness value of the current image is compared with the brightness value of the preset sample image to obtain the comparison result, and then the brightness of the light supplementing lamp is adjusted according to the comparison result, so that the brightness value of the target image obtained by shooting after adjustment meets the requirement. The method for supplementing light during photographing can automatically adjust the light, improves the photographing effect of the target, and is favorable for improving the accuracy of subsequent OCR recognition.
A photographic fill light system, the system comprising: the system comprises a camera, a plurality of light supplement lamps and a terminal connected with the camera and the light supplement lamps; the camera is used for shooting a target; the terminal is used for acquiring a current image obtained by shooting a target, comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result, and adjusting the brightness value of the light supplementing lamp according to the comparison result when the comparison result exceeds a preset range so as to enable the brightness value of the shot target image to meet the requirement.
The shooting light supplement system comprises a camera, a light supplement lamp and a terminal, wherein a target is shot through the camera, the terminal obtains a current image obtained by shooting the target, then brightness value comparison is carried out, and brightness value adjustment is carried out according to a comparison result, so that the brightness value of the shot target image meets requirements. The photographing light supplement system achieves automatic brightness adjustment and improves the photographing effect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a light supplement method for photographing according to an embodiment;
FIG. 2 is a flowchart illustrating adjusting a brightness value of a fill-in light according to a comparison result in one embodiment;
FIG. 3 is a diagram of a light supplement system for photographing according to an embodiment;
FIG. 4 is a block diagram of a fill-in light system for photographing according to an embodiment;
FIG. 5 is a block diagram of a light supplement device for photographing according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a light supplement method for photography is proposed, which is applied to a light supplement system for photography, and the system includes: camera and light filling lamp, this method includes:
step 102, obtaining a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result.
The current image is an image obtained by shooting a target at present. The object may be a document of the document type such as a certificate, a check, a deposit slip, etc. The image shooting is carried out on the bill file by calling the camera, so that the subsequent OCR recognition is conveniently carried out to obtain the file single number. If the brightness value of the shot current image is too high or too low, the effect of subsequent OCR recognition is affected, so that before recognition, the brightness value of the current image needs to be compared with the brightness value of the preset sample image.
The preset brightness value of the sample image refers to the brightness value of a standard image which is set for measuring whether the image brightness is qualified or not. The brightness value of the preset sample image can be extracted and stored in advance, and the brightness value of the current image can be directly compared with the stored brightness value only by extracting the brightness value of the current image. And when the comparison result meets the requirement, performing subsequent OCR recognition, and if the comparison result does not meet the requirement, adjusting the brightness of the shooting scene and then shooting again.
In another embodiment, manual determination may also be adopted, for example, the current image obtained by shooting is compared with the effect of a preset sample image, whether the brightness is appropriate is judged by naked eyes, and then the fill light is adjusted manually, for example, the fill light may be modified by manually modifying a PWM (pulse width modulation) value.
And 104, judging whether the comparison result exceeds a preset range, if so, entering a step 106, and if not, ending.
The comparison result is a comparison value between the brightness value of the current image and the brightness value of the preset sample image, a range of the comparison value is preset, when the comparison value exceeds the preset range, the brightness needs to be adjusted, and when the comparison value is within the preset range, the brightness of the current lamp is proper and does not need to be adjusted. The comparison value may be a difference between the brightness value of the current image and the brightness value of the preset sample image, or a ratio between the brightness value of the current image and the brightness value of the preset sample image.
And step 106, adjusting the brightness of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement.
When the comparison result exceeds the preset range, the current light brightness is not appropriate, and the brightness of the light supplement lamp needs to be adjusted. Since the shooting effect is affected by too high or too low brightness, the brightness adjustment may be an adjustment for increasing the brightness, or an adjustment for decreasing the brightness, and the adjustment may be adaptive according to actual conditions. The purpose of adjusting the light is to enable the brightness value of the target image obtained by shooting the target after adjustment to meet the requirement.
According to the method for supplementing light during photographing, the current image is obtained by photographing the target, the brightness value of the current image is compared with the brightness value of the preset sample image to obtain the comparison result, and then the brightness of the light supplementing lamp is adjusted according to the comparison result, so that the brightness value of the target image obtained after the adjustment and photographing meets the requirement. The method for supplementing light during photographing can automatically adjust the brightness of the supplemented light, improves the photographing effect on the target, and is favorable for improving the accuracy of subsequent OCR recognition.
As shown in fig. 2, in an embodiment, when the comparison result exceeds the preset range, adjusting the brightness value of the fill-in light according to the comparison result, so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes:
step 106A, calculating a brightness difference between the brightness value of the current image and the brightness value of the preset sample image.
The brightness difference is a difference between a brightness value of the current image obtained by calculation and a brightness value of a preset sample image. In one embodiment, since an image includes a plurality of pixels, each of which should have a pixel brightness value, the average brightness value of the current image (i.e. the average brightness value of each pixel) may be used to compare with the brightness value of the preset sample image.
In another embodiment, since the brightness distribution may not be uniform, the brightness values may be compared in different regions, and then the fill-in light may be adjusted in different regions.
And step 106B, determining an adjusting value corresponding to the light supplementing lamp according to the brightness difference.
Wherein, the adjusting values corresponding to different brightness difference values are different. For example, if the brightness difference is a negative value, it indicates that the brightness value of the current image is insufficient, and the corresponding adjustment value is a positive value, whereas if the brightness difference is a positive value, it indicates that the brightness of the current image is too high, and the corresponding adjustment value is a negative value. In one embodiment, the preset setting is a positive value (e.g., 5) and a negative value (e.g., -5), and the fill light is dimmed according to the preset negative value when the brightness difference is positive, and the fill light is dimmed according to the preset positive value when the brightness difference is negative.
In another embodiment, the adjustment value is different in magnitude according to the difference in brightness. For example, when the luminance difference value is 5, the adjustment value is-5, and when the luminance difference value is 10, the adjustment value is-10. The function of the set luminance difference value as a function of the adjustment value can be preset, for example, y — kx. k is a constant, e.g., 1.1.
And step 106C, adjusting the brightness of the light supplement lamp according to the adjusting value.
After the adjustment value is determined, the brightness of the light supplement lamp can be adjusted according to the adjustment.
The adjustment value is determined according to the brightness difference value, and then the light supplement lamp is adjusted according to the adjustment, so that the light supplement lamp can be adjusted in a targeted manner, and the shooting effect can be further improved.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness value of the fill-in light according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image; when the brightness difference is larger than a first preset difference, adjusting the brightness value of the light supplement lamp according to a preset first adjusting amplitude; when the brightness difference is smaller than a second preset difference, adjusting the brightness value of the light supplement lamp according to a preset second adjusting amplitude, wherein the first preset difference is larger than the second preset difference; and acquiring an image obtained by shooting a target after the light supplement lamp is adjusted, taking the image as a current image, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result until the brightness value of the target image obtained by shooting after adjustment meets the requirement.
Wherein, a first adjusting amplitude and a second adjusting amplitude are preset. And when the brightness difference is larger than a first preset difference (for example, 5), adjusting the brightness value of the fill-in lamp according to a first adjustment amplitude. Namely, in order to avoid excessive adjustment, the amplitude of each adjustment is determined, after each adjustment, the images are shot again for comparison, and when the comparison does not meet the requirement of the symbol, the adjustment is continued until the requirement can be met. If the brightness difference value is positive, the brightness is higher, so that the first preset difference value is a positive value, the first adjusting amplitude is a negative value, and if the brightness difference value is a negative value, the brightness is darker, the second preset difference value is a negative value, the second adjusting amplitude is a positive value, and specific values can be set in a user-defined mode according to needs.
In one embodiment, the step of comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result includes: comparing the brightness of the current image with the preset sample image, and determining an image area which does not accord with a preset range in the current image; the adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement comprises the following steps: and determining a target light supplement lamp corresponding to the image area, and adjusting the brightness value of the target light supplement lamp so as to enable the brightness value of the shot target image to meet the requirement.
Wherein, because the scope that a light filling lamp was lighted is limited, can be very inhomogeneous moreover, so set up a plurality of light filling lamps, be convenient for carry out omnidirectional shining to the target. The brightness value of the current image and the brightness value of the preset sample image are detected, the image area which is not in accordance with the preset range in the current image is determined, namely the image is divided into a plurality of areas in advance, and the light supplement lamp corresponding to each area is different. Therefore, after the image area needing to be adjusted is determined, the target fill light corresponding to the image area can be adjusted in a targeted manner.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: and adjusting the brightness of the light supplement lamp by adjusting a PWM (pulse width modulation) value according to the comparison result.
The hardware circuit design of the luminance of the light supplement lamp is controlled through software, specifically, the duty ratio is controlled through a PWM value to adjust, the range can be set to be 0-100, and the larger the PWM value is, the brighter the lamp is.
As shown in fig. 3, in an embodiment, the light supplement system for photographing includes: camera 3 and two light filling lamps 1 and 2, light filling lamp 1 and 2 are located the both sides of camera 3 respectively. In fig. 4, a bill is shown, and the bill contains a serial number. The light supplement lamps 1 and 2 are simultaneously lighted, so that the serial number on the bill 4 is clear and visible, and certain brightness is provided for the dark environment inside the equipment. When the camera is opened to take a picture, the whole environment has certain luminance, the camera can adapt to the environment more easily, the contrast between the ticket light and the dark environment is not so obvious when taking a picture, and the situation that the light is dazzling and cannot be clearly seen is avoided.
As shown in fig. 4, a light supplement system for photographing is provided, which includes: the system comprises a camera 402, a plurality of light supplement lamps 404 and a terminal 406 connected with the camera and the light supplement lamps; the camera is used for shooting a target; the terminal is used for acquiring a current image obtained by shooting a target, comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result, and adjusting the brightness value of the light supplementing lamp according to the comparison result when the comparison result exceeds a preset range so as to enable the brightness value of the shot target image to meet the requirement.
The shooting light supplement system comprises a camera, a light supplement lamp and a terminal, wherein a target is shot through the camera, the terminal obtains a current image obtained by shooting the target, then brightness value comparison is carried out, and brightness value adjustment is carried out according to a comparison result, so that the brightness value of the shot target image meets requirements. The photographing light supplement system achieves automatic brightness adjustment and improves the photographing effect.
As shown in fig. 5, a light supplement device for photographing is provided, the device comprising:
a comparison module 502, configured to obtain a current image obtained by shooting a target, and compare a brightness value of the current image with a brightness value of a preset sample image to obtain a comparison result;
and the adjusting module 504 is configured to adjust the brightness of the light supplement lamp according to the comparison result when the comparison result exceeds a preset range, so that the brightness value of the target image obtained by shooting after adjustment meets the requirement.
In one embodiment, the adjusting module 504 is further configured to calculate a brightness difference between the brightness value of the current image and the brightness value of the preset sample image; determining an adjusting value corresponding to the light supplementing lamp according to the brightness difference; and adjusting the brightness of the light supplement lamp according to the adjusting value.
In one embodiment, the adjusting module 504 is further configured to calculate a brightness difference between the brightness value of the current image and the brightness value of the preset sample image; when the brightness difference is larger than a first preset difference, adjusting the brightness value of the light supplement lamp according to a preset first adjusting amplitude; when the brightness difference is smaller than a second preset difference, adjusting the brightness value of the light supplement lamp according to a preset second adjusting amplitude, wherein the first preset difference is larger than the second preset difference; and acquiring an image obtained by shooting a target after the light supplement lamp is adjusted, taking the image as a current image, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result until the brightness value of the target image obtained by shooting after adjustment meets the requirement.
In one embodiment, the number of the light supplement lamps is multiple, and the comparison module is further configured to compare the brightness of the current image with that of the preset sample image, and determine an image area in the current image, where the image area does not conform to a preset range; the adjusting module is further configured to determine a target light supplement lamp corresponding to the image area, and adjust a brightness value of the target light supplement lamp so that a brightness value of a target image obtained through shooting meets requirements.
In one embodiment, the adjusting module is further configured to adjust the brightness of the fill-in light by adjusting a PWM (pulse width modulation) value according to the comparison result.
In one embodiment, the number of the light supplement lamps is two, and the light supplement lamps are respectively located on two sides of the camera.
FIG. 6 is a diagram illustrating an internal structure of a computer device in one embodiment. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and also stores a computer program, and when the computer program is executed by the processor, the processor can realize the running method of the photographing light supplement method. The internal memory can also store a computer program, and when the computer program is executed by the processor, the processor can execute an operation method of the photographing light supplement method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of: acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result; and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness value of the fill-in light according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image; determining an adjusting value corresponding to the light supplementing lamp according to the brightness difference; and adjusting the brightness of the light supplement lamp according to the adjusting value.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness value of the fill-in light according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image; when the brightness difference is larger than a first preset difference, adjusting the brightness value of the light supplement lamp according to a preset first adjusting amplitude; when the brightness difference is smaller than a second preset difference, adjusting the brightness value of the light supplement lamp according to a preset second adjusting amplitude, wherein the first preset difference is larger than the second preset difference; and acquiring an image obtained by shooting a target after the light supplement lamp is adjusted, taking the image as a current image, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result until the brightness value of the target image obtained by shooting after adjustment meets the requirement.
In one embodiment, the step of comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result includes: comparing the brightness of the current image with the preset sample image, and determining an image area which does not accord with a preset range in the current image; the adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement comprises the following steps: and determining a target light supplement lamp corresponding to the image area, and adjusting the brightness value of the target light supplement lamp so as to enable the brightness value of the shot target image to meet the requirement.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: and adjusting the brightness of the light supplement lamp by adjusting a PWM (pulse width modulation) value according to the comparison result.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result; and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness value of the fill-in light according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image; determining an adjusting value corresponding to the light supplementing lamp according to the brightness difference; and adjusting the brightness of the light supplement lamp according to the adjusting value.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness value of the fill-in light according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image; when the brightness difference is larger than a first preset difference, adjusting the brightness value of the light supplement lamp according to a preset first adjusting amplitude; when the brightness difference is smaller than a second preset difference, adjusting the brightness value of the light supplement lamp according to a preset second adjusting amplitude, wherein the first preset difference is larger than the second preset difference; and acquiring an image obtained by shooting a target after the light supplement lamp is adjusted, taking the image as a current image, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result until the brightness value of the target image obtained by shooting after adjustment meets the requirement.
In one embodiment, the step of comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result includes: comparing the brightness of the current image with the preset sample image, and determining an image area which does not accord with a preset range in the current image; the adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement comprises the following steps: and determining a target light supplement lamp corresponding to the image area, and adjusting the brightness value of the target light supplement lamp so as to enable the brightness value of the shot target image to meet the requirement.
In one embodiment, when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, includes: and adjusting the brightness of the light supplement lamp by adjusting a PWM (pulse width modulation) value according to the comparison result.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A light supplement method for photographing is applied to a light supplement system for photographing, and the system comprises: a fill light, the method comprising:
acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so as to enable the brightness value of the target image obtained by shooting after adjustment to meet the requirement.
2. A light supplement method according to claim 1, wherein when the comparison result exceeds a preset range, adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, comprises:
calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image;
determining an adjusting value corresponding to the light supplementing lamp according to the brightness difference;
and adjusting the brightness of the light supplement lamp according to the adjusting value.
3. A light supplement method according to claim 1, wherein when the comparison result exceeds a preset range, adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, comprises:
calculating a brightness difference value between the brightness value of the current image and the brightness value of the preset sample image;
when the brightness difference is larger than a first preset difference, adjusting the brightness value of the light supplement lamp according to a preset first adjusting amplitude;
when the brightness difference is smaller than a second preset difference, adjusting the brightness value of the light supplement lamp according to a preset second adjusting amplitude, wherein the first preset difference is larger than the second preset difference;
and acquiring an image obtained by shooting a target after the light supplement lamp is adjusted, taking the image as a current image, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result until the brightness value of the target image obtained by shooting after adjustment meets the requirement.
4. A light supplement method according to claim 1, wherein the light supplement lamps are multiple, and the comparing the brightness value of the current image with the brightness value of the preset sample image to obtain the comparison result comprises:
comparing the brightness of the current image with the preset sample image, and determining an image area which does not accord with a preset range in the current image;
the adjusting the brightness value of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement comprises the following steps:
and determining a target light supplement lamp corresponding to the image area, and adjusting the brightness value of the target light supplement lamp so as to enable the brightness value of the shot target image to meet the requirement.
5. A light supplement method according to claim 1, wherein when the comparison result exceeds a preset range, adjusting the brightness of the light supplement lamp according to the comparison result so that the brightness value of the target image obtained by shooting after adjustment meets the requirement, comprises:
and adjusting the brightness of the light supplement lamp by adjusting a PWM (pulse width modulation) value according to the comparison result.
6. A light supplement method according to claim 1, wherein two light supplement lamps are respectively located at two sides of the camera.
7. The light supplement system for photographing is characterized by comprising: the system comprises a camera, a plurality of light supplement lamps and a terminal connected with the camera and the light supplement lamps;
the camera is used for shooting a target;
the terminal is used for acquiring a current image obtained by shooting a target, comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result, and adjusting the brightness value of the light supplementing lamp according to the comparison result when the comparison result exceeds a preset range so as to enable the brightness value of the shot target image to meet the requirement.
8. The utility model provides a light filling device shoots, its characterized in that, the device includes:
the comparison module is used for acquiring a current image obtained by shooting a target, and comparing the brightness value of the current image with the brightness value of a preset sample image to obtain a comparison result;
and the adjusting module is used for adjusting the brightness of the light supplementing lamp according to the comparison result when the comparison result exceeds a preset range, so that the brightness value of the target image obtained by shooting after adjustment meets the requirement.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 6.
CN201910708222.1A 2019-08-01 2019-08-01 Photographing light supplement method and device, computer equipment and storage medium Pending CN112312030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910708222.1A CN112312030A (en) 2019-08-01 2019-08-01 Photographing light supplement method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910708222.1A CN112312030A (en) 2019-08-01 2019-08-01 Photographing light supplement method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112312030A true CN112312030A (en) 2021-02-02

Family

ID=74486393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910708222.1A Pending CN112312030A (en) 2019-08-01 2019-08-01 Photographing light supplement method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112312030A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051085A (en) * 2021-11-09 2022-02-15 普天鸿雁物联网技术有限公司 Method and device for controlling camera light supplement
CN114071018A (en) * 2021-11-16 2022-02-18 济南信通达电气科技有限公司 Method and equipment for adjusting brightness of disconnecting link indicating board image
CN114245025A (en) * 2021-11-19 2022-03-25 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN114268703A (en) * 2021-12-27 2022-04-01 安徽淘云科技股份有限公司 Imaging adjusting method and device during screen scanning, storage medium and equipment
CN114500865A (en) * 2022-01-29 2022-05-13 北京精英路通科技有限公司 Method and device for regulating and controlling light supplement lamp, electronic equipment and storage medium
CN115118888A (en) * 2022-05-11 2022-09-27 深圳市启鹏天辰科技有限公司 Use method of intelligent mirror with human-computer interaction function and intelligent mirror
CN115278098A (en) * 2022-06-28 2022-11-01 北京驭光科技发展有限公司 Image shooting method and system and shooting device thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427509A (en) * 2011-09-16 2012-04-25 杭州海康威视数字技术股份有限公司 Device and method for controlling synchronization camera with light supplementing lamp
WO2016004883A1 (en) * 2014-07-10 2016-01-14 Beijing Zhigu Ruituo Tech Co., Ltd Illumination control methods and apparatuses and devices having photographing function
US20170039956A1 (en) * 2015-04-07 2017-02-09 Boe Technology Group Co., Ltd. Liquid crystal display device and control method thereof
CN107137026A (en) * 2017-06-26 2017-09-08 深圳普思英察科技有限公司 A kind of sweeping robot and its camera light-supplementing system, method
CN107566695A (en) * 2017-08-14 2018-01-09 厦门美图之家科技有限公司 A kind of light compensation method and mobile terminal
KR101826637B1 (en) * 2016-07-28 2018-02-07 (주)에이텍티앤 Apparatus and method for image brightness correction in identification recognizer
CN107707826A (en) * 2017-09-29 2018-02-16 深圳怡化电脑股份有限公司 The brightness adjusting method and device of light compensating lamp
CN107995436A (en) * 2017-12-19 2018-05-04 浙江大华技术股份有限公司 A kind of light compensation method and device
US20180131899A1 (en) * 2014-07-15 2018-05-10 Ainemo Inc. Communication terminal and tool installed on mobile terminal
CN108393889A (en) * 2017-02-06 2018-08-14 精工爱普生株式会社 control device, robot and robot system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427509A (en) * 2011-09-16 2012-04-25 杭州海康威视数字技术股份有限公司 Device and method for controlling synchronization camera with light supplementing lamp
WO2016004883A1 (en) * 2014-07-10 2016-01-14 Beijing Zhigu Ruituo Tech Co., Ltd Illumination control methods and apparatuses and devices having photographing function
US20180131899A1 (en) * 2014-07-15 2018-05-10 Ainemo Inc. Communication terminal and tool installed on mobile terminal
US20170039956A1 (en) * 2015-04-07 2017-02-09 Boe Technology Group Co., Ltd. Liquid crystal display device and control method thereof
KR101826637B1 (en) * 2016-07-28 2018-02-07 (주)에이텍티앤 Apparatus and method for image brightness correction in identification recognizer
CN108393889A (en) * 2017-02-06 2018-08-14 精工爱普生株式会社 control device, robot and robot system
CN107137026A (en) * 2017-06-26 2017-09-08 深圳普思英察科技有限公司 A kind of sweeping robot and its camera light-supplementing system, method
CN107566695A (en) * 2017-08-14 2018-01-09 厦门美图之家科技有限公司 A kind of light compensation method and mobile terminal
CN107707826A (en) * 2017-09-29 2018-02-16 深圳怡化电脑股份有限公司 The brightness adjusting method and device of light compensating lamp
CN107995436A (en) * 2017-12-19 2018-05-04 浙江大华技术股份有限公司 A kind of light compensation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘亚磊: "基于SOFM算法的光源亮度控制方法", 北京信息科技大学学报(自然科学版) *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051085A (en) * 2021-11-09 2022-02-15 普天鸿雁物联网技术有限公司 Method and device for controlling camera light supplement
CN114071018A (en) * 2021-11-16 2022-02-18 济南信通达电气科技有限公司 Method and equipment for adjusting brightness of disconnecting link indicating board image
CN114071018B (en) * 2021-11-16 2024-05-14 济南信通达电气科技有限公司 Brightness adjustment method and equipment for knife switch indication board image
CN114245025A (en) * 2021-11-19 2022-03-25 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN114245025B (en) * 2021-11-19 2023-07-04 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN114268703A (en) * 2021-12-27 2022-04-01 安徽淘云科技股份有限公司 Imaging adjusting method and device during screen scanning, storage medium and equipment
CN114500865A (en) * 2022-01-29 2022-05-13 北京精英路通科技有限公司 Method and device for regulating and controlling light supplement lamp, electronic equipment and storage medium
CN114500865B (en) * 2022-01-29 2024-04-09 北京精英路通科技有限公司 Method and device for regulating and controlling light supplementing lamp, electronic equipment and storage medium
CN115118888A (en) * 2022-05-11 2022-09-27 深圳市启鹏天辰科技有限公司 Use method of intelligent mirror with human-computer interaction function and intelligent mirror
CN115278098A (en) * 2022-06-28 2022-11-01 北京驭光科技发展有限公司 Image shooting method and system and shooting device thereof

Similar Documents

Publication Publication Date Title
CN112312030A (en) Photographing light supplement method and device, computer equipment and storage medium
CN109801240B (en) Image enhancement method and image enhancement device
US11968459B2 (en) Systems and methods for automatic exposure control
WO2019205751A1 (en) Image enhancement method
CN110620881A (en) License plate exposure compensation method and device, computer equipment and storage medium
CN112819702A (en) Image enhancement method and device, electronic equipment and computer readable storage medium
CN105338334A (en) Calibration method and calibration system for cameras in mobile terminals
WO2019223068A1 (en) Iris image local enhancement method, device, equipment and storage medium
CN113140197B (en) Display screen adjusting method and device, electronic equipment and readable storage medium
US20190139198A1 (en) Image Optimization Method and Device, and Terminal
CN111932521B (en) Image quality testing method and device, server and computer readable storage medium
CN110473158A (en) A kind of processing method, device and the equipment of license plate image brightness
CN111626958B (en) Exposure adjusting method, exposure adjusting device, computer-readable storage medium and electronic equipment
CN109447942B (en) Image ambiguity determining method, apparatus, computer device and storage medium
CN112070682A (en) Method and device for compensating image brightness
TW202004662A (en) Method and computer system of image enhancement
CN113592739A (en) Method and device for correcting lens shadow and storage medium
CN110519522B (en) Method, device and equipment for video anti-overexposure processing and storage medium
CN109040579A (en) A kind of filming control method, terminal and computer-readable medium
CN116645527A (en) Image recognition method, system, electronic device and storage medium
CN111402147B (en) Video image processing method, video image processing device, computer equipment and storage medium
US9692982B2 (en) System for controlling exposure of camera and method thereof
KR102188163B1 (en) System for processing a low light level image and method thereof
US8953063B2 (en) Method for white balance adjustment
CN109919846B (en) Image enhancement method and device and computing equipment

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