CN114511693A - Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium - Google Patents

Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114511693A
CN114511693A CN202210035993.0A CN202210035993A CN114511693A CN 114511693 A CN114511693 A CN 114511693A CN 202210035993 A CN202210035993 A CN 202210035993A CN 114511693 A CN114511693 A CN 114511693A
Authority
CN
China
Prior art keywords
blood drawing
image
bar code
preset
drawing tube
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210035993.0A
Other languages
Chinese (zh)
Inventor
常亚杰
朱园园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sixth Affiliated Hospital of Sun Yat Sen University
Original Assignee
Sixth Affiliated Hospital of Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sixth Affiliated Hospital of Sun Yat Sen University filed Critical Sixth Affiliated Hospital of Sun Yat Sen University
Priority to CN202210035993.0A priority Critical patent/CN114511693A/en
Publication of CN114511693A publication Critical patent/CN114511693A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10861Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Automatic Analysis And Handling Materials Therefor (AREA)

Abstract

The application relates to the technical field of medical auxiliary equipment, in particular to an intelligent blood drawing tube bar code pasting method and device, computer equipment and a storage medium. The method comprises the following steps: receiving a blood drawing vessel fixing signal, and acquiring a position image of the blood drawing vessel; identifying image information in a preset extraction frame on the position image; and extracting a preset position characteristic value from the image information, judging that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube. The technical problem that the bar code position on the blood drawing tube is easy to stick mistakes can be solved.

