Sample recognition system and sample recognition method, controller and storage medium

CN122319366APending Publication Date: 2026-06-30SHENZHEN MINDRAY BIO MEDICAL ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN MINDRAY BIO MEDICAL ELECTRONICS CO LTD
Filing Date
2023-12-01
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In the prior art, barcodes on sample containers require manual adjustment of angle and position to be successfully identified, resulting in a reduced barcode recognition efficiency.

Method used

A sample recognition system is provided, including a controller, a rotating device and an image acquisition device. The sample container is driven to rotate by the rotating device, and the image acquisition device captures an image containing a barcode and a sequence code. The controller identifies the barcode and sequence code in the image and determines the sample information.

Benefits of technology

The barcode recognition efficiency is improved. Even if the barcode is not successfully identified, sample information can be obtained by identifying the sequence code, which improves the success rate of identifying the sample information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122319366A_ABST
    Figure CN122319366A_ABST
Patent Text Reader

Abstract

This application discloses a sample identification system, sample identification method, controller, and storage medium. The method includes: if the controller can successfully identify the barcode based on at least one image containing a barcode on the outside of the sample container, it determines the sample information of the sample container based on a first identification result of the barcode; if the controller fails to successfully identify the barcode based on at least one image containing a barcode on the outside of the sample container, it identifies the serial code based on at least one image containing a serial code on the outside of the sample container, and determines the sample information of the sample container based on a second identification result of the serial code; wherein at least one image containing a barcode and / or serial code on the outside of the sample container is captured by the image acquisition device when the sample container is rotated by a rotating device.
Need to check novelty before this filing date? Find Prior Art

Description

Sample identification system and sample identification method, controller and storage medium Technical Field

[0001] The present application relates to the field of medical detection technology, and in particular to a sample identification system and method, a controller, and a storage medium. Background Art

[0002] Automated biochemical and immunoassay pipelines can connect different biochemical instruments with pre- and post-analysis laboratory analysis systems via automated transmission tracks, achieving a combination of pipeline operations under the dominant control of an information system. Because the barcode affixed to the surface of the sample container records the information or test items of the blood sample within the sample container, barcode recognition of the sample container is an important part of the biochemical and immunoassay pipeline in the hospital laboratory department and the most critical step in information flow. However, the barcode on the sample container is manually affixed, and if the barcode is not fully displayed during barcode scanning, the barcode recognition result will not be obtained. Therefore, before scanning the sample container, the angle and position of the sample container must be manually adjusted to successfully recognize the barcode, resulting in reduced barcode recognition efficiency.

[0003] Summary of the Invention

[0004] To solve related technical problems, embodiments of the present application provide a sample identification system and method, a controller, and a storage medium.

[0005] An embodiment of the present application provides a sample identification system, comprising a controller, a rotating device, and an image acquisition device coupled to the controller;

[0006] The rotating device is used to drive the sample container to rotate in a vertical direction;

[0007] The image acquisition device is configured to acquire at least an image including a barcode and / or a serial code on the outside of the sample container when the rotating device drives the sample container to rotate;

[0008] The controller is configured to determine the sample information of the sample container based on a first recognition result of the barcode when the barcode can be successfully identified based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device; and to identify the serial code based on at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device when the barcode cannot be successfully identified based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device, and determine the sample information of the sample container based on a second recognition result of the serial code.

[0009] An embodiment of the present application further provides a sample identification system, comprising a controller, a rotating device, and an image acquisition device coupled to the controller;

[0010] The rotating device is used to drive the sample container to rotate in a vertical direction;

[0011] The image acquisition device is used to acquire an image of the sample container when the rotating device drives the sample container to rotate;

[0012] The controller is configured to control the rotation device to operate, and to control the rotation device to stop operating when the image acquisition device acquires an image including the barcode and the serial code on the outside of the sample container;

[0013] The controller is further configured to determine the sample information of the sample container based on a first recognition result of the barcode when the barcode can be successfully identified based on the image containing the barcode and serial code on the outside of the sample container acquired by the image acquisition device; and to identify the serial code based on the image containing the barcode and serial code on the outside of the sample container acquired by the image acquisition device when the barcode cannot be successfully identified based on the image containing the barcode and serial code on the outside of the sample container acquired by the image acquisition device, and determine the sample information of the sample container based on a second recognition result of the serial code.

[0014] An embodiment of the present application further provides a sample identification system, comprising a controller, a rotating device, and an image acquisition device coupled to the controller;

[0015] The rotating device is used to drive the sample container to rotate in a vertical direction;

[0016] The image acquisition device is configured to acquire at least an image including a barcode and / or a serial code on the outside of the sample container when the rotating device drives the sample container to rotate;

[0017] The controller is configured to identify the barcode based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device, identify the serial code based on at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device, and determine the sample information of the sample container based on a first recognition result of the barcode and a second recognition result of the serial code.

[0018] An embodiment of the present application further provides a sample identification system, comprising a controller, a rotating device, and an image acquisition device coupled to the controller;

[0019] The rotating device is used to drive the sample container to rotate in a vertical direction;

[0020] The image acquisition device is configured to acquire at least an image including a barcode and / or a serial code on the outside of the sample container when the rotating device drives the sample container to rotate;

[0021] The controller is used to control the operation of the rotating device and control the rotating device to stop operation when the image acquisition device acquires an image containing the barcode and serial code on the outside of the sample container; and is also used to determine the sample information of the sample container according to the first recognition result of the barcode when the barcode can be successfully recognized based on the image containing the barcode and serial code on the outside of the sample container; and is used to control the operation of the rotating device and control the rotation device to stop operation according to the at least one image containing the barcode and serial code acquired by the image acquisition device when the barcode cannot be successfully recognized based on the image containing the barcode and serial code on the outside of the sample container. The barcode is identified based on an image containing the barcode on the outside of the sample container. If the barcode can be successfully identified based on the at least one image containing the barcode on the outside of the sample container, the sample information of the sample container is determined based on a first recognition result of the barcode. If the barcode cannot be successfully identified based on the at least one image containing the barcode on the outside of the sample container, the serial code is identified based on at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device, and the sample information of the sample container is determined based on a second recognition result of the serial code.

[0022] The present application also provides a sample identification method, which is applied to a controller in a sample identification system; the sample identification system further includes a rotating device and an image acquisition device coupled to the controller; the method includes:

[0023] In a case where the barcode on the outside of the sample container can be successfully recognized based on at least one image including the barcode, determining the sample information of the sample container based on a first recognition result of the barcode;

[0024] In the case where the barcode on the outside of the sample container cannot be successfully recognized based on at least one image containing the barcode on the outside of the sample container, the serial code is recognized based on at least one image containing the serial code on the outside of the sample container, and the sample information of the sample container is determined based on the second recognition result of the serial code; wherein,

[0025] At least one image containing the barcode and / or serial code on the outside of the sample container is captured by the image acquisition device when the rotating device drives the sample container to rotate.

[0026] The embodiment of the present application further provides a controller, comprising: a processor and a memory for storing a computer program that can be run on the processor,

[0027] Wherein, the processor is configured to execute the steps of any of the above-mentioned controller-side methods when running the computer program.

[0028] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned controller-side methods are implemented.

[0029] In the sample identification system and sample identification method, controller and storage medium provided in the embodiments of the present application, the image acquisition device rotates and photographs the sample container to obtain at least one image containing the barcode and / or serial code on the outside of the same sample container. When the barcode can be successfully identified based on the image containing at least the barcode on the outside of the same sample container, the controller determines the sample information of the sample container based on the first recognition result of the barcode; and when the barcode cannot be successfully identified based on the image containing at least the barcode on the outside of the same sample container, the controller recognizes a second recognition result of the serial code based on the image containing at least the serial code on the outside of the same sample container, and determines the sample information of the sample container based on the second recognition result of the serial code; or the controller recognizes the barcode based on the image containing at least the barcode on the outside of the sample container, recognizes the serial code based on at least the serial code on the outside of the sample container, and determines the sample information of the sample container based on the first recognition result of the barcode and the second recognition result of the serial code of the same sample container. Compared with the solution in the related art that improves the scanning success rate by manually adjusting the position and direction of the sample container, the above solution can improve the efficiency of barcode recognition, and even if the barcode is not successfully recognized, the sample information can be obtained by identifying the serial code, which can improve the success rate of identifying the sample information. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] FIG1 is a schematic diagram of a sample identification system architecture according to an embodiment of the present application;

[0031] FIG2 is an example diagram of a sequence code based on image feature recognition according to an embodiment of the present application;

[0032] FIG3 is an example diagram of a sequence code recognized by a first set neural network according to an embodiment of the present application;

[0033] FIG4 is an example of an image obtained by rotating and photographing a sample container according to an embodiment of the present application;

[0034] FIG5 is an example of an image obtained by rotating and photographing a sample container according to an embodiment of the present application;

[0035] FIG6 is an example diagram of an image captured when the sample container is stationary according to an embodiment of the present application;

[0036] FIG7 is an example diagram of rotating and photographing a sample container according to an embodiment of the present application;

[0037] FIG8 is a schematic diagram of a sample identification method implementation flow in an embodiment of the present application;

[0038] FIG9 is a schematic diagram of the controller structure of an embodiment of the present application. DETAILED DESCRIPTION

[0039] The present application will be described in further detail below with reference to the accompanying drawings and embodiments.

[0040] The embodiment of the present application provides a sample identification system. Referring to FIG1 , the sample identification system includes: a controller 101, a rotating device 102, and an image acquisition device 103 coupled to the controller 101. The image acquisition device 103 can be a camera, such as an industrial camera. The controller 101 and the image acquisition device 103 can be directly coupled, for example, the image acquisition device 103 communicates with the controller 101 through a universal serial bus (USB), a high-definition multimedia interface (HDMI), etc. The controller 101 and the image acquisition device 103 can also be indirectly coupled, for example, the controller 101 communicates with the image acquisition device 103 through an intermediate device or other device.

[0041] The rotating device 102 is used to drive the sample container to rotate in a vertical direction;

[0042] An image acquisition device 103, configured to acquire at least an image including a barcode and / or a serial code on the outside of the sample container when the rotating device drives the sample container to rotate;

[0043] The controller 101 is configured to determine the sample information of the sample container based on a first recognition result of the barcode when the barcode can be successfully identified based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device; and to identify the serial code based on at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device when the barcode cannot be successfully identified based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device, and determine the sample information of the sample container based on a second recognition result of the serial code.

