Optical path adaptive method and control device, detection system and spectral detection method

By using the optical path adaptive method of the spectrometer and adjusting the squeezing motion with scanning data, the problem of inflexible optical path adjustment in spectrometer detection is solved, thus improving detection efficiency and accuracy.

CN115615934BActive Publication Date: 2026-04-21TIANYAN (TIANJIN) HIGH-TECH CO LTD FOSHAN BRANCH +3
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TIANYAN (TIANJIN) HIGH-TECH CO LTD FOSHAN BRANCH
Filing Date
2022-09-08
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing spectroscopic instruments lack flexibility in optical path adjustment during multi-path detection, affecting detection efficiency and accuracy.

Method used

By determining the optical path data through scanning data, the extrusion motion is automatically adjusted to adapt to different sample thicknesses, thus achieving optical path self-adaptation.

Benefits of technology

It improves the automation and efficiency of spectral detection, and enhances detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115615934B_ABST
    Figure CN115615934B_ABST
Patent Text Reader

Abstract

This invention relates to an optical path adaptive method and control device, detection system, spectral detection method, electronic device, and computer-readable storage medium, comprising the following steps: acquiring scanning data of a sample identification area; determining optical path data corresponding to the spectral detection process of the sample under test based on the scanning data; determining extrusion motion data based on the optical path data; and controlling the movement of an extruder relative to a carrier based on the extrusion motion data to extrude the sample under test to a thickness that meets the requirements of the optical path data. This improves the automation level, detection efficiency, and detection accuracy during the spectral detection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of spectral detection technology, and in particular to optical path adaptive methods and control devices, detection systems, spectral detection methods, electronic devices, and computer-readable storage media. Background Technology

[0002] During spectral detection, under fixed light source and sensor conditions, different types of samples typically require different optimal detection optical paths to ensure the necessary spectral signal intensity due to differences in their transmittance characteristics. Multi-path detection has become an important method for multi-sample compatible detection, expanding the application range of spectrometers. However, in practice, fixed (multiple) or steplessly adjustable optical paths are commonly used, leading to inflexible optical path adjustment and hindering the practical application of multi-path spectral detection. Summary of the Invention

[0003] To address the aforementioned problems, this invention proposes an optical path adaptive method and control device, detection system, spectral detection method, electronic device, and computer-readable storage medium. After determining the optical path data using scanning data, the invention automatically obtains the extrusion motion data based on the optical path data, thereby flexibly adjusting the optical path.

[0004] An optical path adaptive method is applicable to a spectrometer, the spectrometer comprising a carrier and a pressing member arranged at a relative interval, the pressing member being movable relative to the carrier in the interval direction to define the thickness of the sample to be measured between the two.

[0005] The method includes the following steps:

[0006] Acquire scan data of the sample identification area;

[0007] The optical path data corresponding to the spectral detection process of the sample under test is determined based on the scanning data.

[0008] Based on the optical path data, extrusion motion data is determined, and the movement of the extruder relative to the carrier is controlled according to the extrusion motion data to extrude the sample to be tested to a thickness that meets the requirements of the optical path data.

[0009] In one embodiment, determining the optical path data corresponding to the spectral detection process of the sample to be tested based on the scanning data includes the following steps:

[0010] Sample variety information is derived based on the scanned data;

[0011] When the preset database stores sample types corresponding to the sample variety information;

[0012] The optical path data is determined based on the optical path information corresponding to the sample type in the preset database.

[0013] In one embodiment, determining the optical path data corresponding to the spectral detection process of the sample to be tested based on the scanning data includes the following steps:

[0014] When the scan data indicates that there is no sample variety information in the sample identification area, and / or when the scan data yields sample variety information and there is no sample type corresponding to the sample variety information in the preset database;

[0015] The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data;

[0016] The optical path length data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process.

[0017] In one embodiment, determining the optical path data based on the spectral information of the sample collected by the spectrometer during the preliminary spectral detection process includes the following steps:

[0018] Obtain the information of the top N sample varieties with the highest similarity to the spectral information from the preset spectral database, and the optical path data is obtained by weighted averaging the preset optical path data of the N sample varieties, where N is a preset integer.

[0019] In one embodiment, controlling the spectrometer to perform preliminary spectral detection based on preset general spectral detection data includes the following steps:

[0020] The movement of the extruder in the spectrometer is controlled according to a preset first pressure value, so that when the pressure value N1 between the extruder and the sample to be tested reaches the first pressure value, spectral acquisition and spectral analysis are performed.

[0021] A spectral detection method for detecting the spectral information of a sample to be tested, including the aforementioned optical path adaptive method.

[0022] In one embodiment, the spectral detection method further includes the following steps:

[0023] The pressure value N2 between the extruder and the sample under test is obtained during the movement of the extruder based on the extrusion motion data.

[0024] When the extruder moves to the thickness of the sample to be tested that meets the requirements of the optical path data according to the extrusion motion data, the pressure value N2 is not greater than the preset second pressure value;

[0025] Control the spectrometer to perform the spectral acquisition steps;

[0026] After the spectral acquisition step is completed, the extruder is controlled to return to its initial position away from the carrier, and the imaging unit of the spectrometer is controlled to capture the image information of the sample to be tested.

[0027] In one embodiment, the spectral detection method further includes the following steps:

[0028] The pressure value N2 between the extruder and the sample under test is obtained during the movement of the extruder based on the extrusion motion data.

[0029] When the pressure value N2 is greater than the preset second pressure value;

[0030] The spectrometer stops executing the spectral acquisition step and controls the extruder to reset to its initial position away from the carrier. Simultaneously, the spectrometer's imaging unit captures image information of the sample under test.

[0031] An optical path adaptive control device, comprising:

[0032] The scanning data acquisition module is used to acquire scanning data of the sample identification area;

[0033] The first processing module determines the optical path data corresponding to the spectral detection process of the sample under test based on the scan data.

[0034] The second processing module determines extrusion motion data based on the optical path data, and controls the movement of the extruder relative to the carrier based on the extrusion motion data to extrude the sample to be tested to a thickness that meets the requirements of the optical path data.

[0035] A detection system includes a spectrometer and the aforementioned control device.

[0036] An electronic device includes a processor and a memory, the memory storing a computer program, the processor being configured to run the computer program to perform an optical path adaptive method as described above, or a spectral detection method as described above.

[0037] A computer-readable storage medium storing one or more computer programs configured to perform, at runtime, the optical path adaptive method as described above, or the spectral detection method as described above.

[0038] The above solution provides an optical path adaptive method and control device, detection system, spectral detection method, electronic device and computer-readable storage medium. It determines the optical path data in the spectral detection process based on the scanning data related to the sample identification area, and determines the extrusion motion data required for the extrusion movement process based on the optical path data. It flexibly adjusts the optical path and quickly and accurately obtains the movement target of the extrusion, thereby improving the automation level, detection efficiency and detection accuracy in the spectral detection process. Attached Figure Description

[0039] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a flowchart of the optical path adaptive method described in this embodiment;

[0042] Figure 2 This is a flowchart of the optical path adaptive method described in some other embodiments;

[0043] Figure 3 This is a flowchart of the optical path adaptive method described in some embodiments;

[0044] Figure 4 This is a flowchart of the spectral detection method described in this embodiment;

[0045] Figure 5 This is a schematic diagram of the optical path adaptive mechanism described in this embodiment;

[0046] Figure 6 for Figure 5 The exploded view of the optical path adaptive mechanism is shown.

[0047] Explanation of reference numerals in the attached figures:

[0048] 10. Optical path adaptive mechanism; 11. Extrusion component; 111. Pressure sensor; 12. Bearing component; 121. Barcode pasting area; 122. Sample placement position; 123. Detection window; 13. Scanning unit; 14. Drive unit; 141. Motor; 1411. Machine body; 1412. Main shaft; 15. Guide structure. Detailed Implementation

[0049] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a thorough understanding of the present invention. However, the present invention can be practiced in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0050] It should be understood that, although Figures 1 to 4 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 1 to 4 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0051] One embodiment provides an optical path adaptive method applicable to a spectrometer. The spectrometer includes an optical path adaptive mechanism 10, such as... Figure 5 and Figure 6 As shown, the optical path adaptive mechanism 10 includes a carrier 12 and a pressing member 11 arranged at a relative interval. The pressing member 11 is movable relative to the carrier 12 in the interval direction between them to define the thickness of the sample to be measured between them.

[0052] like Figure 1 As shown, the method includes the following steps:

[0053] Acquire scan data of the sample identification area;

