A flat field correction method for linear array cameras
By adjusting the light environment to make the grayscale distribution of the measured object and the white balance paper consistent, the bright field correction of the line array camera is completed, which solves the problems of complex calculation and uneven imaging in the existing technology, and achieves a more uniform automobile decorative panel. Image collection effect.
Patent Information
- Application Number
- CN202210589066.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-26
AI Technical Summary
The flat-field correction method of line array cameras in the existing technology is complex and requires a lot of calculations and algorithm development. It is difficult to achieve image acquisition with uniform brightness, especially when photographing automobile decorative panels, the imaging effect is poor.
By obtaining the grayscale distribution curves of the measured object and the white balance paper under different light environments, adjusting the light environment to make the two consistent, completing bright field correction, and performing dark field correction in a completely dark state, simplifying the correction process, and directly Flat field correction is done on the camera.
The brightness of the car decorative panel images captured by the line array camera is more uniform, the correction process is simplified, no additional data calculation and algorithm development are required, and the imaging effect is better.
Smart Images

Figure CN115022610B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of camera parameter adjustment, and in particular to a flat field correction method for a linear array camera suitable for capturing images of automobile decorative panels. Background Art
[0002] Ideally, when a camera images a uniform target, the grayscale values of all pixels in the image should be the same in theory. However, in reality, the values of each pixel in the image often vary greatly. This is generally caused by the following reasons: uneven lighting, inconsistent responses between the center and edge of the lens, inconsistent responses of each pixel of the imaging device, fixed image background noise, etc.
[0003] The so-called flat field correction is to correct these inconsistencies on the sensor chip. Usually for a single pixel, its response grayscale value is linearly related to the intensity of the incident light. However, due to the reasons mentioned above, the responses of different pixels on the sensor to the incident light are different straight lines, and their starting points are different, and the slopes will also be different. Flat field correction is to make the response straight lines of all pixels the same by changing the slope (i.e., signal gain Gain) and offset (i.e., signal offset Offset) of each pixel response line. The most commonly used flat field correction method is the "two-point correction method", and the premise of this method is that the detector pixel has a linear response. First, the camera exposes the dark field once to obtain the offset (Offset) of each pixel; then, an object with uniform grayscale under uniform illumination is imaged once to obtain a uniform field image, and it is best to make all points in the image close to the maximum grayscale value; finally, the dark field image is subtracted from the uniform light field image, and the image gain (Gain) is corrected using the relative calibration method.
[0004] Linear scan cameras are cameras that use linear scan image sensors. Linear scan cameras need to be flat-field corrected before use. When a line scan camera is used to shoot a target object with uniform brightness, the resulting image should have uniform brightness and truly reflect the characteristics of the target object. However, the actual image has uneven brightness, that is, the grayscale of each pixel in the image is different, which cannot truly reflect the surface characteristics of the target object being photographed.
[0005] In the prior art, when performing flat field correction on a linear array camera, effective flat field correction coefficients are usually calculated to correct the grayscale value image captured by the linear array camera. This correction method requires a large number of complex calculations and a certain algorithm foundation; it is not convenient to implement and requires programming development capabilities. Summary of the invention
[0006] The invention provides a flat field correction method for a linear array camera.
[0007] The present invention provides the following scheme:
[0008] A method for flat field correction of a linear array camera, comprising:
[0009] Bright field correction; the bright field correction comprises:
[0010] Acquire a first image grayscale distribution curve of the object under test placed within the field of view of the linear array camera under a first light environment;
[0011] Obtaining a grayscale distribution curve of a second image of a white balance paper placed within the field of view of the linear array camera under the first light environment;
[0012] The first light environment is adjusted to a target light environment, wherein the grayscale distribution curve of the second image under the target light environment is consistent with the grayscale distribution curve of the first image; so as to complete the bright field correction of the line array camera under the target environment.
[0013] Preferably, the surface of the object to be measured has a texture structure.
[0014] Preferably, the object to be tested is a car decorative panel.
[0015] Preferably, the step of adjusting the first light environment to a target light environment includes:
[0016] A part of the light source is shielded by a light-proof black cloth, so that the first light environment is transformed into the target light environment.
[0017] Preferably, bright field correction is achieved by clicking a bright field correction button of the line array camera in the target environment.
[0018] Preferably, dark field correction is also included, and the dark field correction includes using an opaque black cloth to block the field of view of the linear array camera, and performing dark field correction in a completely black field of view.
[0019] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0020] Through the present invention, a method for flat field correction of a linear array camera can be realized. In one implementation mode, the method may include bright field correction; the bright field correction includes: obtaining a first image grayscale distribution curve of a measured object placed in the field of view of the linear array camera under a first light environment; obtaining a second image grayscale distribution curve of a white balance paper placed in the field of view of the linear array camera under the first light environment; adjusting the first light environment to a target light environment, wherein the second image grayscale distribution curve under the target light environment is consistent with the first image grayscale distribution curve; so as to complete the bright field correction of the linear array camera under the target environment. The linear array camera flat field correction method provided in the present application completes the flat field correction under the white balance paper by means of an external interference light source, so as to achieve a more uniform overall brightness of the image of the automobile decorative panel taken by the linear array camera. The entire correction process can be completed directly on the camera without the need for additional data calculation and algorithm development. In photographing automobile decorative panels, compared with the traditional flat field correction method under the white balance paper, the imaging effect of this method is more uniform. It is worth promoting and using on a large scale.
[0021] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is the image of the object being measured obtained by the linear array camera without flat field correction;
[0024] Figure 2 It is the image of the object being measured obtained by the linear array camera after flat field correction using traditional white balance paper;
[0025] Figure 3 It is an image of the object under test obtained after the linear array camera is flat-field corrected using a linear array camera flat-field correction method provided in the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0027] Example
[0028] An embodiment of the present invention provides a method for flat field correction of a linear array camera, which may include:
[0029] Bright field correction; the bright field correction comprises:
[0030] Acquire a first image grayscale distribution curve of the object under test placed within the field of view of the linear array camera under a first light environment;
[0031] Obtaining a grayscale distribution curve of a second image of a white balance paper placed within the field of view of the linear array camera under the first light environment;
[0032] The first light environment is adjusted to a target light environment, wherein the grayscale distribution curve of the second image under the target light environment is consistent with the grayscale distribution curve of the first image; so as to complete the bright field correction of the line array camera under the target environment.
[0033] The flat field correction method for a linear array camera provided in the embodiment of the present application is particularly suitable for bright field correction of a linear array camera under field conditions without the need to use complex algorithms. After the bright field correction is completed, the sample can be tested under the first light environment. The correction method is simple and easy to implement, and the correction effect is excellent.
[0034] In practical applications, the surface of the object to be measured has a texture structure. The object to be measured is a car decorative panel. In the specific operation, the car decorative panel to be measured is first placed under the field of view to obtain the grayscale distribution curve of the first image in the current state. Since the car decorative panel itself has texture, it is impossible to directly use the car decorative panel as the final object to be photographed for correction; therefore, in this case, the traditional white balance paper is still used as the object to be photographed for correction, and there is a large difference in the reflection effect between the white balance paper and the car decorative panel. In order to make the imaging effect of the white balance paper and the car decorative panel consistent, the first light environment is adjusted to make the image grayscale distribution curves of the two consistent, and the final bright field correction is completed in this case.
[0035] When adjusting the image grayscale distribution curve, a part of the light source in the first light environment can be removed, specifically, a part of the light source is blocked with an opaque black cloth, so that the first light environment is transformed into the target light environment. First, place the white balance paper in the camera field of view in the first light environment, obtain the second image grayscale distribution curve, block a part of the light source with an opaque black cloth, and repeatedly adjust and test until the second image grayscale distribution curve is consistent with the first image grayscale distribution curve, so that it can be determined that the first light environment is now transformed into the target light environment. The camera bright field calibration can be performed in the target light environment.
[0036] In practical applications, in order to further simplify the operation steps of bright field correction, the embodiment of the present application can also provide that bright field correction is achieved by clicking the bright field correction button of the line array camera in the target environment. When the light environment is adjusted, bright field correction can be performed through the bright field correction button of the camera without using complex algorithms.
[0037] In order to further improve the shooting effect after camera calibration, the embodiment of the present application can also provide dark field calibration, which includes using an opaque black cloth to block the field of view of the linear array camera, and performing dark field calibration in a completely dark state. Using an opaque black cloth to completely block the field of view of the linear array camera and performing dark field calibration in a completely dark state can ensure a good dark field calibration effect.
[0038] in, Figure 1 , Figure 2 , Figure 3 The images included in are images obtained under the same light conditions. It can be seen from the three images that after the bright field correction of the linear array camera is performed using the method provided in the embodiment of the present application, as shown in FIG. Figure 3 As shown, the captured image has the highest color reproduction and smaller differences between light and dark areas.
[0039] In summary, the flat field correction method for linear array cameras provided in this application completes the flat field correction under white balance paper by means of an external interference light source, so as to achieve a more uniform overall brightness of the image of the car decorative panel taken by the linear array camera. The entire correction process can be completed directly on the camera without the need for additional data calculation and algorithm development. When photographing car decorative panels, compared with the traditional flat field correction method under white balance paper, this method has a more uniform imaging effect. It is worthy of widespread promotion and use.
[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0041] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for flat field correction of a linear array camera, characterized in that: The method comprises: Bright field correction; the bright field correction comprises: Acquire a first image grayscale distribution curve of an object under test placed within the field of view of the linear array camera under a first light environment; the surface of the object under test has a texture structure; Obtaining a grayscale distribution curve of a second image of a white balance paper placed within the field of view of the linear array camera under the first light environment; Adjusting the first light environment to a target light environment, wherein the grayscale distribution curve of the second image in the target light environment is consistent with the grayscale distribution curve of the first image; so as to complete the bright field calibration of the line array camera in the target light environment; The step of adjusting the first light environment to a target light environment includes: Using an opaque black cloth to cover a portion of the light source, so that the first light environment is transformed into the target light environment; Dark field correction, the dark field correction includes using an opaque black cloth to block the field of view of the linear array camera, and performing dark field correction in a completely dark field of view.
2. The flat field correction method for a linear array camera according to claim 1, characterized in that: The object to be tested is an automobile decorative panel.
3. The flat field correction method for a linear array camera according to claim 1, characterized in that: Bright field correction is achieved by clicking a bright field correction button of the line array camera in the target light environment.