[0044] Here, the rotation device 102 can drive the sample container to rotate vertically, for example, 360 degrees. The image acquisition device 103 can photograph the sample container during its vertical rotation to obtain an image containing the barcode and / or serial code on the sample container's exterior, i.e., performing rotational scanning or rotational photography of the same sample container. Different images captured by the image acquisition device 103 for the same sample container may have different viewing angles or angles. The image acquisition device 103 can directly transmit all images of the sample container to the controller 101, or it can transmit all images of the sample container to another device for storage, from which the controller 101 can obtain the image of the sample container. Furthermore, the image acquisition device 103 saves the captured image of the sample container to a designated storage path of the image acquisition device 103 or other electronic device, and the controller 101 retrieves and stores the image of the sample container from the designated storage path. In practical applications, a corresponding folder can be created for each sample container, and the images of the sample container can be stored in the corresponding folder to distinguish between images of different sample containers. In addition, the image acquisition device 103 stores all images of a sample container captured into the set storage path each time. After the controller 101 acquires all images of the sample container from the set storage path, the controller 101 can clear all images under the set storage path. Thereafter, the image acquisition device 103 stores all images of another sample container captured into the set storage path, thereby realizing image reading of the sample containers one by one.

[0045] In practical applications, a sample container can be understood as a transparent or translucent container for loading samples, which can be a blood collection tube, test tube, sample tube, sampling tube, test tube, bottle, sample cup, etc. The sample loaded in the sample container includes a blood sample, which can be a serum sample or a plasma sample, and a reagent for detection can be added to the blood sample. A label is pasted or attached to the surface of the sample container, which is used to mark or record relevant information about the sample in the sample container. The label may include identification information of the sample in the sample container, such as a barcode, or a serial code composed of letters and / or numbers. The serial code can also be understood as a serial number, and the barcode can also be called a barcode, which consists of a group of black and white bars of different thicknesses.

[0046] In practical applications, the duration that the image acquisition device 103 takes photos of the sample container must be greater than or equal to the duration required for the sample container to rotate one full rotation or 360 degrees. This ensures that the image acquisition device 103 can capture images of the sample container from different shooting angles or viewing angles during one rotation. Considering that motion artifacts are easily generated when the image acquisition device 103 captures moving objects, in rotating photography scenarios, to ensure that the image acquisition device 103 can obtain clear images of the sample container from different shooting angles during one full rotation, the camera's exposure duration and / or shooting frequency are set to correspond or map to the rotation speed of the rotating mechanism. Here, different rotation speeds of the rotating mechanism 102 correspond to different exposure durations and / or different rotation speeds of the rotating mechanism 102 correspond to different shooting frequencies. The rotation speed of the rotating mechanism 102 can be determined based on the speed at which the label on the sample container can be recognized; however, the rotation speed of the rotating mechanism 102 can also be a set speed. The exposure duration can also be understood as the exposure time. To ensure that the image acquisition device 103 captures clear images, the exposure duration of the image acquisition device 103 is less than or equal to the quotient of the accuracy of the image acquisition device 103 and the rotation speed of the rotating device 102. The accuracy of the image acquisition device 103 can also be called pixel accuracy, which is equal to the quotient of the camera's unidirectional field of view and its unidirectional resolution. In practical applications, the shooting frequency can be replaced by the frame rate; the frame rate can be understood as the number of frames captured per second, for example, a frame rate of 20 frames per second.

[0047] The image acquisition device 103 may or may not have a barcode recognition function. In one embodiment, when the image acquisition device 103 has a barcode recognition function, the image acquisition device 103 may recognize the barcode. The image acquisition device 103 is further configured to recognize the barcode based on at least one barcode on the outside of the same sample container and, upon successful recognition of the barcode, send a barcode recognition result, or a first barcode recognition result, to the controller 101. Upon receiving the barcode recognition result sent by the image acquisition device 103, the controller 101 determines the first recognition result for the barcode on the outside of the sample container from the received barcode recognition results. For example, if the image acquisition device 103 only obtains one barcode recognition result based on at least one barcode on the outside of the same sample container, the controller 101 determines the received barcode recognition result as the first recognition result for the barcode on the sample container. In one embodiment, at least one image containing a barcode on the exterior of a sample container includes multiple images; if the image acquisition device 103 acquires at least two different barcode recognition results based on the multiple images of the same sample container, the controller 101 is further configured to determine a first recognition result for the barcode of the sample container from the at least two different barcode recognition results for the same sample container sent by the image acquisition device 103 based on the number of occurrences of the barcode recognition results corresponding to the same sample container; or, the image acquisition device 103 is further configured to determine a first recognition result from the at least two different barcode recognition results for the same sample container based on the number of occurrences of the corresponding barcode recognition results, and send the first recognition result to the controller 101. For example, the controller 101 or the image acquisition device 103 determines the at least two identical barcode recognition results corresponding to the same sample container as the first recognition result for the barcode of the sample container. For another example, the controller 101 or the image acquisition device 103 determines the barcode recognition result corresponding to the same sample container with the greatest number of occurrences as the first recognition result for the barcode of the sample container.

[0048] When the image acquisition device 103 does not have a barcode recognition function, or the controller 101 does not receive the barcode recognition result and the first recognition result corresponding to the sample container sent by the image acquisition device 103, the controller 101 can recognize the barcode. Specifically, when the controller 101 obtains at least one image of the same sample container containing the barcode on the outside of the sample container, the controller 101 recognizes the barcode based on the at least one image of the sample container containing the barcode on the outside of the sample container, obtains at least one barcode recognition result, and determines the first recognition result of the barcode in the at least one barcode recognition result. In one embodiment, the controller 101 is used to recognize the barcode based on the image features of all or part of the at least one image containing the barcode on the outside of the sample container; or, the controller 101 is used to process all or part of the at least one image containing the barcode on the outside of the sample container through a second set neural network to recognize the barcode; wherein the second set neural network is used to recognize the barcode in the input image. Here, the controller 101 can extract at least one type of image feature from all or part of at least one image of the same sample container containing a barcode on the outside of the sample container using a predetermined barcode recognition algorithm or a second predetermined neural network; identify a barcode region based on the extracted image features and recognize the barcode in the barcode region to obtain at least one barcode recognition result; and determine a first barcode recognition result from the determined barcode recognition results. For example, the same barcode recognition results corresponding to at least two consecutive images of the same sample container are determined as the first recognition result for the barcode of the sample container; for another example, the barcode recognition result with the most occurrences for the same sample container is determined as the first recognition result for the barcode of the sample container. The second predetermined neural network is trained based on sample container image samples, at least part of which contain the barcode on the outside of the sample container. The at least one type of image feature includes at least one of the following: edge features, grayscale distribution features, color features, texture features, shape features, and spatial relationship features. Edge features are used to characterize the presence of step changes (slope-type edges) or roof-like changes (roof-type edges) in the grayscale, brightness, or color of pixels in an image; grayscale distribution features characterize the distribution of grayscale values ​​in an image. Both color features and texture features are global features that describe the surface properties of the barcode area outside the sample container. Shape features include contour features, which mainly describe the contours or boundaries of labels and / or sample containers. Spatial relationship features refer to the spatial position or relative direction relationships between multiple targets segmented from an image. These relationships can be divided into connection relationships or adjacency relationships, overlapping relationships or overlapping relationships, inclusion relationships or independent relationships, etc.

[0049] In actual application, if the controller 101 only obtains one barcode recognition result based on at least one image containing the barcode on the outside of the same sample container, then only this barcode recognition result will be determined as the first recognition result of the barcode of the sample container; if at least one image containing the barcode on the outside of the same sample container includes multiple images, and the controller 101 obtains at least two barcode recognition results based on multiple images of the same sample container, then the same barcode recognition results corresponding to at least two consecutive images of the same sample container will be determined as the first recognition result of the barcode of the sample container, or the barcode recognition result corresponding to the same sample container with the most occurrences will be determined as the first recognition result of the barcode of the sample container.

[0050] It should be noted that when the image acquisition device 103 successfully identifies the barcode on the outside of the sample container, and / or the controller 101 successfully identifies the barcode on the outside of the sample container, the controller 101 can determine the first recognition result of the barcode on the outside of the sample container, and determine the sample information of the sample container based on the first recognition result of the barcode. For example, the first recognition result can be parsed or decoded according to the encoding rules or coding rules of the barcode to obtain the sample information of the sample container, and the sample detection items bound to the sample information (such as identification information) can also be obtained.

[0051] If the image acquisition device 103 fails to successfully identify the barcode on the outside of the sample container, and the controller 101 also fails to successfully identify the barcode on the outside of the sample container, the controller 101 identifies the serial code based on at least one image containing the serial code on the outside of the same sample container, and determines the sample information of the sample container based on the second recognition result of the serial code; for example, the first recognition result of the serial code is parsed or decoded according to the encoding rules of the serial code to obtain the sample information of the sample container, and the sample detection item bound to the sample information (such as identification information) can also be obtained. Of course, when the serial code does not involve encoding rules, the second recognition result of the serial code can be used as the sample information of the sample container. In actual application, if the controller 101 only obtains one serial code recognition result based on at least one image containing the serial code on the outside of the same sample container, then this only serial code recognition result is determined as the second recognition result of the serial code of the sample container; if at least one image containing the serial code on the outside of the same sample container includes multiple images, and the controller 101 obtains at least two serial code recognition results based on multiple images of the same sample container, then the controller 101 can determine the same serial code recognition results corresponding to at least two consecutive images of the same sample container as the second recognition result of the serial code of the sample container, or determine the serial code recognition result corresponding to the same sample container with the most occurrences as the second recognition result of the serial code of the sample container.

[0052] In order to improve the success rate of identifying sample information, in one embodiment, the controller 101 may obtain the second identification result of the sequence code by:

[0053] Recognize the serial code on the outside of the sample container based on image features of all or part of at least one image containing the serial code on the outside of the sample container to obtain a second recognition result of the serial code; or

[0054] A first set neural network is used to process all or part of at least one image containing the serial code on the outside of the sample container to obtain a second serial code recognition result; wherein the first set neural network is used to recognize the serial code in the input image.

