Method, system and device for improving image brightness consistency of infrared camera module and storage medium
Through gray card testing and iterative current adjustment, the problem of inconsistent image brightness between infrared camera modules is solved, and the consistency of product performance is achieved.
Patent Information
- Application Number
- CN202411964287.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-23
AI Technical Summary
Due to the in-spec error of the devices in the infrared camera module, the image brightness between the modules is inconsistent, affecting the consistency of product performance.
The brightness of the center point of the image is tested by a gray card and the current is iteratively adjusted, so that the image brightness of different infrared camera modules is kept consistent.
The consistency of image brightness of different infrared camera modules is achieved, ensuring the consistency of performance of the same model of products.
Smart Images

Figure CN120031979A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of infrared camera calibration technology, and in particular to a method, system, device and storage medium for improving the brightness consistency of an infrared camera module image. Background Art
[0002] During the production process of infrared camera modules with self-fill illumination, due to the specification errors of various components, there will be inconsistencies in image brightness even if the same parameters are used between modules.
[0003] When producing infrared camera modules with self-fill illumination, each component, including image sensor, infrared LED, driver IC, etc., will have certain errors within specifications. These errors may come from multiple aspects such as production process, material selection, measurement accuracy, etc.
[0004] First of all, as the core component of the module, the image sensor has certain fluctuation ranges in its performance parameters such as sensitivity, dark current, noise, etc. These fluctuations may cause the sensor to respond differently to light under different lighting conditions, thus affecting the overall brightness of the image.
[0005] Secondly, there will be certain errors in the luminous intensity and spectral characteristics of infrared LEDs. Although LEDs are strictly screened and tested before leaving the factory, in actual applications, the luminous performance of LEDs may change due to factors such as working environment, temperature, and aging. This change will directly affect the intensity and effect of the module's fill light, and thus affect the brightness of the image.
[0006] In addition, as an important component of the control module, the fluctuation of the performance parameters of the driver IC may also affect the image brightness. For example, the current control capability and output voltage stability of the driver IC will affect the light-emitting state of the LED, thereby affecting the brightness of the image.
[0007] When the errors of these components are superimposed in the module, there will be large differences in image brightness between modules even if the same parameters are used. This difference may appear as an overall dark or bright image, or obvious brightness unevenness in certain areas.
[0008] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0009] To this end, the present invention tests the brightness of the center point of the image through a gray card according to the differences between different infrared camera modules, and iteratively adjusts the current, so as to quickly keep the image brightness of different infrared camera modules consistent, which is conducive to the consistency of performance of products of the same model.
[0010] In a first aspect, the present invention provides a method for improving the brightness consistency of an infrared camera module image, characterized in that it includes:
[0011] Step S1: placing a gray card at a first distance in front of the infrared camera module, and allowing the infrared camera module to capture a first image of the gray card with a current X;
[0012] Step S2: Calculate the brightness Y1 of the center frame of the first image to obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β; wherein Y is the brightness of the center frame of the image captured by the standard module;
[0013] Step S3: loading the current amplification factor into the infrared camera module, placing the gray card at a second distance in front of the infrared camera module, and allowing the infrared camera module to capture a second image of the gray card with the current X*α;
[0014] Step S4: Calculate the brightness Y2 of the center frame of the second image to obtain a brightness coefficient β'=Y2 / Y;
[0015] Step S5: If β' is within the preset range, the current amplification factor α'=1 / β' is saved in the infrared camera module; otherwise, step S3 is executed.
[0016] Optionally, the method for improving the brightness consistency of an infrared camera module image is characterized in that the center frame is a rectangular frame centered on the center of the image, and its size remains unchanged.
[0017] Optionally, the method for improving the brightness consistency of an infrared camera module image is characterized in that the infrared camera module includes a projector and a receiver;
[0018] The projector is used to project infrared light;
[0019] The receiver is used to receive the reflected signal of the infrared light and expose it.
[0020] Optionally, the method for improving the brightness consistency of an infrared camera module image is characterized in that the projector is a structured light projector; and the shortest side length of the rectangular frame is not less than 1 / 10 of the side length of the image.
[0021] Optionally, the method for improving the brightness consistency of an infrared camera module image is characterized in that, when calculating the brightness Y1 of the center frame of the first image, it includes:
[0022] Step S21: extracting pixels of the central frame on the first image and performing binarization;
[0023] Step S22: obtaining the light spot area by threshold comparison;
[0024] Step S23: Calculate the average brightness of the light spot area on the first image as the brightness Y1 of the center frame of the first image.
[0025] Optionally, the method for improving the brightness consistency of an infrared camera module image is characterized in that the projector is a floodlight projector; and the longest side length of the rectangular frame is no greater than 1 / 10 of the side length of the image.
[0026] Optionally, the method for improving the consistency of image brightness of an infrared camera module is characterized in that, when the infrared camera module can project both structured light and floodlight, the gray card is first set at the first distance to project the structured light and floodlight respectively, and then the gray card is set at the second distance to project the structured light and floodlight respectively, and the current amplification factor of the structured light and the current amplification factor of the floodlight are designed respectively, so that the structured light and the floodlight obtain consistent image brightness.
[0027] In a second aspect, the present invention provides a system for improving the brightness consistency of an infrared camera module image, which is used to implement any of the above methods for improving the brightness consistency of an infrared camera module image, and is characterized by comprising:
[0028] A first setting module, used to set the gray card at a first distance in front of the infrared camera module, and enable the infrared camera module to capture a first image of the gray card with a current X;
[0029] A first calculation module is used to calculate the brightness Y1 of the center frame of the first image, and obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β; wherein Y is the brightness of the center frame of the image captured by the standard module;
[0030] A second setting module is used to load the current amplification factor into the infrared camera module, set the gray card at a second distance in front of the infrared camera module, and enable the infrared camera module to capture a second image of the gray card with the current X*α;
[0031] A second calculation module is used to calculate the brightness Y2 of the central frame of the second image to obtain a brightness coefficient β'=Y2 / Y;
[0032] The judgment module is used to save the current amplification factor α'=1 / β' into the infrared camera module if β' is within a preset range; otherwise, execute the second setting module.
[0033] In a third aspect, the present invention provides a device for improving the brightness consistency of an infrared camera module image, characterized in that it includes:
[0034] processor;
[0035] a memory storing executable instructions of the processor;
[0036] Wherein, the processor is configured to execute the steps of any one of the above-mentioned methods for improving the brightness consistency of the image of the infrared camera module by executing the executable instructions.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium for storing a program, characterized in that when the program is executed, the steps of any one of the above-mentioned methods for improving the brightness consistency of an infrared camera module image are implemented.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] In view of the differences among infrared camera modules, the present invention adopts gray cards for calibration at different positions, and adjusts the brightness of the infrared camera module according to the brightness of the center point. By changing the distance of the gray card, the current amplification factor is iteratively updated, so that different modules can converge to the same image brightness level, thereby ensuring the product consistency of infrared camera modules of the same model. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more obvious:
[0041] Figure 1 A flowchart of a method for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention;
[0042] Figure 2 This is a schematic diagram of the structure of an infrared camera module in an embodiment of the present invention;
[0043] Figure 3is a flow chart of steps for calculating the brightness Y1 of the center frame of the first image in an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of the structure of a system for improving the brightness consistency of an infrared camera module image according to an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the structure of a device for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention; and
[0046] Figure 6 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0048] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0049] A method for improving the brightness consistency of an infrared camera module image provided by an embodiment of the present invention is intended to solve the problems existing in the prior art.
[0050] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0051] According to the difference between different infrared camera modules, the present invention tests the brightness of the center point of the image by using a gray card and iteratively adjusts the current, so as to quickly keep the image brightness of different infrared camera modules consistent, which is beneficial to the consistency of performance of products of the same model.
[0052] Since the image brightness and the infrared current value of each infrared camera module are in a linear relationship under the same exposure gain, the present invention can perform rapid and accurate adjustments while keeping the parameters of the receiving end unchanged.
[0053] Figure 1 FIG. 1 is a flowchart of a method for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention. Figure 1 As shown, a method for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention includes:
[0054] Step S1: placing a gray card at a first distance in front of an infrared camera module, and causing the infrared camera module to capture a first image of the gray card with a current X.
[0055] In this step, the gray card is a card with a specific reflectivity, which is used to calibrate the color and white balance of the camera or camera. In infrared imaging, the gray card can also be used as a standard brightness reference. The first distance is pre-set to ensure that the size and position of the gray card in the field of view of the infrared camera module are appropriate for subsequent image analysis. The current X is the operating current of the infrared camera module when acquiring the first image, which determines the photosensitivity and imaging quality of the module.
[0056] Step S2: Calculate the brightness Y1 of the center frame of the first image to obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β.
[0057] In this step, Y is the brightness of the center frame of the image captured by the standard module. By performing brightness analysis on the central area of the first image, the average brightness value Y1 of the area can be obtained. This value reflects the imaging brightness of the gray card by the infrared camera module under a given current X. Y is a known center frame brightness of a gray card image captured by a standard module under the same conditions. It is used as a reference value to compare and calibrate the module to be calibrated. The brightness coefficient β is the ratio of the brightness Y1 of the center frame of the image captured by the module to be calibrated to the brightness Y of the center frame of the image captured by the standard module. It reflects the difference in brightness performance between the module to be calibrated and the standard module. The current amplification factor α is the reciprocal of the brightness coefficient β, that is, α = 1 / β. This coefficient is used to adjust the working current of the module to be calibrated so that its imaging brightness is close to that of the standard module. The center frame is a rectangular frame centered on the center of the image, and its size remains unchanged. Due to the angle problem, the reflectivity of the center area of the image is the most accurate, such as 60%, while the reflectivity accuracy of other points is not so high. Therefore, using the center area of the image for standardization has better accuracy than using the entire image for adjustment.
[0058] Step S3: loading the current amplification factor into the infrared camera module, setting the gray card at a second distance in front of the infrared camera module, and allowing the infrared camera module to capture a second image of the gray card with the current X*α.
[0059] In this step, the calculated current amplification factor α is loaded into the infrared camera module to adjust the working current of the module. The second distance is different from the first distance, but it is also necessary to ensure that the size and position of the gray card in the field of view of the infrared camera module are moderate. The current X*α is the adjusted working current, which is used to capture the second image.
[0060] Step S4: Calculate the brightness Y2 of the center frame of the second image to obtain a brightness coefficient β'=Y2 / Y.
[0061] In this step, by analyzing the brightness of the central area of the second image, the average brightness value Y2 of the area can be obtained. This value reflects the imaging brightness of the gray card by the infrared camera module under the adjusted working current. The brightness coefficient β' is the ratio of the brightness Y2 of the center frame of the image taken by the adjusted module to the brightness Y of the center frame of the image taken by the standard module. It is used to evaluate whether the brightness performance of the adjusted module is close to that of the standard module.
[0062] Step S5: If β' is within the preset range, the current amplification factor α'=1 / β' is saved in the infrared camera module; otherwise, step S3 is executed.
[0063] In this step, the preset range is a threshold range set according to actual needs, which is used to determine whether the adjusted module brightness meets the requirements. If the brightness coefficient β' is within the preset range, it means that the adjusted module brightness is close to the standard module. At this time, the current amplification factor α' (i.e. 1 / β') can be saved in the infrared camera module for subsequent use. If the brightness coefficient β' is not within the preset range, it means that the adjusted module brightness still does not meet the requirements. At this time, step S3 needs to be repeated to further adjust the working current of the module until the requirements are met.
[0064] This embodiment introduces a gray card and a current amplification factor to accurately adjust the working current of the module, thereby ensuring that images taken by different modules under the same conditions have consistent brightness performance.
[0065] Figure 2 FIG. 1 is a schematic diagram of the structure of an infrared camera module according to an embodiment of the present invention. Figure 2 As shown, an infrared camera module in an embodiment of the present invention includes a projector and a receiver;
[0066] The projector is used for projecting infrared light.
[0067] Specifically, the main function of the projector is to project infrared light onto the target scene. This infrared light usually has a specific wavelength range and is used to illuminate the scene so that the receiver can capture enough information. The projector contains an infrared light emitting diode (LED) or other type of infrared light source. When these light sources are activated, they emit infrared light, which is then projected onto the target scene. In the method of improving the image brightness consistency of the infrared camera module, the projector ensures that the target scene is illuminated by sufficient and uniform infrared light. This is critical to the strength and consistency of the reflected signal received by the receiver.
[0068] The receiver is used to receive the reflected signal of the infrared light and expose it.
[0069] Specifically, the receiver is used to receive the reflected signal of the infrared light projected by the projector on the target scene and convert it into an electrical signal or a digital image. The receiver may contain an infrared sensor or an image sensor inside, which is sensitive to infrared light. When the reflected infrared light reaches the receiver, the sensor captures the light and converts it into an electrical signal. These signals are then processed and converted into a digital image.
[0070] In the method for improving the brightness consistency of the infrared camera module image in this embodiment, the receiver is responsible for capturing the reflected infrared light signal and converting it into an image that can be used for analysis. By adjusting parameters such as the operating current of the projector and the exposure time of the receiver, the quality of the received image can be optimized, thereby improving the consistency of the image brightness.
[0071] In some embodiments, the projector is a structured light projector; the shortest side length of the rectangular frame is not less than 1 / 10 of the side length of the image. In the infrared camera module, when the projector is designed as a structured light projector, it is not only used to simply illuminate the target scene, but also to emit a light with a specific pattern or structure. After this light is reflected by the object, its deformation or displacement can be captured and analyzed by the receiver to obtain the three-dimensional information of the object.
[0072] The structured light projector contains a light source and an optical system that can produce complex light patterns. When the light source is activated, it emits light, which is projected into specific patterns (such as dots, lines, grids, etc.) through the optical system. After these patterns are reflected by objects, their shapes and positions change, and these changes can be captured by the receiver and used to calculate the three-dimensional shape of the object.
[0073] The shortest side of the rectangle should be at least one-tenth the length of the entire image. This ratio ensures that the rectangle is large enough to contain enough image information for analysis, while not being too large to contain too much irrelevant information. This helps ensure the accuracy and consistency of the analysis results, especially when processing images taken at different distances and angles. The choice of structured light projector and rectangle plays an important role in the method of improving the brightness consistency of infrared camera module images. By combining these techniques, the accuracy and consistency of image analysis can be further improved.
[0074] In some embodiments, the projector is a flood projector; the longest side length of the rectangular frame is no greater than 1 / 10 of the side length of the image. When the projector is a flood projector, its main function is to project uniform and widely distributed infrared light to the target scene. This projection method is usually used to illuminate a larger area so that the receiver can capture more environmental details. Unlike a structured light projector, a flood projector does not produce a specific light pattern, but provides uniform and widespread infrared light illumination to enhance the receiver's ability to capture the target scene.
[0075] A flood projector contains one or more infrared light sources that diffuse or focus the light into a uniform beam that is projected onto the target scene. This uniform illumination helps the receiver capture a clearer image, especially in low-light environments.
[0076] The longest side length is no more than 1 / 10 of the image side length, which ensures that the rectangular box does not occupy too large a proportion of the image, thereby allowing sufficient context information to be retained in the image. At the same time, a smaller rectangular box is also easier to focus on the brightness of the center point of the image, thereby removing interference from external factors such as angles and improving accuracy.
[0077] In some embodiments, when the infrared camera module can project both structured light and floodlight, the gray card is first set at the first distance to project structured light and floodlight respectively, and then the gray card is set at the second distance to project structured light and floodlight respectively, and the current amplification factor of the structured light and the current amplification factor of the floodlight are designed respectively, so that the structured light and the floodlight obtain consistent image brightness. The gray card has a constant reflectivity and can ensure that a stable light intensity is reflected under different lighting conditions. Two distances, namely the first distance and the second distance, are set to test the brightness performance of the structured light and the floodlight at different distances. Ensure that the module can project structured light and floodlight respectively, and has the function of adjusting the current amplification factor.
[0078] Test at the first distance:
[0079] Place the grey card at the first distance.
[0080] Project structured light and record image brightness.
[0081] Adjust the current amplification factor of the structured light to make the image brightness reach the preset value.
[0082] Cast a flood light and record the image brightness.
[0083] Adjust the current amplification factor of the floodlight to make the image brightness consistent with the image brightness of the structured light.
[0084] Test at the second distance:
[0085] Move the gray card to the second distance.
[0086] Repeat the above steps to adjust the current amplification factors of the structured light and flood light respectively to make the image brightness of the two consistent.
[0087] Determination of current amplification factor:
[0088] Structured light current amplification factor: At the first distance and the second distance, the current amplification factor required to make the brightness of the structured light image reach a preset value is recorded respectively.
[0089] Flood current amplification factor: At the first distance and the second distance, the current amplification factor required to make the flood image brightness consistent with the structured light image brightness is recorded respectively.
[0090] Through the above experimental steps, the current amplification factor required to obtain consistent image brightness for structured light and flood light at different distances can be determined. These factors can be applied to the production and debugging of infrared camera modules to ensure that the module can provide high-quality image output under different lighting conditions.
[0091] Figure 3This is a flow chart of steps for calculating the brightness Y1 of the center frame of the first image according to an embodiment of the present invention.
[0092] like Figure 3 As shown, in an embodiment of the present invention, a step of calculating the brightness Y1 of the center frame of the first image includes:
[0093] Step S21: extract pixels of the central frame on the first image and perform binarization.
[0094] In this step, the center box position on the first image is first determined. This is usually obtained through preset coordinates or dynamically calculated based on the image size. Next, all pixels covered by the center box are extracted from the image. Binarization is then performed. Binarization is the process of converting an image to contain only two pixel values (usually 0 and 255). This helps to simplify the image and make it more suitable for subsequent processing.
[0095] In this step, we choose an appropriate threshold and compare the pixel values within the center box with this threshold. Pixels above the threshold are set to 255 (white), while pixels below the threshold are set to 0 (black).
[0096] Step S22: Obtain the light spot area through threshold comparison.
[0097] In this step, a threshold is applied again in the binarized image (the same threshold as used in binarization). This threshold is used to distinguish the spot area (usually the brighter area) from the background area. Pixels above this threshold are considered to be part of the spot area. By comparing the thresholds, it can be determined which pixels belong to the spot area. These pixels will be used to calculate the brightness mean later. The spot area obtained in this step is a mask, which can be mapped to the first image to obtain the corresponding area.
[0098] Step S23: Calculate the average brightness of the light spot area on the first image as the brightness Y1 of the center frame of the first image.
[0099] In this step, since the spot area has been determined, it is necessary to calculate the average brightness of these pixels on the first image. The average brightness will be the arithmetic average of these pixel values, and the calculated average brightness will be used as the brightness Y1 of the center frame of the first image. This value can be used for subsequent comparison, analysis or calibration processes.
[0100] By following these steps, we can accurately calculate the brightness of the center frame of the first image captured by the infrared camera module. These steps not only ensure the accuracy of the calculation, but also improve the processing efficiency and reliability.
[0101] Figure 4FIG. 1 is a schematic diagram of a system for improving the brightness consistency of an infrared camera module image according to an embodiment of the present invention. Figure 4 As shown, a system for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention includes:
[0102] A first setting module, used to set the gray card at a first distance in front of the infrared camera module, and enable the infrared camera module to capture a first image of the gray card with a current X;
[0103] A first calculation module is used to calculate the brightness Y1 of the center frame of the first image, and obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β; wherein Y is the brightness of the center frame of the image captured by the standard module;
[0104] A second setting module is used to load the current amplification factor into the infrared camera module, set the gray card at a second distance in front of the infrared camera module, and enable the infrared camera module to capture a second image of the gray card with the current X*α;
[0105] A second calculation module is used to calculate the brightness Y2 of the central frame of the second image to obtain a brightness coefficient β'=Y2 / Y;
[0106] The judgment module is used to save the current amplification factor α'=1 / β' into the infrared camera module if β' is within a preset range; otherwise, execute the second setting module.
[0107] In this embodiment, based on the differences between different infrared camera modules, the brightness of the center point of the image is tested by a gray card, and the current is iteratively adjusted to quickly keep the image brightness of different infrared camera modules consistent, which is beneficial to the consistency of performance of products of the same model.
[0108] Figure 5 Schematic diagram of a device for improving the brightness consistency of an infrared camera module image in an embodiment of the present invention. Figure 5 The electronic device 600 according to this embodiment of the present invention is described. Figure 5 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0109] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0110] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned method for improving the brightness consistency of the infrared camera module image. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0111] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0112] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a grid environment.
[0113] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0114] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more grids (e.g., a local area network (LAN), a wide area network (WAN), and / or a public grid, such as the Internet) through a grid adapter 660. The grid adapter 660 may communicate with other modules of the electronic device 600 through the bus 630. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0115] In an embodiment of the present invention, a computer-readable storage medium is also provided for storing a program, and when the program is executed, the steps of a method for improving the brightness consistency of an infrared camera module image are implemented. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned method for improving the brightness consistency of an infrared camera module image in this specification.
[0116] As shown above, this embodiment tests the brightness of the center point of the image by using a gray card according to the differences between different infrared camera modules, and iteratively adjusts the current, so as to quickly keep the image brightness of different infrared camera modules consistent, which is beneficial to the consistency of performance of products of the same model.
[0117] Figure 6 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Figure 6 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0118] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0119] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0120] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of grid, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0121] In this embodiment, based on the differences between different infrared camera modules, the brightness of the center point of the image is tested by a gray card, and the current is iteratively adjusted to quickly keep the image brightness of different infrared camera modules consistent, which is beneficial to the consistency of performance of products of the same model.
[0122] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. The above description of the disclosed embodiments enables professionals and technicians in this field to implement or use the present invention. Various modifications to these embodiments will be obvious to professionals and technicians in this field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown in this article, but will comply with the widest range consistent with the principles and novel features disclosed herein.
[0123] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A method for improving the brightness consistency of an infrared camera module image, characterized in that: include: Step S1: placing a gray card at a first distance in front of the infrared camera module, and allowing the infrared camera module to capture a first image of the gray card with a current X; Step S2: Calculate the brightness Y1 of the center frame of the first image to obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β; wherein Y is the brightness of the center frame of the image captured by the standard module; Step S3: loading the current amplification factor into the infrared camera module, placing the gray card at a second distance in front of the infrared camera module, and allowing the infrared camera module to capture a second image of the gray card with the current X*α; Step S4: Calculate the brightness Y2 of the center frame of the second image to obtain a brightness coefficient β'=Y2 / Y; Step S5: If β' is within the preset range, the current amplification factor α'=1 / β' is saved in the infrared camera module; otherwise, step S3 is executed.
2. A method for improving the brightness consistency of an infrared camera module image according to claim 1, characterized in that: The center frame is a rectangular frame centered at the center of the image, and its size remains unchanged.
3. A method for improving the brightness consistency of an infrared camera module image according to claim 1, characterized in that: The infrared camera module includes a projector and a receiver; The projector is used to project infrared light; The receiver is used to receive the reflected signal of the infrared light and expose it.
4. A method for improving the brightness consistency of an infrared camera module image according to claim 3, characterized in that: The projector is a structured light projector; the shortest side length of the rectangular frame is not less than 1 / 10 of the side length of the image.
5. A method for improving the brightness consistency of an infrared camera module image according to claim 4, characterized in that: The calculation of the brightness Y1 of the center frame of the first image includes: Step S21: extracting pixels of the central frame on the first image and performing binarization; Step S22: obtaining the light spot area by threshold comparison; Step S23: Calculate the average brightness of the light spot area on the first image as the brightness Y1 of the center frame of the first image.
6. A method for improving the brightness consistency of an infrared camera module image according to claim 3, characterized in that: The projector is a floodlight projector; the longest side length of the rectangular frame is no greater than 1 / 10 of the side length of the image.
7. A method for improving the brightness consistency of an infrared camera module image according to claim 1, characterized in that: When the infrared camera module can project both structured light and floodlight, the gray card is first set at the first distance to project the structured light and floodlight respectively, and then the gray card is set at the second distance to project the structured light and floodlight respectively, and the current amplification factor of the structured light and the current amplification factor of the floodlight are designed respectively, so that the structured light and the floodlight obtain consistent image brightness.
8. A system for improving the brightness consistency of an infrared camera module image, used to implement the method for improving the brightness consistency of an infrared camera module image according to any one of claims 1 to 7, characterized in that: include: A first setting module, used to set the gray card at a first distance in front of the infrared camera module, and enable the infrared camera module to capture a first image of the gray card with a current X; A first calculation module is used to calculate the brightness Y1 of the center frame of the first image, and obtain a brightness coefficient β=Y1 / Y and a current amplification coefficient α=1 / β; wherein Y is the brightness of the center frame of the image captured by the standard module; A second setting module is used to load the current amplification factor into the infrared camera module, set the gray card at a second distance in front of the infrared camera module, and enable the infrared camera module to capture a second image of the gray card with the current X*α; A second calculation module is used to calculate the brightness Y2 of the central frame of the second image to obtain a brightness coefficient β'=Y2 / Y; The judgment module is used to save the current amplification factor α'=1 / β' into the infrared camera module if β' is within a preset range; otherwise, execute the second setting module.
9. A device for improving the brightness consistency of an infrared camera module image, characterized in that: include: processor; a memory storing executable instructions of the processor; Wherein, the processor is configured to execute the steps of the method for improving the brightness consistency of the image of the infrared camera module as described in any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium for storing a program, characterized in that: When the program is executed, the steps of the method for improving the brightness consistency of the image of the infrared camera module as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method, system and device for improving image brightness consistency of structured light module and storage medium
CN120047365A
A method, system, device and storage medium for improving the consistency of the brightness of a structured light module image
CN120047365B