[0054] Determine the optical path data corresponding to the spectral detection process of the sample under test based on the scanning data;

[0055] Based on the optical path data, the extrusion motion data is determined, and the movement of the extruder 11 relative to the carrier 12 is controlled according to the extrusion motion data to extrude the sample to be tested to a thickness that meets the requirements of the optical path data.

[0056] like Figure 5 and Figure 6 As shown, the carrier 12 is provided with a sample placement position 122, and the sample placement position 122 is provided with a detection window 123 for the detection light to pass through. The sample to be tested is placed in the sample placement position 122, so the thickness of the sample to be tested can be controlled by controlling the distance between the extruder 11 and the carrier 12.

[0057] Based on the scanning data related to the sample identification area, the optical path data in the spectral detection process is determined. Based on the optical path data, the extrusion motion data required for the movement of the extruder 11 is determined, thereby quickly and accurately obtaining the movement target of the extruder 11. This improves the automation level of the spectral detection process, increases the detection efficiency, and enhances the detection accuracy.

[0058] The sample identification area can hold items related to the sample, such as sample barcodes or the actual sample to be tested. These items indirectly reflect the optical path length during spectral detection of the sample, i.e., the optical path length data. The scanning data is the data obtained after scanning these items. The optical path length data corresponding to the sample detection process can be obtained by acquiring the scanning data of the sample identification area.

[0059] For example, in Figure 5 and Figure 6 The spectrometer shown has a barcode affixing area 121 for placing sample barcodes. This barcode affixing area 121 can be located on the carrier 12.

[0060] In other embodiments, the sample barcode may also be located on the sample bag of the sample to be tested. When the sample bag is placed on the sample placement position 122 of the carrier 12, the sample barcode on the sample bag is located in the barcode pasting area 121.

[0061] Obtaining scan data of the sample identification area includes the following steps:

[0062] Obtain the scan data of barcode pasting area 121.

[0063] Furthermore, such as Figure 5 and Figure 6 As shown, the spectrometer also includes a scanning unit 13, which is used to scan the barcode pasting area 121.

[0064] Obtaining the scan data of the barcode pasting area 121 can be achieved by controlling the scanning unit 13 to scan the barcode pasting area 121 to obtain the scan data.

[0065] Extrusion motion data refers to the data used to control the movement of the extruder 11 relative to the carrier 12 until the distance between them meets the optical path data requirements.

[0066] like Figure 5 and Figure 6 The spectrum analyzer shown also includes a drive unit 14, which drives the extruder 11 to move in the direction between the extruder 11 and the carrier 12. The direction between the extruder 11 and the carrier 12 is a first direction, and the drive unit 14 drives the extruder 11 to move relative to the carrier 12 in the first direction.

[0067] The drive unit 14 is started and stopped according to the extrusion motion data so that the extruder 11 can move to a distance between itself and the carrier 12 that meets the optical path data requirements, ensuring that the sample to be tested is extruded to a thickness that meets the optical path data requirements.

[0068] The specific drive unit 14 includes a motor 141. The body 1411 of the motor 141 is fixed relative to the bearing member 12 in a first direction. The main shaft 1412 of the motor 141 is arranged along the first direction. The main shaft 1412 and the extrusion member 11 are threaded together to form a screw and nut structure.

[0069] The spectrometer also includes a guide structure 15, which is located between the support member 12 and the extruder 11 and is fixed relative to the support member 12. The extruder 11 and the guide structure 15 are slidably engaged and can slide along the first direction under the drive of the drive unit 14.

[0070] By controlling the start and stop of the motor 141 based on the extrusion motion data, the extruder 11 can move relative to the carrier 12 to extrude the sample to be tested to a thickness that meets the optical path data requirements.

[0071] Furthermore, in some embodiments, such as Figure 2 As shown, determining the optical path length data corresponding to the spectral detection of the sample based on the scanning data includes the following steps:

[0072] Sample variety information is derived from the scanned data;

[0073] When the preset database stores sample types corresponding to sample variety information;

[0074] The optical path data is determined based on the optical path information corresponding to the sample type in the preset database.

[0075] When the database stores sample types corresponding to sample variety information, the optical path information of this sample type in the database can be used directly to determine the optical path data, and the extrusion motion data can be determined accordingly. Based on the extrusion motion data, the movement of the extruder 11 relative to the carrier 12 can be automatically controlled.