[0055] Here, the controller 101 can use a predetermined serial code recognition algorithm or serial number recognition algorithm, such as an optical character recognition (OCR) algorithm, to extract image features from all or part of at least one image containing the serial code on the exterior of the same sample container, and recognize the serial code on the exterior of the sample container based on the extracted image features to obtain a second recognition result of the serial code. Specifically, based on the extracted image features, the serial code region can be first recognized, and then the serial code within the serial code region can be recognized; the extracted image features can include at least one of the following: edge features, grayscale distribution features, color features, texture features, shape features, and spatial relationship features.

[0056] When the second recognition result obtained using the algorithm is the same as the second recognition result output by the first set neural network, it indicates that the second recognition result is correct, for example, the serial codes identified by different methods in Figures 2 and 3 are the same; when the second recognition result obtained using the algorithm is different from the second recognition result output by the first set neural network, the controller 101 issues an alarm prompt so that relevant personnel can review or perform further processing. The first set neural network is trained based on image samples of the sample container, and at least part of the image samples contain the serial code outside the sample container. The first set neural network at least extracts feature information of numbers and / or characters used to constitute the serial code in the input image, and determines the serial code in the input image based on the extracted feature information.

[0057] To further improve the success rate and accuracy of identifying sample information, the controller 101 may also, before identifying the barcode and / or serial code on the outside of the sample container, filter out at least one image containing the barcode and / or serial code on the outside of the sample container from multiple images of the same sample container for use in determining the sample information. Based on this, in one embodiment, the controller 101 is further configured to:

[0058] Determine from the multiple images acquired by the image acquisition device 103 the at least one image containing the barcode on the outside of the sample container, and / or the at least one image containing the serial code on the outside of the sample container, for determining the sample information of the sample container; wherein, the first parameter value of the at least one image is greater than a set threshold; the first parameter value represents the ratio of the first area to the second area; the first area represents the area occupied by the barcode and / or the serial code in the at least one image; the second area represents the area occupied by the sample container in the at least one image.

[0059] Here, the controller 101 can determine a first parameter value for each of multiple images of the same sample container, where the first parameter value represents the ratio of the first area to the second area; among the multiple images of the sample container, determine an image whose first parameter value is greater than a set threshold value, and obtain at least one image containing the serial code and / or the serial code on the outside of the sample container. When a barcode needs to be identified, the first area represents the area occupied by the barcode in the image, so as to obtain at least one image containing the serial code on the outside of the sample container; when a serial code needs to be identified, the first area represents the area occupied by the serial code in the image, so as to obtain at least one image containing the serial code on the outside of the sample container. When a barcode and a serial code need to be identified, the first area represents the area occupied by the barcode and the serial code in the image, so as to obtain at least one image containing the barcode and the serial code on the outside of the sample container.

[0060] For example, Figures 4 and 5 respectively give examples of images obtained by rotational photography. Before recognizing the barcode, the image determined to contain the barcode on the outside of the sample container can be Figure (a) in Figure 4, or Figure (c) and / or Figure (d) in Figure 5; before recognizing the serial code, the image determined to contain the serial code on the outside of the sample container can be Figure (d) in Figure 5.

[0061] In one embodiment, the sample identification system further includes: a human-computer interaction device; the controller 101 is further used to: control the human-computer interaction device to output an alarm prompt message on its display interface when the serial code is not successfully identified; the alarm prompt message indicates that the sample information identification of the sample container has failed.

[0062] Here, the controller 101 may not be able to successfully identify the serial code because the serial code in the captured image may be incomplete or unclear. At this time, the controller 101 controls the human-computer interaction device to output an alarm prompt message on the display interface of the human-computer interaction device to prompt relevant personnel to perform further processing, such as manually entering the serial number and / or sample information.

[0063] Considering that some barcodes are neatly affixed or face the camera of the image acquisition device 103, it may be possible to successfully identify the barcode without rotating the sample container to scan the barcode. Therefore, in order to minimize the total time consumed for identifying the barcode and save data processing resources, the barcode outside the sample container can be identified when the sample container is in a stationary state, that is, a conventional scan can be performed first. If the barcode cannot be identified when the sample container is in a stationary state, the sample container can be rotated to shoot or rotate scan the barcode. Based on this, in one embodiment, before rotating the sample container to shoot the barcode, the image acquisition device 103 is also used to:

[0064] An image is taken when the sample container is stationary, and the barcode is recognized based on the image. If the barcode cannot be successfully recognized, at least the image including the barcode and / or serial code on the outside of the sample container is obtained when the rotating device 102 drives the sample container to rotate.

[0065] Here, the image acquisition device 103 recognizes the barcode based on an image taken when the same sample container is stationary; the image acquisition device 103 recognizes the barcode on the outside of the sample container based on the image, and if the barcode on the outside of the sample container is not successfully recognized, the controller 101 can be notified to control the rotation device 102 to drive the sample container to rotate in a vertical direction; the image acquisition device 103 at least obtains an image containing the barcode and / or serial code on the outside of the sample container when the rotation device 102 drives the sample container to rotate, so that the image acquisition device 103 and / or the controller 101 recognize the barcode on the outside of the sample container based on the image containing the barcode and / or serial code on the outside of the sample container.

[0066] Figure 6 shows an example of an image captured while the sample container is stationary. Because Figure 6 (a) shows the complete barcode, while Figure 6 (b) does not, the barcode on the outside of the sample container can be successfully recognized based on Figure 6 (a), but cannot be successfully recognized based on Figure 6 (b).

[0067] Figure 7 shows an example of rotating a sample container. Because the barcode cannot be successfully recognized when the barcode is not fully displayed in the image, the barcode on the outside of the sample container cannot be successfully recognized based on images (a) and (b) in Figure 7. However, the barcode on the outside of the sample container can be successfully recognized based on images (c) and / or (d) in Figure 7.

[0068] In a scenario where a sample container carried by a base is subjected to rotational photography or rotational scanning, in one embodiment, the rotating device 102 includes: a base for vertically placing the sample container, and a rotating mechanism for driving the base to rotate around a vertical direction.

[0069] Here, as shown in FIG4 , the rotation mechanism is connected to a base for vertically placing a sample container, also known as a sample holder. The rotation mechanism drives the base to rotate, thereby rotating the sample container vertically placed on the base in a vertical direction, for example, 360 degrees. Image acquisition device 103 can capture an image while the sample container is stationary and / or capture an image of at least the barcode and / or serial code on the exterior of the sample container while the rotation device 102 is rotating the sample container.

[0070] Among them, the base used to place the sample container vertically can clamp the bottom of the sample container, and the part that clamps the sample container does not block the barcode and / or serial code; the base can be a single-tube base or a multi-tube base; a multi-tube base can place multiple sample containers, for example, 5 or 10 sample containers.

[0071] In a scenario where rotational photography or rotational scanning is performed on a sample container grasped by a manipulator, in one embodiment, the rotating device 102 includes: a manipulator for grasping the sample container, and a rotating mechanism for driving the manipulator to rotate around a vertical direction.

[0072] Here, the rotating mechanism is connected to the manipulator; the manipulator can be used to clamp the top or other part of the sample container, and the part of the sample container clamped does not block the barcode and / or serial code. The rotating mechanism can drive the manipulator to rotate in a vertical direction, thereby driving the sample container grasped by the manipulator to rotate in a vertical direction. The image acquisition device 103 can capture an image when the sample container is stationary, and / or, at least capture an image including the barcode and / or serial code on the outside of the sample container while the rotating device 102 drives the sample container to rotate.

[0073] In actual application, as shown in Figure 5, the rotating device 102 can clamp the top of the sample container through a manipulator, lift the sample container to a certain height, and drive the manipulator to rotate in a vertical direction through a rotating mechanism, thereby driving the sample container clamped by the manipulator to rotate in a vertical direction, so that the image acquisition device 103 can rotate and shoot the sample container.

[0074] In a scenario of performing rotational photography or rotational scanning on a sample rack placed in a sample tube, in one embodiment, the rotating device 102 includes: a sample container carrying mechanism, and a rotating mechanism for driving the sample container to rotate around a vertical direction in the sample container carrying mechanism.

[0075] Here, the sample container can be rotated in the sample container holding mechanism about the vertical direction of the sample container, and the portion of the sample container holding mechanism used to hold or secure the sample container does not obstruct the barcode and / or serial code on the exterior of the sample container. The sample container holding mechanism includes a sample rack, and each sample rack can hold multiple sample containers, for example, 5 or 10 sample containers.

[0076] It should be noted that the rotating device 102 may also include a rotating head. The rotating mechanism can drive the rotating head to rotate. When the rotating mechanism drives the rotating head to rotate, the rotating head is used to apply pressure to the end of the sample container to drive the sample container to rotate in the sample container supporting mechanism. The rotating mechanism is connected to the rotating head.

[0077] In one embodiment, the image acquisition device 103 further includes:

[0078] A light source is used to provide a shooting light source for the camera.

[0079] Here, the light source can increase the brightness of the shooting environment, thereby increasing the brightness of the image captured by the image acquisition device 103 to obtain a clear image.

[0080] Based on the above embodiment, the image acquisition device 103 captures an image containing a barcode and / or serial code on the outside of the same sample container in a rotational scanning or selective shooting scenario. The image acquisition device 103 and / or the controller 101 recognizes the barcode based on at least one image containing the barcode on the outside of the same sample container. If the barcode is not successfully recognized, the controller 101 recognizes the serial code based on at least one image containing the serial code on the outside of the same sample container to obtain a second recognition result of the serial code, and determines the sample information of the sample container based on the second recognition result. In this way, even if the barcode is not successfully recognized, the sample information can still be obtained by recognizing the serial code. Compared with the solution in the related art that obtains sample information by simply scanning the barcode, the above solution can improve the success rate of identifying sample information.

[0081] Continuing with FIG1 , the present embodiment further provides another sample identification system, which differs from the sample identification system provided in the above embodiment in that:

[0082] The controller 101 is configured to identify the barcode on the outside of the sample container based on at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device 103, identify the serial code on the outside of the sample container based on at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device 103, and determine the sample information of the sample container based on a first recognition result of the barcode and a second recognition result of the serial code.

