Spectral calibration method and device for single-lens imaging spectral system
By adjusting the distance between the single lens and the detector, and combining a monochromator and a two-dimensional displacement platform, grayscale data fitting and wavelength adjustment are performed. This solves the problem that single-lens imaging spectral systems cannot be directly calibrated, achieving accurate calibration of the spectral center wavelength and ensuring the accuracy and reliability of spectral data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING INST OF ENVIRONMENTAL FEATURES
- Filing Date
- 2026-04-23
- Publication Date
- 2026-06-05
AI Technical Summary
Existing technologies cannot directly calibrate the spectral center wavelength of a single-lens imaging spectral system.
The distance between the single lens and the detector is adjusted by the controller. The detector's acquisition position and number are recorded using a monochromator and a two-dimensional displacement platform. Grayscale data is fitted, the wavelength is adjusted cyclically, the position number of the maximum spectral line is obtained, and the spectral calibration position is determined.
It enables precise and efficient calibration of the spectral center wavelength of a single-lens imaging spectral system, ensuring the accuracy and reliability of spectral data.
Smart Images

Figure CN122149637A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of spectral calibration technology, and in particular to a spectral calibration method and apparatus for a single-lens imaging spectral system. Background Technology
[0002] As a core technology capable of simultaneously acquiring spatial and spectral information of a target, spectral technology, with its unique advantage of "image-spectrum integration," is widely used in many important fields such as environmental monitoring, resource exploration, biomedicine, and aerospace remote sensing, becoming a fundamental support for the quantitative analysis of spectral data. Spectral calibration, as a key component of imaging spectrometers, aims to accurately determine the spectral center wavelength positions corresponding to each detection channel in the imaging spectral system. Only by completing accurate spectral calibration can the accuracy and reliability of subsequent spectral data be ensured, providing effective data support for various quantitative analysis applications. Therefore, the accuracy of spectral calibration directly determines the overall performance of the imaging spectral system.
[0003] Currently, existing spectral calibration methods for imaging spectrometers are mainly divided into two categories: wavelength scanning and characteristic spectral calibration. Wavelength scanning involves outputting continuously adjustable monochromatic light from a monochromator, sequentially illuminating the imaging spectral system, and recording the detector response position corresponding to each monochromatic light. This establishes a correspondence between wavelength and detector position, thus calibrating the spectral center wavelength. Characteristic spectral calibration utilizes a light source with known characteristic wavelengths (such as mercury lamps or deuterium lamps) to identify the peak response position corresponding to the characteristic wavelength on the detector, thereby calibrating the spectral center wavelength. Single-lens imaging spectroscopy, unlike traditional imaging spectroscopy, requires computational methods to reconstruct the spectrum and cannot directly calibrate the spectral center wavelength.
[0004] Based on this, the present invention proposes a spectral calibration method and apparatus for a single-lens imaging spectral system to solve the problem of how to accurately calibrate the center wavelength of the spectrum. Summary of the Invention
[0005] To address the problem of accurately calibrating the center wavelength of a spectrum, embodiments of the present invention provide a spectral calibration method and apparatus for a single-lens imaging spectral system.
[0006] In a first aspect, embodiments of the present invention provide a spectral calibration method for a single-lens imaging spectral system. The method is applied to a controller of the calibration system, which includes the controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The method includes: Step 100: Adjust the distance between the single lens and the detector according to the focal length of the single lens, control the monochromator to turn on, and initialize the wavelength; Step 102: Control the two-dimensional displacement platform to move at a preset distance to record the acquisition positions and corresponding numbers of the detector; Step 104: Fit the grayscale data collected by the detector to obtain the position of the maximum spectral line and its corresponding number; Step 106: Adjust the initial wavelength according to the preset increase amount; Step 108: Repeat steps 100 to 106 to obtain the position numbers of the spectral line maximum values under different wavelength conditions; Step 110: Determine the spectral calibration position based on the position number of the maximum spectral line value under the different wavelength conditions.
[0007] Secondly, embodiments of the present invention provide a spectral calibration device for a single-lens imaging spectral system. The device is applied to the controller of the calibration system, which includes the controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The device includes: The first data processing module is used in step 100: adjusting the distance between the single lens and the detector according to the focal length of the single lens, controlling the monochromator to turn on, and initializing the wavelength; The second data processing module is used in step 102: controlling the two-dimensional displacement platform to move according to a preset distance to record the acquisition positions and corresponding numbers of the detector; The third data processing module is used in step 104 to perform fitting processing on the grayscale image data collected by the detector to obtain the position of the maximum value of the spectral line and the corresponding number. The fourth data processing module is used in step 106: adjusting the initial wavelength according to a preset increase amount; The fifth data processing module is used for step 108: cyclically executing steps 100 to 106 to obtain the position numbers of the maximum spectral line values under different wavelength conditions; The sixth data processing module is used in step 110: determining the spectral calibration position based on the position number of the maximum spectral line value under the different wavelength conditions.
[0008] Thirdly, embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the method described in any embodiment of the present invention.
[0009] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the methods described in any embodiment of the present invention.
[0010] This invention provides a spectral calibration method and apparatus for a single-lens imaging spectral system. Step 100: The controller first acquires the preset focal length parameter of the single lens, and precisely adjusts the relative distance between the single lens and the detector based on this focal length to ensure that the optical imaging meets the calibration requirements. Then, it controls the monochromator to start and complete the initialization operation, setting the initial calibration wavelength. Step 102: The controller sends control commands to the two-dimensional displacement platform, driving it to move smoothly according to a preset moving distance and step size. Simultaneously, it controls the detector to acquire images at different moving positions, recording the unique number corresponding to each acquisition position to achieve a one-to-one correspondence between the acquisition position and the number, facilitating subsequent data traceability and processing. The controller preprocesses the grayscale image data acquired by the detector at each position, removing noise interference, and then uses a preset fitting algorithm to perform fitting analysis on the grayscale data, extracting the position of the maximum spectral line corresponding to each acquisition position, and associating and storing this maximum value position with the acquisition position number recorded in step 102. Step 106: The controller gradually adjusts the initial calibration wavelength according to a preset wavelength increment, generating a new calibration wavelength to ensure the required calibration wavelength range and guarantee the integrity of the calibration data. Step 108: The controller controls the entire system to repeatedly execute steps 100 to 106, that is, to repeat the process of distance adjustment, position acquisition, data fitting, and wavelength adjustment until the calibration operation of all wavelengths within the preset wavelength range is completed, thereby obtaining the detector acquisition position number corresponding to the maximum spectral line value under different wavelength conditions, forming a complete wavelength-position number correspondence dataset. Step 110: Based on the above-obtained correlation data of multiple sets of wavelengths and corresponding spectral line maximum value position numbers, the controller finally determines the spectral calibration position. In this way, the present invention effectively solves the problem that single-lens imaging spectral systems cannot directly calibrate the spectral center wavelength, and can accurately and efficiently complete the calibration of the spectral center wavelength. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 A flowchart of a spectral calibration method for a single-lens imaging spectral system according to one embodiment is shown; Figure 2 This is a hardware architecture diagram of an electronic device provided in an embodiment of the present invention; Figure 3A structural diagram of a spectral calibration device for a single-lens imaging spectral system according to one embodiment is shown; Figure 4 A schematic diagram showing the absolute distance between a lens and a CCD according to one embodiment is shown; Figure 5 A schematic diagram of 0.520 μm calibration according to one embodiment is shown; Figure 6 A schematic diagram of 0.530 μm calibration according to one embodiment is shown; Figure 7 A schematic diagram of 0.540 μm calibration according to one embodiment is shown; Figure 8 A schematic diagram of 0.550 μm calibration according to one embodiment is shown; Figure 9 A schematic diagram of 0.560 μm calibration according to one embodiment is shown; Figure 10 A schematic diagram of 0.570 μm calibration according to one embodiment is shown; Figure 11 A schematic diagram of 0.580 μm calibration according to one embodiment is shown; Figure 12 A schematic diagram of 0.590 μm calibration according to one embodiment is shown; Figure 13 A schematic diagram of a standard spectrum of a mercury lamp according to one embodiment is shown; Figure 14 A schematic diagram showing the intensity curves of a mercury lamp at different locations according to one embodiment is provided. Figure 15 A schematic diagram of a calibration system according to one embodiment is shown. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0014] Please refer to Figure 1 This invention provides a spectral calibration method for a single-lens imaging spectral system. The method is applied to the controller of the calibration system, which includes a controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The methods include: Step 100: Based on the focal length of the single lens, adjust the distance between the single lens and the detector, control the monochromator to turn on, and initialize the wavelength; Step 102: Control the two-dimensional displacement platform to move at a preset distance to record the detector's acquisition positions and corresponding numbers; Step 104: Fit the grayscale data collected by the detector to obtain the position of the maximum spectral line and its corresponding number; Step 106: Adjust the initial wavelength according to the preset increase amount; Step 108: Repeat steps 100 to 106 to obtain the position numbers of the spectral line maximum values under different wavelength conditions; Step 110: Determine the spectral calibration location based on the position number of the maximum spectral line value under different wavelength conditions.
[0015] In this embodiment, step 100: The controller first acquires the preset focal length parameter of the single lens, and precisely adjusts the relative distance between the single lens and the detector according to the focal length to ensure that the optical imaging meets the calibration requirements; then, it controls the monochromator to start and complete the initialization operation, and sets the initial calibration wavelength. Step 102: The controller sends control commands to the two-dimensional displacement platform, driving the two-dimensional displacement platform to move smoothly according to the preset moving distance and step size, and synchronously controls the detector to acquire images at different moving positions, while recording the unique number corresponding to each acquisition position of the detector, realizing a one-to-one correspondence between the acquisition position and the number, which is convenient for subsequent data traceability and processing. The controller preprocesses the grayscale image data acquired by the detector at each position, removes noise interference, and uses a preset fitting algorithm to fit and analyze the grayscale data, extracts the position of the maximum spectral line corresponding to each acquisition position, and associates and stores the position of the maximum value with the acquisition position number recorded in step 102. Step 106: The controller gradually adjusts the initial calibration wavelength according to the preset wavelength increase, generates a new calibration wavelength, ensures the required calibration wavelength range, and guarantees the integrity of the calibration data. Step 108: The controller controls the entire system to repeatedly execute steps 100 to 106, that is, to repeat the process of distance adjustment, position acquisition, data fitting, and wavelength adjustment until the calibration operation of all wavelengths within the preset wavelength range is completed, thereby obtaining the detector acquisition position number corresponding to the maximum spectral line value under different wavelength conditions, forming a complete wavelength-position number correspondence dataset. Step 110: Based on the above-obtained correlation data of multiple sets of wavelengths and corresponding spectral line maximum value position numbers, the controller finally determines the spectral calibration position. In this way, the present invention effectively solves the problem that single-lens imaging spectral systems cannot directly calibrate the spectral center wavelength, and can accurately and efficiently complete the calibration of the spectral center wavelength.
[0016] In one embodiment of the present invention, determining the spectral calibration position based on the position numbering of the spectral line maximum values under different wavelength conditions includes: The positions of the spectral line maximum values under different wavelength conditions are fitted with the corresponding wavelengths to obtain the spectral calibration positions.
[0017] In this embodiment, the different wavelengths obtained by cyclic calibration are associated one-to-one with the position numbers of the maximum spectral line values corresponding to each wavelength. A preset fitting algorithm is used to fit the associated data. By fitting, an accurate functional relationship between wavelength and position number is established, thereby determining the accurate spectral calibration position.
[0018] In one embodiment of the present invention, the spectral calibration position is determined by the following formula: In the formula, For spectral calibration positions, λ is the wavelength.
[0019] In one embodiment of the present invention, the preset increase is 10 nanometers and the initial wavelength is 520 nanometers.
[0020] In this embodiment, the lens parameters are: diameter 50.8 mm, focal length 200 mm @ 587.6 nm, and material K9 glass. Calibration was performed at wavelengths of 0.520 μm, 0.530 μm, 0.540 μm, 0.550 μm, 0.560 μm, 0.570 μm, 0.580 μm, and 0.590 μm. The actual focal length values, focal length differences, and relative displacements from the designed focal length for each wavelength were calculated. The calculation results are shown in Table 1. Table 1 Wavelength (μm) Focal length (mm) Difference (mm) Relative displacement (mm) 0.520 198.7152 - -1.2848 0.530 198.9341 0.2189 -1.0659 0.540 199.1417 0.2076 -0.8583 0.550 199.3389 0.1972 -0.6611 0.560 199.5266 0.1877 -0.4734 0.570 199.7052 0.1785 -0.2948 0.580 199.8757 0.1705 -0.1243 As shown in Table 1, the difference between focal lengths decreases as the wavelength increases. Before calibration, it is necessary to determine the acquisition position and set the sampling interval. However, it is difficult to determine the acquisition position, and the difference between focal lengths is at the micrometer level, which further increases the difficulty of positioning. Therefore, in order to reduce the difficulty, a coarse adjustment is first performed, and the focal length distance is set to about 199mm. Then, the sampling is performed by moving the platform with a sampling interval of 50μm.
[0021] In this embodiment, the detector used in the experiment is still the Baumer SXG10, with an exposure time set to 4.73 ms and a gain of 1; the monochromator is an IHR320. First, the single lens and the displacement platform are fixed on the guide rail, and the absolute positions of the lens and the CCD are fixed, such as... Figure 4As shown. Then, a displacement platform is used to move the relative position. To ensure sufficient movement range, the initial position of the displacement platform is set at 10mm, the initial data acquisition point is set at 7mm, the ending point at 11mm, and the interval is 50μm. The acquired data is processed to obtain the corresponding position of each wavelength relative to the image plane, as shown below. Figure 4 As shown in Figures (5) to (12), these are calibration diagrams corresponding to wavelengths of 0.520 μm to 0.590 μm, respectively. Figure 5 As shown, its peak position is at 50.64. Taking an approximation of 50, this position corresponds to the image plane position at a wavelength of 0.520 μm. Figure 6 As shown, its peak position is at 46.42, which, approximating to 46, corresponds to the image plane position at a wavelength of 0.530 μm. (As shown...) Figure 7 As shown, its peak position is at 42, which corresponds to the image plane position at a wavelength of 0.540 μm. Figure 8 As shown, its peak position is at 38, which corresponds to the image plane position at a wavelength of 0.550 μm. Figure 9 As shown, its peak position is at 34.37, which, approximating to 34, corresponds to the image plane position at a wavelength of 0.560 μm. For example... Figure 10 As shown, its peak position is at 31, which corresponds to the image plane position at a wavelength of 0.570 μm. Figure 11 As shown, its peak position is at 28, which corresponds to the image plane position at a wavelength of 0.580 μm. Figure 12 As shown, its peak position is at 24, which corresponds to the image plane position at a wavelength of 0.590μm.
[0022] In this embodiment, the correspondence between different wavelengths and positions is obtained, and the number values are rounded, as shown in Table 2.
[0023] Table 2 Correspondence between wavelength and position Wavelength (μm) 0.520 0.530 0.540 0.550 0.560 0.570 0.580 0.590 Location number 51 46 42 38 34 31 28 24 Based on the data in the table above, the relationship between position and wavelength is fitted, and the fitting equation is obtained as follows: In the formula, For spectral calibration positions, λ is the wavelength.
[0024] The smaller the position number, the larger the distance between the CCD and the lens, i.e., the larger the image distance. In the experiment, the input was parallel light, at which point the image distance and the focal length were equal, and the calibration result was consistent with the variation law of the lens focal length.
[0025] In this embodiment, since mercury lamps have discrete spectral lines, their characteristic spectra can be used for comparative verification, and the accuracy of experimental and fitting results can be analyzed. The experimental steps are as follows: Mercury lamp data is collected using calibrated spectroscopic equipment to obtain the mercury lamp spectral lines; using the mercury lamp irradiation device, the CCD is moved at certain sampling intervals, recording and numbering each acquisition position; the data is fitted and correlated with the mercury lamp spectral lines to determine the relationship between the quasi-focal wavelength and the image plane. Data is collected from the mercury lamp using a marine optical spectrometer to obtain the mercury lamp spectrum, as shown below. Figure 13 As shown, the five characteristic peaks of the mercury lamp are located at 404.8 nm, 435.8 nm, 546.1 nm, 577.1 nm, and 579.2 nm, respectively. The collected data was processed and fitted to obtain the following results: Figure 14 The curve shown in the figure has the horizontal axis representing the location number and the vertical axis representing the light intensity.
[0026] In this embodiment, the mercury lamp has 5 characteristic spectral lines, but only 4 were actually collected. This is because the 577.1 nm and 579.2 nm spectral lines are approximately 2.1 nm apart, and the current system's spectral resolution is 3.2 nm @ 588 nm, making it impossible to distinguish the two characteristic peaks. According to the fitting formula, when p is 28, 41, 100, and 121, the calculated wavelength values are 578.3 nm, 542.5 nm, 432.6 nm, and 402.7 nm, respectively. Using the fitting formula, the corresponding positions of the standard mercury lamp spectral lines are found to be 27, 28, 40, 98, and 119, as shown in Tables 3 and 4.
[0027] Table 3 Mercury lamp wavelength (nm) 577.1 579.2 546.1 435.8 404.8 Fitted wavelength (nm) 578.3 578.3 542.5 432.6 402.7 Difference 1.2 -0.9 -3.5 -3.2 -2.1 actual location 28 28 41 100 121 Table 4 Mercury lamp wavelength (nm) 577.1 579.2 546.1 435.8 404.8 Fitting position 27 28 40 98 119 Difference 1 0 1 2 2 like Figure 2 , Figure 3 As shown, this embodiment of the invention provides a spectral calibration device for a single-lens imaging spectral system. The device embodiment can be implemented through software, hardware, or a combination of both. From a hardware perspective, such as... Figure 2 The diagram shown is a hardware architecture diagram of an electronic device containing a spectral calibration device for a single-lens imaging spectral system provided in an embodiment of the present invention. Except for... Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown, the electronic device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing packets. Taking software implementation as an example, such as... Figure 3 As shown, a device in a logical sense is formed by the CPU of the electronic device in which it is located reading the corresponding computer program from the non-volatile memory into the memory for execution.
[0028] like Figure 3 As shown in the figure, this embodiment provides a spectral calibration device for a single-lens imaging spectral system. The device is applied to the controller of the calibration system. The calibration system includes the controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The device includes: The first data processing module 300 is used in step 100: adjusting the distance between the single lens and the detector according to the focal length of the single lens, controlling the monochromator to turn on, and initializing the wavelength; The second data processing module 302 is used in step 102: controlling the two-dimensional displacement platform to move according to a preset distance to record the acquisition positions and corresponding numbers of the detector; The third data processing module 304 is used in step 104: to perform fitting processing on the grayscale image data collected by the detector to obtain the position of the maximum value of the spectral line and the corresponding number. The fourth data processing module 306 is used in step 106: adjusting the initial wavelength according to a preset increase amount; The fifth data processing module 308 is used for step 108: cyclically executing steps 100 to 106 to obtain the position number of the maximum value of the spectral line under different wavelength conditions; The sixth data processing module 310 is used for step 110: determining the spectral calibration position based on the position number of the maximum value of the spectral line under the different wavelength conditions.
[0029] In one embodiment of the present invention, the sixth data processing module 310 is configured to perform the following operations: The positions of the spectral line maximum values under different wavelength conditions are fitted with the corresponding wavelengths to obtain the spectral calibration positions.
[0030] In one embodiment of the present invention, the spectral calibration position is determined by the following formula: In the formula, The spectral calibration position is determined. λ is the wavelength.
[0031] In one embodiment of the present invention, the preset increase is 10 nanometers and the initial wavelength is 520 nanometers.
[0032] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on a spectral calibration device for a single-lens imaging spectral system. In other embodiments of the present invention, a spectral calibration device for a single-lens imaging spectral system may include more or fewer components than illustrated, or combine some components, split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0033] The information interaction and execution process between the modules in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific details can be found in the description of the method embodiment of the present invention, and will not be repeated here.
[0034] This invention also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements a spectral calibration method for a single-lens imaging spectral system according to any embodiment of this invention.
[0035] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program causes the processor to perform a spectral calibration method for a single-lens imaging spectral system according to any embodiment of this invention.
[0036] Specifically, a system or apparatus equipped with a storage medium may be provided, on which software program code implementing the functions of any of the embodiments described above is stored, and the computer (or CPU or MPU) of the system or apparatus may read and execute the program code stored in the storage medium.
[0037] In this case, the program code read from the storage medium can itself implement the function of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute part of the present invention.
[0038] Storage media embodiments for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer via a communication network.
[0039] Furthermore, it should be clear that not only can the program code read by the computer be executed, but also the operating system or other components operating on the computer can be instructed based on the program code to perform some or all of the actual operations, thereby realizing the function of any of the embodiments described above.
[0040] Furthermore, it is understood that the program code read from the storage medium is written to the memory set in the expansion board inserted into the computer or to the memory set in the expansion module connected to the computer. Then, based on the instructions of the program code, the CPU or other components installed on the expansion board or expansion module execute some and all of the actual operations, thereby realizing the functions of any of the embodiments described above.
[0041] It should be noted that, in this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.
[0042] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0043] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A spectral calibration method for a single-lens imaging spectral system, characterized in that, The method is applied to the controller of a calibration system, which includes the controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The method includes: Step 100: Adjust the distance between the single lens and the detector according to the focal length of the single lens, control the monochromator to turn on, and initialize the wavelength; Step 102: Control the two-dimensional displacement platform to move at a preset distance to record the acquisition positions and corresponding numbers of the detector; Step 104: Fit the grayscale data collected by the detector to obtain the position of the maximum spectral line and its corresponding number; Step 106: Adjust the initial wavelength according to the preset increase amount; Step 108: Repeat steps 100 to 106 to obtain the position numbers of the spectral line maximum values under different wavelength conditions; Step 110: Determine the spectral calibration position based on the position number of the maximum spectral line value under the different wavelength conditions.
2. The method according to claim 1, characterized in that, The determination of the spectral calibration location based on the position numbering of the spectral line maximum values under the different wavelength conditions includes: The positions of the spectral line maximum values under different wavelength conditions are fitted with the corresponding wavelengths to obtain the spectral calibration positions.
3. The method according to claim 2, characterized in that, The spectral calibration position is determined by the following formula: In the formula, The spectral calibration position is determined. λ is the wavelength.
4. The method according to claim 1, characterized in that, The preset increase is 10 nanometers, and the initial wavelength is 520 nanometers.
5. A spectral calibration device for a single-lens imaging spectral system, characterized in that, The device is used in the controller of a calibration system, which includes the controller and a monochromator, a collimator, a single lens, a detector, and a two-dimensional displacement platform of the detector connected in sequence. The device includes: The first data processing module is used in step 100: adjusting the distance between the single lens and the detector according to the focal length of the single lens, controlling the monochromator to turn on, and initializing the wavelength; The second data processing module is used in step 102: controlling the two-dimensional displacement platform to move according to a preset distance to record the acquisition positions and corresponding numbers of the detector; The third data processing module is used in step 104 to perform fitting processing on the grayscale image data collected by the detector to obtain the position of the maximum value of the spectral line and the corresponding number. The fourth data processing module is used in step 106: adjusting the initial wavelength according to a preset increase amount; The fifth data processing module is used for step 108: cyclically executing steps 100 to 106 to obtain the position numbers of the maximum spectral line values under different wavelength conditions; The sixth data processing module is used in step 110: determining the spectral calibration position based on the position number of the maximum spectral line value under the different wavelength conditions.
6. The apparatus according to claim 5, characterized in that, The determination of the spectral calibration location based on the position numbering of the spectral line maximum values under the different wavelength conditions includes: The positions of the spectral line maximum values under different wavelength conditions are fitted with the corresponding wavelengths to obtain the spectral calibration positions.
7. The apparatus according to claim 6, characterized in that, The spectral calibration position is determined by the following formula: In the formula, The spectral calibration position is determined. λ is the wavelength.
8. The apparatus according to claim 7, characterized in that, The preset increase is 10 nanometers, and the initial wavelength is 520 nanometers.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-4.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed in a computer, causes the computer to perform the method described in any one of claims 1-4.