Chemical identification system and method thereof
By designing a chemical identification system and analyzing chemical samples using image and X-ray detection modules, the identification difficulties caused by missing or blurred label text in the prior art are solved, and the automatic identification and classification of chemicals are realized, and management efficiency is improved.
Patent Information
- Application Number
- CN202411615619.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-04
AI Technical Summary
In the management of hazardous chemicals, the identification difficulties are caused by blurred, incomplete or missing label text, and cannot meet the needs of efficient and accurate hazardous chemicals management.
A chemical identification system is designed, including a turntable unit, an image acquisition unit, a sampling unit, a detection unit and an identification unit. The text tag on the side of the container is identified by the image acquisition unit, and the tag is directly matched when it exists; when the tag is missing or blurred, chemical samples are collected and analyzed through the image and X-ray detection module of the detection unit to realize automatic identification and classification of chemicals.
It improves the identification efficiency of chemicals, solves the identification difficulties caused by missing or fuzzy label text, and realizes the automatic identification and classification of chemicals.
Smart Images

Figure CN119559625A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemicals, and in particular to a chemical identification system and method thereof. Background Art
[0002] In the field of hazardous chemicals management, given the multiple hazardous characteristics inherent in hazardous chemicals, including but not limited to toxicity, corrosion, explosion, combustion and combustion-supporting, they pose a serious threat to human health, facility safety and environmental protection. China handles a huge amount of hazardous chemicals at major import and export ports every year, which places extremely high demands on supervision.
[0003] Due to the particularity of hazardous chemicals, any negligence in supervision may lead to serious safety accidents. Therefore, accurate identification and scientific classification of chemicals are key links to ensure safety management. At present, the method commonly used in the industry is to identify and classify based on the label text information on the chemical packaging bottles. This method can work effectively when the labels are complete and clear, which facilitates the rapid processing of chemicals.
[0004] However, in actual operation, we often encounter situations where the label text is blurred, incomplete or even completely missing for various reasons, which greatly increases the difficulty of identification. In such situations, traditional label text-based recognition methods are inadequate and often require relying on the rich experience of staff or sending samples to laboratories for detailed testing and analysis, which is not only time-consuming and laborious, but also greatly reduces processing efficiency and cannot meet the needs of efficient and accurate hazardous chemical management. Summary of the invention
[0005] Therefore, in order to solve the above-mentioned shortcomings, on the one hand, the present invention provides a chemical identification system, comprising:
[0006] A turntable unit, wherein at least one group of containers containing chemicals is loaded on the outer edge of the turntable unit;
[0007] An image acquisition unit, which is arranged outside the turntable unit to acquire a lateral image of the container;
[0008] A sampling unit, wherein the sampling unit collects a sample of the chemical in the container;
[0009] A detection unit receives a chemical sample and detects the chemical sample, wherein the detection unit includes an image detection module and an X-ray detection module, wherein the image detection module obtains an appearance image of the chemical sample, and the X-ray detection module obtains a diffraction image of the chemical sample;
[0010] The recognition unit obtains a side image of the container, performs text feature judgment on the side of the container, and obtains a text feature judgment result. If the side of the container has text features, the text features are extracted, and text analysis is performed on the extracted text features to obtain text analysis results. Chemical matching is performed based on the text analysis results to obtain a first chemical matching result. If the side of the container does not have text features or the text features are judged to be missing, a sampling signal is sent to the sampling unit so that the sampling unit collects chemical samples, and the chemical samples are sent to the detection unit. The detection unit collects an appearance image and a diffraction image of the chemical sample, selects a target feature image, extracts target features from the target feature image, obtains target features, performs particle size analysis on the target features, obtains target feature particle size, denoises the obtained diffraction image of the chemical sample, obtains a denoised diffraction image, performs principal component analysis based on the denoised diffraction image, obtains principal component analysis results, obtains principal component analysis results and target feature particles, performs chemical matching based on the principal component analysis results and the target feature particles, and obtains a second chemical matching result.
[0011] Furthermore, the identification unit includes:
[0012] Data acquisition module, to obtain the side image of the container, the appearance image of the chemical sample, and the diffraction image of the chemical sample;
[0013] The text recognition module performs text feature judgment on the image of the container's circumference and side surface to obtain a text feature judgment result. If the container's circumference and side surface have text features, the text features are extracted;
[0014] The text analysis module performs text analysis on the extracted text features to obtain text analysis results;
[0015] The image recognition module selects the target feature image, extracts the target features in the target feature image, and obtains the target features;
[0016] The image analysis module performs particle size analysis on the target features to obtain the target feature particle size;
[0017] An X-ray diffraction image analysis module performs denoising on the obtained chemical sample diffraction image to obtain a denoised diffraction image, and performs principal component analysis on the denoised diffraction image to obtain a principal component analysis result;
[0018] A data matching module obtains text analysis results, performs chemical matching based on the text analysis results, and obtains a first chemical matching result; or obtains main component analysis results and target characteristic particles, performs chemical matching based on the main component analysis results and the target characteristic particles, and obtains a second chemical matching result;
[0019] The recognition control module sends control signals to the turntable unit, sampling unit and marking unit according to the text feature judgment results.
[0020] The present invention recognizes the label on the side surface of the container through an image acquisition unit. When a text label is identified on the side surface, the type of the chemical is directly identified according to the content of the text label. When the text label on the side surface cannot be identified or the current text label is missing, a sampling signal is sent to the sampling unit to enable the sampling unit to collect chemical samples. The chemical samples are sent to the detection unit. The detection unit collects the appearance image and the diffraction image of the chemical sample, and matches the type of the chemical according to the appearance image and the diffraction image, thereby realizing automatic recognition and classification of chemicals, improving identification efficiency, and solving the problem of difficulty in identification caused by the label text being blurred, incomplete or even completely missing due to various reasons in the prior art.
[0021] Furthermore, the sampling unit includes:
[0022] The first power unit;
[0023] The swing module is driven by the first power device to slide vertically;
[0024] A capping module, which is mounted on the swinging module;
[0025] A sampling module, wherein the sampling module is mounted on the swing module;
[0026] The swing module drives the capping module and the sampling module to rotate horizontally at the same time, so that the capping module and the sampling module are alternately above the container.
[0027] Furthermore, the swing module comprises:
[0028] The slide is driven to slide vertically by the first power device;
[0029] a second power device, the second power device being mounted on the carriage;
[0030] A first swing arm, the first swing arm is pivotally mounted on the slide and is driven to pivot by a second power device;
[0031] The second swing arm is pivotally mounted on the slide and is coaxial with the first swing arm. The second swing arm rotates in the same direction as the first swing arm rotates, and a preset angle is formed between the second swing arm and the first swing arm.
[0032] Furthermore, the capping module comprises:
[0033] a second mounting portion, the second mounting portion being fixedly mounted on the second swing arm;
[0034] a fifth power device, the fifth power device being mounted on the second mounting portion;
[0035] The capping device is connected to a fifth power device, and the capping device is driven by the fifth power device to rotate along its own circumference.
[0036] Furthermore, the capping module further comprises a cap clamping assembly, and when the capping device screws out the container cap, the cap clamping assembly clamps and fixes the container cap;
[0037] The cap clamping assembly comprises a cap clamping device, which has two groups. The two groups of cap clamping devices are arranged oppositely below the two sides of the capping device. The cap clamping device is pivotally connected to the second mounting portion, and a torsion spring is arranged on the pivot axis between the cap clamping device and the second mounting portion.
[0038] The capping module further comprises a pressing assembly, through which the closed cap clamps are separated.
[0039] Furthermore, a semi-conical groove is provided on one side adjacent to the two groups of cover clamps;
[0040] The cap screwing device is connected to the fifth power device via a threaded shaft, and a sliding seat slidably connected thereto is provided on the mounting portion, and the sliding seat is threadably matched with the threaded shaft;
[0041] The top pressure assembly comprises:
[0042] A top pressure ball, the top pressure ball is arranged corresponding to the semi-conical groove;
[0043] A connecting rod, the top pressure ball is fixed on the connecting rod, and the connecting rod is slidably connected with the sliding seat, and a connecting plate is provided at one end of the connecting rod to be rotatably connected with the threaded shaft;
[0044] A connecting sleeve is wrapped around the outer peripheral surface of the cap screw and is fixed with the top pressure ball and the connecting rod. The connecting sleeve and the cap screw rotate relative to each other.
[0045] Furthermore, the sampling module includes:
[0046] a first mounting portion, the first mounting portion being fixed on the first swing arm;
[0047] a fourth power device, the fourth power device being mounted on the first mounting portion;
[0048] The sampling assembly is driven to slide vertically by the fourth power device;
[0049] The sampling assembly comprises:
[0050] The third power unit;
[0051] A movable block, wherein the movable block is provided with a plurality of blocks, and the plurality of movable blocks are arranged around a third power device, and the movable block is driven by the third power device to move radially linearly along its surrounding path;
[0052] A mounting plate, the mounting plate is arranged parallel to the plane where the movable blocks are located;
[0053] A connecting rod, one end of which is pivotally connected to the movable block and is pivotally connected to the mounting plate;
[0054] The sampling plate is fixedly mounted on the inner side of the connecting rod. When the array of sampling plates is closed, the array of sampling plates cooperate with each other to form a bucket-shaped sampling bucket with a closed bottom.
[0055] The method is suitable for bottled chemicals. The first power device drives the swing module to slide down vertically, thereby driving the screw cap module and the sampling module to descend at the same time. After descending to the first preset height, the screw cap module is screwed out through the bottle cap of the bottle body, and then the first power device drives the swing module to rise vertically to the second preset height. The swing module drives the screw cap module and the sampling module to rotate at the same time by a preset angle. At this time, the screw cap module rotates to one side above the bottle body, and the sampling module rotates to the top of the bottle body. The first power device drives the swing module to slide down vertically again, and the sampling module and the rotating module descend to the third preset height together, and then the sampling module collects chemical samples. After the collection is completed, the first power device drives the sampling module and the screw cap module to rise to the preset height together, and then the swing module drives the sampling module and the screw cap module to rotate the preset angle, and the first power device drives the sampling module and the screw cap module to descend to the fourth preset height again, and the screw cap module screws the bottle cap into the bottle mouth, and at the same time the sampling module puts the chemical sample into the sample container of the detection unit, thereby realizing the fully automatic collection of bottled chemical samples. By arranging the cap clamping assembly and the pressing assembly, the bottle cap can be clamped when the bottle cap is screwed out, and when the bottle cap is screwed in, the cap clamping device will separate under the action of the pressing ball, so that the bottle cap is released.
[0056] Furthermore, the identification system also includes a marking unit, which assigns different marks to the chemical containers according to the text feature judgment results and the sequence;
[0057] The marking unit comprises:
[0058] Sixth power unit;
[0059] Seventh power unit;
[0060] Eighth power unit;
[0061] The marker is driven by the sixth power device to move linearly along the first horizontal direction, and is driven by the seventh power device to move linearly along the second horizontal direction, wherein the first horizontal direction is parallel to the second horizontal direction, and the eighth power device drives the marker to move vertically linearly.
[0062] The marking unit will pre-mark the container based on the text feature judgment results and the order, so that the subsequent sampling unit can identify and bind it, thereby improving the accuracy of chemical identification.
[0063] On the other hand, the present invention also provides a chemical identification method, the identification method adopts the above-mentioned identification system, and the identification method comprises:
[0064] The feeding unit delivers containers arranged in one direction with equal spacing to the turntable unit. The chemical turntable unit drives the containers containing chemicals to rotate. Driven by the turntable unit, the containers move from the feeding unit position to the image acquisition unit, the marking unit, the sampling unit, and finally stop at the buffer unit or the discharging unit position.
[0065] The turntable drives the container to pass through the image acquisition unit. At this time, the container will rotate on the path passing through the image acquisition unit. The image acquisition unit will collect 360° images of the container's circumference and upload them to the recognition unit, and then rotate to the marking unit position to pause;
[0066] The recognition unit obtains the image of the side surface of the container, performs text feature judgment on the side surface of the container, obtains the text feature judgment result, performs a mark calculation based on the feature judgment result, controls the marking unit to mark the container cover according to the mark calculation result, and binds the mark with the feature judgment result;
[0067] When there are text features on the side surface of the container, the recognition unit controls the marking unit to leave a first mark on the container cover, and at the same time the recognition unit extracts the text features, performs text analysis on the extracted text features, obtains text analysis results, performs chemical matching according to the text analysis results, obtains a first chemical matching result, and binds the first chemical matching result to a binding group of the first mark and its corresponding text feature judgment result;
[0068] If the container side surface does not have the text feature or the text feature is determined to be missing, the recognition unit controls the marking unit to leave a second mark on the container cover and binds the current text feature judgment result to the second mark;
[0069] The turntable unit drives the container containing the chemical to rotate to the sampling unit position, the mark recognition module arranged on the sampling unit collects the mark area image on the container, the recognition unit recognizes the mark feature of the mark area, obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result, and controls the sampling unit to sample the chemical in the container according to the text feature judgment result. If the side surface of the container does not have the text feature or the text feature is judged to be missing, the recognition unit sends a sampling signal to the sampling unit so that the sampling unit collects the chemical sample, and sends the chemical sample to the detection unit, and the detection unit collects the appearance image and the diffraction image of the chemical sample;
[0070] The recognition unit acquires the appearance image and the diffraction image, selects the target feature image in the appearance image, extracts the target feature in the target feature image, obtains the target feature, performs a particle size analysis on the target feature, and obtains the target feature particle size; at the same time, denoises the acquired chemical sample diffraction image to obtain a denoised diffraction image, performs a principal component analysis based on the denoised diffraction image to obtain a principal component analysis result, obtains the principal component analysis result and the target feature particles, performs chemical matching based on the principal component analysis result and the target feature particles to obtain a second chemical matching result, and binds the second chemical matching result to a binding group of the second tag and its corresponding text feature judgment result;
[0071] The turntable unit continues to drive the container to rotate. When the container rotates to the cache unit position, the mark recognition module located at the position collects the mark area image on the bottle cap. The recognition unit recognizes the mark feature of the mark area, obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result, and determines whether to push the container to the cache unit according to the text feature judgment result. If the side surface of the container does not have the text feature or the text feature is determined to be missing, the container is pushed to the cache unit. Otherwise, the container continues to rotate to the discharging unit and pushes the container to the discharging unit.
[0072] The cache unit and the discharging unit send the containers to the classification unit one by one. The classification unit receives the containers sent by the cache unit or the discharging unit. The mark recognition module in the classification unit collects the image of the mark area on the container cover. The recognition unit recognizes the mark features of the mark area, obtains the chemical matching result according to the recognition result, and sends it to the corresponding cell according to the chemical matching result.
[0073] The sampling method is:
[0074] The first power device drives the swing module to slide down vertically, thereby driving the screw cap module and the sampling module to descend at the same time. After descending to the first preset height, the screw cap module screws out the bottle cap through the bottle body. When the bottle cap is screwed out, the slide moves vertically upward relative to the cap clamp, so that the top pressure ball gradually moves out of the semi-conical groove. Under the action of the torsion spring, the cap clamp is reset to achieve the clamping and fixing of the bottle cap; then the first power device drives the swing module to rise vertically to a second preset height, and the swing module drives the screw cap module and the sampling module to rotate at a preset angle at the same time. At this time, the screw cap module rotates to one side above the bottle body, the sampling module rotates to above the bottle body, and the first power device drives the swing module to slide down vertically again. , the sampling module and the rotating module are lowered to a third preset height together, and then the sampling module collects chemical samples. After the collection is completed, the first power device drives the sampling module and the capping module to rise to a preset height together, and then the swing module drives the sampling module and the capping module to rotate at a preset angle, and the first power device drives the sampling module and the capping module to descend to a fourth preset height, and the capping module screws the bottle cap into the bottle mouth. At this time, the slide moves vertically downward relative to the cap clamp, so that the top pressure ball gradually moves into the semi-conical groove, and the top pressure ball squeezes the cap clamp to make it rotate to both sides, and the cap clamp separates to achieve the relaxation of the bottle cap; at the same time, the sampling module puts the chemical sample into the sample container of the detection unit;
[0075] The marking is calculated as follows:
[0076] L = n*l+(n-1)*a+2b;
[0077] Wherein, L is the length of the marking area, in mm; n is the number of markings; l is the length of the marking, which can be set according to the actual situation, in mm; a is the interval between adjacent markings, in mm; b is the distance between the mark closest to the boundary of the marking area and the marking boundary, in mm, and b is a fixed value;
[0078] By marking in the above manner, when the adjacent marking interval a≤a is calculated min When the minimum interval value is reached, the unused mark length l is used or the number of marks n is reset directly.
[0079] The present invention has the following advantages:
[0080] The present invention recognizes the label on the side surface of the container through an image acquisition unit. When a text label is identified on the side surface, the type of the chemical is directly identified according to the content of the text label. When the text label on the side surface cannot be identified or the current text label is missing, a sampling signal is sent to the sampling unit to enable the sampling unit to collect chemical samples. The chemical samples are sent to the detection unit. The detection unit collects the appearance image and the diffraction image of the chemical sample, and matches the type of the chemical according to the appearance image and the diffraction image, thereby realizing automatic recognition and classification of chemicals, improving identification efficiency, and solving the problem of difficulty in identification caused by the label text being blurred, incomplete or even completely missing due to various reasons in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 It is a schematic diagram of the logical structure of the recognition system;
[0082] Figure 2 It is a partial structural diagram of the recognition system;
[0083] Figure 3 yes Figure 1 The structural schematic diagram of the sampling unit in the identification system shown;
[0084] Figure 4 yes Figure 3 A schematic diagram of the structure of the swing module in the sampling unit shown;
[0085] Figure 5 yes Figure 3 A schematic diagram of the structure of the sampling module in the sampling unit shown;
[0086] Figure 6 yes Figure 5 A schematic diagram of the structure of the sampling component in the sampling module shown;
[0087] Figure 7 yes Figure 3 A schematic diagram of the structure of the capping module in the sampling unit shown;
[0088] Figure 8 yes Figure 7 A partial structural schematic diagram of the capping module shown;
[0089] Fig. 9 yes Figure 8 A schematic diagram of the structure of the clamping cover assembly in the capping module shown;
[0090] Fig.10 yes Fig. 9 A schematic diagram of the connection between the clamping cover assembly and the second mounting portion;
[0091] Fig.11 It is a schematic diagram of the structure of the top pressure assembly;
[0092] Fig.12 yes Fig.10 The top pressure assembly shown is Fig. 9 A schematic diagram of the matching of the clamp cover assembly shown;
[0093] Fig.13 yes Figure 1 A schematic diagram of the structure of a marking unit in the identification system shown;
[0094] Fig.14 yes Figure 1 A schematic diagram of the structure of the classification unit in the identification system shown;
[0095] Fig.15 yes Figure 1 A schematic diagram of a part of the structure of the turntable unit in the identification system shown;
[0096] Fig.16 yes Figure 1 A schematic diagram of the logical structure of the identification unit in the identification system shown;
[0097] Fig.17 yes Figure 1 A schematic diagram of the structure of a detection unit in the identification system shown;
[0098] In the figure:
[0099] 100, image acquisition unit; 200, detection unit; 210, image detection module; 220, X-ray detection module; 300, recognition unit; 310, data acquisition module; 320, recognition control module; 330, text recognition module; 340, data matching module; 350, image recognition module; 360, text analysis module; 370, X-ray diffraction image analysis module; 380, image analysis module; 400, sampling unit; 410, first power device; 420, swing module; 421, carriage; 422, second power device; 423, first swing arm; 424, second swing arm; 431, first mounting portion; 432, connecting portion; 433, third power device; 434, sampling plate; 435, connecting rod; 436, movable block; 437, mounting plate; 438, fourth power device; 440, sampling Sample module; 441, the fifth power device; 442, the second mounting part; 443, the cap screw; 444, the slide; 445, the threaded shaft; 446, the cap clamp; 446A, the semi-conical groove; 446B, the slot; 447, the torsion spring; 448, the connecting plate; 449, the top pressure assembly; 449A, the connecting sleeve; 449B, the connecting rod; 449C, the top pressure ball; 510, the sixth power device; 520, the seventh power device; 530, the eighth power device; 540, the third mounting part; 550, the marker; 600, the classification unit; 610, the feeding module; 620, the horizontal displacement device; 630, the storage bin; 640, the lifting device; 700, the turntable unit; 710, the carrier plate; 720, the guide groove; 730, the roller; 800, the cache unit; 900, the feeding unit; 1000, the discharging unit. DETAILED DESCRIPTION
[0100] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0101] As mentioned in the background technology, in actual operation, it is often encountered that the label text is blurred, incomplete or even completely missing due to various reasons, which greatly increases the difficulty of identification. In such situations, the traditional label text-based recognition method is inadequate and often requires relying on the rich experience of the staff or sending the samples to the laboratory for detailed testing and analysis, which is not only time-consuming and laborious, but also greatly reduces the processing efficiency and cannot meet the needs of efficient and accurate hazardous chemical management.
[0102] Embodiment 1:
[0103] Therefore, in order to solve the above technical problems of the prior art, this embodiment provides a chemical identification system. Figure 1 As shown, the identification system includes:
[0104] A turntable unit 700, the outer edge of which is loaded with at least one group of containers containing chemicals;
[0105] An image acquisition unit 100 is disposed outside the turntable unit to acquire a lateral image of the container;
[0106] A sampling unit 400, which collects chemical samples in a container;
[0107] The detection unit 200 receives the chemical sample and detects the chemical sample, such as Fig.17 As shown, the detection unit includes an image detection module 210 and an X-ray detection module 220, wherein the image detection module obtains an appearance image of a chemical sample, and the X-ray detection module obtains a diffraction image of the chemical sample;
[0108] The recognition unit 300 obtains a side image of the container, performs text feature judgment on the side of the container, and obtains a text feature judgment result. If the side of the container has text features, the text features are extracted, and text analysis is performed on the extracted text features to obtain text analysis results. Chemical matching is performed based on the text analysis results to obtain a first chemical matching result. If the side of the container does not have text features or the text features are judged to be missing, a sampling signal is sent to the sampling unit so that the sampling unit collects chemical samples, and the chemical samples are sent to the detection unit. The detection unit collects an appearance image and a diffraction image of the chemical sample, selects a target feature image, extracts target features from the target feature image, obtains target features, performs particle size analysis on the target features, obtains target feature particle size, denoises the obtained chemical sample diffraction image, obtains a denoised diffraction image, performs principal component analysis based on the denoised diffraction image, obtains principal component analysis results, obtains principal component analysis results and target feature particles, performs chemical matching based on the principal component analysis results and the target feature particles, and obtains a second chemical matching result.
[0109] like Fig.16 As shown, the identification unit 300 includes:
[0110] The data acquisition module 310 acquires the container side image, the chemical sample appearance image, and the chemical sample diffraction image;
[0111] The text recognition module 330 performs text feature judgment on the image of the container side surface to obtain a text feature judgment result. If the container side surface has text features, the text features are extracted;
[0112] The text analysis module 360 performs text analysis on the extracted text features to obtain text analysis results;
[0113] The image recognition module 350 selects the target feature image, extracts the target feature in the target feature image, and obtains the target feature;
[0114] The image analysis module 380 performs a particle size analysis on the target feature to obtain the particle size of the target feature;
[0115] An X-ray diffraction image analysis module 340 performs denoising on the obtained chemical sample diffraction image to obtain a denoised diffraction image, and performs principal component analysis on the denoised diffraction image to obtain a principal component analysis result;
[0116] The data matching module 340 obtains the text analysis result, performs chemical matching according to the text analysis result, and obtains a first chemical matching result; or obtains the main component analysis result and the target characteristic particle, performs chemical matching according to the main component analysis result and the target characteristic particle, and obtains a second chemical matching result;
[0117] The recognition control module 320 sends control signals to the turntable unit, the sampling unit, and the marking unit according to the text feature judgment result.
[0118] This embodiment is designed for bottled solid chemicals. The principle of the identification system is:
[0119] The turntable unit drives the container containing the chemicals to rotate;
[0120] When the container passes through the image acquisition unit, the image acquisition unit will collect the image of the side surface of the container and upload it to the recognition unit. The recognition unit will perform text feature judgment on the side surface of the container to obtain a text feature judgment result. If the side surface of the container has a text feature, the text feature is extracted, and the extracted text feature is analyzed to obtain a text analysis result. Chemical matching is performed according to the text analysis result to obtain a first chemical matching result.
[0121] If the side surface of the container does not have text features or the text features are determined to be missing, the turntable unit drives the container containing the chemical to rotate to the sampling unit position, and the recognition unit sends a sampling signal to the sampling unit so that the sampling unit collects the chemical sample, and sends the chemical sample to the detection unit, and the detection unit collects the appearance image and the diffraction image of the chemical sample;
[0122] The recognition unit acquires an appearance image and a diffraction image, selects a target feature image in the appearance image, extracts target features in the target feature image, obtains target features, performs particle size analysis on the target features, and obtains target feature particle size; at the same time, the acquired chemical sample diffraction image is denoised to obtain a denoised diffraction image, a principal component analysis is performed based on the denoised diffraction image to obtain a principal component analysis result, the principal component analysis result and the target feature particles are obtained, and chemical matching is performed based on the principal component analysis result and the target feature particles to obtain a second chemical matching result.
[0123] This embodiment recognizes the label on the side surface of the container through the image acquisition unit. When the text label on the side surface is recognized, the type of chemical is directly identified according to the content of the text label. When the text label on the side surface cannot be recognized or the current text label is missing, a sampling signal is sent to the sampling unit to enable the sampling unit to collect chemical samples. The chemical samples are sent to the detection unit. The detection unit collects the appearance image and the diffraction image of the chemical sample, and matches the type of the chemical according to the appearance image and the diffraction image, thereby realizing automatic recognition and classification of chemicals, improving identification efficiency, and solving the problem of difficulty in identification caused by the label text being blurred, incomplete or even completely missing due to various reasons in the prior art.
[0124] In this embodiment, the recognition unit uses the ResNet50 network as the basic network to judge the text features on the side surface of the container, and detects the target image through the optimized EAST model algorithm. The optimized EAST model algorithm uses the RefineNet multi-resolution feature fusion method in the residual network to fuse multi-scale features, and uses the Focal Loss function as the loss function of the Score Map in the EAST model algorithm.
[0125] In this embodiment, the extracted text features are subjected to text analysis, and the text analysis results are obtained by using a text recognition algorithm based on the CNN+RNN+CTC architecture to recognize the text content of the extracted text features, thereby obtaining the text content. The data module matches the text content with the data correspondence table of the text content and the chemical drug types in the database, thereby obtaining the matching result of the chemical drug types.
[0126] In this embodiment, the method for performing particle size analysis on target features is as follows: a multi-scale edge filtering method based on the Hessian matrix is used to find particle edges, and then a screening algorithm based on convex hull analysis and a segmentation algorithm for adhered particles are used to screen and segment unsegmented particles, and finally, the particle size analysis of chemicals is performed under a static particle size detection system.
[0127] In this embodiment, if Figure 2As shown, the identification may also include:
[0128] A feeding unit 900, which is connected to the turntable unit, and the containers arranged in one direction with equal spacing are sent to the turntable unit through the feeding unit;
[0129] A discharging unit 900, which is connected to a turntable unit, and the turntable unit pushes the containers with text features to the discharging unit in sequence;
[0130] A cache unit 800, wherein the cache unit 800 is connected to a turntable unit, and the turntable unit sequentially delivers containers without text features to the turntable unit;
[0131] The classification unit 600 receives chemicals sent from the discharging unit or the buffer unit, and classifies and stores the chemicals sent from the discharging unit or the buffer unit in sequence according to the first chemical matching result or the second chemical matching result.
[0132] like Fig.14 As shown, the classification unit includes:
[0133] A storage bin 630 having a plurality of storage cells arranged in a matrix;
[0134] A feeding module 610 receives the chemicals to be fed in or sends the chemicals out to the corresponding storage cells;
[0135] A horizontal displacement device 620 is installed at the front side of the storage bin, and the feeding module is installed on the horizontal displacement device, and the feeding module 610 is driven to move horizontally and linearly by the horizontal displacement device;
[0136] A lifting device 640 is installed on the storage bin, and drives the horizontal displacement device to move up and down.
[0137] In this embodiment, the feeding module may select a conveyor belt device; the horizontal displacement device may be composed of a frame and a motor-conveyor belt structure, or the motor-conveyor belt structure may be replaced by a motor-chain structure, a motor-screw structure, a cylinder, a hydraulic cylinder, an electric cylinder, etc.; the horizontal displacement device may be connected to the outer wall of the storage bin through a guide structure, and the guide structure includes but is not limited to a guide rail-slider structure, a guide rod-slider structure, a slide rail-guide wheel structure, etc.; the lifting device includes but is not limited to a motor-conveyor belt structure, a motor-chain structure, a motor-screw structure, a cylinder, a hydraulic cylinder, and an electric cylinder.
[0138] In this embodiment, if Fig.15 As shown, the rotating disk unit is provided with a guide groove 720 at a position corresponding to the image acquisition unit;
[0139] The turntable unit includes a plurality of carrier plates 710 for carrying chemical containers, which can rotate along their own circumference. A roller 730 is provided at the bottom of the carrier plate, and the roller 730 is embedded in a guide groove. The roller can move along the guide groove. While the roller moves along the guide groove, it can roll along the groove wall of the guide groove, thereby driving the carrier plate to rotate.
[0140] When the container rotates to the position of the image acquisition unit, the roller moves into the guide groove. At this time, the container continues to move with the turntable unit. Under the action of the roller and the guide groove, the container will also rotate along its own circumference, thereby realizing the image acquisition unit to collect 360° images of the container's circumferential surface, thereby improving the recognition accuracy.
[0141] In addition, in order to facilitate pushing the chemicals on the turntable unit to the discharging unit or the cache unit, a pushing unit is provided at the position of the turntable unit corresponding to the discharging unit and the cache unit. The pushing unit is composed of a cylinder and a push plate. The push plate is driven by the cylinder to move linearly to push the chemicals to the discharging unit or the cache unit.
[0142] Embodiment 2:
[0143] This embodiment provides a structure of a sampling unit, such as Figure 3 As shown, the sampling unit includes:
[0144] A first power unit 410;
[0145] The swing module 420 is driven by the first power device to slide vertically;
[0146] A cover screwing module 440, wherein the cover screwing module 440 is mounted on the swing module;
[0147] A sampling module 430, wherein the sampling module 430 is mounted on the swing module;
[0148] The swing module drives the capping module and the sampling module to rotate horizontally at the same time, so that the capping module and the sampling module are alternately above the container.
[0149] In this embodiment, the first power device may be a linear motion module, or may be a pneumatic cylinder, an electric cylinder, a hydraulic cylinder, a motor-screw structure, a motor-pulley structure, a motor-sprocket structure, etc.
[0150] like Figure 4 As shown, the swing module 420 includes:
[0151] The slide 421 is driven by the first power device to slide vertically;
[0152] A second power device 422, which is mounted on the slide 421;
[0153] A first swing arm 423, which is pivotally mounted on the slide 421 and driven to pivot by a second power device;
[0154] The second swing arm 424 is pivotally mounted on the slide and is coaxial with the first swing arm. The second swing arm rotates in the same direction as the first swing arm rotates, and there is a preset angle between the second swing arm and the first swing arm.
[0155] In this embodiment, the preset angle is 30° to 60°.
[0156] like Figure 7 As shown, the capping module comprises:
[0157] A second mounting portion 442, wherein the second mounting portion 442 is fixedly mounted on the second swing arm;
[0158] A fifth power device 441, which is mounted on the second mounting portion, and includes but is not limited to a motor, a rotary cylinder, a rotary hydraulic cylinder and other devices;
[0159] The capping device 443 is connected to the fifth power device, and the capping device is driven by the fifth power device to rotate along its own circumference.
[0160] like Figure 5 , 6 As shown, the sampling module includes:
[0161] A first mounting portion 431, the first mounting portion being fixed on the first swing arm;
[0162] a fourth power device 438, the fourth power device being mounted on the first mounting portion;
[0163] The sampling assembly is driven to slide vertically by the fourth power device;
[0164] The sampling assembly comprises:
[0165] The third power unit 433;
[0166] A movable block 436, wherein the movable block is provided with a plurality of blocks, and the plurality of movable blocks are arranged around a third power device, and the movable block 436 is driven by the third power device to move radially linearly along its surrounding path;
[0167] A mounting plate 437, which is arranged parallel to the plane where the movable blocks are located;
[0168] A connecting rod 435, one end of which is pivotally connected to the movable block and is pivotally connected to the mounting plate;
[0169] The sampling plate 434 is fixedly mounted on the inner side of the connecting rod. When the array of sampling plates is closed, the array of sampling plates cooperate with each other to form a bucket-shaped sampling bucket with a closed bottom.
[0170] In this embodiment, the third and fourth power devices include but are not limited to air cylinders, electric cylinders, hydraulic cylinders and other devices.
[0171] This embodiment is suitable for bottled chemicals. The first power device drives the swing module to slide down vertically, thereby driving the capping module and the sampling module to descend at the same time. After descending to the first preset height, the capping module is screwed out through the bottle cap of the bottle body, and then the first power device drives the swing module to rise vertically to the second preset height. The swing module drives the capping module and the sampling module to rotate at the same time by a preset angle. At this time, the capping module rotates to the upper side of the bottle body, and the sampling module rotates to the upper side of the bottle body. The first power device drives the swing module to slide down vertically again, and the sampling module and the rotating module descend to the third preset height together. Then the sampling module collects chemical samples. After the collection is completed, the first power device drives the sampling module and the capping module to rise to the preset height together. Then the swing module drives the sampling module and the capping module to rotate the preset angle. The first power device drives the sampling module and the capping module to descend to the fourth preset height. The capping module screws the bottle cap into the bottle mouth, and the sampling module puts the chemical sample into the sample container of the detection unit, realizing the full-automatic collection of bottled chemical samples. In this embodiment, the spacing size of the sampling plates after separation is smaller than the bottle mouth size to avoid the bottle mouth from interfering with the sampling plate entering and exiting the container.
[0172] In addition, in order to prevent the container from moving when screwing the cap or sampling, in the present embodiment, a bottle clamping device may be provided. The bottle clamping device may be composed of two groups of cylinders and clamping blocks. One side of the clamping block cooperates with the side portion of the bottle body. The clamping block is driven inward by the cylinder to move to both sides of the bottle body, and then another group of cylinders is used to drive the clamping block close to the bottle body, and finally the bottle body is clamped and fixed.
[0173] Embodiment 3:
[0174] To avoid the bottle cap falling off during sampling, Figure 8 , 9 As shown in 10, the capping module further includes a cap clamping assembly, and when the capping device screws out the container cap, the cap clamping assembly clamps and fixes the container cap;
[0175] The cap clamping assembly includes a cap clamping device 446, which has two groups. The two groups of cap clamping devices are arranged oppositely below the two sides of the capping device. The cap clamping device is pivotally connected to the second mounting portion, and a torsion spring is arranged on the pivot axis between the cap clamping device and the second mounting portion.
[0176] The capping module further comprises a pressing assembly 449, through which the closed cap clamps are separated.
[0177] like Figures 10-11 As shown, a semi-conical groove 446A is provided on one side adjacent to the two sets of cover clamps 446;
[0178] The cap screwing device is connected to the fifth power device via a threaded shaft 445, and a slide seat 444 slidably connected thereto is provided on the mounting portion, and the slide seat is threadedly matched with the threaded shaft;
[0179] The top pressure assembly comprises:
[0180] A top pressure ball 449C, the top pressure ball is arranged corresponding to the semi-conical groove;
[0181] A connecting rod 449B, on which the pressure ball is fixed, is slidably connected to the slide seat through the connecting rod, and a connecting plate 408 is provided at one end of the connecting rod 448B to be rotatably connected to the threaded shaft;
[0182] The connecting sleeve 449A is wrapped around the outer peripheral surface of the cap screw and is fixed with the top pressure ball and the connecting rod. The connecting sleeve and the cap screw rotate relative to each other.
[0183] like Fig.12 As shown, when the fifth power device drives the cap screwer to rotate, the slide seat will move linearly due to the threaded fit between the slide seat and the threaded shaft, so that the pressing ball presses or relaxes the semi-conical groove to realize automatic opening or resetting of the cap clamp.
[0184] For example, when the bottle cap is unscrewed, the fifth power device drives the cap screw to rotate counterclockwise, at which time the slide moves vertically upward relative to the cap clamp, so that the pressing ball gradually moves out of the semi-conical groove, and under the action of the torsion spring, the cap clamp is reset to achieve clamping and fixing of the bottle cap. Conversely, when the fifth power device drives the cap screw to rotate clockwise, at this time, the slide moves vertically downward relative to the cap clamp, so that the pressing ball gradually moves into the semi-conical groove, the pressing ball squeezes the cap clamp, causing it to rotate to both sides, and the cap clamp is separated to achieve loosening of the bottle cap.
[0185] In this embodiment, the cap clamping device can be designed to act on the side of the bottle cap as follows Fig. 9 The arc shape shown matches the side of the bottle cap, and at the same time, a groove 446B is provided to accommodate the protrusion extending radially from the bottom of the bottle cap and arranged around the bottle cap; in addition, a flexible layer such as a rubber layer, a sponge layer, etc. can be provided on the side where the cap clamp acts on the bottle cap to increase the friction between the bottle cap and the cap clamp.
[0186] Embodiment 4:
[0187] like Figure 1 ,2 As shown, the recognition system may further include a marking unit 500, which assigns different marks to the chemical containers according to the text feature judgment result and the sequence;
[0188] like Fig.13 As shown, the marking unit includes:
[0189] Sixth power unit 510;
[0190] Seventh power unit 520;
[0191] Eighth power unit 530;
[0192] The marker 550 is driven by the sixth power device to move linearly along the first horizontal direction, and is driven by the seventh power device to move linearly along the second horizontal direction, wherein the first horizontal direction is parallel to the second horizontal direction, and the eighth power device drives the marker to move vertically linearly.
[0193] In this embodiment, the sixth, seventh and eighth power devices include but are not limited to air cylinders, electric cylinders, hydraulic cylinders or other devices capable of achieving linear motion of parts.
[0194] In this embodiment, the seventh power device can be connected to the sixth power device via a first slide, the eighth power device can be connected to the seventh power device via a second slide, and the marker 550 is installed on the eighth power device via a third installation portion.
[0195] In this embodiment, the marker can be a marking pen, a fluorescent pen, a laser marker, a knife marker, etc.
[0196] When the chemicals pass through the image acquisition unit, the labeling unit will assign different labels to the chemical containers based on the text feature judgment results and sequence;
[0197] During marking, the sixth power device drives the marker to move quickly to a preset position above the container, and then the eighth power device drives the marker down so that the marker is at a preset height above the container cover or contacts the container cover or penetrates the container cover to a preset depth, and then the seventh power device drives the marker to move a preset length, thereby leaving a mark on the container cover to facilitate the sampling unit, turntable unit, and classification unit to identify it, thereby achieving accurate classification of chemicals.
[0198] For example, the recognition unit controls the marking unit to leave marks with different intervals and numbers on the container cover according to the sequence, and the relationship between the number of marks and the marks is as follows:
[0199] L = n*l+(n-1)*a+2b;
[0200] Wherein, L is the length of the marking area, in mm; n is the number of marks; l is the length of the mark, which can be set according to the actual situation, in mm; a is the interval between adjacent marks, in mm; b is the distance between the mark closest to the boundary of the marking area and the mark boundary, in mm, and b is a fixed value.
[0201] By marking in the above manner, when the adjacent marking interval a≤a is calculated min When the minimum interval value is reached, the unused mark length l is used or the number of marks n is reset directly.
[0202] In order to facilitate the identification of marks, a mark recognition module is provided on the sampling unit, the classification unit and the turntable unit. The mark recognition module collects the image of the mark area on the container cover, and the recognition unit recognizes the target mark features in the mark removal image to classify multiple containers to avoid confusion. The target mark features include the mark, the length of the mark, and the number of marks.
[0203] Embodiment 5:
[0204] This embodiment is based on the identification system described in the above embodiment, and provides a chemical identification method, the identification method comprising:
[0205] like Figure 2 As shown, the feeding unit delivers containers arranged in one direction with equal spacing to the turntable unit, and the chemical turntable unit drives the containers containing chemicals to rotate. Driven by the turntable unit, the containers move from the feeding unit position to the image acquisition unit, the marking unit, and the sampling unit in sequence, and finally stop at the buffer unit or the discharging unit position;
[0206] The turntable drives the container to pass through the image acquisition unit. At this time, the container will rotate on the path passing through the image acquisition unit. The image acquisition unit will collect 360° images of the container's circumference and upload them to the recognition unit, and then rotate to the marking unit position to pause;
[0207] The recognition unit obtains the image of the side surface of the container, performs text feature judgment on the side surface of the container, obtains the text feature judgment result, performs a mark calculation based on the feature judgment result, controls the marking unit to mark the container cover according to the mark calculation result, and binds the mark with the feature judgment result;
[0208] When there are text features on the side surface of the container, the recognition unit controls the marking unit to leave a first mark on the container cover, and at the same time the recognition unit extracts the text features, performs text analysis on the extracted text features, obtains text analysis results, performs chemical matching according to the text analysis results, obtains a first chemical matching result, and binds the first chemical matching result to a binding group of the first mark and its corresponding text feature judgment result;
[0209] If the container side surface does not have the text feature or the text feature is determined to be missing, the recognition unit controls the marking unit to leave a second mark on the container cover and binds the current text feature judgment result to the second mark;
[0210] The turntable unit drives the container containing the chemical to rotate to the sampling unit position, the mark recognition module arranged on the sampling unit collects the mark area image on the container, the recognition unit recognizes the mark feature of the mark area, obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result, and controls the sampling unit to sample the chemical in the container according to the text feature judgment result. If the side surface of the container does not have the text feature or the text feature is judged to be missing, the recognition unit sends a sampling signal to the sampling unit so that the sampling unit collects the chemical sample, and sends the chemical sample to the detection unit, and the detection unit collects the appearance image and the diffraction image of the chemical sample;
[0211] The recognition unit acquires an appearance image and a diffraction image, selects a target feature image in the appearance image, extracts target features in the target feature image, obtains target features, performs particle size analysis on the target features, and obtains target feature particle size; at the same time, the acquired chemical sample diffraction image is denoised to obtain a denoised diffraction image, a principal component analysis is performed based on the denoised diffraction image to obtain a principal component analysis result, the principal component analysis result and the target feature particles are obtained, chemical matching is performed based on the principal component analysis result and the target feature particles to obtain a second chemical matching result, and the second chemical matching result is bound to a binding group of a second tag and its corresponding text feature judgment result.
[0212] The turntable unit continues to drive the container to rotate. When it rotates to the cache unit position, the mark recognition module arranged at this position collects the image of the mark area on the bottle cap. The recognition unit recognizes the mark features of the mark area, and obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result. According to the text feature judgment result, it is judged whether to push the container to the cache unit. If the side surface of the container does not have the text feature or the text feature is judged to be missing, it is pushed to the cache unit. Otherwise, it continues to rotate to the discharging unit and pushes the container to the discharging unit.
[0213] The cache unit and the discharging unit send the containers to the classification unit one by one. The classification unit receives the containers sent by the cache unit or the discharging unit. The mark recognition module in the classification unit collects the image of the mark area on the container cover. The recognition unit recognizes the mark features of the mark area, obtains the chemical matching result according to the recognition result, and sends it to the corresponding cell according to the chemical matching result.
[0214] In this embodiment, the recognition unit uses the ResNet50 network as the basic network to detect the target image through the optimized EAST model algorithm. The optimized EAST model algorithm uses the RefineNet multi-resolution feature fusion method in the residual network to fuse multi-scale features, and uses the Focal Loss function as the loss function of the Score Map in the EAST model algorithm. The extracted text features are analyzed, and the text analysis results are obtained by using the text recognition algorithm based on the CNN+RNN+CTC architecture to recognize the text content of the extracted text features, thereby obtaining the text content. The data module matches the text content with the data corresponding table of the text content and the chemical drug type in the database, thereby obtaining the matching result of the chemical drug type. The method of performing particle size analysis on the target feature is: using a multi-scale edge filtering method based on the Hessian matrix to find the particle edge, and then using a screening algorithm based on convex hull analysis and a segmentation algorithm for adhesion particles to screen and segment the unsegmented particles, and finally performing particle size analysis of the chemical under a static particle size detection system.
[0215] In this embodiment, the sampling method is:
[0216] The first power device drives the swing module to slide down vertically, thereby driving the screw cap module and the sampling module to descend at the same time. After descending to the first preset height, the screw cap module screws out the bottle cap through the bottle body. When the bottle cap is screwed out, the slide moves vertically upward relative to the cap clamp, so that the top pressure ball gradually moves out of the semi-conical groove. Under the action of the torsion spring, the cap clamp is reset to achieve clamping and fixing of the bottle cap. Then the first power device drives the swing module to rise vertically to the second preset height, and the swing module drives the capping module and the sampling module to rotate at the preset angle at the same time. At this time, the capping module rotates to one side above the bottle body, and the sampling module rotates to the top of the bottle body. The first power device drives the swing module to slide vertically again, and the sampling module and the rotating module drop to the third preset height together. Then the sampling module collects chemical samples. After the collection is completed, the first power device drives the sampling module and the capping module to rise to the preset height together. Then the swing module drives the sampling module and the capping module to rotate at the preset angle. The first power device drives the sampling module and the capping module to drop to the fourth preset height. The capping module screws the bottle cap into the bottle mouth. At this time, the slide moves vertically downward relative to the capping device, so that the top pressure ball gradually moves into the semi-conical groove, and the top pressure ball squeezes the capping device to make it rotate to both sides, and the capping device separates to achieve the relaxation of the bottle cap. At the same time, the sampling module puts the chemical sample into the sample container of the detection unit.
[0217] In this embodiment, the label calculation method is as follows:
[0218] L = n*l+(n-1)*a+2b;
[0219] Wherein, L is the length of the marking area, in mm; n is the number of marks; l is the length of the mark, which can be set according to the actual situation, in mm; a is the interval between adjacent marks, in mm; b is the distance between the mark closest to the boundary of the marking area and the mark boundary, in mm, and b is a fixed value.
[0220] By marking in the above manner, when the adjacent marking interval a≤a is calculated min When the minimum interval value is reached, the unused mark length l is used or the number of marks n is reset directly.
[0221] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A chemical identification system, characterized in that: include: A turntable unit, wherein at least one group of containers containing chemicals is loaded on the outer edge of the turntable unit; An image acquisition unit, which is arranged outside the turntable unit to acquire a lateral image of the container; A sampling unit, wherein the sampling unit collects a sample of the chemical in the container; A detection unit receives a chemical sample and detects the chemical sample, wherein the detection unit includes an image detection module and an X-ray detection module, wherein the image detection module obtains an appearance image of the chemical sample, and the X-ray detection module obtains a diffraction image of the chemical sample; The recognition unit obtains a side image of the container, performs text feature judgment on the side of the container, and obtains a text feature judgment result. If the side of the container has text features, the text features are extracted, and text analysis is performed on the extracted text features to obtain text analysis results. Chemical matching is performed based on the text analysis results to obtain a first chemical matching result. If the side of the container does not have text features or the text features are judged to be missing, a sampling signal is sent to the sampling unit so that the sampling unit collects chemical samples, and the chemical samples are sent to the detection unit. The detection unit collects an appearance image and a diffraction image of the chemical sample, selects a target feature image, extracts target features from the target feature image, obtains target features, performs particle size analysis on the target features, obtains target feature particle size, denoises the obtained diffraction image of the chemical sample, obtains a denoised diffraction image, performs principal component analysis based on the denoised diffraction image, obtains principal component analysis results, obtains principal component analysis results and target feature particles, performs chemical matching based on the principal component analysis results and the target feature particles, and obtains a second chemical matching result.
2. A chemical identification system according to claim 1, characterized in that: The identification unit comprises: Data acquisition module, to obtain the side image of the container, the appearance image of the chemical sample, and the diffraction image of the chemical sample; The text recognition module performs text feature judgment on the image of the container side surface to obtain the text feature judgment result. If the container side surface has text features, the text features are extracted; The text analysis module performs text analysis on the extracted text features to obtain text analysis results; The image recognition module selects the target feature image, extracts the target features in the target feature image, and obtains the target features; The image analysis module performs particle size analysis on the target features to obtain the target feature particle size; An X-ray diffraction image analysis module performs denoising on the obtained chemical sample diffraction image to obtain a denoised diffraction image, and performs principal component analysis on the denoised diffraction image to obtain a principal component analysis result; A data matching module obtains text analysis results, performs chemical matching based on the text analysis results, and obtains a first chemical matching result; or obtains main component analysis results and target characteristic particles, performs chemical matching based on the main component analysis results and the target characteristic particles, and obtains a second chemical matching result; The recognition control module sends control signals to the turntable unit, sampling unit and marking unit according to the text feature judgment results.
3. A chemical identification system according to claim 1, characterized in that: The sampling unit comprises: The first power unit; The swing module is driven by the first power device to slide vertically; A capping module, which is mounted on the swinging module; A sampling module, wherein the sampling module is mounted on the swing module; The swing module drives the capping module and the sampling module to rotate horizontally at the same time, so that the capping module and the sampling module are alternately above the container.
4. A chemical identification system according to claim 3, characterized in that: The swing module comprises: The slide is driven to slide vertically by the first power device; a second power device, the second power device being mounted on the carriage; A first swing arm, the first swing arm is pivotally mounted on the slide and is driven to pivot by a second power device; The second swing arm is pivotally mounted on the slide and is coaxial with the first swing arm. The second swing arm rotates in the same direction as the first swing arm rotates, and a preset angle is formed between the second swing arm and the first swing arm.
5. A chemical identification system according to claim 4, characterized in that: The capping module comprises: a second mounting portion, the second mounting portion being fixedly mounted on the second swing arm; a fifth power device, the fifth power device being mounted on the second mounting portion; The capping device is connected to a fifth power device, and the capping device is driven by the fifth power device to rotate along its own circumference.
6. A chemical identification system according to claim 5, characterized in that: The capping module further comprises a cap clamping assembly, which clamps and fixes the container cap when the capping device screws out the container cap; The cap clamping assembly comprises a cap clamping device, which has two groups. The two groups of cap clamping devices are arranged oppositely below the two sides of the capping device. The cap clamping device is pivotally connected to the second mounting portion, and a torsion spring is arranged on the pivot axis between the cap clamping device and the second mounting portion. The capping module further comprises a pressing assembly, through which the closed cap clamps are separated.
7. A chemical identification system according to claim 6, characterized in that: A semi-conical groove is provided on one side adjacent to the two sets of cover clamps; The cap screwing device is connected to the fifth power device via a threaded shaft, and a sliding seat slidably connected thereto is provided on the mounting portion, and the sliding seat is threadably matched with the threaded shaft; The top pressure assembly comprises: A top pressure ball, the top pressure ball is arranged corresponding to the semi-conical groove; A connecting rod, the top pressure ball is fixed on the connecting rod, and the connecting rod is slidably connected with the sliding seat, and a connecting plate is provided at one end of the connecting rod to be rotatably connected with the threaded shaft; A connecting sleeve is wrapped around the outer peripheral surface of the cap screw and is fixed with the top pressure ball and the connecting rod. The connecting sleeve and the cap screw rotate relative to each other.
8. A chemical identification system according to claim 4, characterized in that: The sampling module comprises: a first mounting portion, the first mounting portion being fixed on the first swing arm; a fourth power device, the fourth power device being mounted on the first mounting portion; The sampling assembly is driven to slide vertically by the fourth power device; The sampling assembly comprises: The third power unit; A movable block, wherein the movable block is provided with a plurality of blocks, and the plurality of movable blocks are arranged around a third power device, and the movable block is driven by the third power device to move radially linearly along its surrounding path; A mounting plate, the mounting plate is arranged parallel to the plane where the movable blocks are located; A connecting rod, one end of which is pivotally connected to the movable block and is pivotally connected to the mounting plate; The sampling plate is fixedly mounted on the inner side of the connecting rod. When the array of sampling plates is closed, the array of sampling plates cooperate with each other to form a bucket-shaped sampling bucket with a closed bottom.
9. A chemical identification system according to claim 1, characterized in that: The identification system also includes a marking unit, which assigns different marks to chemical containers according to the text feature judgment result and the order, and the marking unit will mark containers without text features or missing text features; The marking unit comprises: Sixth power unit; Seventh power unit; Eighth power unit; The marker is driven by the sixth power device to move linearly along the first horizontal direction, and is driven by the seventh power device to move linearly along the second horizontal direction, wherein the first horizontal direction is parallel to the second horizontal direction, and the eighth power device drives the marker to move vertically linearly.
10. A chemical identification method, characterized in that: The identification method adopts the identification system described in any one of claims 1 to 9 above, and the identification method comprises: The feeding unit delivers containers arranged in one direction with equal spacing to the turntable unit. The chemical turntable unit drives the containers containing chemicals to rotate. Driven by the turntable unit, the containers move from the feeding unit position to the image acquisition unit, the marking unit, the sampling unit, and finally stop at the buffer unit or the discharging unit position. The turntable drives the container to pass through the image acquisition unit. At this time, the container will rotate on the path passing through the image acquisition unit. The image acquisition unit will collect 360° images of the container's circumference and upload them to the recognition unit, and then rotate to the marking unit position to pause; The recognition unit obtains the image of the side surface of the container, performs text feature judgment on the side surface of the container, obtains the text feature judgment result, performs a mark calculation based on the feature judgment result, controls the marking unit to mark the container cover according to the mark calculation result, and binds the mark with the feature judgment result; When there are text features on the side surface of the container, the recognition unit controls the marking unit to leave a first mark on the container cover, and at the same time the recognition unit extracts the text features, performs text analysis on the extracted text features, obtains text analysis results, performs chemical matching according to the text analysis results, obtains a first chemical matching result, and binds the first chemical matching result to a binding group of the first mark and its corresponding text feature judgment result; If the container side surface does not have the text feature or the text feature is determined to be missing, the recognition unit controls the marking unit to leave a second mark on the container cover and binds the current text feature judgment result to the second mark; The turntable unit drives the container containing the chemical to rotate to the sampling unit position, the mark recognition module arranged on the sampling unit collects the mark area image on the container, the recognition unit recognizes the mark feature of the mark area, obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result, and controls the sampling unit to sample the chemical in the container according to the text feature judgment result. If the side surface of the container does not have the text feature or the text feature is judged to be missing, the recognition unit sends a sampling signal to the sampling unit so that the sampling unit collects the chemical sample, and sends the chemical sample to the detection unit, and the detection unit collects the appearance image and the diffraction image of the chemical sample; The recognition unit acquires the appearance image and the diffraction image, selects the target feature image in the appearance image, extracts the target feature in the target feature image, obtains the target feature, performs a particle size analysis on the target feature, and obtains the target feature particle size; at the same time, denoises the acquired chemical sample diffraction image to obtain a denoised diffraction image, performs a principal component analysis based on the denoised diffraction image to obtain a principal component analysis result, obtains the principal component analysis result and the target feature particles, performs chemical matching based on the principal component analysis result and the target feature particles to obtain a second chemical matching result, and binds the second chemical matching result to a binding group of the second tag and its corresponding text feature judgment result; The turntable unit continues to drive the container to rotate. When the container rotates to the cache unit position, the mark recognition module located at the position collects the mark area image on the bottle cap. The recognition unit recognizes the mark feature of the mark area, obtains the text feature judgment result of the container currently at the sampling unit position according to the recognition result, and determines whether to push the container to the cache unit according to the text feature judgment result. If the side surface of the container does not have the text feature or the text feature is determined to be missing, the container is pushed to the cache unit. Otherwise, the container continues to rotate to the discharging unit and pushes the container to the discharging unit. The cache unit and the discharging unit send the containers to the classification unit one by one. The classification unit receives the containers sent by the cache unit or the discharging unit. The mark recognition module in the classification unit collects the image of the mark area on the container cover. The recognition unit recognizes the mark features of the mark area, obtains the chemical matching result according to the recognition result, and sends it to the corresponding cell according to the chemical matching result. The sampling method is: The first power device drives the swing module to slide down vertically, thereby driving the screw cap module and the sampling module to descend at the same time. After descending to the first preset height, the screw cap module screws out the bottle cap through the bottle body. When the bottle cap is screwed out, the slide moves vertically upward relative to the cap clamp, so that the top pressure ball gradually moves out of the semi-conical groove. Under the action of the torsion spring, the cap clamp is reset to achieve the clamping and fixing of the bottle cap; then the first power device drives the swing module to rise vertically to a second preset height, and the swing module drives the screw cap module and the sampling module to rotate at a preset angle at the same time. At this time, the screw cap module rotates to one side above the bottle body, the sampling module rotates to above the bottle body, and the first power device drives the swing module to slide down vertically again. , the sampling module and the rotating module are lowered to a third preset height together, and then the sampling module collects chemical samples. After the collection is completed, the first power device drives the sampling module and the capping module to rise to a preset height together, and then the swing module drives the sampling module and the capping module to rotate at a preset angle, and the first power device drives the sampling module and the capping module to descend to a fourth preset height, and the capping module screws the bottle cap into the bottle mouth. At this time, the slide moves vertically downward relative to the cap clamp, so that the top pressure ball gradually moves into the semi-conical groove, and the top pressure ball squeezes the cap clamp to make it rotate to both sides, and the cap clamp separates to achieve the relaxation of the bottle cap; at the same time, the sampling module puts the chemical sample into the sample container of the detection unit; The marking is calculated as follows: L = n*l+(n-1)*a+2b; Wherein, L is the length of the marking area, in mm; n is the number of markings; l is the length of the marking, which can be set according to the actual situation, in mm; a is the interval between adjacent markings, in mm; b is the distance between the mark closest to the boundary of the marking area and the marking boundary, in mm, and b is a fixed value; By marking in the above manner, when the adjacent marking interval a≤a is calculated min When the minimum interval value is reached, the unused mark length l is used or the number of marks n is reset directly.