[0083] Here, the image acquisition device 103 acquires an image containing a barcode and / or a serial code on the outside of the sample container when the rotating device 102 drives the sample container to rotate; the controller 101 acquires the image containing the barcode and / or serial code on the outside of the same sample container acquired by the image acquisition device 103, and based on at least one image containing the barcode on the outside of the sample container, recognizes the barcode to obtain a first barcode recognition result; recognizes the serial code based on at least one image containing the serial code on the outside of the sample container to obtain a second barcode recognition result; and determines the sample information of the sample container based on the first barcode recognition result and the second barcode recognition result. Of course, the controller 101 can also recognize the barcode and serial code based on at least one image containing the barcode and serial code on the outside of the same sample container to obtain a first barcode recognition result and a second barcode recognition result. The implementation method of the controller 101 recognizing the barcode and serial code on the outside of the sample container to obtain the first recognition result and the second recognition result is described above and is not repeated here.

[0084] In one embodiment, the controller 101 determines the sample information of the sample container based on the first recognition result of the barcode and the second recognition result of the serial code, including:

[0085] When the first recognition result and the second recognition result are the same, the sample information of the sample container is determined based on the first recognition result or the second recognition result.

[0086] Here, when the controller 101 obtains the first recognition result of the barcode and the second recognition result of the serial code, it determines whether the first recognition result is the same as the second recognition result to verify the first recognition result and the second recognition result; when the first recognition result is the same as the second recognition result, it indicates that the code scanning is successful, and the controller 101 determines the sample information of the sample container based on the first recognition result or the second recognition result.

[0087] It should be noted that when the first recognition result and the second recognition result are different, indicating an abnormal code scanning, the controller 101 can transfer the sample container to the abnormal code scanning area, and can also control the human-computer interaction device in the sample identification system to output an alarm prompt message or output a prompt message indicating an abnormal code scanning on the display interface of the human-computer interaction device to prompt relevant personnel to take further action, for example, manually enter the serial number and / or sample information; the alarm prompt message indicates that the sample information recognition of the sample container has failed.

[0088] In actual use, before loading samples, relevant personnel will place an order on a computer and enter the barcode of the sample to be tested. The server can then obtain the sample information determined by the controller based on the first or second recognition results and establish a correspondence between the barcode, the sample information, and the sample test results. Each barcode is associated with one sample information and sample test result.

[0089] Based on the above embodiments, in the scenario of rotational scanning or selective shooting, the controller 101 recognizes the barcode based on at least one image containing the barcode on the outside of the same sample container, recognizes the serial code based on at least one image containing the serial code on the outside of the same sample container, and determines the sample information of the sample container based on the first recognition result of the barcode and the second recognition result of the serial code; thus, even if the barcode is not successfully recognized, the sample information can be obtained by recognizing the serial code, thereby improving the success rate of identifying the sample information; in addition, the image acquisition device 103 does not need to recognize the barcode, which can save data processing resources of the image acquisition device 103 and reduce the data processing capability requirements of the image acquisition device.

[0090] Continuing with FIG1 , the present embodiment further provides another sample identification system, which differs from the sample identification system provided in the above embodiment in that:

[0091] An image acquisition device 103, configured to acquire an image of the sample container when the rotating device 102 drives the sample container to rotate;

[0092] The controller 101 is configured to control the rotation device to operate, and to control the rotation device to stop operating when the image acquisition device acquires an image including the barcode and serial code on the outside of the sample container;

[0093] The controller 101 is further configured to determine the sample information of the sample container based on a first recognition result of the barcode when the image containing the barcode and the serial code on the outside of the sample container acquired by the image acquisition device 103 can successfully identify the barcode; and to identify the serial code based on the image containing the barcode and the serial code on the outside of the sample container acquired by the image acquisition device 103 when the barcode cannot be successfully identified, and determine the sample information of the sample container based on a second recognition result of the serial code.

[0094] Here, the controller 101 controls the rotation device 102 to operate so that the rotation device 102 drives the sample container to rotate in a vertical direction. The image acquisition device 103 acquires an image of the sample container while the rotation device 102 drives the sample container to rotate. The controller 101 acquires an image of the same sample container captured by the image acquisition device 103 and determines whether the acquired image contains an image of the barcode and serial code on the outside of the sample container, that is, whether a front image of the barcode and serial code on the outside of the sample container is acquired. When the image acquisition device 103 acquires an image containing the barcode and serial code on the outside of the sample container, the controller 101 controls the rotation device 102 to stop operating. The image acquisition device 103 and / or the controller 101 can recognize the barcode based on the image containing the barcode and serial code on the outside of the sample container to obtain a barcode recognition result. If the barcode cannot be successfully recognized based on the image containing the barcode and serial code on the outside of the sample container acquired by the image acquisition device 103, the controller 101 can also recognize the serial code based on the image containing the barcode and serial code on the outside of the sample container to obtain a serial code recognition result. In actual application, the controller 101 can control the rotating device 102 to rotate at a set angle, that is, each time the rotating device 102 rotates at a set angle, for example, 20 degrees. The angle of rotation of the rotating device 102 can be determined according to the rotation speed of the rotating device 102.

[0095] In order to improve the success rate of identifying sample information, in one embodiment, the controller 101 is further configured to identify the barcode based on image features of all or part of the image containing the barcode and serial code on the outside of the sample container; or

[0096] The controller 101 is further configured to process all or part of the image containing the barcode and serial code on the outside of the sample container through a second set neural network to identify the barcode; wherein the second set neural network is configured to identify the barcode in the input image.

[0097] It should be noted that the method of identifying a barcode based on an image containing a barcode and a serial code on the outside of a sample container is similar to the above method of identifying a barcode based on at least one barcode on the outside of a sample container, and is not described in detail here.

[0098] In order to improve the success rate of identifying sample information, in one embodiment, the controller 101 may identify the serial code based on the image features of all or part of the image containing the barcode and serial code on the outside of the sample container to obtain the second identification result; or,

[0099] The controller 101 can process all or part of the image containing the barcode and serial code on the outside of the sample container through a first set neural network to identify the serial code and obtain the second recognition result; wherein the first set neural network is used to identify the serial code in the input image.

[0100] It should be noted that the method of identifying the serial code based on an image containing the barcode and serial code on the outside of the sample container is similar to the above method of identifying the serial code based on at least one image containing the serial code on the outside of the sample container, and will not be repeated here.

[0101] In order to accurately identify the front image of the barcode and serial code, in one embodiment, when the rotating device 102 is running, the controller 101 performs recognition based on the image features of the image acquired by the image acquisition device 103 to obtain a third recognition result; or, the controller 101 processes the image acquired by the image acquisition device 103 through a third set neural network to obtain a third recognition result; when the third recognition result indicates that the image acquisition device 103 acquires an image containing the barcode and serial code on the outside of the sample container, the controller 101 controls the rotating device 102 to stop running.

[0102] Here, the controller 101 can invoke a barcode region recognition algorithm to identify image features of the image captured by the image acquisition device 103 to obtain a third recognition result. The barcode region recognition algorithm is used to detect the barcode region; the image features include at least one of the following: edge features, grayscale distribution features, color features, texture features, shape features, and spatial relationship features. A third neural network is configured to process the input image to obtain a barcode region recognition result, which indicates whether the barcode and serial code on the outside of the sample container are included. The third neural network takes the image of the sample container as input and outputs the barcode region recognition result. It should be noted that if the third recognition result-representing image acquisition device 103 does not capture an image containing the barcode and serial code on the outside of the sample container, the controller 101 can control the rotation device 102 to continue operating until the third recognition result-representing image acquisition device 103 captures an image containing the barcode and serial code on the outside of the sample container. Capturing an image containing the barcode and serial code on the outside of the sample container can be understood as capturing an image of the front of the barcode and serial code.

[0103] In order to further improve the success rate and accuracy of identifying sample information, the controller 101 may also select an image with a larger image area of ​​the barcode and serial code from multiple images of the same sample container before identifying the barcode and serial code on the outside of the sample container, and use it to identify the sample information. Based on this, in one embodiment, the image containing the barcode and serial code on the outside of the sample container used to determine the sample information of the sample container is determined from the multiple images acquired by the image acquisition device; wherein,

[0104] The first parameter value of the at least one image is greater than a set threshold; the first parameter value represents a ratio of a first area to a second area; the first area represents the area occupied by the barcode and the serial code in the at least one image; and the second area represents the area occupied by the sample container in the at least one image. In order to improve the accuracy of the first recognition result, in one embodiment, when at least two different barcode recognition results are obtained based on multiple images of the same sample container obtained by the image acquisition device 103: the controller 101 is further used to determine a first barcode recognition result from the at least two different barcode recognition results based on the number of occurrences of the barcode recognition results corresponding to the same sample container; or, the image acquisition device 103 is further used to determine the first recognition result from the at least two different barcode recognition results based on the number of occurrences of the corresponding barcode recognition results, and send the first recognition result to the controller.

[0105] Some or all of the multiple images of the same sample container captured by the image acquisition device 103 may contain at least the barcode on the exterior of the sample container. That is, one image may contain only the barcode on the exterior of the sample container, or one image may contain both the barcode on the exterior of the sample container and the serial code. The controller 101 or the image acquisition device 103 may identify at least two different barcode recognition results based on the multiple images containing at least the barcode on the exterior of the sample container. The controller 101 or the image acquisition device 103 may determine the at least two identical barcode recognition results corresponding to the same sample container as the first barcode recognition result for the sample container. The controller 101 or the image acquisition device 103 may also determine the barcode recognition result that appears the most times for the same sample container as the first barcode recognition result for the sample container.

[0106] To improve the accuracy of the first recognition result, in one embodiment, the controller 101 or the image acquisition device 103 determines the first recognition result from at least two different barcode recognition results based on the number of occurrences of the barcode recognition results corresponding to the same sample container, including:

[0107] For each image acquired by the image acquisition device 103, the controller 101 or the image acquisition device 103 votes on the corresponding barcode recognition result when the barcode in the image is recognized; when the number of votes corresponding to any barcode recognition result is greater than a set threshold, the barcode recognition result with the number of votes greater than the set threshold is determined as the first recognition result.

[0108] Here, each time the controller 101 or image acquisition device 103 obtains a barcode recognition result corresponding to a sample container, it votes on the barcode recognition result corresponding to the sample container. If the number of votes corresponding to any barcode recognition result for the same sample container is greater than a set threshold, the barcode recognition result with the number of votes greater than the set threshold is determined as the first recognition result for the barcode on the outside of the sample container. For example, when a barcode recognition result A is obtained for any sample container, A is voted on. When any barcode recognition result for the sample container reaches N votes, A is determined as the first recognition result for the barcode on the outside of the sample container. It should be noted that the barcode recognition results for the same sample container obtained twice in a row can be the same or different. For example, the barcode recognition results corresponding to the same sample container obtained multiple times in a row can be ABA, ABB, AAA, ABAA, or ABBAA.

