NMR sample detection system
By using a translucent injection dial and image acquisition module in the NMR sample detection system, combined with the light source and processing module, the problem of traditional detection systems being susceptible to strong magnetic field interference is solved, and more efficient and accurate sample recognition is achieved.
Patent Information
- Application Number
- CN202110307528.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-23
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-03-23
AI Technical Summary
In traditional nuclear magnetic resonance sample detection systems, the method of detecting whether there are samples in the sample tank through sensors is susceptible to strong magnetic field interference, and the installation and wiring are difficult, and the identification efficiency is low.
Using a combination of a translucent injection dial, an image acquisition module, a light source and a processing module, a sample state image is obtained through the image acquisition module, and a brightness and non-brightness area is formed using the light source. The processing module identifies whether there is a nuclear magnetic resonance sample in the injection tank according to the preset parameters.
It avoids the detection results being disturbed by strong magnetic fields, improves the accuracy and identification efficiency of the detection results, and reduces the installation and wiring of the sensor.
Smart Images

Figure CN115112701B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of nuclear magnetic resonance technology, and in particular to a nuclear magnetic resonance sample detection system. Background Art
[0002] As an important analytical detection method, NMR has been widely used in the fields of drug development, food safety, medical diagnosis, metabolomics, etc. In order to speed up the detection efficiency of samples, automatic and batch detection of samples is an important feature of modern NMR instruments, which requires that NMR detection instruments have a series of automatic detection and automatic control technologies, including automatic detection and control technologies such as sample loading and unloading, tuning, field shimming, and field locking.
[0003] Modern NMR spectrometers are generally equipped with automatic sampling systems. The samples to be tested are placed in the sample slot of the automatic sampler. The transmission device of the automatic sampler then transfers or grabs the samples to the top of the sample tube. The pneumatic device in the automatic sampling system then controls the samples to slowly descend to the target detection position. In the automatic sampling system, after the batches of samples to be tested are placed, the detection of all samples to be tested can be fully automatic without any manual intervention. The prerequisite for automatic sampling is to accurately determine whether there are samples to be tested in each sample slot of the automatic sampler.
[0004] However, in the traditional technical solution, corresponding sensors are installed in the sample slots to detect whether there are samples to be tested in each sample slot of the automatic sampler. The detection results obtained in this way are not only easily interfered by strong magnetic fields, but also increase the difficulty of sensor installation and wiring, and also reduce the recognition efficiency of determining whether there are samples to be tested in each sample slot. Summary of the invention
[0005] The present application provides a nuclear magnetic resonance sample detection system, which alleviates the technical problem that the detection result of determining whether there is a sample to be tested in each injection slot is easily disturbed by a strong magnetic field.
[0006] The present application provides a nuclear magnetic resonance sample detection system, which includes a light-transmitting sampling dial, an image acquisition module, a light source and a processing module; the light-transmitting sampling dial is provided with an opaque positioning block and at least one annularly distributed sampling slot, the sampling slot is used to carry a non-light-transmitting rotor, the non-light-transmitting rotor is loaded with a nuclear magnetic resonance sample, the opaque positioning block is used to locate an initial numbered sampling slot, and the initial numbered sampling slot is one of the sampling slots; the image acquisition module is located on one side of the light-transmitting sampling dial and on the center line of the light-transmitting sampling dial, and is used to acquire a sample state image of the light-transmitting sampling dial; the light source is located on the other side of the light-transmitting sampling dial, and is used to form a brightness area and a non-brightness area in the sample state image; the processing module is connected to the image acquisition module, and is used to identify whether there is a nuclear magnetic resonance sample in the sampling slot with a corresponding number according to preset parameters and the received sample state image.
[0007] Optionally, the light-proof positioning block is an equilateral triangle; the first vertex of the light-proof positioning block, the center of the light-transmitting injection dial and the center of the initial number injection slot are located on the same straight line; the straight line is perpendicular to the bottom edge of the light-proof positioning block; the bottom edge does not intersect the first vertex.
[0008] Optionally, the preset parameters include at least one of a first distance, a radius of a light-transmitting injection dial, a radius of an injection slot, a side length of an opaque positioning block, and an image scaling ratio; the first distance is the distance from the image acquisition module to the light-transmitting injection dial; the image scaling ratio is the ratio of the actual size of any physical object in the nuclear magnetic resonance sample detection system to the image size of the physical object in the sample status image; and the first distance is linearly related to the image scaling ratio.
[0009] Optionally, the preset parameters also include a preset grayscale threshold; the processing module binarizes the sample state image according to the comparison result of the grayscale value of each pixel in the sample state image with the preset grayscale threshold to obtain a processed sample state image; the grayscale value of each pixel in the processed sample state image is one of a first grayscale value and a second grayscale value, the first grayscale value is a grayscale value of 0, and the second grayscale value is a grayscale value of 255.
[0010] Optionally, the processing module determines a first actual position range of the opaque positioning block in the processed sample status image based on a first quantity ratio and multiple first estimated position ranges of the opaque positioning block in the processed sample status image; the first quantity ratio is the result of dividing the number of pixels having a first grayscale value by the number of pixels within the first estimated position range.
[0011] Optionally, the preset parameters also include a second distance; the processing module determines at least one second actual position range of the injection slot in the processed sample status image based on the interval angle between two adjacent injection slots, the second distance, the image zoom ratio and the first actual position range; the second distance is the distance between the center of the injection slot and the center of the translucent injection dial.
[0012] Optionally, the processing module determines one of the injection slots as the initial numbered injection slot in the processed sample state image according to the relative position relationship between the first actual position range and the second actual position range.
[0013] Optionally, the processing module determines the corresponding numbers of the injection slots other than the initial numbered injection slots according to the numbering arrangement direction and the positioning of the initial numbered injection slots in the processed sample state image; the numbering arrangement direction is one of a clockwise direction and a counterclockwise direction.
[0014] Optionally, the processing module determines whether there is a nuclear magnetic resonance sample in the sampling slot based on a second quantity ratio and multiple second estimated position ranges; the second quantity ratio is the result of dividing the number of pixels with the first grayscale value by the number of pixels within the second estimated position range.
[0015] Optionally, the processing module obtains a plurality of corresponding first quantity ratios based on the plurality of first estimated position ranges, and determines a first estimated position range corresponding to a larger one of the plurality of first quantity ratios as the first actual position range.
[0016] The nuclear magnetic resonance sample detection system provided by the present application obtains a sample status image of a light-transmitting injection dial through an image acquisition module, and forms a brightness area and a non-brightness area in the sample status image. Based on this, the processing module can identify the corresponding number of the injection slot and whether there is a nuclear magnetic resonance sample according to preset parameters; the corresponding number of the injection slot and whether there is a nuclear magnetic resonance sample can be identified at one time by optical means, thereby avoiding interference of the detection results by strong magnetic fields, which not only improves the accuracy of the detection results, but also improves the recognition efficiency, and also avoids the installation of the sensor and its wiring work. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0018] Figure 1 A schematic diagram of the structure of a nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0019] Figure 2 Another structural schematic diagram of the nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0020] Figure 3 This is a schematic diagram of the first structure of a light-transmitting sampling dial in the nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0021] Figure 4 A schematic diagram of the process flow of a nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0022] Figure 5 This is a schematic diagram of the second structure of the light-transmitting sampling dial in the nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0023] Figure 6 This is a schematic diagram of the third structure of the light-transmitting sampling dial in the nuclear magnetic resonance sample detection system provided in an embodiment of the present application.
[0024] Figure 7 This is a fourth structural schematic diagram of a light-transmitting sampling dial in the nuclear magnetic resonance sample detection system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0026] See also Figures 1 to 7 ,like Figure 1 and Figure 2 As shown, this embodiment provides a nuclear magnetic resonance sample detection system, which includes a light-transmitting sample dial 20, an image acquisition module 30, a light source 10 and a processing module 40. The light-transmitting sample dial 20 is provided with an opaque positioning block 60 and at least one annularly distributed sample slot 21, the sample slot 21 is used to carry a non-light-transmitting rotor, and the non-light-transmitting rotor is loaded with a nuclear magnetic resonance sample 22. The opaque positioning block 60 is used to locate an initial numbered sample slot, and the initial numbered sample slot is one of the sample slots 21. The image acquisition module 30 is located on one side of the light-transmitting sample dial 20 and on the center line of the light-transmitting sample dial 20, and is used to obtain a sample state image of the light-transmitting sample dial 20. The light source 10 is located on the other side of the light-transmitting sample dial 20, and is used to form a brightness area and a non-brightness area in the sample state image. The processing module 40 is connected to the image acquisition module 30, and is used to identify whether there is a nuclear magnetic resonance sample 22 in the corresponding numbered sample slot 21 according to preset parameters and the received sample state image.
[0027] It can be understood that the nuclear magnetic resonance sample detection system provided in this embodiment obtains the sample status image of the translucent sampling dial 20 through the image acquisition module 30, and forms brightness areas and non-brightness areas in the sample status image. Based on this, the processing module 40 can identify the corresponding number of the sampling slot 21 and whether there is a nuclear magnetic resonance sample 22 according to preset parameters; the corresponding number of the sampling slot 21 and whether there is a nuclear magnetic resonance sample 22 can be identified at one time by optical means, thereby avoiding the interference of the detection result by the strong magnetic field, which not only improves the accuracy of the detection result, but also improves the recognition efficiency, and also avoids the installation of the sensor and its wiring work.
[0028] It should be noted that the light-transmitting sample-feeding dial 20 may be, but is not limited to, circular, and may also be rectangular or long. When the light-transmitting sample-feeding dial 20 is circular, its center is the center of the circle. When the light-transmitting sample-feeding dial 20 is rectangular or long, its center is the intersection of the diagonals.
[0029] The image acquisition module 30 may be, but not limited to, a camera or a video camera, and may also be a digital camera, etc. The processing module 40 may be, but not limited to, a computer with built-in image recognition software, and may also be a chip capable of executing various image processing in this application.
[0030] In one embodiment, the nuclear magnetic resonance sample detection system may further include an automatic sample injector 200 and a support mechanism 50. The light-transmitting sample injector dial 20 is placed in the automatic sample injector 200, and the light source 10 is located between the bottom of the automatic sample injector 200 and the light-transmitting sample injector dial 20. One end of the support mechanism 50 is fixed to one side of the automatic sample injector 200, and the other end of the support mechanism 50 is connected to the image acquisition module 30. Specifically, the support mechanism 50 is detachably connected to the image acquisition module 30.
[0031] In one embodiment, the light-proof positioning block 60 is detachably disposed on the surface of the light-transmitting sample dial 20. For example, it can be made into an equilateral triangle using a light-proof adhesive layer and then bonded to the surface of the light-transmitting sample dial 20. It can also be made into an equilateral triangle structure using a light-proof material and then bonded to the surface of the light-transmitting sample dial 20 through an adhesive layer. The adhesive layer can be a double-sided adhesive.
[0032] In one embodiment, the light-proof positioning block 60 is an equilateral triangle; the first vertex of the light-proof positioning block 60, the center A of the light-transmitting injection dial 20, and the center of the initial numbered injection slot are located on the same straight line; the straight line is perpendicular to the bottom edge of the light-proof positioning block 60; the bottom edge does not intersect the first vertex.
[0033] In one embodiment, the preset parameters include at least one of a first distance, a radius of the light-transmitting injection dial 20, a radius of the injection slot 21, a side length of the opaque positioning block 60, and an image scaling ratio; the first distance is the distance from the image acquisition module 30 to the light-transmitting injection dial 20; the image scaling ratio is the ratio of the actual size of any physical object in the nuclear magnetic resonance sample detection system to the image size of the physical object in the sample status image; and the first distance is linearly related to the image scaling ratio.
[0034] In summary, the conventional detection system reduces the sample placement and detection efficiency because one sensor can only detect the sample state in one light-transmitting sample feeding dial 20. Based on this, the present embodiment improves the detection efficiency of the sample state by light collection and image processing.
[0035] like Figure 1 and Figure 2 As shown, the working process of the nuclear magnetic resonance sample detection system is as follows: the camera acquires optical information of the light-transmitting sample feeding dial 20. It can be understood that the automatic sample feeder 200 includes the light-transmitting sample feeding dial 20; then, in response to the request of the computer, the camera outputs the corresponding sample status image to the computer; finally, the computer identifies whether the sample feeding slots 21 with different numbers are loaded with nuclear magnetic resonance samples 22 according to the sample status image.
[0036] It should be noted that the structure of the entire device is relatively simple. A light source 10 is placed at the bottom of the automatic sample injector 200, and a camera is installed above the automatic sample injector 200. The camera is connected to a computer for processing image information.
[0037] like Figure 2 As shown, the nuclear magnetic resonance sample detection system includes four main components: an automatic sampler 200, an external light source 10, a camera, and a computer. Among them, the automatic sampler 200 is used to hold the nuclear magnetic resonance sample 22 to be detected. The external light source 10 is placed inside the automatic sampler 200 to increase the internal environment brightness of the automatic sampler 200. The camera is installed just above the automatic sampler 200 to capture the sample state image of the automatic sampler 200. The computer is connected to the camera, and the sample state image captured by the camera can be processed by the image recognition software or processing instructions installed in the computer to realize the recognition of the state of the injection slot. The system sends the sample state image of the automatic sampler 200 captured by the camera to the computer for processing, and the computer can locate the position of the light-proof positioning block 60 through the image recognition software.
[0038] like Figure 3As shown, a detachable opaque positioning block 60 is provided on the surface of the translucent sample dial 20 in the automatic sampler 200. The opaque positioning block 60 is an equilateral triangle structure. The opaque positioning block 60 can be placed on the surface of the translucent sample dial 20 and point to the No. 1 sample slot, and is used to determine the order of the sample slots 21 during the image recognition process. For example, the positioning block points to the No. 1 sample slot, so according to the ratio of the real object to the picture, the position of the No. 1 sample slot in the picture can be located, and the sample slots 21 are evenly distributed in a circle in order, and the computer can also calculate the specific positions of the remaining sample slots 21. Since the sample slot 21 cannot penetrate the light of the internal light source 10 after the nuclear magnetic resonance sample 22 is present, a corresponding brightness area and / or non-brightness area can be formed in the sample state image, and the computer determines whether the sample slot 21 has the nuclear magnetic resonance sample 22 through the light and dark information in the sample state image. A specific method may be that the computer calculates the ratio of the number of pixels with a gray value of 0 in the injection slot 21 area to the total number of pixels in the single injection slot 21 area, and when the ratio is greater than a threshold, it is determined that there is a nuclear magnetic resonance sample 22. Similarly, the above-mentioned light-proof positioning block 60 can also be identified based on this method, so that the computer can determine the state and number of the injection slot 21.
[0039] like Figure 4 As shown, the workflow of the nuclear magnetic resonance sample detection system is as follows: first, the system is initialized. Then, the image acquisition module 30 takes pictures, and transmits the obtained sample state image to the processing module 40, and the processing module 40 performs binarization processing on the sample state image. Then, the processing module 40 identifies the opaque positioning block 60 and the identification of the injection slot 21 according to the sample state image after the binarization processing. Finally, the processing module 40 calculates the state of the injection slot 21 and obtains the number and state of the injection slot 21.
[0040] It is understandable that the camera in this embodiment uses optical detection, which is not affected by the strong magnetic field of the automatic sampler 200. In addition, by adopting the image recognition method, all the sample injection slots 21 can be recognized at once, avoiding the need to install multiple sensor devices.
[0041] Specifically, Figure 5 As shown, in this embodiment, a 12-position light-transmitting sample dial 20 can be used, that is, the light-transmitting sample dial 20 has sample slots 21 numbered 1 to 12, and nuclear magnetic resonance samples 22 are placed in the sample slots 21 numbered 1, 4, and 5. The system initialization of the nuclear magnetic resonance sample detection system is specifically as follows:
[0042] The camera position is adjusted so that the central axis of the camera coincides with the central axis of the light-transmitting sample dial 20, wherein the height H from the camera to the light-transmitting sample dial 20, a photo is taken by the camera, and the image recognition software in the processing module 40 can measure the radius r of the light-transmitting sample dial 20 in the photo, and EFG are the three vertices of the opaque positioning block 60. Among them, the center of the circle of the No. 1 sampling slot, the vertex E of the opaque positioning block 60, and the center of the circle A of the light-transmitting sample dial 20 are on the same straight line, and the bottom edge FG of the opaque positioning block 60 is perpendicular to this straight line. Input the actual side length L of the opaque positioning block 60, the actual distance D from the opaque positioning block 60 to the center of the circle A, the actual radius R of the light-transmitting sample dial 20, the actual radius R1 of the sampling slot 21, and the actual distance D1 from the center of the sampling slot 21 to the center of the circle A of the light-transmitting sample dial 20 in the computer. Then, according to the ratio of the radius r of the transparent sampling dial 20 in the sample state image and its actual radius R, an image scaling ratio a=r / R corresponding to the height H is obtained. It can be understood that the same height H can be obtained only once. Then, based on the image scaling ratio, the length of the corresponding size in the sample state image is converted, for example, the side length l=a*L of the opaque positioning block 60 in the sample state image. The distance d=a*D from the positioning block to the center A in the sample state image. The radius r1=a*R1 of the sampling slot 21 in the sample state image. The distance d1=a*D1 from the center of the sampling slot 21 to the center A of the transparent sampling dial 20 in the sample state image. For example, in one embodiment, H=40cm, a=0.5, R=30cm, R1=2.5cm, L=8cm, D=12cm, D1=27cm.
[0043] In one embodiment, the preset parameters also include a preset grayscale threshold; the processing module 40 binarizes the sample state image according to the comparison result of the grayscale value of each pixel in the sample state image with the preset grayscale threshold to obtain a processed sample state image; the grayscale value of each pixel in the processed sample state image is one of a first grayscale value and a second grayscale value, the first grayscale value is a grayscale value of 0, and the second grayscale value is a grayscale value of 255.
[0044] Specifically, the specific method of binarization processing can be: the camera takes a new photo, and the grayscale value of each pixel in the new photo is recalculated and assigned. For example, the preset grayscale threshold T is 175 grayscale values, and the grayscale value of the pixel in the new photo whose grayscale value is greater than T is assigned to 255. It can be understood that the pixel with a grayscale value of 255 is displayed as white in the new photo; the grayscale value of the pixel in the new photo whose grayscale value is less than or equal to T is assigned to 0 (black). It can be understood that the pixel with a grayscale value of 0 is displayed as black in the new photo. After the binarization processing method, the new color picture will be processed into a black and white picture.
[0045] In one embodiment, the processing module 40 determines a first actual position range of the opaque positioning block 60 in the processed sample status image based on a first quantity ratio and multiple first estimated position ranges of the opaque positioning block 60 in the processed sample status image; the first quantity ratio is the result of dividing the number of pixels having a first grayscale value by the number of pixels within the first estimated position range.
[0046] In one embodiment, the processing module 40 obtains a plurality of corresponding first quantity ratios based on the plurality of first estimated position ranges, and determines a first estimated position range corresponding to a larger one of the plurality of first quantity ratios as the first actual position range.
[0047] Specifically, Figure 6 As shown, the position of the opaque positioning block 60 in the black-and-white image can be identified based on the black-and-white image obtained above. First, locate the center of the image, i.e., the center A of the transparent sampling dial 20. The specific values of d and l in the black-and-white image can be calculated based on the image scaling ratio. Then, the pixel points in the equilateral triangle structure at the initial position P in the image are obtained. The equilateral triangle represents the possible position of the positioning block in the image and the computer records this position as 0 (the angle of the perpendicular line of the equilateral triangle relative to the horizontal line AB). Then, the gray value information of the pixel points within the equilateral triangle range at this position is counted, in a manner of calculating the ratio of the number of pixel points with a gray value of 0 (black) to the number of pixel points within the equilateral triangle range, and saving this ratio value ratio1 and angle information position1. After the calculation is completed, the computer will rotate the equilateral triangle clockwise by 2 degrees with A as the center to obtain the possible position of the second equilateral triangle, and record this angle information as 2. In the same manner as above, the second set of data ratio2 and position2 are calculated and saved until the equilateral triangle is rotated 360° to obtain 180 sets of data. Since the positioning block is made of black opaque material and the dial of the automatic sampler 200 is made of translucent material, there will be a group of data with ratio=1 in the 180 groups of data, indicating that the grayscale values of all pixels in the equilateral triangle area are all equal to 0, and then this group of data corresponds to the actual position of the opaque positioning block 60 in the image. However, due to the existence of errors, a group of data with the largest ratio value ratio will be screened out from the 180 groups of data to obtain the angle information position, which is the actual angle of the opaque positioning block 60. Based on this, the position of the opaque positioning block 60 can be determined. For example, in this example, the maximum ratio value ratio=0.9972 and the angle information position=180 degrees can be obtained.
[0048] In one embodiment, the preset parameters also include a second distance; the processing module 40 determines at least one second actual position range of the injection slot 21 in the processed sample status image based on the interval angle between two adjacent injection slots 21, the second distance, the image zoom ratio and the first actual position range; the second distance is the distance between the center of the injection slot 21 and the center A of the transparent injection dial 20.
[0049] In one embodiment, the processing module 40 determines one of the injection slots 21 as the initial number injection slot in the processed sample state image according to the relative position relationship between the first actual position range and the second actual position range.
[0050] In one embodiment, the processing module 40 determines the corresponding numbers of the injection slots 21 other than the initial numbered injection slots according to the numbering arrangement direction and the positioning of the initial numbered injection slots in the processed sample status image; the numbering arrangement direction is one of a clockwise direction and a counterclockwise direction.
[0051] Specifically, Figure 7 As shown, the position of the injection slot 21 in the black-and-white image is marked: Similarly, the radius r1=R1*a of the injection slot 21 in the black-and-white image and the distance d1=D1*a from the center of the injection slot 21 to the center A of the transparent injection dial 20 are calculated according to the image scaling ratio; at the same time, according to the angle information position obtained above, the position of the No. 1 injection slot can be confirmed, and the No. 1 injection slot can be marked in the black-and-white image, which is a circle with a radius of r1. With the center of the black-and-white image as the center of the circle, the marked No. 1 injection slot is rotated α degrees in a clockwise direction, and the second circle can be marked, and the number of the second circle can be defined as 2. And so on, until the rotation is 360 degrees, n circles can be marked, and these n circles are the identified n numbered injection slots 21. For example, in this example, n=12, α=30.
[0052] In one embodiment, the processing module 40 determines whether there is a nuclear magnetic resonance sample 22 in the sampling slot 21 based on a second quantity ratio and multiple second estimated position ranges; the second quantity ratio is the result of dividing the number of pixels with the first grayscale value by the number of pixels within the second estimated position range.
[0053] Specifically, determine whether there is a nuclear magnetic resonance sample 22 in the injection slot 21: the n circles marked above can be judged separately, and the calculation method of each circle is to calculate the proportion of pixels with a gray value of 0 in all pixels in the circle. Since the injection slot 21 is opaque after the nuclear magnetic resonance sample 22 is placed, the proportion values of the injection slots 21 in different states will be significantly different, so that it can be identified whether there is a nuclear magnetic resonance sample 22 in the injection slot 21. For example, the threshold value can be taken as β, that is, when the calculated proportion value is less than β, it is determined that there is no nuclear magnetic resonance sample 22. When it is greater than or equal to β, it is determined that there is a nuclear magnetic resonance sample 22. In this example, β=0.5, the proportion value of the area where the No. 1 injection slot is located is equal to 0.742, the proportion value of the area where the No. 4 injection slot is located is equal to 0.651, the proportion value of the area where the No. 5 injection slot is located is equal to 0.642, and the proportion values of the areas where the remaining injection slots 21 are located are all less than 0.5, so it is determined that there are nuclear magnetic resonance samples 22 in the No. 1, No. 4 and No. 5 injection slots 21. At this point, the status information of each injection slot 21 is identified.
[0054] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0055] The above is a detailed introduction to the nuclear magnetic resonance sample detection system provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and its core idea of the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A nuclear magnetic resonance sample detection system, characterized in that: include: A light-transmitting sample injection dial, wherein the light-transmitting sample injection dial is provided with a light-proof positioning block and at least one annularly distributed sample injection slot, wherein the sample injection slot is used to carry a light-proof rotor, wherein the light-proof rotor is loaded with a nuclear magnetic resonance sample, and wherein the light-proof positioning block is used to position an initial numbered sample injection slot, wherein the initial numbered sample injection slot is one of the sample injection slots; An image acquisition module, the image acquisition module is located on one side of the light-transmitting sampling dial and on the center line of the light-transmitting sampling dial, and is used to acquire a sample state image of the light-transmitting sampling dial; A light source, the light source is located on the other side of the light-transmitting sample feeding dial, and is used to form a brightness area and a non-brightness area in the sample state image; as well as A processing module, connected to the image acquisition module, for identifying whether the NMR sample exists in the injection slot with the corresponding number according to preset parameters and the received sample status image; Wherein, the processing module determines a first actual position range of the opaque positioning block in the processed sample state image according to a first quantity ratio and a plurality of first estimated position ranges of the opaque positioning block in the processed sample state image; the first quantity ratio is a result of dividing the number of pixels having a first gray value by the number of pixels within the first estimated position range; The processing module obtains a plurality of corresponding first quantity ratios based on a plurality of the first estimated position ranges, and determines that the first estimated position range corresponding to a largest one of the plurality of the first quantity ratios is the first actual position range.
2. The nuclear magnetic resonance sample detection system according to claim 1, characterized in that: The light-proof positioning block is an equilateral triangle; the first vertex of the light-proof positioning block, the center of the light-transmitting injection dial and the center of the initial number injection slot are located on the same straight line; the straight line is perpendicular to the bottom edge of the light-proof positioning block; the bottom edge does not intersect with the first vertex.
3. The nuclear magnetic resonance sample detection system according to claim 2, characterized in that: The preset parameters include at least one of a first distance, a radius of the light-transmitting injection dial, a radius of the injection slot, a side length of the opaque positioning block, and an image scaling ratio; the first distance is the distance from the image acquisition module to the light-transmitting injection dial; the image scaling ratio is the ratio of the actual size of any physical object in the nuclear magnetic resonance sample detection system to the image size of the physical object in the sample status image; and the first distance and the image scaling ratio are in a linear relationship.
4. The nuclear magnetic resonance sample detection system according to claim 3, characterized in that: The preset parameters also include a preset grayscale threshold; the processing module binarizes the sample state image according to a comparison result between the grayscale value of each pixel in the sample state image and the preset grayscale threshold to obtain a processed sample state image; the grayscale value of each pixel in the processed sample state image is one of a first grayscale value and a second grayscale value, the first grayscale value is a grayscale value of 0, and the second grayscale value is a grayscale value of 255.
5. The nuclear magnetic resonance sample detection system according to claim 4, characterized in that: The preset parameters also include a second distance; the processing module determines at least one second actual position range of the injection slot in the processed sample status image based on the interval angle between two adjacent injection slots, the second distance, the image scaling ratio, and the first actual position range; the second distance is the distance between the center of the injection slot and the center of the translucent injection dial.
6. The nuclear magnetic resonance sample detection system according to claim 5, characterized in that: The processing module determines, in the processed sample state image, one of the injection slots as the initial numbered injection slot according to the relative position relationship between the first actual position range and the second actual position range.
7. The nuclear magnetic resonance sample detection system according to claim 6, characterized in that: The processing module determines the corresponding numbers of the injection slots other than the initial numbered injection slots according to the numbering arrangement direction and the positioning of the initial numbered injection slots in the processed sample state image; the numbering arrangement direction is one of a clockwise direction and a counterclockwise direction.
8. The nuclear magnetic resonance sample detection system according to claim 7, characterized in that: The processing module determines whether the nuclear magnetic resonance sample exists in the sampling slot based on a second quantity ratio and multiple second estimated position ranges; the second quantity ratio is the result of dividing the number of pixels with the first grayscale value by the number of pixels within the second estimated position range.
Citation Information
Patent Citations
Detection method of extremely weak magnetic materials
CN107907842A
Camera module white spot detection system based on turntable
CN111739012A