[0076] In other embodiments, such as Figure 2 As shown, determining the optical path length data corresponding to the spectral detection of the sample based on the scanning data includes the following steps:

[0077] When the scan data indicates that there is no sample variety information in the sample identification area, and / or when the scan data yields sample variety information, and there is no sample type corresponding to the sample variety information in the preset database;

[0078] The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data;

[0079] The optical path length data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process.

[0080] When no items related to the sample to be tested, such as a sample barcode or the actual sample, are placed in the sample identification area, the type of sample to be tested cannot be determined. In this case, the scanning data may not reflect the sample type, so the scanning data will indicate that there is no sample type information in the sample identification area.

[0081] If the database does not store the optical path data for the sample to be tested or the sample type information is unknown, a preliminary spectral detection can be performed first. The optical path data can be determined by the spectral information collected during this preliminary spectral detection process.

[0082] Preliminary spectral detection here refers to spectral detection performed by a spectrometer based on preset general spectral detection data. The spectral information obtained from preliminary spectral detection may not meet the actual detection requirements, but it still has some reference value, so it can be used to determine the optimal optical path length data for the sample to be tested.

[0083] like Figure 3 As shown, in one embodiment, determining the optical path length data based on the spectral information of the sample collected by the spectrometer during the preliminary spectral detection process includes the following steps:

[0084] Obtain the information of the top N sample varieties with the highest similarity to the spectral information from the preset spectral database, and then take the weighted average of the preset optical path data of the N sample varieties as the optical path data, where N is a preset integer.

[0085] The optical path length data of the N samples that are closest to the spectral information collected during the preliminary spectral detection process are weighted and averaged, and the resulting data is used as the optical path length data of the sample to be tested.

[0086] General-purpose spectral detection data can include preliminary optical path length measurements or pressure values ​​during the testing process. In other words, when the required optical path length data for the sample is unknown, preliminary testing can be conducted using general-purpose spectral detection data applicable to most samples.

[0087] like Figure 3 As shown, in some embodiments, controlling the spectrometer to perform preliminary spectral detection based on preset general spectral detection data includes the following steps:

[0088] The movement of the extruder 11 in the spectrometer is controlled according to the preset first pressure value, so that when the pressure value N1 between the extruder 11 and the sample to be tested reaches the first pressure value, spectral acquisition and spectral analysis are performed.

[0089] The general spectral detection data here includes the first pressure value. During the exploratory testing process, when the pressure value N1 between the extruder 11 and the sample to be tested reaches the first pressure value, the sample to be tested is compressed to a certain extent, and spectral acquisition and analysis are performed on the sample to be tested. The data obtained from spectral acquisition and analysis under the first pressure value can be used as the spectral information in the preliminary spectral detection process.

[0090] The specific value of the first pressure is not limited here, and can be set by the user in some cases.

[0091] like Figure 5 and 6 As shown, the optical path adaptive mechanism 10 also includes a pressure sensor 111, which is located between the extruder 11 and the carrier 12, and is used to detect the pressure value between the extruder 11 and the sample to be tested. When the pressure sensor 111 detects that the pressure value N1 reaches the first pressure value, preliminary spectral detection is performed on the sample to be tested.

[0092] In other embodiments, the general spectral detection data may also include the start and stop time of the drive unit 14. In other words, the spectral detector performs preliminary spectral detection and obtains spectral information after the extruder 11 is moved to a suitable position based on the start and stop time of the drive unit 14.

[0093] Furthermore, in some embodiments, a spectral detection method is provided for detecting the spectral information of a sample to be tested, including the aforementioned optical path adaptive method. During the spectral detection process, compression motion data is first obtained through the optical path adaptive method, enabling the extruder 11 to automatically adapt to the type of sample to be tested and move accordingly. Then, spectral detection is performed after the extruder 11 and the carrier 12 have compressed the sample to the target thickness.

[0094] Furthermore, in one embodiment, such as Figure 4 As shown, the spectral detection method also includes the following steps:

[0095] The pressure value N2 between the extruder 11 and the sample under test is obtained during the extrusion motion data.

[0096] When the extruder 11 moves to the thickness of the sample to be tested that meets the requirements of the optical path data according to the extrusion motion data, the pressure value N2 is not greater than the preset second pressure value;

[0097] Control the spectrometer to perform the spectral acquisition steps.