[0109] If the image acquisition device 103 and / or the controller 101 successfully recognizes the barcode on the outside of the sample container, the controller 101 may further determine the sample information of the sample container based on the first recognition result of the barcode on the sample container. If the image acquisition device 103 and / or the controller 101 fails to successfully recognize the barcode on the outside of the sample container, the controller 101 may further recognize the serial code based on an image that at least includes the serial code on the outside of the same sample container, and determine the sample information of the sample container based on the second recognition result of the serial code. The process for the controller 101 to determine the sample information based on the second recognition result is described above and is not repeated here.

[0110] Considering that some barcodes are neatly affixed or face the camera of the image acquisition device 103, it may not be necessary to rotate the sample container to scan the barcode in order to successfully identify the barcode. Therefore, in order to minimize the total time consumed for barcode identification and save data processing resources, the barcode outside the sample container can be identified when the sample container is in a stationary state, that is, a conventional scan can be performed first. If the barcode cannot be identified when the sample container is in a stationary state, the sample container can be rotated and photographed. Based on this, in one embodiment, the image acquisition device 103 is also used to obtain an image of the sample container when the sample container is stationary; if the controller 101 fails to successfully identify the barcode based on the image, it controls the rotation device 102 to operate.

[0111] Here, before the rotating device 102 drives the sample container to rotate vertically, the image acquisition device 103 captures an image of the sample container while the sample container is stationary. The image acquisition device 103 and / or the controller 101 recognize the barcode based on the image. If the barcode is successfully recognized based on the image, the controller 101 can control the rotating device 102 to stop. If the barcode is not successfully recognized based on the image, the controller 101 controls the rotating device 102 to operate, thereby driving the sample container to rotate vertically to recognize the barcode in the scenario of rotational scanning or rotational photography. In this way, the success rate of identifying sample information can be guaranteed, resources can be saved, and the efficiency of sample information recognition can be improved.

[0112] In order to avoid wasting too much time on samples without barcodes and improve the efficiency of sample information identification, in one embodiment, the controller 101 is also used to: control the rotating device 102 to stop running if no barcode is identified after the rotating device 102 drives the sample container to rotate a set number of circles.

[0113] Here, after the rotating device 102 drives the sample container to rotate a set number of times, if the barcode recognition result corresponding to the sample container sent by the image acquisition device 103 is still not received, or the controller 101 still fails to recognize any barcode corresponding to the sample container, indicating that there is no barcode on the outside of the sample container, then the controller 101 controls the rotating device 102 to stop running to stop the sample container from rotating; the set number of times can be 2; at this time, the controller 101 can also mark the barcode recognition result of the sample container as NOREAD or recognition failure or no barcode.

[0114] It should be noted that if any barcode recognition result corresponding to the sample container is obtained within the first set number of rotations driven by the rotating device 102, the controller 101 or the image acquisition device 103 needs to determine the first barcode recognition result within the second set number of rotations driven by the rotating device 102. If the controller 101 still fails to determine the first barcode recognition result or fails to receive the first barcode recognition result sent by the image acquisition device 103 when the rotating device 102 drives the sample container to rotate the second set number of rotations, then the controller 101 may mark the barcode recognition result of the sample container as NOREAD, recognition failure, or no barcode. The second set number of rotations is greater than the first set number of rotations. For example, the first set number of rotations may be 2, and the second set number of rotations may be 3 or 4.

[0115] Based on the above embodiments, in a rotational scanning or selective shooting scenario, the image acquisition device 103 acquires an image of the sample container while the rotating device 102 drives the sample container to rotate. When the image acquisition device 103 acquires an image containing the barcode and serial code on the outside of the sample container, the controller 101 recognizes the barcode based on the image containing the barcode and serial code on the outside of the sample container. If the barcode is successfully recognized, the controller 101 determines the sample information of the sample container based on the first recognition result of the barcode. If the barcode is not successfully recognized, the controller 101 recognizes the serial code based on the image containing the serial code on the outside of the sample container and the serial code, obtains a second recognition result of the serial code, and determines the sample information of the sample container based on the second recognition result. In this way, not only can the efficiency of identifying sample information be improved, but even if the barcode is not successfully recognized, the sample information can still be obtained by recognizing the serial code. Compared with the solution in the related art that obtains sample information by simply scanning the barcode, the above solution can improve the success rate and efficiency of identifying sample information.

[0116] Continuing with FIG1 , the present embodiment further provides another sample identification system, which differs from the sample identification system provided in the above embodiment in that:

[0117] An image acquisition device 103, configured to acquire at least an image including a barcode on the outside of the sample container when the rotating device drives the sample container to rotate;

[0118] The controller 101 is used to control the rotation device 102 to operate, and to control the rotation device 102 to stop operating when the image acquisition device 103 acquires an image containing the barcode and / or serial code on the outside of the sample container; and is also used to determine the sample information of the sample container according to the first recognition result of the barcode when the barcode can be successfully recognized based on the image containing the barcode on the outside of the sample container; and is used to control the rotation device 102 to operate, according to at least one image containing the barcode acquired by the image acquisition device 103 when the barcode cannot be successfully recognized based on the image containing the barcode on the outside of the sample container. The barcode is identified based on the image of the barcode on the outside of the sample container. If the barcode can be successfully identified based on the at least one image containing the barcode on the outside of the sample container, the sample information of the sample container is determined based on the first recognition result of the barcode; if the barcode cannot be successfully identified based on the at least one image containing the barcode on the outside of the sample container, the serial code is identified based on the at least one image containing the serial code on the outside of the sample container obtained by the image acquisition device 103, and the sample information of the sample container is determined based on the second recognition result of the serial code.

[0119] Here, the controller 101 controls the rotation device 102 to rotate the sample container vertically. The image acquisition device 103 acquires an image of the sample container while the rotation device 102 rotates the sample container. In practice, the controller 101 can control the rotation device 102 to rotate by a set angle, for example, 20 degrees at a time. The rotation angle of the rotation device 102 can be determined based on the rotation speed of the rotation device 102.

[0120] The controller 101 acquires an image of the same sample container captured by the image acquisition device 103 and determines whether the acquired image includes an image of the barcode and serial code on the outside of the sample container, that is, whether a front image of the barcode and serial code on the outside of the sample container is acquired. If the acquired image includes an image of the barcode and serial code on the outside of the sample container, the controller 101 controls the rotation device 102 to stop operating. The controller 101 or the image acquisition device 103 performs recognition based on the image including the barcode on the outside of the sample container. If the barcode is successfully recognized based on the image including the barcode and serial code on the outside of the sample container, the controller 101 determines the sample information of the sample container based on the first recognition result of the barcode on the outside of the sample container. If the barcode is not successfully recognized based on the image including the barcode on the outside of the sample container, the controller 101 controls the rotation device 103 to operate. The image acquisition device 103 at least acquires an image including the barcode and / or serial code on the outside of the sample container when the rotation device 102 drives the sample container to rotate. The controller 101 identifies the barcode based on at least one image containing the barcode on the outside of the same sample container acquired by the image acquisition device 103. When the barcode can be successfully identified based on at least one image containing the barcode on the outside of the same sample container, the controller 101 determines the sample information of the sample container based on the first recognition result of the barcode. When the barcode cannot be successfully identified based on at least one image containing the barcode on the outside of the same sample container, the controller 101 identifies the serial code based on at least one image containing the serial code on the outside of the same sample container acquired by the image acquisition device 103, and determines the sample information of the sample container based on the second recognition result of the serial code.

[0121] For the implementation method of identifying the barcode and serial code, and the implementation method of determining the sample information, please refer to the relevant description above and will not be repeated here.

[0122] Based on the relevant descriptions of the above embodiments, correspondingly, embodiments of the present application further provide a sample identification method, which is applied to a controller in the above sample identification system; the sample identification system also includes a rotating device and an image acquisition device coupled to the controller, and the controller can communicate with the image acquisition device to receive or acquire images captured by the image acquisition device and / or receive barcode recognition results sent by the image acquisition device. Referring to Figure 8, the method includes:

[0123] Step 801: When a barcode on the outside of a sample container can be successfully identified based on at least one image at least including the barcode on the outside of the sample container, determine sample information of the sample container based on a first recognition result of the barcode.

[0124] Wherein, at least one image including at least the barcode on the outside of the sample container is captured by the image acquisition device when the rotating device drives the sample container to rotate.

[0125] Here, the image acquisition device or controller can recognize the barcode based on at least one image that at least includes the barcode on the outside of the same sample container to obtain a barcode recognition result, and determine a first barcode recognition result based on the barcode recognition result of the same sample container, and the controller can determine the sample information of the sample container based on the first barcode recognition result. Alternatively, the image acquisition device can recognize the barcode based on at least one image that at least includes the barcode on the outside of the same sample container to obtain a barcode recognition result, and the controller can determine a first barcode recognition result based on the barcode recognition result of the same sample container; and the controller can determine the sample information of the sample container based on the first barcode recognition result. The implementation process of determining the first barcode recognition result and determining the sample information based on the first recognition result is described above and is not repeated here.

[0126] It should be noted that the image containing at least the barcode on the exterior of the same sample container may contain at least the barcode of the sample container and may also contain the serial code of the sample container. In other words, the image acquisition device or controller recognizes the barcode based on at least one image containing at least the barcode on the exterior of the same sample container, including: performing barcode recognition based on the image containing the barcode on the exterior of the same sample container, or performing barcode recognition based on the image containing both the barcode and the serial code on the exterior of the same sample container.

[0127] In order to reduce the amount of data processing by the controller, the barcode can be recognized by an image acquisition device. Based on this, in one embodiment, determining the sample information of the sample container according to the first recognition result of the barcode includes:

[0128] Receive the first recognition result sent by the image acquisition device, and determine the sample information of the sample container based on the first recognition result; the first recognition result is obtained by the image acquisition device recognizing the barcode based on an image captured that at least includes the barcode on the outside of the sample container.

