Imaging method and device applied to line-scan digital camera, electronic equipment and storage medium
By determining the exposure time based on the light field lighting time in the online array camera, multiple light field images are collected in one photo, solving the brightness problems of high-speed moving object detection and multiple defect detection, and improving the detection accuracy and application scope.
Patent Information
- Application Number
- CN202411182465.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-29
AI Technical Summary
The existing time-sharing exposure imaging scheme is difficult to be applicable to the detection scenarios of high-speed moving objects, and the brightness of the light source is difficult to meet the needs when detecting multiple defects, resulting in low detection accuracy.
By obtaining the lighting time for multiple light fields that meet the detection needs to be lit in sequence, and determining the exposure time of each line of the line array camera according to the lighting time, at least two lines have different exposure times to collect multiple photos in one shot Light field images are suitable for various detection scenarios.
It realizes the acquisition of multiple light field images without increasing the camera's photo frequency, which is suitable for high-speed moving objects detection, improving detection accuracy and flexibility.
Smart Images

Figure CN119052655A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of machine vision technology, and in particular relates to an imaging method, device, electronic device and storage medium applied to a line array camera. Background Art
[0002] In visual industrial inspection scenarios, such as glass inspection and photovoltaic inspection, a linear array camera is generally used to scan the object to obtain an image of the object, and then detect whether the object has defects based on the scanned image, such as scratches, broken edges, bulges, pits, bumps, cracks, etc. on the surface of the object.
[0003] Conventional inspection tasks generally use a combination of a single camera and a single light source. Considering that different defects have different manifestations, if there are many types of defects to be inspected, a time-sharing exposure imaging solution can be used, that is, a single linear array camera is used, and multiple light sources with different lighting angles or different brightness are used at the same time, and the camera's time-sharing control technology is used to achieve object image scanning. The time-sharing exposure imaging solution has the advantages of saving hardware costs, saving workstation layout space, and enhancing camera scanning efficiency. It is increasingly widely used in linear array cameras. However, the existing time-sharing exposure imaging solution is difficult to apply to the inspection scenario of high-speed moving objects and has great limitations. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes an imaging method, device, electronic device and storage medium applied to a line array camera, which can be applied to various detection scenarios and has a wide range of applications.
[0005] In a first aspect, the present application provides an imaging method applied to a line array camera, wherein the line array camera includes a plurality of lines, and the imaging method includes:
[0006] Obtaining the lighting time of multiple light fields that meet the detection requirements and are lit up in sequence;
[0007] Determining an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times;
[0008] The line array camera and at least one light source are controlled according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one photographing of the line array camera.
[0009] In some embodiments, determining the exposure time of each of the plurality of lines according to the lighting time includes:
[0010] taking the end point of the lighting time of the last lit light field as the end point of the exposure time of each of the plurality of lines;
[0011] According to the starting point of the lighting time of each of the light fields, the starting point of the exposure time of each of the plurality of lines is determined.
[0012] In some embodiments, when the line array camera is a black-and-white line array camera, determining the starting point of the exposure time of each of the plurality of lines according to the starting point of the lighting time of each of the light fields comprises:
[0013] The starting point of the lighting time of each of the light fields is used as the starting point of the exposure time of the corresponding line among the multiple lines, and different light fields correspond to different lines among the multiple lines.
[0014] In some embodiments, when the light field includes a visible light field and a near-infrared light field, and the plurality of lines include an R line, a G line, a B line, and a W line, determining the starting point of the exposure time of each of the plurality of lines according to the starting point of the lighting time of each of the light fields includes:
[0015] Determining the starting points of the exposure times of the R line, the G line, and the B line, respectively, according to the starting point of the lighting time of the visible light field;
[0016] The starting point of the exposure time of the W line is determined according to the starting point of the lighting time of the near-infrared light field.
[0017] In some embodiments, determining the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field includes:
[0018] The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of the R line, the G line and the B line, so that the R line, the G line and the B line have the same exposure time.
[0019] In some embodiments, determining the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field includes:
[0020] Determining the lighting duration according to the starting point and the end point of the lighting time of the visible light field;
[0021] Determining exposure durations of the R line, the G line, and the B line, respectively, according to the lighting duration and respective preset weights of the R line, the G line, and the B line;
[0022] The starting points of the exposure times of the R line, the G line and the B line are determined according to the end point of the lighting time of the visible light field and the exposure time, so that the R line, the G line and the B line have different exposure times.
[0023] In some embodiments, determining the exposure time of each of the plurality of lines according to the lighting time includes:
[0024] Using the starting point of the lighting time of the first lit light field as the starting point of the exposure time of each of the multiple lines;
[0025] An end point of the exposure time of each of the plurality of lines is determined according to an end point of the lighting time of each of the light fields.
[0026] In some embodiments, the controlling the line array camera and at least one light source according to the lighting time and the exposure time includes:
[0027] determining a lighting signal of at least one light source according to the lighting time, and determining an exposure signal of a corresponding line among the plurality of lines according to the exposure time;
[0028] The at least one light source is controlled according to the lighting signal to sequentially form the multiple light fields, and the corresponding lines are controlled according to the exposure signal to perform exposure and image acquisition.
[0029] In some embodiments, the imaging method applied to the line array camera further includes:
[0030] Determine a processed image corresponding to each of the light field images;
[0031] The object to be detected in the light field is detected according to all the processed images.
[0032] In some embodiments, determining a processed image corresponding to each of the light field images comprises:
[0033] Determine an algorithm processing flow corresponding to each of the light fields, wherein the algorithm processing flow includes multiple processing algorithms and an execution order corresponding to each of the processing algorithms, and different light fields correspond to different algorithm processing flows;
[0034] The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
[0035] In a second aspect, the present application provides an imaging device applied to a line array camera, wherein the line array camera includes a plurality of lines, and the imaging device includes:
[0036] An acquisition module, used to acquire the lighting time of multiple light fields that meet the detection requirements and are lit in sequence;
[0037] A determination module, configured to determine an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times;
[0038] A control module is used to control the line array camera and at least one light source according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one shooting of the line array camera.
[0039] In some embodiments, the determining module is specifically used to:
[0040] taking the end point of the lighting time of the last lit light field as the end point of the exposure time of each of the plurality of lines;
[0041] According to the starting point of the lighting time of each of the light fields, the starting point of the exposure time of each of the plurality of lines is determined.
[0042] In some embodiments, when the line scan camera is a black and white line scan camera, the determining module is specifically configured to:
[0043] The starting point of the lighting time of each of the light fields is used as the starting point of the exposure time of the corresponding line among the multiple lines, and different light fields correspond to different lines among the multiple lines.
[0044] In some embodiments, when the light field includes a visible light field and a near infrared light field, and the plurality of lines include an R line, a G line, a B line, and a W line, the determination module is specifically configured to:
[0045] Determining the starting points of the exposure times of the R line, the G line, and the B line, respectively, according to the starting point of the lighting time of the visible light field;
[0046] The starting point of the exposure time of the W line is determined according to the starting point of the lighting time of the infrared light field.
[0047] In some embodiments, the determining module is specifically used to:
[0048] The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of each of the R line, the G line and the B line, so that the R line, the G line and the B line have the same exposure time.
[0049] In some embodiments, the determining module is specifically used to:
[0050] Determining the lighting duration according to the starting point and the end point of the lighting time of the visible light field;
[0051] Determining exposure durations of the R line, the G line, and the B line, respectively, according to the lighting duration and respective preset weights of the R line, the G line, and the B line;
[0052] The starting points of the exposure times of the R line, the G line and the B line are determined according to the end point of the lighting time of the visible light field and the exposure time, so that the R line, the G line and the B line have different exposure times.
[0053] In some embodiments, the determining module is specifically used to:
[0054] Using the starting point of the lighting time of the first lit light field as the starting point of the exposure time of each of the multiple lines;
[0055] An end point of the exposure time of each of the plurality of lines is determined according to an end point of the lighting time of each of the light fields.
[0056] In some embodiments, the control module is specifically used to:
[0057] determining a lighting signal of at least one light source according to the lighting time, and determining an exposure signal of a corresponding line among the plurality of lines according to the exposure time;
[0058] The at least one light source is controlled according to the lighting signal to sequentially form the multiple light fields, and the corresponding lines are controlled according to the exposure signal to perform exposure and image acquisition.
[0059] In some embodiments, the imaging device applied to the line array camera further includes a detection module, which is used to:
[0060] Determine a processed image corresponding to each of the light field images;
[0061] The object to be detected in the light field is detected according to all the processed images.
[0062] In some embodiments, the detection module is specifically used to:
[0063] Determine an algorithm processing flow corresponding to each of the light fields, wherein the algorithm processing flow includes multiple processing algorithms and an execution order corresponding to each of the processing algorithms, and different light fields correspond to different algorithm processing flows;
[0064] The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
[0065] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the imaging method applied to a line array camera as described in any one of the above items is implemented.
[0066] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the imaging method applied to a linear array camera as described in any one of the above items is implemented.
[0067] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned imaging methods applied to a line array camera.
[0068] The imaging method, device, storage medium, electronic device and computer program product applied to a line array camera provided by the embodiments of the present application obtain the lighting time of multiple light fields that meet the detection requirements and light up in sequence; determine the exposure time of each line in the multiple lines according to the lighting time, and at least two lines have different exposure times; control the line array camera and at least one light source according to the lighting time and the exposure time, that is, determine the exposure time of each line of the line array camera according to the lighting time of each light field, and at least two lines have different exposure times, so that the line array camera can collect multiple light field images in one shooting, avoid the camera shooting frequency increasing with the increase of the number of light fields, and is suitable for various detection scenarios, with a wide range of applications and high flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0070] Figure 1 It is a schematic diagram of the light field and the signals received by each line of the linear array camera in the traditional time-sharing exposure imaging method;
[0071] Figure 2 is a flow chart of an imaging method applied to a line array camera provided in an embodiment of the present application;
[0072] Figure 3 It is a schematic diagram showing the light field and the signals received by each line of the linear array camera provided in the embodiment of the present application;
[0073] Figure 4 is another schematic diagram showing the light field and the signals received by each line of the line array camera provided in an embodiment of the present application;
[0074] Figure 5 is another schematic diagram showing the light field and the signals received by each line of the line array camera provided in the embodiment of the present application;
[0075] Figure 6This is another schematic diagram showing the visible light field and the signals received by each RGB line provided by the embodiment of the present application;
[0076] Figure 7 is a schematic diagram of the algorithm processing flow corresponding to each light field provided in the embodiment of the present application;
[0077] Figure 8 is a schematic structural diagram of an imaging device applied to a line array camera provided in an embodiment of the present application;
[0078] Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0079] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0080] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0081] See also Figure 1 , Figure 1 This is a schematic diagram of the signals received by the light field and each line of the linear array camera in the traditional time-sharing exposure imaging method, where the light field includes light field 1 and light field 2, and the linear array camera is a multi-line linear array camera. The light field and the camera synchronously receive their respective signals. For the linear array camera, the high-level time in the exposure signal is the exposure time, and for the light field, the high-level time in the lighting signal is the lighting time. Based on these signals, each light field is controlled to light up and close, and at the same time, each line of the linear array camera is controlled to expose and take pictures. Figure 1 It is easy to see that each line in the line array camera receives the same exposure signal and the exposure time of each line is consistent. Light field 1 and light field 2 receive different lighting signals and light up in turn, so that the camera alternately collects images of the two light fields.
[0082] For the time-sharing exposure imaging method in the prior art, on the one hand, since the line array camera can only capture the image of one light field each time it is triggered to take a picture (i.e., each line completes an image acquisition), if it is necessary to capture the images of light field 1 and light field 2, the line array camera needs to be triggered twice to capture the images. The number of light fields, the number of triggers, and the number of camera output lines are the same, and the actual output line frequency of the camera is only half of the original line frequency. And if it is necessary to capture images of more light fields, the line array camera needs to be triggered more times, and the number of camera triggers (camera photo frequency) increases with the increase in the number of light fields. For the detection scene of moving objects, the camera photo frequency needs to match the moving speed of the moving object. Therefore, this time-sharing exposure imaging method cannot be applied to the detection scene of high-speed moving objects, and has great limitations in use. On the other hand, since the exposure time of each light field image is relatively short, if the brightness of the on-site light source is difficult to reach the required brightness, the collected light field image is relatively dark, which is not conducive to detection accuracy.
[0083] To solve at least one of the above technical problems, the embodiments of the present application provide an imaging method, device, storage medium, electronic device and computer program product applied to a line array camera.
[0084] See also Figure 2 , Figure 2 1 is a flow chart of an imaging method applied to a line array camera provided by an embodiment of the present application. The imaging method applied to a line array camera is applied to an electronic device, and the imaging method applied to a line array camera can be performed by the electronic device or a functional module or functional entity in the electronic device. The line array camera includes a plurality of lines, and the imaging method applied to the line array camera includes the following steps 101-103, wherein:
[0085] 101. Obtain lighting times for a plurality of light fields that meet detection requirements to be lit in sequence;
[0086] 102. Determine an exposure time of each of the multiple lines according to the lighting time, wherein at least two lines have different exposure times;
[0087] 103. Control the line array camera and at least one light source according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one photographing of the line array camera.
[0088] The imaging method applied to the line array camera provided in the embodiment of the present application obtains the lighting time of multiple light fields that meet the detection requirements and are lit in sequence; determines the exposure time of each line in the multiple lines according to the lighting time, and at least two lines have different exposure times; controls the line array camera and at least one light source according to the lighting time and the exposure time, that is, determines the exposure time of each line of the line array camera according to the lighting time of each light field, and at least two lines have different exposure times, so that the line array camera can collect multiple light field images in one shooting, avoids the camera shooting frequency increasing with the increase of the number of light fields, is applicable to various detection scenarios, has a wide range of application, and is highly flexible.
[0089] The above steps 101 - 103 will be further described in detail below.
[0090] 101. Obtain lighting times for sequentially lighting up a plurality of light fields that meet detection requirements.
[0091] Among them, the line array camera is a multi-line camera, including at least two lines, which can be a black and white line array camera or a color line array camera. The black and white line array camera generates a grayscale image, and the color line array camera generates an RGB image. The light field includes light field 1 to light field n, where n is an integer greater than 1, and the lighting time of each light field is staggered and does not overlap. When conducting industrial inspections, the lighting time of the light field can be set according to the actual situation on site to ensure that the inspection requirements are met, such as meeting the on-site inspection line frequency or inspection brightness.
[0092] Multiple light fields can be of the same type, such as infrared light fields or visible light fields, and can be formed by configuring the same light source with different brightness, or by configuring multiple light sources of the same type with different brightness. Multiple light fields can also be of different types, such as including both near-infrared light fields and visible light fields, and can be formed by multiple light sources of different types, depending on actual needs, and are not limited here.
[0093] For example, see Figure 3 and Figure 4 , Figure 3 is a schematic diagram showing the light field and the signals received by each line of the line array camera provided in the embodiment of the present application, Figure 4 is another schematic diagram showing the light field and the signals received by each line of the line array camera provided in the embodiment of the present application. Figure 3 and Figure 4 It is a two-light-field two-line camera. The lighting time of the two light fields is T1 and T2 respectively. T1 and T2 are staggered and do not overlap each other. T1 and T2 can be equal or unequal.
[0094] 102. Determine an exposure time of each of the multiple lines according to the lighting time, and at least two lines have different exposure times.
[0095] The exposure time of each line of the linear array camera can be aligned at the end point or the start point, that is, the exposure time of each line has the same start point or end point. Figure 3 In the example, the exposure time T3 of the first line and the exposure time T4 of the second line are different, but have the same end point, that is, the exposure time of the first line and the exposure time of the second line are aligned by the end point. Figure 4 In the example, T3 and T4 are different, but have the same starting point, that is, the exposure time of the first line and the second line are aligned with the starting point.
[0096] It should be pointed out that the method of using end point alignment to determine the exposure time of each line is similar to the method of using starting point alignment to determine the exposure time of each line. The following will take the end point alignment as an example to introduce how to determine the exposure time of each line, and the method of using starting point alignment to determine the exposure time will not be repeated.
[0097] In some embodiments, when the exposure time of each line of the line array camera is aligned by endpoints, the above step 102 specifically includes:
[0098] The end point of the lighting time of the last lit light field is used as the end point of the exposure time of each of the multiple lines;
[0099] According to the starting point of the lighting time of each light field, the starting point of the exposure time of each line in the plurality of lines is determined.
[0100] Please continue to see Figure 3 , light field 2 is the last light field to be lit, and the end points of exposure times T3 and T4 are aligned with the end point of lighting time T2.
[0101] Furthermore, when the line array camera is a black-and-white line array camera, the above step of “determining the starting point of the exposure time of each line in the plurality of lines according to the starting point of the lighting time of each light field” specifically includes:
[0102] The starting point of the lighting time of each light field is used as the starting point of the exposure time of the corresponding line among the multiple lines, and different light fields correspond to different lines among the multiple lines.
[0103] Among them, in the black and white line array camera, each light field is the same type of light, and each line mainly collects the grayscale information of the image. The number of light fields can be the same as the number of lines. At this time, the starting point of the lighting time of each light field is used as the starting point of the corresponding line, so that when each light field is lit in turn, each lighting triggers a line for exposure. For example, Figure 3In the example, the number of light fields is the same as the number of lines, the starting point of exposure time T3 is the starting point of T2, the starting point of exposure time T4 is the starting point of T1, the second line is exposed first, and the first line is exposed later, and the exposure of the first line and the second line ends at the same time, so that when the line array camera triggers a photo operation, images of light field 1 and light field 2 can be collected respectively, and the actual output line frequency of the camera is consistent with the original line frequency.
[0104] In other embodiments, the number of lines may also be greater than the number of light fields. In this case, the starting point of the lighting time of each light field is used as the starting point of the exposure time of the corresponding one or more lines, so that when each light field is lit in turn, one or more lines are triggered for exposure each time they are lit.
[0105] Further, when the line array camera is a color line array camera, the light field includes a visible light field and a near-infrared light field, and the multiple lines include R lines, G lines, B lines, and W lines, the above step of "determining the starting point of the exposure time of each line in the multiple lines according to the starting point of the lighting time of each light field" specifically includes:
[0106] According to the starting point of the lighting time of the visible light field, the starting point of the exposure time of the R line, the G line and the B line is determined;
[0107] The starting point of the W-line exposure time is determined according to the starting point of the lighting time of the near-infrared light field.
[0108] Among them, the R line, G line and B line collect red light, green light and blue light in the visible spectrum respectively, and the W line can receive light in the visible spectrum and near-infrared spectrum, mainly collecting near-infrared grayscale information. Figure 5 , Figure 5 This is another schematic diagram showing the light field and the signals received by each line of the linear array camera provided by the embodiment of the present application. The lighting time of the near-infrared light field is T1, the lighting time of the visible light field is T2, the exposure time of each RGB line is T3R, T3G and T3B respectively, and the exposure time of the W line is T4. The end points of T3R, T3G, T3B and T4 are all aligned with the end point of T2, the starting point of T4 is aligned with the starting point of T1, and the starting points of T3R, T3G and T3B are determined according to the starting point of T2.
[0109] In some embodiments, the starting points of the exposure time of each RGB line may be the same. In this case, the above step of "determining the starting points of the exposure time of each of the R line, the G line and the B line according to the starting point of the lighting time of the visible light field" specifically includes:
[0110] The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of each of the R line, G line and B line, so that the R line, G line and B line light have the same exposure time.
[0111] Please continue to see Figure 5, the starting point of T2 is taken as the starting point of T3R, T3G, and T3B, that is, T3R, T3G, and T3B are all equal to T3, so that each RGB line has the same exposure time. Then, when the linear array camera triggers a photo operation, images of the visible light field and the near-infrared light field can be collected respectively, and the actual output line frequency of the camera is consistent with the original line frequency.
[0112] In other embodiments, considering the coating differences of the color line array camera, the three RGB lines have different responses to light, so the exposure time of each RGB line can be further set to be different from each other, see Figure 6 , Figure 6 This is another schematic diagram showing the light field and the signals received by each line of the linear array camera provided by the embodiment of the present application. At this time, the above step of "determining the starting point of the exposure time of the R line, the G line and the B line according to the starting point of the lighting time of the visible light field" specifically includes:
[0113] Determine the lighting duration according to the starting point and the end point of the lighting time of the visible light field;
[0114] Determine the exposure time of the R line, the G line, and the B line according to the lighting time and the preset weights of the R line, the G line, and the B line;
[0115] According to the end point of the lighting time of the visible light field and the exposure time, the start point of each exposure time of the R line, the G line and the B line is determined so that the R line, the G line and the B line have different exposure times.
[0116] Among them, the preset weight is determined according to the response ability of each RGB line to light. Under the same light source brightness, the G component has the highest response, the R component has the second highest response, and the B component has the lowest response. The prior art generally improves the response by gain when processing each component to keep the three-line response consistent. However, since the gain will reduce the image signal-to-noise ratio and increase the image noise, this scheme proposes to improve the response by setting the exposure time of each RGB line in different ways. The setting principle of the exposure time should be as follows: the line with the lowest response is given the longest exposure time, and the line with the highest response is given the shortest exposure time.
[0117] Specifically, the following formula can be used to calculate the exposure time of each RGB line:
[0118]
[0119] Among them, L max The exposure time given for the lowest line (B line) should not exceed the lighting time of the corresponding light source, L min The exposure time given by the highest response line (G line), L midIn response to the exposure duration of the centered line (R line), value is the coefficient for shortening the exposure time, with a default value of 0.5 and a value range of 0 < value ≤ 0.5. The value of value can be a preset value set according to experience or a coefficient calibrated in advance based on the responses of the RGB three-line components of the camera.
[0120] As can be seen from the above formula, when L max equals the lighting duration of the corresponding light field, the preset weight of the B line is 1, the preset weight of the G line is value, and the preset weight of the R line is 2*value. It is easy to see in Figure 6 that the lighting time T2 of the visible light field ≥ the exposure time T3B of the B line > the exposure time T3R of the R line > the exposure time T3G of the G line.
[0121] 103. Control the line array camera and at least one light source according to the lighting time and the exposure time, so as to collect the light field images of each light field in one photographing of the line array camera.
[0122] In some embodiments, the above step 103 specifically includes:
[0123] Determine the lighting signals of at least one light source according to the lighting time, and determine the exposure signals of the corresponding lines among multiple lines according to the exposure time. The lighting signals and the exposure signals have the same trigger starting point;
[0124] Control the at least one light source to sequentially form the multiple light fields according to the lighting signals, and control the corresponding lines to perform exposure and image acquisition according to the exposure signals.
[0125] Among them, please continue to refer to the above Figure 3-Figure 5 , the lighting signals of each light source (light field) and the exposure signals of each line of the line array camera can be square wave signals. By sequentially lighting multiple light fields within the single photographing time T and combining and configuring the exposure signals of multiple lines, it is possible to collect the light field images of multiple light fields during a single trigger photographing, so that the actual trigger times of the camera are less than Figure 1 the trigger times of the traditional time-sharing exposure scheme shown. For example, in the above Figure 3 and Figure 4 , within the single photographing time T, the first line collects the image of light field 1, and the second line collects the image of light field 2. In the above Figure 5 , within the single photographing time T, the W line collects the image of the near-infrared light field, and the RGB lines collect the image of the visible light field, thereby avoiding an increase in the camera trigger times due to an increase in the number of light fields. It is applicable to various detection scenarios, such as the detection of high-speed moving objects, with a wide application range and high flexibility.
[0126] At the same time, because Figure 3-Figure 5The exposure time of at least one line in Figure 1 The exposure time of the scheme shown has been significantly increased, for example Figure 3 and Figure 4 In the example, the exposure time of the second line is longer than the sum of the lighting time of light field 1 and light field 2. Figure 5 In the example, the exposure time of the w line is longer than the sum of the lighting time of the near-infrared light field and the visible light field. Therefore, when the brightness of the light source on site cannot meet the detection requirements, this solution can improve the image brightness by extending the exposure time.
[0127] In addition, since the light field image obtained by each photographing of the line array camera can be regarded as a photograph of a certain position of the object to be detected in the light field, the complete image of the object to be detected needs to fuse the light field images obtained by multiple photographing, and detect based on the fused image. Therefore, after the above step 103, the imaging method applied to the line array camera further includes:
[0128] determining a processed image corresponding to each light field image;
[0129] The object to be detected in the light field is detected according to all processed images.
[0130] Among them, all light field images can be processed by the same set of algorithm processing procedures for denoising, enhancement, correction and other algorithms to obtain processed images, and then the processed images of each light field are fused to perform object detection. However, since multiple light field images are images collected under different brightness of the same light source or different light sources, the collection environment and camera configuration of different light field images may be different. Therefore, if the same set of algorithm processing procedures are used for image optimization, it is difficult to ensure that the optimization effect of each light field image is at the optimal level. Therefore, this solution proposes to use different algorithm processing procedures for optimization of light field images of different light fields, that is, the above step of "determining the processed image corresponding to each light field image" specifically includes:
[0131] Determine the algorithm processing flow corresponding to each light field, the algorithm processing flow includes multiple processing algorithms and the execution order corresponding to each processing algorithm, and different light fields correspond to different algorithm processing flows;
[0132] The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
[0133] Among them, see Figure 7 , Figure 7This is a schematic diagram of the algorithm processing flow corresponding to each light field provided in the embodiment of the present application. The light field includes light field 1 to light field n. The user sets the corresponding algorithm processing flow for each light field in advance. The algorithms, algorithm parameters and algorithm execution order involved in each algorithm processing flow can be independently configured based on the actual impact of the light source itself and the camera configuration on the light field, thereby ensuring the best optimization effect. For example Figure 7 In the figure, the algorithm processing flow of light field 1 is to execute algorithms a, b, c, e... in sequence, the optimization flow of light field 2 is to execute algorithms a, b, c... in sequence, and the optimization flow of light field n does not execute algorithms a, b, e... in sequence.
[0134] It should be pointed out that the different exposure scheme settings for at least two lines in the multi-line array camera proposed in the embodiment of the present application, the different exposure scheme settings for each RGB line, and the different algorithm processing flow settings for the light field, these three can be used in combination at the same time to ensure that the final image effect is optimal, and the appropriate combination scheme can also be selected according to the actual on-site detection environment, and there is no limitation here.
[0135] As can be seen from the above, the imaging method applied to the line array camera provided in the embodiment of the present application obtains the lighting time of multiple light fields that meet the detection requirements and are lit in sequence; determines the exposure time of each line of the line array camera according to the lighting time, and at least two lines have different exposure times; controls the line array camera and at least one light source according to the lighting time and the exposure time, that is, determines the exposure time of each line of the line array camera according to the lighting time of each light field, and at least two lines have different exposure times, so that the line array camera can collect multiple light field images in one shooting, avoids the camera shooting frequency increasing with the increase of the number of light fields, is applicable to various detection scenarios, has a wide range of applications, and is highly flexible.
[0136] According to the method described in the above embodiment, the present application also provides an imaging device applied to a line scan camera, which is used to perform the steps in the above imaging method applied to a line scan camera. Figure 8 , Figure 8 1 is a schematic diagram of the structure of an imaging device 200 applied to a line scan camera provided in an embodiment of the present application. The imaging device 200 applied to a line scan camera is applied to an electronic device, and the imaging method applied to a line scan camera can be executed by the electronic device or a functional module or functional entity in the electronic device.
[0137] Specifically, the line array camera includes a plurality of lines, and the imaging device 200 applied to the line array camera includes an acquisition module 201, a determination module 202 and a control module 203, wherein:
[0138] An acquisition module 201 is used to acquire lighting times of a plurality of light fields that meet detection requirements and are sequentially lit;
[0139] A determination module 202, configured to determine an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times;
[0140] The control module 203 is used to control the line array camera and at least one light source according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one shooting of the line array camera.
[0141] In some embodiments, the determination module 202 is specifically configured to:
[0142] The end point of the lighting time of the last lit light field is used as the end point of the exposure time of each of the multiple lines;
[0143] According to the starting point of the lighting time of each light field, the starting point of the exposure time of each line in the plurality of lines is determined.
[0144] In some embodiments, when the line scan camera is a black and white line scan camera, the determination module 202 is specifically configured to:
[0145] The starting point of the lighting time of each light field is used as the starting point of the exposure time of the corresponding line in the multiple lines, and different light fields correspond to different lines in the multiple lines.
[0146] In some embodiments, when the light field includes a visible light field and a near infrared light field, and the multiple lines include an R line, a G line, a B line, and a W line, the determination module 202 is specifically configured to:
[0147] Determine the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field;
[0148] The starting point of the exposure time of the W line is determined according to the starting point of the lighting time of the infrared light field.
[0149] In some embodiments, the determination module 202 is specifically configured to:
[0150] The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of each of the R line, the G line and the B line, so that the R line, the G line and the B line have the same exposure time.
[0151] In some embodiments, the determination module 202 is specifically configured to:
[0152] Determine the lighting duration according to the starting point and the end point of the lighting time of the visible light field;
[0153] Determine the exposure duration of the R line, the G line, and the B line according to the lighting duration and the preset weights of the R line, the G line, and the B line;
[0154] According to the end point of the lighting time of the visible light field and the exposure time, the start point of each exposure time of the R line, the G line and the B line is determined so that the R line, the G line and the B line have different exposure times.
[0155] In some embodiments, the determination module 202 is specifically configured to:
[0156] The starting point of the lighting time of the first lit light field is used as the starting point of the exposure time of each line in the plurality of lines;
[0157] An end point of the exposure time of each of the plurality of lines is determined according to an end point of the lighting time of each light field.
[0158] In some embodiments, the control module 203 is specifically used to:
[0159] determining a lighting signal of at least one light source according to the lighting time, and determining an exposure signal of a corresponding line among the plurality of lines according to the exposure time;
[0160] The at least one light source is controlled according to the lighting signal to sequentially form the multiple light fields, and the corresponding lines are controlled according to the exposure signal to perform exposure and image acquisition.
[0161] In some embodiments, the imaging device 200 applied to the line array camera further includes a detection module for:
[0162] determining a processed image corresponding to each light field image;
[0163] The object to be detected in the light field is detected according to all processed images.
[0164] In some embodiments, the detection module is specifically used to:
[0165] Determine an algorithm processing flow corresponding to each light field, the algorithm processing flow including multiple processing algorithms and an execution order corresponding to each processing algorithm, and different light fields correspond to different algorithm processing flows;
[0166] The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
[0167] It should be noted that the specific details of each module unit in the imaging device 200 applied to the line scan camera have been described in detail in the embodiment of the imaging method applied to the line scan camera, and will not be repeated here.
[0168] As can be seen from the above, the imaging device 200 applied to the line array camera provided in the embodiment of the present application obtains the lighting time of multiple light fields that meet the detection requirements in sequence through the acquisition module 201; the determination module 202 determines the exposure time of each line in the multiple lines according to the lighting time, and at least two lines have different exposure times; the control module 203 controls the line array camera and at least one light source according to the lighting time and the exposure time, that is, the exposure time of each line of the line array camera is determined according to the lighting time of each light field, and at least two lines have different exposure times, so that the line array camera can collect multiple light field images in one shooting, avoiding the camera shooting frequency to increase with the increase of the number of light fields, and is suitable for various detection scenarios, with a wide range of applications and high flexibility.
[0169] In some embodiments, the imaging device applied to the line array camera in the embodiments of the present application may be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a server, which may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The embodiments of the present application are not specifically limited.
[0170] The imaging device applied to the line array camera in the embodiment of the present application may be a device having an operating system. The operating system may be a Microsoft (Windows) operating system, an Android (Android) operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0171] The imaging device applied to the line array camera provided in the embodiment of the present application can achieve Figures 2 to 7 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0172] In some embodiments, Fig. 9 As shown, the embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the program is executed by the processor 301, each process of the above-mentioned imaging method embodiment applied to the linear array camera is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0173] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0174] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0175] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410 and other components.
[0176] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0177] In some embodiments, the processor 410 is configured to:
[0178] Obtaining the lighting time of multiple light fields that meet the detection requirements and are lit up in sequence;
[0179] determining an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times;
[0180] The line array camera and at least one light source are controlled according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one photographing of the line array camera.
[0181] In some embodiments, the processor 410 is configured to:
[0182] The end point of the lighting time of the last lit light field is used as the end point of the exposure time of each line in the plurality of lines;
[0183] According to the starting point of the lighting time of each light field, the starting point of the exposure time of each line in the plurality of lines is determined.
[0184] In some embodiments, when the line scan camera is a black and white line scan camera, the processor 410 is configured to:
[0185] The starting point of the lighting time of each light field is used as the starting point of the exposure time of the corresponding line among the multiple lines, and different light fields correspond to different lines among the multiple lines.
[0186] In some embodiments, when the light field includes a visible light field and a near infrared light field, and the plurality of lines include an R line, a G line, a B line, and a W line, the processor 410 is configured to:
[0187] Determine the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field;
[0188] The starting point of the exposure time of the W line is determined according to the starting point of the lighting time of the near-infrared light field.
[0189] In some embodiments, the processor 410 is configured to:
[0190] The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of each of the R line, the G line and the B line, so that the R line, the G line and the B line have the same exposure time.
[0191] In some embodiments, the processor 410 is configured to:
[0192] Determine the lighting duration according to the starting point and the end point of the lighting time of the visible light field;
[0193] Determine the exposure duration of the R line, the G line, and the B line according to the lighting duration and the preset weights of the R line, the G line, and the B line;
[0194] According to the end point of the lighting time of the visible light field and the exposure time, the start point of the exposure time of the R line, the G line and the B line is determined so that the R line, the G line and the B line have different exposure times.
[0195] In some embodiments, the processor 410 is configured to:
[0196] Taking the starting point of the lighting time of the first lit light field as the starting point of the exposure time of each line in the plurality of lines;
[0197] According to the end point of the lighting time of each light field, the end point of the exposure time of each line in the plurality of lines is determined.
[0198] In some embodiments, controlling the line array camera and at least one light source according to the lighting time and the exposure time includes:
[0199] determining a lighting signal of at least one light source according to the lighting time, and determining an exposure signal of a corresponding line among the plurality of lines according to the exposure time;
[0200] The at least one light source is controlled according to the lighting signal to sequentially form the multiple light fields, and the corresponding lines are controlled according to the exposure signal to perform exposure and image acquisition.
[0201] In some embodiments, the processor 410 is further configured to:
[0202] determining a processed image corresponding to each light field image;
[0203] The object to be detected in the light field is detected according to all processed images.
[0204] In some embodiments, the processor 410 is configured to:
[0205] Determine an algorithm processing flow corresponding to each light field, the algorithm processing flow including multiple processing algorithms and an execution order corresponding to each processing algorithm, and different light fields correspond to different algorithm processing flows;
[0206] The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
[0207] It should be understood that in the embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 407 includes a touch panel 4071 and at least one of other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts: a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0208] The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 409 may include a volatile memory or a non-volatile memory, or the memory 409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0209] The processor 410 may include one or more processing units; the processor 410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 410.
[0210] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned imaging method embodiment applied to a linear array camera are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0211] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0212] An embodiment of the present application further provides a computer program product, including a computer program, which implements the above-mentioned imaging method applied to a line array camera when executed by a processor.
[0213] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0214] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0215] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0216] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0217] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0218] In the description of the present application, “plurality” means two or more.
[0219] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0220] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. An imaging method applied to a line array camera, characterized in that: The line array camera includes a plurality of lines, and the imaging method includes: Obtaining the lighting time of multiple light fields that meet the detection requirements and are lit up in sequence; Determining an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times; The line array camera and at least one light source are controlled according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one photographing of the line array camera.
2. The imaging method applied to a line array camera according to claim 1, characterized in that: The step of determining the exposure time of each of the plurality of lines according to the lighting time comprises: taking the end point of the lighting time of the last lit light field as the end point of the exposure time of each of the plurality of lines; According to the starting point of the lighting time of each of the light fields, the starting point of the exposure time of each of the plurality of lines is determined.
3. The imaging method applied to a line array camera according to claim 2, characterized in that: When the line array camera is a black-and-white line array camera, determining the starting point of the exposure time of each of the plurality of lines according to the starting point of the lighting time of each of the light fields comprises: The starting point of the lighting time of each of the light fields is used as the starting point of the exposure time of the corresponding line among the multiple lines, and different light fields correspond to different lines among the multiple lines.
4. The imaging method applied to a line array camera according to claim 2, characterized in that: When the light field includes a visible light field and a near-infrared light field, and the plurality of lines include an R line, a G line, a B line, and a W line, determining the starting point of the exposure time of each of the plurality of lines according to the starting point of the lighting time of each of the light fields comprises: Determining the starting points of the exposure times of the R line, the G line, and the B line, respectively, according to the starting point of the lighting time of the visible light field; The starting point of the exposure time of the W line is determined according to the starting point of the lighting time of the near-infrared light field.
5. The imaging method applied to a line array camera according to claim 4, characterized in that: The step of determining the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field comprises: The starting point of the lighting time of the visible light field is used as the starting point of the exposure time of each of the R line, the G line and the B line, so that the R line, the G line and the B line have the same exposure time.
6. The imaging method applied to a line array camera according to claim 4, characterized in that: The step of determining the starting points of the exposure times of the R line, the G line, and the B line according to the starting point of the lighting time of the visible light field comprises: Determining the lighting duration according to the starting point and the end point of the lighting time of the visible light field; Determining exposure durations of the R line, the G line, and the B line, respectively, according to the lighting duration and respective preset weights of the R line, the G line, and the B line; The starting points of the exposure times of the R line, the G line and the B line are determined according to the end point of the lighting time of the visible light field and the exposure time, so that the R line, the G line and the B line have different exposure times.
7. The imaging method applied to a line array camera according to claim 2, characterized in that: The step of determining the exposure time of each of the plurality of lines according to the lighting time comprises: Using the starting point of the lighting time of the first lit light field as the starting point of the exposure time of each of the multiple lines; An end point of the exposure time of each of the plurality of lines is determined according to an end point of the lighting time of each of the light fields.
8. The imaging method applied to a line array camera according to claim 1, characterized in that: The controlling the line array camera and at least one light source according to the lighting time and the exposure time includes: determining a lighting signal of at least one light source according to the lighting time, and determining an exposure signal of a corresponding line among the plurality of lines according to the exposure time; The at least one light source is controlled according to the lighting signal to sequentially form the multiple light fields, and the corresponding lines are controlled according to the exposure signal to perform exposure and image acquisition.
9. The imaging method applied to a line array camera according to claim 1, characterized in that: Also includes: Determine a processed image corresponding to each of the light field images; The object to be detected in the light field is detected according to all the processed images.
10. The imaging method applied to a line array camera according to claim 9, characterized in that: The determining of a processed image corresponding to each of the light field images comprises: Determine an algorithm processing flow corresponding to each of the light fields, wherein the algorithm processing flow includes multiple processing algorithms and an execution order corresponding to each of the processing algorithms, and different light fields correspond to different algorithm processing flows; The light field image of the corresponding light field is processed according to the algorithm processing flow to obtain a processed image.
11. An imaging device applied to a line array camera, characterized in that: The line array camera includes a plurality of lines, and the imaging device includes: An acquisition module, used to acquire the lighting time of multiple light fields that meet the detection requirements and are lit in sequence; A determination module, configured to determine an exposure time of each of the plurality of lines according to the lighting time, wherein at least two lines have different exposure times; A control module is used to control the line array camera and at least one light source according to the lighting time and the exposure time, so as to acquire a light field image of each light field in one shooting of the line array camera.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the imaging method applied to a line array camera as claimed in any one of claims 1 to 10 is implemented.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the imaging method applied to the line array camera as described in claims 1-10 is implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the imaging method applied to a line array camera as claimed in claims 1 to 10 is implemented.