[0098] This can be understood as a warning value. When the extruder 11 compresses the sample to be tested to the target thickness according to the extrusion motion data, if the pressure value N2 between the extruder 11 and the sample to be tested has not exceeded the second pressure value, it proves that the sample to be tested or the sample bag is within the normal stress range and can be subjected to spectral detection. Therefore, under this condition, the spectrometer is controlled to perform the spectral detection step on the sample to be tested.

[0099] Furthermore, after the spectral acquisition step is completed, the process also includes controlling the extruder 11 to return to its initial position away from the support 12 and controlling the imaging unit of the spectrometer to capture image information of the sample to be tested.

[0100] In another embodiment, Figure 4 As shown, the spectral detection method also includes the following steps:

[0101] The pressure value N2 between the extruder 11 and the sample under test is obtained during the extrusion motion data.

[0102] When the pressure value N2 is greater than the preset second pressure value;

[0103] The spectrometer stops executing the spectral acquisition step and controls the extrusion member 11 to reset to its initial position away from the support member 12, while simultaneously controlling the imaging unit of the spectrometer to capture image information of the sample to be tested.

[0104] This can be understood as follows: if, during the movement of the extruder 11 according to the extrusion motion data, the pressure value N2 exerted by the extruder 11 on the sample to be tested is greater than the second pressure value, it proves that the force exerted on the sample to be tested is about to exceed the force range of the sample or sample bag. To avoid the sample bag bursting, the spectral detection step is stopped, and the extruder 11 is reset to its initial position. The amount of sample to be tested at the sample placement position 122 can be further adjusted before performing spectral detection again.

[0105] Furthermore, when the preset database stores sample types corresponding to sample variety information;

[0106] Qualitative and quantitative analyses were performed after spectral acquisition.

[0107] If the qualitative analysis is normal but the quantitative analysis is abnormal, the test results can be saved and marked as questionable.

[0108] When there is no sample type corresponding to the sample variety information in the preset database;

[0109] Quantitative analysis is performed instead of qualitative analysis after spectral acquisition.

[0110] In this case, the results of quantitative analysis can be saved, and the test results can be marked as questionable.

[0111] Furthermore, in some embodiments, an optical path adaptive control device is provided, comprising:

[0112] The scanning data acquisition module is used to acquire scanning data of the sample identification area;

[0113] The first processing module determines the optical path data corresponding to the spectral detection process of the sample under test based on the scanning data.

[0114] The second processing module determines the extrusion motion data based on the optical path data, and controls the movement of the extruder 11 relative to the carrier 12 according to the extrusion motion data to extrude the sample to be tested to the thickness required by the optical path data.

[0115] In some embodiments, the first processing module includes a first sub-processing module to derive sample variety information based on the scan data;

[0116] When the preset database stores sample types corresponding to sample variety information;

[0117] The optical path data is determined based on the optical path information corresponding to the sample type in the preset database.

[0118] The first processing module also includes a second sub-processing module, used when the scan data indicates that there is no sample variety information in the sample identification area;

[0119] The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data;

[0120] The optical path length data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process.

[0121] The first processing module also includes a third sub-processing module, which is used to scan data to obtain sample variety information, and when there is no sample type corresponding to the sample variety information in the preset database;

[0122] The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data;

[0123] The optical path length data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process.

[0124] Specific limitations regarding the optical path adaptive control device can be found in the limitations of the optical path adaptive method described above, and will not be repeated here. The various modules in the aforementioned optical path adaptive control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division; other division methods may be used in actual implementation.

[0125] A detection system includes a spectrometer and the control device described above. The spectrometer can operate under the control of the control device. The spectrometer can be any of the spectrometers described above.

[0126] An electronic device includes a processor and a memory, the memory storing a computer program, and the processor being configured to run the computer program to perform the optical path adaptive method described above, or the spectral detection method described above.

[0127] A computer-readable storage medium storing one or more computer programs configured to perform, at runtime, the optical path adaptive method described above, or the spectral detection method described above.

[0128] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the methods described above.