[0129] Here, if the image acquisition device recognizes the barcode based on at least one image that contains at least the barcode of the outside of the same sample container and only obtains one barcode recognition result, then the barcode recognition result is the first recognition result of the barcode of the sample container; the image acquisition device sends the first recognition result of the barcode of the sample container to the controller; the controller receives the first recognition result sent by the image acquisition device and determines the sample information of the sample container based on the first recognition result.

[0130] The image including at least the barcode on the outside of the sample container may be an image acquired when the sample container is stationary before the controller controls the rotating device to operate, or may be an image captured by the image acquisition device when the rotating device drives the sample container to rotate.

[0131] In the case of rotational scanning or rotational photography, the barcode can be recognized by the image acquisition device to reduce the data processing workload of the controller. Based on this, in one embodiment, the at least one image containing at least the barcode on the outside of the sample container includes multiple images; and the receiving of the first recognition result sent by the image acquisition device includes:

[0132] receiving at least two different barcode recognition results obtained by the image acquisition device based on the multiple images;

[0133] The first recognition result is determined from the at least two different barcode recognition results based on the number of occurrences of the corresponding barcode recognition results.

[0134] Here, the image acquisition device can obtain at least two different barcode recognition results based on multiple images containing at least the barcode on the outside of the same sample container, and send all barcode recognition results corresponding to the same sample container to the controller. The controller determines a first recognition result from all barcode recognition results corresponding to the sample container based on the number of occurrences of each barcode recognition result corresponding to the sample container. For example, the controller can determine the barcode recognition result corresponding to the same sample container with the most occurrences as the first recognition result for the barcode of the sample container. This can improve the accuracy and reliability of the first recognition result.

[0135] To improve the accuracy and credibility of the first recognition result, in one embodiment, determining the first recognition result from the at least two different barcode recognition results based on the number of occurrences of the corresponding barcode recognition results includes:

[0136] Vote for the corresponding barcode recognition results;

[0137] In the case that the number of votes corresponding to any barcode recognition result is greater than a set threshold, the barcode recognition result with the number of votes greater than the set threshold is determined as the first recognition result.

[0138] For example, if the different barcode recognition results corresponding to the same sample container are ABA, AAA, ABAA or ABBAAA, then the first recognition result of the barcode of the sample container is A; if the different barcode recognition results corresponding to the same sample container are ABB, then the first recognition result of the barcode of the sample container is B.

[0139] In the case of rotational scanning or rotational photography, the barcode recognition can be controlled to reduce the data processing volume of the image acquisition device or reduce the data processing capability requirements of the image acquisition device. Based on this, in one embodiment, the method further includes:

[0140] receiving the at least one image including at least the barcode on the outside of the sample container sent by the image acquisition device;

[0141] The barcode is identified based on image features of all or part of the at least one image that at least includes the barcode on the outside of the sample container; or, the barcode is identified by processing all or part of the at least one image that at least includes the barcode on the outside of the sample container through a second set neural network; the second set neural network is used to identify the barcode in the input image.

[0142] Here, the at least one image containing at least the barcode on the exterior of the sample container is captured by the image acquisition device while the rotating device drives the sample container to rotate. The controller's implementation of barcode recognition based on the at least one image containing at least the barcode on the exterior of the sample container is described above and is not further elaborated here.

[0143] Step 802: When the barcode cannot be successfully identified based on at least one image that at least includes the barcode on the outside of the sample container, the serial code is identified based on at least one image that at least includes the serial code on the outside of the sample container, and the sample information of the sample container is determined based on a second identification result of the serial code.

[0144] Wherein, at least one image including at least the barcode and / or serial code on the outside of the sample container is captured by the image acquisition device when the rotating device drives the sample container to rotate.

[0145] Here, when the controller or the image acquisition device fails to successfully identify the barcode based on at least one image that at least contains the barcode on the outside of the same sample container, the controller identifies the serial code on the outside of the sample container based on at least one image that at least contains the serial code on the outside of the sample container, obtains a second identification result of the barcode, and determines the sample information of the sample container based on the second identification result of the serial code. For specific implementation details, please refer to the relevant description above, which will not be repeated here.

[0146] It should be noted that the image containing at least the serial code on the outside of the sample container may also contain the serial code on the outside of the sample container. In other words, the controller recognizes the serial code based on at least one image containing at least the serial code on the outside of the same sample container, including: performing barcode recognition based on the image containing the serial code on the outside of the same sample container, or performing barcode recognition based on the image containing both the barcode and the serial code on the outside of the same sample container.

[0147] In order to improve the success rate of identifying sample information, in one embodiment, the identifying the serial code based on at least one image containing at least the serial code on the outside of the sample container includes:

[0148] Recognize the serial code based on image features of all or part of the at least one image that at least includes the serial code on the outside of the sample container to obtain the second recognition result; or

[0149] The first set neural network is used to process all or part of the at least one image containing at least the serial code on the outside of the sample container to identify the serial code, thereby obtaining the second recognition result; the first set neural network is used to identify the serial code in the input image.

[0150] Here, the controller recognizes the serial code based on the image containing the serial code on the outside of the sample container. Please refer to the relevant description above for the implementation process, which will not be repeated here.

[0151] Since the barcode and / or serial code can be successfully recognized based on the front image of the barcode and serial code, in order to improve the efficiency of barcode and / or serial code recognition, the rotation device can be stopped when the front image of the barcode and / or serial code is captured. Based on this, in one embodiment, the rotation device is controlled to operate and is controlled to stop when the image acquisition device captures an image containing the barcode and serial code on the outside of the sample container.

[0152] Here, if the image acquisition device fails to acquire an image containing the barcode and serial code on the outside of the sample container, the controller may control the rotating device to continue running to drive the sample container to continue rotating in the vertical direction, and the image acquisition device captures the next frame of image.

[0153] In order to accurately identify the front images of barcodes and serial codes, in one embodiment, when the rotating device is in operation, recognition is performed based on image features of the image acquired by the image acquisition device to obtain a third recognition result; or, the image acquired by the image acquisition device is processed by a third set neural network to obtain a third recognition result;

[0154] When the third recognition result indicates that the image acquisition device has acquired an image including the barcode and the serial code on the outside of the sample container, the controller controls the rotating device to stop running.

[0155] In order to avoid wasting too much time on samples without barcodes and improve the efficiency of sample information identification, in one embodiment, the method further includes:

[0156] If any barcode is not recognized after the rotating device drives the sample container to rotate a set number of times, the rotating device is controlled to stop running.

[0157] Here, after the rotating device drives the sample container to rotate a set number of times, if the controller still does not receive the barcode recognition result corresponding to the sample container sent by the image acquisition device, or the controller still does not recognize any barcode corresponding to the sample container, indicating that there is no barcode on the outside of the sample container, the controller controls the rotating device to stop running, so that the sample container stops rotating; the set number of times can be 2. The controller can also mark the barcode recognition result of the sample container as NOREAD, recognition failure, or no barcode.

[0158] It should be noted that if any barcode recognition result corresponding to the sample container is obtained within the first set number of rotations driven by the rotating device, the controller or image acquisition device needs to determine the first recognition result of the barcode of the sample container within the second set number of rotations driven by the rotating device. If, when the sample container is rotated by the rotating device by the second set number of rotations, the controller or image acquisition device still has not determined the first recognition result of the barcode of the sample container, the controller may mark the barcode recognition result of the sample container as NOREAD, recognition failure, or no barcode. The second set number of rotations is greater than the first set number of rotations. For example, the first set number of rotations may be 2, and the second set number of rotations may be 3 or 4.

[0159] To further improve the success rate and accuracy of identifying sample information, the controller may, before identifying the barcode and / or serial code on the outside of the sample container, filter out the image containing the barcode and / or serial code on the outside of the sample container from among multiple images of the same sample container for use in determining sample information. Based on this, in one embodiment, the method further includes:

[0160] Determine, from the plurality of images acquired by the image acquisition device, at least one image containing at least the barcode on the outside of the sample container and / or at least one image containing at least the serial code on the outside of the sample container for determining the sample information of the sample container; wherein,

[0161] The first parameter value of the image is greater than a set threshold; the first parameter value represents a ratio of a first area to a second area; the first area represents an area occupied by the barcode and / or serial code in the at least one image; and the second area represents an area occupied by the sample container in the at least one image.

[0162] Here, the controller can determine an image containing a barcode on the outside of the sample container and / or an image containing a serial code on the outside of the sample container for determining the sample information of the sample container from multiple images acquired by the image acquisition device; it can also determine an image containing a barcode and a serial code on the outside of the sample container for determining the sample information of the sample container from multiple images acquired by the image acquisition device.

[0163] In actual application, the controller may not be able to successfully identify the serial code because the serial code in the captured image may be incomplete or unclear. Based on this, in order to remind relevant personnel to promptly handle samples with unrecognizable serial codes, in one embodiment, the method further includes:

[0164] In the case that the serial code is not successfully identified, the human-computer interaction device controlling the sample identification system outputs an alarm prompt message on its display interface; the alarm prompt message indicates that the sample information identification of the sample container has failed.

[0165] It should be noted that, in one embodiment, the controller can also identify the barcode based on at least one image containing the barcode on the outside of the same sample container, identify the serial code based on at least one image containing the serial code on the outside of the same sample container, and determine the sample information of the sample container based on the first recognition result of the barcode and the second recognition result of the serial code; wherein, at least one image containing the barcode and / or serial code on the outside of the same sample container is captured by the image acquisition device when the rotating device drives the sample container to rotate. In actual application, when the first recognition result and the second recognition result corresponding to the same sample container are the same, the sample information of the sample container is determined based on the first recognition result or the second recognition result; when the first recognition result and the second recognition result corresponding to the same sample container are different, indicating that the code scanning is abnormal, the controller can move the sample container to the code scanning abnormality area, and can also control the human-computer interaction device in the sample identification system to output an alarm prompt message or a prompt message indicating the code scanning abnormality on its display interface to prompt relevant personnel to take further action.