Description

Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of medical auxiliary equipment, in particular to an intelligent blood drawing tube bar code pasting method and device, computer equipment and a storage medium.
Background
At present, the blood drawing process in hospitals: after the patient makes an order to pay, the nurse workbench displays item information of the nurse workbench needing blood drawing, prints a bar code, and selects tubes with different colors to be pasted with the blood drawing bar code according to different blood drawing items, namely, blood drawing and checking. In clinical work, the work of manually pasting bar codes is tedious and takes a long time, and manual pasting is prone to inaccurate pasting positions or wrong pasting positions.
In order to solve the problem of manual sticking, the equipment for sticking labels is provided, and comprises a rack and an execution part, wherein the execution part is arranged on the rack, the execution part comprises a blood drawing pipe clamping device, a blood drawing pipe supporting device, a blood drawing pipe rotating device and a bar code printing and sticking device, the blood drawing pipe clamping device, the blood drawing pipe supporting device, the blood drawing pipe rotating device and the bar code printing and sticking device comprise corresponding power parts, and the power parts drive the execution part to stick the equipment for sticking labels on the wall of the blood drawing pipe.
When the device is used for pasting, if the position of the blood drawing tube is placed abnormally or the shape of the blood drawing tube is abnormal, pasting errors of the bar code position on the blood drawing tube are easily caused, and then the bar code on the blood drawing tube is influenced to be read by a follow-up machine, so that reading errors are caused.
Disclosure of Invention
Therefore, the embodiment of the application provides an intelligent extraction vessel barcode pasting method, an intelligent extraction vessel barcode pasting device, computer equipment and a storage medium, which can solve the technical problem that error is easy to occur in pasting of a barcode position on an extraction vessel, and the specific technical scheme content is as follows:
in a first aspect, an embodiment of the present application provides an intelligent method for pasting a blood drawing tube barcode, where the method includes:
receiving a blood drawing vessel fixing signal, and acquiring a position image of the blood drawing vessel;
identifying image information in a preset extraction frame on the position image;
and extracting a preset position characteristic value from the image information, judging that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube.
Preferably, the preset position characteristic value is extracted from the image information, if the preset position characteristic value is within a preset range, the blood drawing vessel is judged to be accurately placed, the bar code corresponding to the blood drawing vessel is printed, and the bar code pasting device is driven to paste the bar code on the blood drawing vessel, including:
presetting a correct image when the blood drawing tube is placed correctly, and acquiring the size and the resolution of the correct image;
when the position image is received, respectively comparing whether the size and the resolution of the correct image and the position image are within a preset error range;
if so, extracting a preset position characteristic value from the image information, if the preset position characteristic value is within a preset range, judging that the blood drawing tube is accurately placed, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube;
and if not, returning to obtain the position image again.
Preferably, the preset position feature value comprises a color feature and/or a character feature and/or a shape feature.
Preferably, when the preset position characteristic value is a color characteristic, the preset position characteristic value is extracted from the image information, if the preset position characteristic value is within a preset range, the blood drawing vessel is judged to be accurately placed, the bar code corresponding to the blood drawing vessel is printed, and the bar code pasting device is driven to paste the bar code on the blood drawing vessel, including:
reading a histogram of each color component of the preset position characteristics, and segmenting the histogram according to each color component;
and extracting information of required colors, judging that the blood drawing tube is accurately placed if the required color information is within a preset range, printing a bar code corresponding to the blood drawing tube, and pasting the bar code on the blood drawing tube.
Preferably, the barcode pasting device places a positioning reference object at a position corresponding to the barcode pasting device, the positioning reference object is located at the same position on the position image and the correct image, and the image information in the preset extraction frame on the identification position image includes:
setting a uniform coordinate system of the correct image and the position image;
calculating a coordinate difference value of the pixel coordinate of the central position of the positioning reference object in the correct image and the pixel coordinate of the central position of the positioning reference object in the position image;
and if the difference value is within the error range, positioning the coordinate position of the extraction frame according to the pixel coordinate of the position image.
Preferably, the calculating a coordinate difference between the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the center position of the positioning reference object in the position image includes:
presetting a standard frame, wherein the size of the inner edge of the standard frame is equal to the size of a correct image;
receiving the position image, identifying the boundary of the position image, and scaling the position image according to the scaling ratio when the boundary of the position image is superposed with the inner edge corresponding to the standard frame so as to enable the size of the position image to be matched with the standard frame;
placing the correct image and the position image in the same area of the same coordinate system to ensure that the correct image and the position image are superposed;
and judging the coordinate difference value of the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the positioning reference object in the position image.
Preferably, the method further comprises:
when the bar code pasting equipment is started, after a positioning reference object debugging completion signal is received, a correct image is obtained, and the pixel coordinate of the center position of the reference object is calculated according to the correct image.
In a second aspect, an embodiment of the present application provides an intelligent bar code pasting device for an extraction vessel, the device includes:
the acquisition module is used for receiving the blood drawing vessel fixing signal and acquiring a position image of the blood drawing vessel;
the recognition module is used for recognizing the image information in the preset extraction frame on the position image;
and the control module extracts a preset position characteristic value from the image information, judges that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, prints a bar code corresponding to the blood drawing tube, and drives the bar code pasting equipment to paste the bar code on the blood drawing tube.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the steps of the intelligent blood drawing tube barcode pasting method according to any one of the foregoing items when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the intelligent blood drawing tube barcode pasting method according to any one of the preceding items.
In summary, compared with the prior art, the beneficial effects brought by the technical scheme provided by the embodiment of the present application at least include:
through acquiring the position imaging, analyzing the information in the position image, presetting a preset range of preset position characteristics which can be extracted by the image information acquired in the extraction frame under the condition that the blood drawing vessel position is correct, if the preset position characteristics extracted by the image information acquired in the extraction frame of the position image at the moment are in the preset range, the blood drawing vessel position is correctly placed, and at the moment, bar code pasting can be performed by printing the bar code, so that the condition of error in bar code pasting is reduced, and the structural complexity of the bar code pasting equipment is reduced.
Drawings
Fig. 1 is a flowchart illustrating a method for pasting a barcode of an intelligent blood drawing tube according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for attaching an intelligent blood drawing barcode according to another embodiment of the present application.
Fig. 3 is a schematic structural diagram of an intelligent blood drawing barcode pasting device according to an embodiment of the present application.
Detailed Description
The present embodiment is only for explaining the present application, and it is not limited to the present application, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the present application, the character "/" indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified.
The term "at least one" in this application means one or more, and the meaning of "a plurality" means three or more, e.g. a plurality of first locations means three or more first locations.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
Referring to fig. 1, in one embodiment of the present application, there is provided an intelligent method for bar code pasting for an extraction vessel, the main steps of the method are described as follows:
s1: receiving a blood drawing vessel fixing signal, and acquiring a position image of the blood drawing vessel;
s2: identifying image information in a preset extraction frame on the position image;
s3: and extracting a preset position characteristic value from the image information, judging that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube.
Specifically, in this embodiment, after the blood drawing tube is placed on the barcode pasting device, the blood drawing tube is identified and acquired by a sensor arranged on the barcode pasting device, and the sensor may specifically be a gravity sensor, a position sensor, or the like.
The image pick-up device is arranged on the bar code pasting equipment corresponding to the position where the blood drawing tube is placed, and the image pick-up device is connected with a main control chip in which the method is stored.
After the blood drawing tube fixing signal is received, the camera device is started, and the camera shoots the blood drawing tube positioned on the station to obtain the position image of the blood drawing tube.
In the embodiment, the image pickup device shoots the blood drawing vessel at the same angle each time, under the condition that the surrounding environment is not changed, the position image obtained each time is placed in the same coordinate system, the preset reference points of the position image are aligned, and the positions of the blood drawing vessel in the position image are the same; in this embodiment, an extraction frame is preset at a predetermined position in a coordinate system, and the position of the extraction frame corresponds to the position of the blood drawing vessel to recognize the left and right images as image information.
In other embodiments, a standard image may also be preset, the size of the standard image is the same as that of the position image, an extraction frame is preset on the standard image, and the position of the extraction frame can be known by overlapping the standard image with the position image, so that information is obtained by the extraction frame.
Further, the preset position feature value is a color feature and/or a character feature and/or a shape feature, that is, the preset position feature value may be one, any two combinations, or three of the color feature, the character feature, and the shape feature, and in this embodiment, the color feature is taken as an example.
Identifying color characteristics from image information, for example, in the embodiment, 1, a red cover, namely a common serum tube, does not contain any additive, is suitable for routine biochemical serum test, and has no influence on test results; 2. an orange cover, wherein a coagulant is arranged in the blood sampling tube to accelerate the blood coagulation process; 3. the golden cover is added with inert separating gel and coagulant in the blood sampling tube, has the advantages of long blood preservation time and is suitable for the biochemical detection of the emergency serum; 4. the green cover is characterized in that heparin is added into the blood sampling tube, so that the blood coagulation time of a specimen can be prolonged, and the blood sampling tube is generally suitable for conventional biochemical and emergency blood plasma detection; 5. the purple cover is an EDTA anticoagulation tube which can prevent the blood sample from coagulating; 6. black cover, generally used for clotting mechanism detection; 7. grey cover recommended for blood glucose testing.
Specifically, in this embodiment, the preset range is a color range of RGB components set according to the type of the blood drawing tube, and if the color feature in the image information is within one of the preset ranges, it indicates that the position where the blood drawing tube is placed is correct, and at this time, a specific color can be identified, so as to determine the type of the blood drawing tube.
Through the arrangement of the method, medical staff can quickly place the blood drawing tube in the bar code pasting equipment in busy medical work, whether the blood drawing tube is placed correctly or not is quickly judged through the identification of the scheme of the method, errors in bar code pasting positions caused by incorrect placement of the blood drawing tube are avoided, and follow-up reading of the blood drawing tube bar code machine is inconvenient; although it can be thought that the clamping mold adapted to the blood drawing tube can be arranged on the bar code pasting equipment in advance, in the process of taking and placing, the time of medical personnel needs to be occupied, and the complexity of the bar code pasting equipment can be increased.
Furthermore, the size of the extraction frame is set to be within an acceptable error range of the bar code, that is, a preset position characteristic value can be detected in the extraction frame, that is, the position where the blood drawing vessel is placed can be read when the machine reads the position, and the requirement on the accuracy of the placement position of the blood drawing vessel is low.
Referring to fig. 2, further, in another embodiment, the step S3 includes:
s31: presetting a correct image when the blood drawing tube is placed correctly, and acquiring the size and the resolution of the correct image;
s32: when the position image is received, respectively comparing whether the size and the resolution of the correct image and the position image are within a preset error range;
s33: if so, extracting a preset position characteristic value from the image information, if the preset position characteristic value is within a preset range, judging that the blood drawing tube is accurately placed, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube;
s34: and if not, returning to obtain the position image again.
Specifically, in the present embodiment, the correct image is an image which is previously arranged according to the current shooting environment and is shot from the blood drawing vessel at the correct position, so that the preset position feature on the blood drawing vessel can be clearly identified.
The size of the correct image is the size of the image in the scene where feature extraction is performed after shooting, and in the present embodiment, the size of the correct image is compared with the resolution, and the size and the resolution of the position image, respectively; when the size is larger, the preset error range is an error allowed by the size when the position image and the correct image are shot and then information is extracted, if the difference value between the sizes exceeds the preset error range, the system is indicated that an error occurs in the process of receiving and processing the position image, and the situation that the obtained position image is true or unreasonable in scaling and the like possibly exists at the moment, so that the situation is not favorable for identification; when the resolutions are compared, the difference between the resolutions is out of the error range, which indicates that the difference between the environmental condition of the position image shooting and the correct image is large, and the position image is not suitable for identification and needs to be obtained again.
And further, generating alarm information when the size and the resolution of the image at the position of three consecutive times are out of the error range compared with the size and the resolution of the correct image, and sending the alarm information to the corresponding responsible person.
Further, in the present embodiment, the surrounding environment at the time of correct image capturing is the same as the surrounding environment at the time of position image capturing.
Further, in another embodiment, when the preset position feature value is a color feature, the step S3 includes:
reading a histogram of each color component of the preset position characteristics, and segmenting the histogram according to each color component;
and extracting information of required colors, judging that the blood drawing tube is accurately placed if the required color information is within a preset range, printing a bar code corresponding to the blood drawing tube, and pasting the bar code on the blood drawing tube.
Specifically, in the present embodiment, threshold values for respective colors are set in advance, and color components are divided by the threshold values.
Further, in another embodiment, the barcode pasting device places a positioning reference object at a position corresponding to the position, where the positioning reference object is located at the same position on the position image and the correct image, and the identifying the image information in the preset extraction frame on the position image includes:
1. setting a uniform coordinate system of the correct image and the position image;
2. calculating a coordinate difference value of the pixel coordinate of the central position of the positioning reference object in the correct image and the pixel coordinate of the central position of the positioning reference object in the position image;
3. and if the difference value is within the error range, positioning the coordinate position of the extraction frame according to the pixel coordinate of the position image.
Specifically, in this embodiment, a plurality of positioning reference objects are preferably disposed in the shooting range of the camera device on the barcode pasting device, where the positioning reference objects are objects whose colors are different from the surrounding environment and whose shape features are clear, and the positioning reference objects are preferably disposed at positions close to corners in the shooting range of the camera device.
And pre-establishing a coordinate system, placing the correct image and the position image in the same coordinate system, and enabling the correct image and the position image to be overlapped in the coordinate system.
And calculating a coordinate difference value between the pixel coordinate of the central position of the positioning reference object in the correct image and the pixel coordinate of the positioning reference object in the position image, and knowing whether the shooting angle of the position image is correct or not through the coordinate difference value so as to facilitate the positioning of the position of the extraction frame.
Optionally, in another embodiment, the pixel coordinates of the center position of the positioning reference object in the correct image may be overlapped with the center position of the positioning reference object in the position image, so as to align the correct image with the center position image.
Further, in another embodiment, calculating a coordinate difference value between the pixel coordinate of the center position of the positioning reference in the correct image and the pixel coordinate of the center position of the positioning reference in the position image includes:
21. presetting a standard frame, wherein the size of the inner edge of the standard frame is equal to the size of a correct image;
22. receiving the position image, identifying the boundary of the position image, and scaling the position image according to the scaling ratio when the boundary of the position image is superposed with the inner edge corresponding to the standard frame so as to enable the size of the position image to be matched with the standard frame;
23. placing the correct image and the position image in the same area of the same coordinate system to ensure that the correct image and the position image are superposed;
24. and judging the coordinate difference value of the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the positioning reference object in the position image.
Specifically, the standard frame is preset, so that the position image can be conveniently adjusted to the same size as the correct image, the position image is reasonable in proportion, and subsequent adjustment and calculation are facilitated.
Further, in another embodiment, the method further comprises:
s4: when the bar code pasting equipment is started, after a positioning reference object debugging completion signal is received, a correct image is obtained, and the pixel coordinate of the center position of the reference object is calculated according to the correct image.
When the equipment is started each time, the correct image is obtained again so as to reduce the error when the correct image and the position image are compared due to the change of the surrounding environment, improve the comparison accuracy and reduce the subsequent calculation error.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 3, in an embodiment of the present application, an intelligent blood drawing tube barcode pasting device is provided, which corresponds to the intelligent blood drawing tube barcode pasting method in the above embodiment one to one. This blood vessel bar code device is taken out to intelligence includes:
the acquisition module is used for receiving the blood drawing vessel fixing signal and acquiring a position image of the blood drawing vessel;
the recognition module is used for recognizing the image information in the preset extraction frame on the position image;
and the control module extracts a preset position characteristic value from the image information, judges that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, prints a bar code corresponding to the blood drawing tube, and drives the bar code pasting equipment to paste the bar code on the blood drawing tube.
Further, the preset position feature value is a color feature and/or a character feature and/or a shape feature, that is, the preset position feature value may be one, any two or three of the color feature, the character feature and the shape feature.
Furthermore, the control module is also used for presetting a correct image when the blood drawing tube is placed correctly, and acquiring the size and the resolution of the correct image; when the position image is received, respectively comparing whether the size and the resolution of the correct image and the position image are within a preset error range; if so, extracting a preset position characteristic value from the image information, if the preset position characteristic value is within a preset range, judging that the blood drawing tube is accurately placed, printing a bar code corresponding to the blood drawing tube, and driving bar code pasting equipment to paste the bar code on the blood drawing tube; and if not, returning to obtain the position image again.
And further, generating alarm information when the size and the resolution of the image at the position of three consecutive times are out of the error range compared with the size and the resolution of the correct image, and sending the alarm information to the corresponding responsible person.
Further, in another embodiment, when the preset position feature value is a color feature, the control module is configured to read a histogram of each color component of the preset position feature, and segment the histogram according to each color component; and extracting information of required colors, judging that the blood drawing tube is accurately placed if the required color information is within a preset range, printing a bar code corresponding to the blood drawing tube, and pasting the bar code on the blood drawing tube.
Further, in another embodiment, the barcode pasting device places a positioning reference object at a position corresponding to the position, where the positioning reference object is located at the same position on the position image and the correct image, and the identifying the image information in the preset extraction frame on the position image includes:
1. setting a uniform coordinate system of the correct image and the position image;
2. calculating a coordinate difference value of the pixel coordinate of the central position of the positioning reference object in the correct image and the pixel coordinate of the central position of the positioning reference object in the position image;
3. and if the difference value is within the error range, positioning the coordinate position of the extraction frame according to the pixel coordinate of the position image.
Further, in another embodiment, calculating a coordinate difference value between the pixel coordinate of the center position of the positioning reference in the correct image and the pixel coordinate of the center position of the positioning reference in the position image includes:
21. presetting a standard frame, wherein the size of the inner edge of the standard frame is equal to the size of a correct image;
22. receiving the position image, identifying the boundary of the position image, and scaling the position image according to the scaling ratio when the boundary of the position image is superposed with the inner edge corresponding to the standard frame so as to enable the size of the position image to be matched with the standard frame;
23. placing the correct image and the position image in the same area of the same coordinate system to ensure that the correct image and the position image are superposed;
24. and judging the coordinate difference value of the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the positioning reference object in the position image.
Further, in another embodiment, the apparatus further comprises:
and the reference calculation module is used for acquiring a correct image after receiving a positioning reference object debugging completion signal when the bar code pasting equipment is started, and calculating the pixel coordinate of the center position of the reference object according to the correct image.
All modules of the intelligent blood drawing bar code pasting device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment of the embodiments of the present application, a computer device is provided, which may be a server. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device may be implemented by any type of volatile or non-volatile storage devices, including but not limited to: magnetic disk, optical disk, EEPROM (Electrically-Erasable Programmable Read Only Memory), EPROM (Erasable Programmable Read Only Memory), SRAM (Static Random Access Memory), ROM (Read-Only Memory), magnetic Memory, flash Memory, PROM (Programmable Read-Only Memory). The memory of the computer device provides an environment for the running of an operating system and computer programs stored within it. The network interface of the computer device is used for communicating with an external terminal through a network connection. When being executed by a processor, the computer program realizes the steps of the intelligent blood drawing tube bar code pasting method in the embodiment.
In an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the intelligent blood drawing tube barcode pasting method steps described in the above embodiment. The computer-readable storage medium includes a ROM (Read-Only Memory), a RAM (Random-Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic disk, a floppy disk, and the like.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of each functional unit or module is illustrated, and in practical applications, the above-mentioned function may be distributed as different functional units or modules as required, that is, the internal structure of the apparatus described in this application may be divided into different functional units or modules to implement all or part of the above-mentioned functions.

Claims (10)

1. An intelligent blood drawing tube bar code pasting method is characterized by comprising the following steps:
receiving a blood drawing vessel fixing signal, and acquiring a position image of the blood drawing vessel;
identifying image information in a preset extraction frame on the position image;
and extracting a preset position characteristic value from the image information, judging that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube.
2. The intelligent method for pasting a barcode for a blood drawing tube according to claim 1,
the preset position characteristic value is extracted from the image information, if the preset position characteristic value is within a preset range, the blood drawing tube is judged to be accurately placed, the bar code corresponding to the blood drawing tube is printed, and the bar code pasting equipment is driven to paste the bar code on the blood drawing tube, wherein the preset position characteristic value comprises the following steps:
presetting a correct image when the blood drawing vessel is placed correctly, and acquiring the size and the resolution of the correct image;
when the position image is received, respectively comparing whether the size and the resolution of the correct image and the position image are within a preset error range;
if so, extracting a preset position characteristic value from the image information, if the preset position characteristic value is within a preset range, judging that the blood drawing tube is accurately placed, printing a bar code corresponding to the blood drawing tube, and driving a bar code pasting device to paste the bar code on the blood drawing tube;
and if not, returning to obtain the position image again.
3. The intelligent blood drawing bar code pasting method according to claim 2,
the preset position characteristic value comprises a color characteristic and/or a character characteristic and/or a shape characteristic.
4. The intelligent blood drawing tube bar code pasting method according to claim 2,
when presetting the position eigenvalue for the colour characteristic, extract and preset the position eigenvalue by the image information, if preset the position eigenvalue and in presetting the within range, then judge that the blood drawing pipe is placed accurately, print the bar code that should take out the blood drawing pipe and correspond, drive bar code and paste equipment and paste the bar code and include on taking out the blood drawing pipe:
reading a histogram of each color component of the preset position characteristics, and segmenting the histogram according to each color component;
and extracting information of required colors, judging that the blood drawing tube is accurately placed if the required color information is within a preset range, printing a bar code corresponding to the blood drawing tube, and pasting the bar code on the blood drawing tube.
5. The intelligent blood drawing bar code pasting method of claim 2, wherein the bar code pasting device places a positioning reference object corresponding to a position, the positioning reference object is located at the same position on the position image and the correct image, and the image information in the preset extraction frame on the position image is identified by:
setting a uniform coordinate system of the correct image and the position image;
calculating a coordinate difference value of the pixel coordinate of the central position of the positioning reference object in the correct image and the pixel coordinate of the central position of the positioning reference object in the position image;
and if the difference value is within the error range, positioning the coordinate position of the extraction frame according to the pixel coordinate of the position image.
6. The intelligent blood drawing bar code pasting method of claim 5, wherein the calculating the coordinate difference between the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the center position of the positioning reference object in the position image comprises:
presetting a standard frame, wherein the size of the inner edge of the standard frame is equal to the size of a correct image;
receiving the position image, identifying the boundary of the position image, and scaling the position image according to the scaling ratio when the boundary of the position image is superposed with the inner edge corresponding to the standard frame so as to enable the size of the position image to be matched with the standard frame;
placing the correct image and the position image in the same area of the same coordinate system to ensure that the correct image and the position image are superposed;
and judging the coordinate difference value of the pixel coordinate of the center position of the positioning reference object in the correct image and the pixel coordinate of the positioning reference object in the position image.
7. The intelligent blood drawing bar code pasting method of claim 5, wherein the method further comprises:
when the bar code pasting equipment is started, after a positioning reference object debugging completion signal is received, a correct image is obtained, and the pixel coordinate of the center position of the reference object is calculated according to the correct image.
8. The utility model provides a device is pasted to intelligence blood drawing pipe bar code which characterized in that, the device includes:
the acquisition module is used for receiving the blood drawing vessel fixing signal and acquiring a position image of the blood drawing vessel;
the recognition module is used for recognizing the image information in the preset extraction frame on the position image;
and the control module extracts a preset position characteristic value from the image information, judges that the blood drawing tube is accurately placed if the preset position characteristic value is within a preset range, prints a bar code corresponding to the blood drawing tube, and drives the bar code pasting equipment to paste the bar code on the blood drawing tube.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the intelligent blood drawing bar code pasting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which when executed by a processor, implements the steps of the intelligent blood drawing bar code pasting method according to any one of claims 1 to 7.
CN202210035993.0A 2022-01-12 2022-01-12 Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium Pending CN114511693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210035993.0A CN114511693A (en) 2022-01-12 2022-01-12 Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210035993.0A CN114511693A (en) 2022-01-12 2022-01-12 Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114511693A true CN114511693A (en) 2022-05-17

Family

ID=81550510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210035993.0A Pending CN114511693A (en) 2022-01-12 2022-01-12 Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114511693A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726249A (en) * 2008-10-31 2010-06-09 克罗内斯股份公司 Method for detecting functions of monitoring device of automatic labeling machine
JP2012242199A (en) * 2011-05-18 2012-12-10 Techno Medica Co Ltd Automatic preparation apparatus for blood collection tube
CN104053996A (en) * 2012-01-17 2014-09-17 英派克控股有限公司 Traceable labeling apparatus for containers of biological products
CN106687960A (en) * 2014-07-22 2017-05-17 美国安进公司 System and method for detecting activation of a medical delivery device
CN211033327U (en) * 2019-10-28 2020-07-17 深圳美讯医疗科技有限公司 Hospital's heparin tube labeller
CN111731622A (en) * 2020-05-19 2020-10-02 武汉华工正源光子技术有限公司 Automatic labeling system and method
CN112224590A (en) * 2020-12-10 2021-01-15 江苏金恒信息科技股份有限公司 Billet labeling method and system based on three-dimensional point cloud

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726249A (en) * 2008-10-31 2010-06-09 克罗内斯股份公司 Method for detecting functions of monitoring device of automatic labeling machine
JP2012242199A (en) * 2011-05-18 2012-12-10 Techno Medica Co Ltd Automatic preparation apparatus for blood collection tube
CN104053996A (en) * 2012-01-17 2014-09-17 英派克控股有限公司 Traceable labeling apparatus for containers of biological products
CN106687960A (en) * 2014-07-22 2017-05-17 美国安进公司 System and method for detecting activation of a medical delivery device
CN211033327U (en) * 2019-10-28 2020-07-17 深圳美讯医疗科技有限公司 Hospital's heparin tube labeller
CN111731622A (en) * 2020-05-19 2020-10-02 武汉华工正源光子技术有限公司 Automatic labeling system and method
CN112224590A (en) * 2020-12-10 2021-01-15 江苏金恒信息科技股份有限公司 Billet labeling method and system based on three-dimensional point cloud

Similar Documents

Publication Publication Date Title
US8791993B2 (en) Medicine management system and method using the same
CN109886928B (en) Target cell marking method, device, storage medium and terminal equipment
CN108830180B (en) Electronic attendance checking method and device and electronic equipment
CN111161295B (en) Dish image background stripping method
CN113893958A (en) Centrifuge tube taking and placing method, device and computer readable storage medium
WO2021102741A1 (en) Image analysis method and system for immunochromatographic detection
CN113688817A (en) Instrument identification method and system for automatic inspection
CN108871185B (en) Method, device and equipment for detecting parts and computer readable storage medium
CN113095292A (en) Gesture recognition method and device, electronic equipment and readable storage medium
CN114511693A (en) Intelligent blood drawing tube bar code pasting method and device, computer equipment and storage medium
US11847782B2 (en) Detecting method
CN116128853A (en) Production line assembly detection method, system, computer and readable storage medium
CN107527011B (en) Non-contact skin resistance change trend detection method, device and equipment
CN115496894A (en) Detection method and detection terminal for PCBA
US20220099623A1 (en) Nucleic acid detector and image-based nucleic acid detection method
CN114092542A (en) Bolt measuring method and system based on two-dimensional vision
CN114339046B (en) Image acquisition method, device, equipment and medium based on automatic rotation test tube
CN113610775A (en) Pill detection method and device for pill plate and storage medium
CN118089949A (en) Flash screen test method, electronic equipment, storage medium and system
JP3398775B2 (en) Image processing apparatus and image processing method
EP3979213A2 (en) Nucleic acid detector and image-based nucleic acid detection method
CN106375698A (en) Automatic discrimination method of automobile instrument icons based on digital image processing technology
CN115761344A (en) Deep learning VR rendering image abnormal display detection method and system
CN117676122A (en) Detection method and device of image acquisition device, electronic equipment and storage medium
CN114630112A (en) Video playing test method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220517

RJ01 Rejection of invention patent application after publication