[0129] In the description of this invention, it should be understood that "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0130] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. An optical path adaptive method, characterized in that, The optical path adaptive method is applicable to a spectrometer, which includes a carrier and a pressing member arranged at a relative interval. The pressing member can move relative to the carrier in the interval direction to limit the thickness of the sample to be measured between them. The method includes the following steps: Acquire scan data of the sample identification area; The optical path data corresponding to the spectral detection process of the sample under test is determined based on the scanning data. Based on the optical path data, the extrusion motion data is determined, and the movement of the extruder relative to the carrier is controlled according to the extrusion motion data to extrude the sample to be tested to a thickness that meets the requirements of the optical path data. The step of determining the optical path data corresponding to the spectral detection of the sample based on the scanning data includes the following steps: When the scan data indicates that there is no sample barcode in the sample identification area, and / or when the scan data yields sample variety information but there is no sample type corresponding to the sample variety information in the preset database, the following steps are performed: The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data; The optical path data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process, including: Obtain the information of the top N sample varieties with the highest similarity to the spectral information from the preset spectral database, and use the preset optical path data of the N sample varieties as the optical path data by weighted average, where N is a preset integer.

2. The optical path adaptive method according to claim 1, characterized in that, Determining the optical path data corresponding to the spectral detection process of the sample based on the scanning data includes the following steps: Sample variety information is derived based on the scanned data; When the preset database stores sample types corresponding to the sample variety information; The optical path data is determined based on the optical path information corresponding to the sample type in the preset database.

3. The optical path adaptive method according to claim 1, characterized in that, The preliminary spectral detection controlled by the spectrometer based on preset general spectral detection data includes the following steps: The movement of the extruder in the spectrometer is controlled according to a preset first pressure value, so that when the pressure value N1 between the extruder and the sample to be tested reaches the first pressure value, spectral acquisition and spectral analysis are performed.

4. A spectral detection method for detecting the spectral information of a sample to be tested, characterized in that, Includes the optical path adaptive method according to any one of claims 1 to 3.

5. The spectral detection method according to claim 4, characterized in that, The spectral detection method further includes the following steps: The pressure value N2 between the extruder and the sample under test is obtained during the movement of the extruder based on the extrusion motion data. When the extruder moves to the thickness of the sample to be tested that meets the requirements of the optical path data according to the extrusion motion data, the pressure value N2 is not greater than the preset second pressure value; Control the spectrometer to perform the spectral acquisition steps; After the spectral acquisition step is completed, the extruder is controlled to return to its initial position away from the carrier, and the imaging unit of the spectrometer is controlled to capture the image information of the sample to be tested.

6. The spectral detection method according to claim 4, characterized in that, The spectral detection method further includes the following steps: The pressure value N2 between the extruder and the sample under test is obtained during the movement of the extruder based on the extrusion motion data. When the pressure value N2 is greater than the preset second pressure value; The spectrometer stops executing the spectral acquisition step and controls the extruder to reset to its initial position away from the carrier. Simultaneously, the spectrometer's imaging unit captures image information of the sample under test.

7. An optical path adaptive control device, characterized in that, include: The scanning data acquisition module is used to acquire scanning data of the sample identification area; The first processing module determines the optical path data corresponding to the spectral detection process of the sample under test based on the scan data. The second processing module determines the extrusion motion data based on the optical path data, and controls the movement of the extruder relative to the carrier based on the extrusion motion data to extrude the sample to be tested to a thickness that meets the requirements of the optical path data. The first processing module includes a first sub-processing module and a second sub-processing module; The first sub-processing module is used to derive sample variety information based on the scan data; The second sub-processing module is used when the scan data indicates that there is no sample variety information in the sample identification area; The spectrometer is controlled to perform preliminary spectral detection based on preset general spectral detection data; The optical path length data is determined based on the spectral information of the sample to be tested collected by the spectrometer during the preliminary spectral detection process.

8. A detection system, characterized in that, It includes a spectrometer and the control device as described in claim 7.

9. An electronic device comprising a processor and a memory, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the optical path adaptive method as described in any one of claims 1 to 3, or the spectral detection method as described in any one of claims 4 to 6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more computer programs configured to execute, when run, the optical path adaptive method as described in any one of claims 1 to 3, or the spectral detection method as described in any one of claims 4 to 6.

Citation Information

Patent Citations

  • Liquid sample stand suitable for terahertz time-domain spectral measurement and method thereof

    CN102645404A

  • Liquid absorbance testing device and method

    CN104596961A

  • Infrared testing method for attenuated total reflection

    CN105527253A

  • Improved motorized variable path length cell for spectroscopy

    CN105745527A

  • Automatic analyzing device

    JP1985183560A