[0166] It should be noted that, in one embodiment, the controller can also control the operation of the rotating device so that the image acquisition device at least acquires an image containing the barcode and / or serial code on the outside of the sample container when the rotating device drives the sample container to rotate. When the image acquisition device acquires an image containing the barcode and serial code on the outside of the sample container, the controller controls the rotating device to stop running; in the case that the barcode can be successfully identified based on the image containing the barcode and serial code on the outside of the sample container, the sample information of the sample container is determined based on the first recognition result of the barcode; and in the case that the barcode cannot be successfully identified based on the image containing the barcode and serial code on the outside of the sample container, the controller controls the rotating device to stop running. The transfer device is operated; the barcode is recognized according to at least one image containing the barcode on the outside of the sample container acquired by the image acquisition device, and when the barcode can be successfully recognized according to the at least one image containing the barcode on the outside of the sample container, the sample information of the sample container is determined according to the first recognition result of the barcode; when the barcode cannot be successfully recognized according to the at least one image containing the barcode on the outside of the sample container, the serial code is recognized according to at least one image containing the serial code on the outside of the sample container acquired by the image acquisition device, and the sample information of the sample container is determined according to the second recognition result of the serial code.

[0167] The present application also provides a controller, which is deployed in the above-mentioned sample identification system. The sample identification system also includes a rotating device and an image acquisition device coupled to the controller. As shown in Figure 9, the controller 900 includes:

[0168] Communication interface 901, capable of exchanging information with other nodes;

[0169] The processor 902 is connected to the communication interface 901 to implement information exchange with other nodes and is used to execute the methods provided by one or more technical solutions of the controller side when running a computer program. The computer program is stored in the memory 903.

[0170] Specifically, the processor 902 is configured to determine the sample information of the sample container based on a first recognition result of the barcode when the barcode can be successfully identified based on at least one image that at least includes the barcode on the outside of the sample container; and to identify the serial code based on at least one image that at least includes the serial code on the outside of the sample container, and determine the sample information of the sample container based on a second recognition result of the serial code when the barcode cannot be successfully identified based on at least one image that at least includes the barcode on the outside of the sample container; wherein the at least one image that at least includes the barcode and / or serial code on the outside of the sample container is captured by the image acquisition device when the rotating device drives the sample container to rotate.

[0171] In one embodiment, the processor 902 is further configured to control the rotation device to operate, and control the rotation device to stop operating when the image acquisition device acquires an image including the barcode and serial code on the outside of the sample container.

[0172] In one embodiment, the processor 902 is further configured to, when the rotating device is in operation, perform recognition based on image features of the image acquired by the image acquisition device to obtain a third recognition result; or, process the image acquired by the image acquisition device using a third set neural network to obtain a third recognition result;

[0173] When the third recognition result indicates that the image acquisition device has acquired an image including the barcode and the serial code on the outside of the sample container, the controller controls the rotating device to stop running.

[0174] In one embodiment, the processor 902 is specifically configured to identify the serial code based on image features of all or part of the at least one image at least including the serial code on the outside of the sample container to obtain the second identification result; or

[0175] The first set neural network is used to process all or part of the at least one image containing at least the serial code on the outside of the sample container to identify the serial code, thereby obtaining the second recognition result; the first set neural network is used to identify the serial code in the input image.

[0176] In one embodiment, the communication interface 901 is configured to receive the first recognition result sent by the image acquisition device and determine the sample information of the sample container based on the first recognition result; the first recognition result is obtained by the image acquisition device identifying the barcode based on an image captured that includes at least the barcode on the outside of the sample container;

[0177] The processor 902 is specifically configured to determine the sample information of the sample container according to the first recognition result.

[0178] In one embodiment, the at least one image including at least the barcode on the outside of the sample container includes multiple images; the communication interface 901 is specifically configured to receive at least two different barcode recognition results obtained by the image acquisition device based on the multiple images;

[0179] The processor 902 is specifically configured to determine the first recognition result from the at least two different barcode recognition results based on the number of occurrences of the corresponding barcode recognition results.

[0180] In one embodiment, the processor 902 is specifically configured to vote on the corresponding barcode recognition results; when the number of votes corresponding to any barcode recognition result is greater than a set threshold, the barcode recognition result with the number of votes greater than the set threshold is determined as the first recognition result.

[0181] In one embodiment, the communication interface 901 is further configured to receive the at least one image including at least the barcode on the outside of the sample container sent by the image acquisition device;

[0182] The processor 902 is further configured to identify the barcode based on image features of all or part of the at least one image that at least includes the barcode on the outside of the sample container; or to process all or part of the at least one image that at least includes the barcode on the outside of the sample container through a second set neural network to identify the barcode; the second set neural network is configured to identify the barcode in the input image.

[0183] In one embodiment, the processor 902 is further configured to determine, from the plurality of images acquired by the image acquisition device, at least one image containing at least a barcode on the outside of the sample container and / or at least one image containing at least a serial code on the outside of the sample container for determining the sample information of the sample container; wherein,

[0184] The first parameter value of the image is greater than a set threshold; the first parameter value represents a ratio of a first area to a second area; the first area represents an area occupied by the barcode and / or serial code in the at least one image; and the second area represents an area occupied by the sample container in the at least one image.

[0185] In one embodiment, the processor 902 is further configured to control the human-computer interaction device of the sample identification system to output an alarm prompt message on its display interface when the serial code is not successfully identified; the alarm prompt message indicates that the sample information of the sample container has failed to be identified.

[0186] In one embodiment, the processor 902 is further configured to control the rotating device to stop running if no barcode is recognized after the rotating device drives the sample container to rotate a set number of times.

[0187] It should be noted that the specific processing procedures of the processor 902 and the communication interface 901 can be understood with reference to the above method.

[0188] Of course, in actual applications, the various components in controller 900 are coupled together via bus system 904. It will be appreciated that bus system 904 is used to enable communication between these components. In addition to a data bus, bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in FIG9 , all of these buses are labeled as bus system 904.

[0189] The memory 903 in the embodiment of the present application is used to store various types of data to support the operation of the controller 900. Examples of such data include: any computer program used to operate on the controller 900.

[0190] The methods disclosed in the above embodiments of the present application can be applied to the processor 902 or implemented by the processor 902. The processor 902 may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above methods can be completed by hardware integrated logic circuits or software instructions in the processor 902. The above processor 902 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 902 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 903. The processor 902 reads the information in the memory 903 and completes the steps of the above methods in combination with its hardware.

[0191] In an exemplary embodiment, the controller 900 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0192] It can be understood that the memory (memory 903) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.

[0193] In an exemplary embodiment, the present application also provides a storage medium, namely, a computer storage medium, specifically a computer-readable storage medium, such as a memory 903 storing a computer program. The computer program can be executed by the processor 902 of the controller 900 to complete the steps of the aforementioned electronic device-side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0194] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0195] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of A alone, the simultaneous existence of A and B, and the existence of B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0196] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0197] The above description is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application.

Claims

1. A sample recognition system, comprising a controller, a rotating device, and an image acquisition device coupled to the controller; The rotating device is configured to drive a sample container to rotate about a vertical direction; The image acquisition device is configured to acquire at least an image including a bar code and / or a serial number outside the sample container when the rotating device drives the sample container to rotate; The controller is configured to determine sample information of the sample container according to a first recognition result of the bar code when the bar code can be successfully recognized based on at least one image including the bar code outside the sample container acquired by the image acquisition device; And configured to, when the bar code cannot be successfully recognized based on at least one image including the bar code outside the sample container acquired by the image acquisition device, recognize the serial number based on at least one image including the serial number outside the sample container acquired by the image acquisition device, and determine the sample information of the sample container according to a second recognition result of the serial number.

2. The sample recognition system according to claim 1, wherein, The controller recognizes the serial number based on image features of all or part of the at least one image including the serial number outside the sample container to obtain the second recognition result; or, The controller processes all or part of the at least one image including the serial number outside the sample container through a first preset neural network to recognize the serial number to obtain the second recognition result; wherein, The first preset neural network is configured to recognize the serial number in the input image.

3. The sample recognition system according to claim 1, wherein, The image acquisition device is further configured to recognize the bar code based on the at least one image including the bar code outside the sample container, and send the first recognition result to the controller when the bar code is successfully recognized.

4. The sample recognition system according to claim 1, wherein, The controller is further configured to recognize the bar code based on image features of all or part of the at least one image including the bar code outside the sample container; or, The controller is further configured to process all or part of the at least one image including the bar code outside the sample container through a second preset neural network to recognize the bar code; wherein, The second preset neural network is configured to recognize the bar code in the input image.

5. The sample recognition system according to any one of claims 1 to 2 and 4, wherein, The controller is further configured to: Determine the at least one image including the bar code outside the sample container, and / or, the at least one image including the serial number outside the sample container for determining the sample information of the sample container from multiple images acquired by the image acquisition device; wherein, The first parameter value of the at least one image is greater than a set threshold value; the first parameter value represents the ratio of a first area to a second area; the first area represents the area occupied by the barcode and / or serial number in the at least one image; the second area represents the area occupied by the sample container in the at least one image.

6. The sample recognition system according to claim 1, wherein, the image acquisition device is further configured to, when the sample container is stationary, acquire an image of the sample container, and identify the barcode based on the image. In the case where the barcode cannot be successfully identified, when the rotation device drives the sample container to rotate, at least acquire the image including the barcode and / or serial number outside the sample container.

7. The sample recognition system according to any one of claims 1 to 4 and 6, wherein, the rotation device includes: a base for vertically placing the sample container, and a rotation mechanism for driving the base to rotate around the vertical direction.

8. The sample recognition system according to any one of claims 1 to 4 and 6, wherein, the rotation device includes: a manipulator for clamping the sample container, and a rotation mechanism for driving the manipulator to rotate around the vertical direction.

9. The sample recognition system according to any one of claims 1 to 4 and 6, wherein, the rotation device includes: a sample container carrying mechanism, and a rotation mechanism for driving the sample container to rotate around the vertical direction in the sample container carrying mechanism.

10. The sample recognition system according to claim 1, wherein, the at least one image including the barcode outside the sample container includes multiple images, in the case where at least two different barcode recognition results are obtained based on the multiple images: the controller is further configured to determine the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results; or, the image acquisition device is further configured to determine the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results, and send the first recognition result to the controller.

11. The sample recognition system according to claim 1, wherein, the sample recognition system further includes: a human-computer interaction device; the controller is further configured to: in the case where the serial number cannot be successfully identified, control the human-computer interaction device to output an alarm prompt message on its display interface; the alarm prompt message indicates that the sample information recognition of the sample container fails.

12. A sample recognition system, including a controller, a rotation device, and an image acquisition device coupled to the controller; the rotation device is configured to drive the sample container to rotate around the vertical direction; the image acquisition device is configured to, when the rotation device drives the sample container to rotate, acquire an image of the sample container; the controller is configured to control the operation of the rotation device, and when the image acquisition device acquires an image including the barcode and serial number outside the sample container, control the rotation device to stop operating; The controller is further configured to, when the barcode on the outside of the sample container can be successfully recognized from the image acquired by the image acquisition device, determine the sample information of the sample container according to the first recognition result of the barcode; and when the barcode on the outside of the sample container cannot be successfully recognized from the image acquired by the image acquisition device, recognize the serial number based on the image acquired by the image acquisition device that includes the barcode and the serial number on the outside of the sample container, and determine the sample information of the sample container according to the second recognition result of the serial number.

13. The sample recognition system according to claim 12, wherein, when the rotating device is operating, the controller performs recognition based on the image features of the image acquired by the image acquisition device to obtain a third recognition result; or, the controller processes the image acquired by the image acquisition device through a third preset neural network to obtain a third recognition result; when the third recognition result indicates that the image acquired by the image acquisition device includes the barcode and the serial number on the outside of the sample container, the controller controls the rotating device to stop operating.

14. The sample recognition system according to claim 12 or 13, wherein, the image acquisition device is further configured to acquire an image of the sample container when the sample container is stationary; when the barcode cannot be successfully recognized based on the single image, the controller controls the rotating device to operate.

15. The sample recognition system according to claim 12, wherein, the controller recognizes the serial number based on the image features of all or part of the image that includes the barcode and the serial number on the outside of the sample container to obtain the second recognition result; or, the controller processes all or part of the image that includes the barcode and the serial number on the outside of the sample container through a first preset neural network to recognize the serial number, and obtains the second recognition result; wherein, the first preset neural network is used to recognize the serial number in the input image.

16. The sample recognition system according to claim 12, wherein, the controller is further configured to recognize the barcode based on the image features of all or part of the image that includes the barcode and the serial number on the outside of the sample container; or, the controller is further configured to process all or part of the image that includes the barcode and the serial number on the outside of the sample container through a second preset neural network to recognize the barcode; wherein, the second preset neural network is used to recognize the barcode in the input image.

17. The sample recognition system according to claim 12, wherein, the controller is further configured to: determine, from the multiple images acquired by the image acquisition device, the image that includes the barcode and the serial number on the outside of the sample container and is used to determine the sample information of the sample container; wherein, ​ The first parameter value of the at least one image is greater than a set threshold value; the first parameter value represents the ratio of a first area to a second area; the first area represents the area occupied by the barcode and the serial number in the at least one image; the second area represents the area occupied by the sample container in the at least one image.

18. The sample recognition system according to any one of claims 12 to 17, wherein, the rotating device includes: a base for vertically placing the sample container, and a rotating mechanism for driving the base to rotate around the vertical direction.

19. The sample recognition system according to any one of claims 12 to 17, wherein, the rotating device includes: a manipulator for clamping the sample container, and a rotating mechanism for driving the manipulator to rotate around the vertical direction.

20. The sample recognition system according to any one of claims 12 to 17, wherein, the rotating device includes: a sample container bearing mechanism, and a rotating mechanism for driving the sample container to rotate around the vertical direction in the sample container bearing mechanism.

21. The sample recognition system according to claim 12, wherein, in the case where at least two different barcode recognition results are obtained based on multiple images acquired by the image acquisition device: the controller is further configured to determine the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results; or, the image acquisition device is further configured to determine the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results, and send the first recognition result to the controller.

22. The sample recognition system according to claim 21, wherein, for each image acquired by the image acquisition device, the controller or the image acquisition device is further configured to vote on the corresponding barcode recognition result in the case of recognizing the barcode in the image; in the case where the vote count corresponding to any barcode recognition result is greater than the set threshold value, the barcode recognition result with the vote count greater than the set threshold value is determined as the first recognition result.

23. The sample recognition system according to claim 12, wherein, the controller is further configured to: in the case where no barcode is recognized after the rotating device drives the sample container to rotate a set number of turns, control the rotating device to stop operating.

24. The sample recognition system according to claim 12, wherein, the sample recognition system further includes: a human-machine interaction device; the controller is further configured to: in the case where the serial number is not successfully recognized, control the human-machine interaction device to output an alarm prompt message on its display interface; the alarm prompt message indicates that the sample information recognition of the sample container fails.

25. A sample recognition system, including a controller, a rotating device, and an image acquisition device coupled to the controller; the rotating device is configured to drive the sample container to rotate around the vertical direction; The image acquisition device is configured to acquire at least an image including a barcode and / or a serial number outside the sample container when the rotation device drives the sample container to rotate; The controller is configured to identify the barcode based on at least one image including the barcode outside the sample container acquired by the image acquisition device, identify the serial number based on at least one image including the serial number outside the sample container acquired by the image acquisition device, and determine the sample information of the sample container according to the first identification result of the barcode and the second identification result of the serial number.

26. The sample identification system according to claim 25, wherein, The controller is configured to, when the first identification result and the second identification result are the same, determine the sample information of the sample container based on the first identification result or the second identification result.

27. A sample identification system, comprising a controller, a rotation device, and an image acquisition device coupled to the controller; The rotation device is configured to drive a sample container to rotate about a vertical direction; The image acquisition device is configured to acquire at least an image including the barcode outside the sample container when the rotation device drives the sample container to rotate; The controller is configured to control the operation of the rotation device, and when the image acquisition device acquires an image including the barcode outside the sample container, control the rotation device to stop operating; and is further configured to, when the barcode can be successfully identified based on the image including the barcode outside the sample container, determine the sample information of the sample container according to the first identification result of the barcode, and is further configured to, when the barcode cannot be successfully identified based on the image including the barcode outside the sample container, control the rotation device to operate, identify the barcode based on at least one image including the barcode outside the sample container acquired by the image acquisition device, and when the barcode can be successfully identified based on the at least one image including the barcode outside the sample container, determine the sample information of the sample container according to the first identification result of the barcode; when the barcode cannot be successfully identified based on the at least one image including the barcode outside the sample container outside the sample container, identify the serial number based on at least one image including the serial number outside the sample container acquired by the image acquisition device, and determine the sample information of the sample container according to the second identification result of the serial number.

28. A sample identification method, applied to a controller in a sample identification system ; The sample identification system further includes a rotation device and an image acquisition device coupled to the controller; the method includes: When the barcode can be successfully identified based on at least one image including at least the barcode outside the sample container, determine the sample information of the sample container according to the first identification result of the barcode; In the case where the barcode cannot be successfully recognized based on at least one image including at least the barcode outside the sample container, the serial number is recognized based on at least one image including at least the serial number outside the sample container, and the sample information of the sample container is determined according to the second recognition result of the serial number; wherein, At least one image including at least the barcode and / or serial number outside the sample container is obtained by the image acquisition device when the rotation device drives the sample container to rotate.

29. The method according to claim 28, wherein, The method further includes: Controlling the rotation device to operate, and when the image acquisition device acquires an image including the barcode and serial number outside the sample container, controlling the rotation device to stop operating.

30. The method according to claim 29, wherein, The method further includes: When the rotation device is operating, performing recognition based on the image features of the image acquired by the image acquisition device to obtain a third recognition result; or, processing the image acquired by the image acquisition device through a third preset neural network to obtain a third recognition result; When the third recognition result indicates that the image acquisition device has acquired an image including the barcode and serial number outside the sample container, the controller controls the rotation device to stop operating.

31. The method according to any one of claims 28 to 30, wherein, The recognizing the serial number based on at least one image including at least the serial number outside the sample container includes: Recognizing the serial number based on the image features of all or part of the at least one image including at least the serial number outside the sample container to obtain the second recognition result; or, Processing all or part of the at least one image including at least the serial number outside the sample container through a first preset neural network to recognize the serial number to obtain the second recognition result; the first preset neural network is used to recognize the serial number in the input image.

32. The method according to any one of claims 28 to 30, wherein, The determining the sample information of the sample container according to the first recognition result of the barcode includes: Receiving the first recognition result sent by the image acquisition device, and determining the sample information of the sample container according to the first recognition result; the first recognition result is obtained by the image acquisition device recognizing the barcode based on the captured image including at least the barcode outside the sample container.

33. The method according to claim 32, wherein, The at least one image including at least the barcode outside the sample container includes multiple images; the receiving the first recognition result sent by the image acquisition device includes: Receiving at least two different barcode recognition results obtained by the image acquisition device based on multiple images; Determining the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results.

34. The method according to claim 33, wherein, determining the first recognition result from the at least two different barcode recognition results based on the occurrence times of the corresponding barcode recognition results includes: voting on the corresponding barcode recognition results; when the vote count corresponding to any barcode recognition result is greater than a set threshold, determining the barcode recognition result with a vote count greater than the set threshold as the first recognition result.

35. The method according to any one of claims 28 to 30, wherein, the method further includes: receiving the at least one image sent by the image acquisition device and including at least the barcode outside the sample container; identifying the barcode based on the image features of all or part of the images in the at least one image including at least the barcode outside the sample container; or, processing all or part of the images in the at least one image including at least the barcode outside the sample container through a second set neural network to identify the barcode; the second set neural network is used to identify the barcode in the input image.

37. The method according to any one of claims 28 to 30, wherein, the method further includes: determining, from the multiple images acquired by the image acquisition device, the at least one image including at least the barcode outside the sample container and / or the at least one image including at least the serial number outside the sample container for determining the sample information of the sample container; wherein, a first parameter value of the one image is greater than a set threshold; the first parameter value represents the ratio of a first area to a second area; the first area represents the area occupied by the barcode and / or the serial number in the at least one image; the second area represents the area occupied by the sample container in the at least one image.

37. The method according to any one of claims 28 to 30, wherein, the method further includes: when the serial number is not successfully recognized, controlling the human-machine interaction device of the sample recognition system to output an alarm prompt message on its display interface; the alarm prompt message indicates that the recognition of the sample information of the sample container fails.

38. The method according to claim 29 or 30, wherein, the method further includes: when no barcode is recognized after the rotating device drives the sample container to rotate a set number of turns, controlling the rotating device to stop running.

39. A controller, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor is configured to run the computer program, it executes the steps of the method according to any one of claims 28 to 38.

40. A storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the method according to any one of claims 28 to 38. ​