Method and device for adjusting angle of vein puncture needle and angle adjusting equipment
The camera captures the image of the venipuncture needle and determines the position of the needle tip, and uses the distance rule to calculate the deflection angle, which solves the problem of low accuracy in identifying the venipuncture needle deflection angle and achieves efficient venipuncture needle alignment operation.
Patent Information
- Application Number
- CN202410658172.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-05-24
AI Technical Summary
The accuracy of the existing venipuncture needle deflection angle identification method is not high, resulting in inefficient venipuncture needle alignment operations and prone to angle misidentification.
The image of the venipuncture needle is captured by the camera, the position of the needle tip is determined, and the deflection angle of the venipuncture needle relative to the camera lens is obtained based on the distance rule, and the angle is adjusted to achieve the straightening operation of the venipuncture needle.
The accuracy of identifying the deflection angle of the venipuncture needle is improved, and the efficiency and accuracy of the venipuncture needle straightening operation are ensured.
Smart Images

Figure CN118799544A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical device technology, for example, to a method and device for adjusting the angle of a venous puncture needle, and an angle adjustment device. Background Art
[0002] At present, in order to achieve standardization of the production process, the venous puncture needles need to be placed in the same direction before the dispensing and coating processes on the venous puncture needle production line. In order to achieve consistency in the placement direction of the venous puncture needles, the traditional method uses manual methods to straighten the venous puncture needles. The manual method has the defect of low production efficiency.
[0003] In order to take into account both the straightening operation of the intravenous puncture needle and the production efficiency of the standardized process of the intravenous puncture needle production line, the related technology discloses a method for identifying the deflection angle of the intravenous puncture needle, including: establishing an image template library of the intravenous puncture needle facing the camera; wherein the image template library stores intravenous puncture needle images with different deflection angles and corresponding to different deflection angles; taking a current intravenous puncture needle image by a camera; matching the current intravenous puncture needle image with the intravenous puncture needle image stored in the image template library, and determining the deflection angle of the intravenous puncture needle according to the matching result.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] The image features of the venous puncture needle images corresponding to adjacent deflection angles stored in the image template library are not significantly different. When matching the current venous puncture needle image with the venous puncture needle image stored in the image template library, it is very easy to determine the adjacent deflection angle of the actual deflection angle as the deflection angle of the venous puncture needle, resulting in misidentification of the deflection angle. Figure 1 As shown, Figure 1 (a) and Figure 1 (b) respectively represent the images of the intravenous puncture needle with deflection angles of 45° and 135°. When the intravenous puncture needle image is captured by a camera, the images captured by the camera at certain angles have high similarity. When performing image matching in the image template library, these angles cannot be reliably distinguished. Therefore, the method used in the related art has a low recognition accuracy rate for the deflection angle of the intravenous puncture needle.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method, an apparatus and an angle adjustment device for adjusting the angle of a venous puncture needle, so as to improve the recognition accuracy of the deflection angle of the venous puncture needle.
[0009] In some embodiments, the method includes: obtaining an image of the venous puncture needle by photographing with a camera; determining the position of the needle tip apex based on the venous puncture needle image; obtaining a first current deflection angle of the venous puncture needle relative to the camera lens based on a distance rule corresponding to the position of the needle tip apex; and adjusting the angle of the venous puncture needle according to the first current deflection angle to achieve a straightening operation of the venous puncture needle.
[0010] Optionally, the deflection angle of the venous puncture needle relative to the camera lens represents the rotation angle when the venous puncture needle rotates from left to right, with the angle when the front of the venous puncture needle faces the camera lens as the reference deflection angle and the central axis of the venous puncture needle as the rotation axis. When the front of the venous puncture needle faces the camera lens, the reference deflection angle is 0°. When the venous puncture needle rotates from left to right, the deflection angle gradually increases, and the range of the deflection angle is [0°, 360°].
[0011] In some embodiments, based on the distance rule corresponding to the needle tip apex position, a first current deflection angle of the intravenous puncture needle relative to the camera lens is obtained, including: determining the arc feature of the intravenous puncture needle; when the arc feature indicates the existence of an arc, determining the horizontal line of the bottom of the intravenous puncture needle as the first reference horizontal line, and determining the projection of the needle tip apex position to the first reference horizontal line as the first reference point; obtaining the first deflection angle according to the first reference point and the distance difference rule; when the first deflection angle is within the first angle threshold interval or within the second angle threshold interval, determining the first deflection angle as the first current deflection angle.
[0012] Optionally, determining the projection of the needle tip apex position onto the first reference horizontal line as the first reference point includes: drawing a perpendicular line from the needle tip apex position to the first reference horizontal line, and determining the intersection of the perpendicular line and the first reference horizontal line as the first reference point.
[0013] In some embodiments, according to the first reference point and the distance difference rule, a first deflection angle is obtained, including: obtaining a first distance between the first reference point and the left contour edge of the venous puncture needle and a second distance between the first reference point and the right contour edge of the venous puncture needle; according to the first distance and the second distance, obtaining the distance difference; according to the correspondence between the distance difference and the deflection angle, obtaining the first deflection angle corresponding to the distance difference.
[0014] In some embodiments, after obtaining the first deflection angle according to the first reference point and the distance difference rule, it also includes: when the first deflection angle is outside the first angle threshold interval and the first deflection angle is outside the second angle threshold interval, determining the horizontal line passing through the perforation apex position as the second reference horizontal line, and determining the projection of the needle tip apex position to the second reference horizontal line as the second reference point; according to the second reference point and the distance sum rule, obtaining the first current deflection angle.
[0015] Optionally, determining the projection of the needle tip apex position onto the second reference horizontal line as the second reference point includes: drawing a perpendicular line from the needle tip apex position to the second reference horizontal line, and determining the intersection of the perpendicular line and the second reference horizontal line as the second reference point.
[0016] Optionally, the first angle threshold interval is [0°, 20°], and the second angle threshold interval is [340°, 360°].
[0017] In some embodiments, it also includes: after determining the arc feature of the intravenous puncture needle, when the arc feature indicates that there is no arc, determining the horizontal line passing through the puncture apex position as the second reference horizontal line, and determining the projection of the needle tip apex position to the second reference horizontal line as the second reference point; according to the second reference point and the distance and value rule, obtaining the first current deflection angle.
[0018] In some embodiments, according to the second reference point and the distance and value rule, the first current deflection angle is obtained, including: obtaining the third distance between the second reference point and the left contour edge of the intravenous puncture needle and the fourth distance between the second reference point and the right contour edge of the intravenous puncture needle; according to the third distance and the fourth distance, obtaining the distance and value; according to the correspondence between the distance and value and the deflection angle, obtaining the first current deflection angle corresponding to the distance and value.
[0019] In some embodiments, based on the correspondence between the distance and value and the deflection angle, a first current deflection angle corresponding to the distance and value is obtained, including: based on the correspondence between the distance and value and the deflection angle, a second deflection angle corresponding to the distance and value is obtained; when there are two second deflection angles and it is the first time to identify the angle, the minimum value of the second deflection angle is selected as the first current deflection angle; or, when the second deflection angle is one, the second deflection angle is used as the first current deflection angle.
[0020] In some embodiments, when there are two second deflection angles and the first angle is identified, the angle of the intravenous puncture needle is adjusted according to the first current deflection angle to achieve the straightening operation of the intravenous puncture needle, and the second front deflection angle of the intravenous puncture needle relative to the camera is obtained again; when the second current deflection angle is outside the third angle threshold interval, the difference between the maximum and minimum values of the second deflection angle under the first angle identification is determined as the third current deflection angle; and the angle of the intravenous puncture needle continues to be adjusted according to the new third current deflection angle until the third current deflection angle is within the third angle threshold interval.
[0021] In some embodiments, the device includes a processor and a memory storing program instructions, and the processor is configured to execute the method for adjusting the angle of the venipuncture needle as described above when running the program instructions.
[0022] In some embodiments, the angle adjustment device includes: a device body; and a device for adjusting the angle of a venous puncture needle as described above, installed on the device body.
[0023] The method, device and angle adjustment device for adjusting the angle of a venous puncture needle provided in the embodiments of the present disclosure can achieve the following technical effects:
[0024] After the embodiment of the present disclosure obtains the image of the venous puncture needle through camera shooting, the position of the needle tip apex is determined according to the image of the venous puncture needle. The deflection angle of the venous puncture needle relative to the camera lens can be indirectly determined by the distance of the projection point corresponding to the position of the needle tip apex. At the same time, even if there are highly similar venous puncture needle images, the deflection angle of the venous puncture needle relative to the camera lens can be determined by the distance of the projection point corresponding to the position of the needle tip apex, and there will be no misidentification of the angle. Based on this, the embodiment of the present disclosure configures the distance rule corresponding to the position of the needle tip apex, and obtains the first current deflection angle of the venous puncture needle relative to the camera lens according to the distance rule corresponding to the position of the needle tip apex. Finally, the angle of the venous puncture needle is adjusted according to the first current deflection angle to achieve the straightening operation of the venous puncture needle. In this way, the embodiment of the present disclosure can accurately identify the deflection angle of the venous puncture needle from the image of the venous puncture needle taken by the camera, and ensure the accuracy of the recognition of the deflection angle of the venous puncture needle.
[0025] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0027] Figure 1 is a schematic diagram of an image of a venous puncture needle with a deflection angle of 45° and 135° provided by an embodiment of the present disclosure; wherein, Figure 1 (a) and Figure 1 (b) represents the images of the venous puncture needle with deflection angles of 45° and 135° respectively;
[0028] Figure 2 is a schematic diagram of different rotation angles of the venous puncture needle provided by the embodiment of the present disclosure; wherein, Figure 2 (a) Figure 2 (b) Figure 2 (c) Figure 2 In (d), the rotation angles of the venipuncture needle are 0°, 15°, 45°, and 350°, respectively;
[0029] Figure 3 is a schematic diagram of a method for adjusting the angle of a venipuncture needle provided by an embodiment of the present disclosure;
[0030] Figure 4 is a schematic diagram of another method for adjusting the angle of a venipuncture needle provided by an embodiment of the present disclosure;
[0031] Figure 5 is a schematic diagram of another method for adjusting the angle of a venipuncture needle provided by an embodiment of the present disclosure;
[0032] Figure 6 is a schematic diagram of another method for adjusting the angle of a venipuncture needle provided by an embodiment of the present disclosure;
[0033] Figure 7 is a schematic diagram of another method for adjusting the angle of a venipuncture needle provided by an embodiment of the present disclosure;
[0034] Figure 8-1 is a schematic diagram of another venous puncture needle with different rotation angles provided by an embodiment of the present disclosure; wherein, Figure 8-1 (a) Figure 8-1 (b) Figure 8-1 In (c), the rotation angles of the intravenous puncture needle are 0°, 15°, and 350°, respectively, A represents the position of the needle tip apex, L1 represents the first reference horizontal line, L2 represents the second reference horizontal line, B1 represents the first reference point, and B2 represents the second reference point;
[0035] Figure 8-2 The embodiment of the present disclosure provides Figure 8-1 Black and white line schematic diagrams of the middle vein puncture needle rotation angles of 15° and 350° respectively; Figure 8-2 (a) Figure 8-2 In (b), the rotation angles of the venipuncture needle are 15° and 350°, respectively;
[0036] Figure 9-1 is a schematic diagram of a deflection angle-distance difference curve provided by an embodiment of the present disclosure;
[0037] Figure 9-2 is a schematic diagram of deflection angle-distance and curve provided by an embodiment of the present disclosure;
[0038] Fig.10 is an application schematic diagram of an embodiment of the present disclosure;
[0039] Fig.11 It is a schematic diagram of a device for adjusting the angle of a venous puncture needle provided in an embodiment of the present disclosure.
[0040] Reference numerals:
[0041] 10: Perforation;
[0042] 70: A device for adjusting the angle of a venipuncture needle;
[0043] 700: processor; 701: memory;
[0044] 702: communication interface; 703: bus. DETAILED DESCRIPTION
[0045] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0046] The terms "first", "second", etc. in the description of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0047] Unless otherwise stated, the term "plurality" means two or more.
[0048] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0049] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0050] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0051] Combination Figure 3 As shown, the embodiment of the present disclosure provides a method for adjusting the angle of a venous puncture needle, comprising:
[0052] S01, the processor obtains an image of the venous puncture needle by photographing with a camera.
[0053] S02, the processor determines the position of the needle tip apex according to the venous puncture needle image.
[0054] S03, the processor obtains a first current deflection angle of the venous puncture needle relative to the camera lens based on a distance rule corresponding to the needle tip vertex position.
[0055] In this step, the deflection angle of the venous puncture needle relative to the camera lens represents the rotation angle of the venous puncture needle when it rotates from left to right, taking the angle when the front of the venous puncture needle faces the camera lens as the reference deflection angle and the central axis of the venous puncture needle as the rotation axis. When the front of the venous puncture needle faces the camera lens, the reference deflection angle is 0°. When the venous puncture needle rotates from left to right, the deflection angle gradually increases, and the range of the deflection angle is [0°, 360°].
[0056] Combination Figure 2 As shown, Figure 2 (a) Figure 2 (b) Figure 2 (c) Figure 2 In (d), the rotation angles of the venipuncture needle are 0°, 15°, 45°, and 350°, respectively.
[0057] S04, the processor adjusts the angle of the venous puncture needle according to the first current deflection angle to achieve a straightening operation of the venous puncture needle.
[0058] The method for adjusting the angle of a venous puncture needle provided by the embodiment of the present disclosure is adopted. After the venous puncture needle image is obtained by camera shooting, the apex position of the needle tip is determined according to the venous puncture needle image. When the venous puncture needle rotates from left to right, there are cases where the venous puncture needle images at certain adjacent positions are highly similar. Although the venous puncture needle images at certain adjacent positions are highly similar, since the apex position of the needle tip rotates synchronously with the venous puncture needle, and the bottom part of the venous puncture needle is cylindrical and the perforation part is irregularly cylindrical, when the venous puncture needle rotates from left to right, the distance between the projection point of the apex position of the needle tip when projected to the bottom of the venous puncture needle and the left side contour edge of the venous puncture needle and the distance between the projection point and the right side contour edge of the venous puncture needle change in real time with the rotation action. At the same time, when the venous puncture needle rotates from left to right, the distance between the projection point of the apex position of the needle tip when projected to the top of the perforation and the left side contour edge of the venous puncture needle and the distance between the projection point and the right side contour edge of the venous puncture needle also change in real time with the rotation action. Therefore, the deflection angle of the venous puncture needle relative to the camera lens can be indirectly determined by the distance of the projection point corresponding to the needle tip vertex position. At the same time, even if there are highly similar venous puncture needle images, the deflection angle of the venous puncture needle relative to the camera lens can be determined by the distance of the projection point corresponding to the needle tip vertex position, and there will be no misidentification of the angle. Based on this, the embodiment of the present disclosure configures a distance rule corresponding to the needle tip vertex position, and obtains the first current deflection angle of the venous puncture needle relative to the camera lens according to the distance rule corresponding to the needle tip vertex position. Finally, the angle of the venous puncture needle is adjusted according to the first current deflection angle to achieve the straightening operation of the venous puncture needle. In this way, the embodiment of the present disclosure can accurately identify the deflection angle of the venous puncture needle from the venous puncture needle image taken by the camera, thereby ensuring the accuracy of the recognition of the deflection angle of the venous puncture needle.
[0059] It should be noted that the execution subject of the embodiment of the present disclosure may be a processor configured on the camera, or a server connected to the camera for communication. The embodiment of the present disclosure may not be specifically limited to this. The embodiment of the present disclosure is described with the processor as the execution subject.
[0060] Optionally, combined Figure 4 As shown, the processor obtains the first current deflection angle of the venous puncture needle relative to the camera lens based on the distance rule corresponding to the needle tip vertex position, including:
[0061] S11, the processor determines the arc feature of the venipuncture needle.
[0062] In this step, when the front of the venipuncture needle has a certain angle with the camera lens plane, an arc can be obtained from the venipuncture image. When the angle between the front of the venipuncture needle and the camera lens plane exceeds the above angle, an arc cannot be obtained from the venipuncture image. Based on this, the existence of an arc is determined by the arc feature of the venipuncture needle.
[0063] S12, when the arc feature indicates the existence of an arc, the processor determines the horizontal line of the bottom of the intravenous puncture needle as the first reference horizontal line L1, and determines the projection of the needle tip vertex position A to the first reference horizontal line L1 as the first reference point B1.
[0064] In this step, the bottom of the venous puncture needle is a regular cylindrical shape. Figure 8-1 and 8-2 As shown, the processor determines the projection of the needle tip apex position A to the first reference horizontal line L1 as the first reference point B1, including: the processor draws a perpendicular line from the needle tip apex position A to the first reference horizontal line L1, and determines the intersection of the perpendicular line and the first reference horizontal line L1 as the first reference point B1.
[0065] S13: The processor obtains a first deflection angle according to the first reference point and a distance difference rule.
[0066] S14: When the first deflection angle is within the first angle threshold interval or within the second angle threshold interval, the processor determines the first deflection angle as the first current deflection angle.
[0067] In this step, the first angle threshold interval is [0°, 20°], and the second angle threshold interval is [340°, 360°].
[0068] In this way, the embodiment of the present disclosure first determines the arc feature of the venous puncture needle. When the arc feature indicates the existence of an arc, the embodiment of the present disclosure determines the horizontal direction of the bottom of the venous puncture needle as the first reference horizontal line, and determines the projection of the needle tip vertex position to the first reference horizontal line as the first reference point. The embodiment of the present disclosure obtains the first deflection angle according to the first reference point and the distance difference rule. It is known through experimental statistics that, combined with Figure 9-1As shown, within the range of [0°, 360°], the deflection angle-distance difference curve within the range of (20°, 340°) has obvious burrs, and the deflection angle within the range of (20°, 340°) determined by the above deflection angle-distance difference curve is likely to have a large deviation from the actual deflection angle. Therefore, after obtaining the first deflection angle, the embodiment of the present disclosure determines whether the first deflection angle is located in the first angle threshold interval and whether it is located in the second angle threshold interval, and when it is located in the first angle threshold interval or in the second angle threshold interval, determines the first deflection angle as the first current deflection angle. In this way, when the venous puncture needle is curved, the embodiment of the present disclosure determines the first current deflection angle located in the first angle threshold interval or the second angle threshold interval to ensure the accuracy of venous puncture needle angle recognition.
[0069] Optionally, combined Figure 5 As shown, the processor obtains the first deflection angle according to the first reference point and the distance difference rule, including:
[0070] S21, the processor obtains a first distance between the first reference point and the left side contour edge of the venous puncture needle and a second distance between the first reference point and the right side contour edge of the venous puncture needle.
[0071] S22: The processor obtains a distance difference according to the first distance and the second distance, wherein the distance difference is the difference between the first distance and the second distance.
[0072] S23: The processor obtains a first deflection angle corresponding to the distance difference according to the correspondence between the distance difference and the deflection angle.
[0073] In this way, when the venous puncture needle rotates, the position of the needle tip apex has a certain distance relative to the central axis of the venous puncture needle, and accordingly, the first distance between the first reference point and the left contour edge of the venous puncture needle and the second distance between the first reference point and the right contour edge of the venous puncture needle also change synchronously. It can be understood that the difference between the first distance and the second distance has a corresponding relationship with the deflection angle of the venous puncture needle. To this end, after obtaining the distance difference, the embodiment of the present disclosure obtains the first deflection angle corresponding to the distance difference according to the corresponding relationship between the distance difference and the deflection angle, so as to accurately estimate the angle value of the first deflection angle through the deflection angle-distance difference curve, so as to achieve accurate identification of the angle of the venous puncture needle when the venous puncture needle is curved.
[0074] Optionally, after the processor obtains the first deflection angle according to the first reference point and the distance difference rule, the method further includes:
[0075] When the first deflection angle is outside the first angle threshold interval and the first deflection angle is outside the second angle threshold interval, the processor determines the horizontal line passing through the perforation apex position as the second reference horizontal line L2, and determines the projection of the needle tip apex position A to the second reference horizontal line L2 as the second reference point B2.
[0076] The processor obtains the first current deflection angle according to the second reference point and the distance and value rule.
[0077] In this step, combine Figure 8-1 and 8-2 As shown, the processor determines the projection of the needle tip apex position A to the second reference horizontal line L2 as the second reference point B2, including: the processor draws a perpendicular line from the needle tip apex position A to the second reference horizontal line L2, and determines the intersection of the perpendicular line and the second reference horizontal line L2 as the second reference point B2.
[0078] Thus, the embodiments of the present disclosure have been found through experimental statistics, combined with Figure 9-2 As shown, within the range of [0°, 20°] and [340°, 360°], the slope of the deflection angle-distance sum curve is low, and the difference in angle values under different distances and sums is not obvious. The deflection angle within the range of [0°, 20°] or [340°, 360°] determined by the above deflection angle-distance difference curve is not accurate enough to the actual deflection angle, which can easily lead to misidentification of the rotation angle. Based on this, in the embodiment of the present disclosure, when the first deflection angle is outside the first angle threshold interval and the first deflection angle is outside the second angle threshold interval, the horizontal line passing through the apex position of the perforation is determined as the second reference horizontal line, and the projection of the needle tip apex position to the second reference horizontal line is determined as the second reference point. The embodiment of the present disclosure obtains the first current deflection angle according to the second reference point and the distance sum value rule. In this way, the embodiment of the present disclosure can obtain the first current deflection angle that is outside the first angle threshold interval and outside the second angle threshold interval, thereby ensuring the accuracy of the angle recognition of the venous puncture needle.
[0079] Optionally, combined Figure 6 As shown, the processor obtains the first current deflection angle of the venous puncture needle relative to the camera lens based on the distance rule corresponding to the needle tip vertex position, including:
[0080] S31, the processor determines the arc feature of the venipuncture needle and executes step S32 or step S35.
[0081] S32, when the arc feature indicates the existence of an arc, the processor determines the horizontal line of the bottom of the venous puncture needle as the first reference horizontal line, and determines the projection of the needle tip vertex position to the first reference horizontal line as the first reference point.
[0082] S33: The processor obtains a first deflection angle according to the first reference point and the distance difference rule.
[0083] S34: When the first deflection angle is within the first angle threshold interval or within the second angle threshold interval, the processor determines the first deflection angle as the first current deflection angle.
[0084] S35, after the processor determines the arc feature of the intravenous puncture needle, if the arc feature indicates that there is no arc, it determines the horizontal line passing through the puncture vertex position as the second reference horizontal line, and determines the projection of the needle tip vertex position to the second reference horizontal line as the second reference point.
[0085] S36: The processor obtains the first current deflection angle according to the second reference point and the distance and value rule.
[0086] In this way, the embodiment of the present disclosure first determines the arc feature of the intravenous puncture needle. When the arc feature indicates that there is no arc, the embodiment of the present disclosure determines the horizontal line passing through the puncture apex position as the second reference horizontal line, and determines the projection of the needle tip apex position to the second reference horizontal line as the first reference point, and then obtains the first current deflection angle based on the second reference point and the distance and value rule, so as to achieve accurate identification of the angle of the intravenous puncture needle when there is no arc in the intravenous puncture needle.
[0087] Optionally, combined Figure 7 As shown, the processor obtains the first current deflection angle according to the second reference point and the distance and value rule, including:
[0088] S41, the processor obtains a third distance between the second reference point and the left side contour edge of the venous puncture needle and a fourth distance between the second reference point and the right side contour edge of the venous puncture needle.
[0089] S42: The processor obtains a distance and a value according to the third distance and the fourth distance.
[0090] S43: The processor obtains a first current deflection angle corresponding to the distance and value according to the correspondence between the distance and value and the deflection angle.
[0091] In this way, when the venous puncture needle rotates, the position of the needle tip apex has a certain distance relative to the central axis of the venous puncture needle, and accordingly, the third distance between the second reference point and the left contour edge of the venous puncture needle and the fourth distance between the second reference point and the right contour edge of the venous puncture needle also change synchronously. It can be understood that the difference between the third distance and the fourth distance has a corresponding relationship with the deflection angle of the venous puncture needle. To this end, after obtaining the distance sum value, the embodiment of the present disclosure obtains the first current deflection angle corresponding to the distance difference according to the corresponding relationship between the distance sum value and the deflection angle, so as to accurately estimate the angle value of the first current deflection angle through the deflection angle-distance difference curve.
[0092] Optionally, the processor obtains a first current deflection angle corresponding to the distance and value according to a correspondence between the distance and value and the deflection angle, including:
[0093] The processor obtains a second deflection angle corresponding to the distance and value according to the correspondence between the distance and value and the deflection angle.
[0094] When there are two second deflection angles and the angle is identified for the first time, the processor selects the minimum value of the second deflection angle as the first current deflection angle.
[0095] When the second deflection angle is one, the processor uses the second deflection angle as the first current deflection angle.
[0096] In this way, combined Figure 9-2 As shown, within the range of (20°, 340°), under certain distances and values, there are two deflection angles determined by the deflection angle-distance and curve, while the actual deflection angle is only one of them. For this reason, after obtaining the second deflection angle corresponding to the distance and value, the embodiment of the present disclosure determines whether there are two second deflection angles and whether it is the first recognition. If both are yes, the minimum value of the two second deflection angles is selected as the first current deflection angle. When the second deflection angle is one, the second deflection angle is determined as the first current deflection angle. In this way, the embodiment of the present disclosure selects the minimum value of the second deflection angle as the first current deflection angle when there are two second deflection angles, so as to continue angle recognition and angle adjustment after selecting one, so as to realize the straightening operation of the intravenous puncture needle after the secondary angle recognition and / or secondary angle adjustment.
[0097] Optionally, when there are two second deflection angles and the angle is identified for the first time, the processor adjusts the angle of the venous puncture needle according to the first current deflection angle to achieve the straightening operation of the venous puncture needle, and then obtains the second front deflection angle of the venous puncture needle relative to the camera again.
[0098] When the second current deflection angle is outside the third angle threshold interval, the processor determines the difference between the maximum value and the minimum value of the second deflection angle under the first angle recognition as the third current deflection angle.
[0099] The processor continues to adjust the angle of the intravenous puncture needle according to the new third current deflection angle until the third current deflection angle is within a third angle threshold interval.
[0100] In this way, when the number of determined second deflection angles is two and it is the first angle recognition, the embodiment of the present disclosure selects the minimum value of the second deflection angle as the first current deflection angle. However, there are two situations for the actual deflection angle, one is equal to the first current deflection angle, and the other is the maximum value of the second deflection angle. In the second situation, the selected minimum value of the second deflection angle will be outside the second angle threshold interval, and the angle of the venous puncture needle has been adjusted according to the first current deflection angle after the first recognition. Therefore, when the second current deflection angle is outside the third angle threshold interval, the embodiment of the present disclosure can be adjusted again based on the difference between the maximum and minimum values of the second deflection angle under the first angle recognition, that is, the embodiment of the present disclosure adjusts the angle of the venous puncture needle again based on the third current deflection angle, so as to perform the straightening operation of the venous puncture needle through multiple angle recognitions.
[0101] It should be noted that after the processor continues to adjust the angle of the venous puncture needle according to the new third current deflection angle, the processor further includes: when the third current deflection angle is within the third angle threshold interval, the processor determines that the venous puncture needle has completed the straightening operation and ends the angle adjustment. It can be understood that before determining that the venous puncture needle has completed the straightening operation, the angle adjustment operation of the venous puncture needle is performed at most twice.
[0102] Optionally, the third angle threshold interval is [-10°, 10°]. It can be understood that the upper limit value of the third angle threshold interval can be based on 10° for a small range of fluctuations, and the upper limit value of the third angle threshold interval can be based on -10° for a small range of fluctuations.
[0103] As an example, first, the processor obtains the second deflection angles corresponding to the distances and values according to the correspondence between the distances and values and the deflection angles, which are 50° and 130° respectively, and selects the second deflection angle minimum value of 50° as the first current deflection angle, which is recognized for the first time.
[0104] Secondly, the processor adjusts the angle of the venous puncture needle according to the first current deflection angle of 50° to achieve a straightening operation of the venous puncture needle.
[0105] Then, since there are two second deflection angles and this is the first angle recognition, the processor adjusts the angle of the venous puncture needle according to the first current deflection angle of 50° to achieve the straightening operation of the venous puncture needle, and then obtains the second front deflection angle of the venous puncture needle relative to the camera.
[0106] If the second current deflection angle is outside [-10°, 10°], it means that the actual second deflection angle corresponding to the distance and value is 130° instead of 50°. At the same time, since the angle of the intravenous puncture needle has been adjusted according to 50° in the previous step, it is only necessary to continue the angle adjustment according to the difference between 130° and 50°. That is, the processor determines the difference of 80° between the maximum value 130° and the minimum value 50° of the second deflection angle under the first angle recognition as the third current deflection angle, and continues to adjust the angle of the intravenous puncture needle according to the new third current deflection angle 80° until the third current deflection angle is located at [-10°, 10°].
[0107] If the second current deflection angle is at [-10°, 10°], it is determined that the venous puncture needle has completed the alignment operation and the angle adjustment is ended.
[0108] In practical applications, such as Fig.10 As shown, the method for adjusting the angle of the venous puncture needle specifically performs the following steps:
[0109] S101, the processor obtains an image of the venous puncture needle by photographing with a camera.
[0110] S102, the processor determines the needle tip vertex position according to the venipuncture needle image.
[0111] S103, the processor determines the arc feature of the venipuncture needle.
[0112] S104, judging whether there is an arc based on the arc feature; if so, executing step S105, if not, executing step S111.
[0113] S105, the processor determines the horizontal line at the bottom of the venous puncture needle as the first reference horizontal line, and determines the projection of the needle tip vertex position to the first reference horizontal line as the first reference point.
[0114] S106: The processor obtains a first distance between the first reference point and the left edge of the contour of the venous puncture needle and a second distance between the first reference point and the right edge of the contour of the venous puncture needle.
[0115] S107: The processor obtains a distance difference according to the first distance and the second distance.
[0116] S108: The processor obtains a first deflection angle corresponding to the distance difference according to a correspondence between the distance difference and the deflection angle.
[0117] S109, the processor determines whether the first deflection angle is within the first angle threshold interval or within the second angle threshold interval; if so, execute step S110, if not, execute step S111.
[0118] S110, the processor determines the first deflection angle as the first current deflection angle, and executes step S115.
[0119] S111, the processor determines a horizontal line passing through the apex position of the perforation as a second reference horizontal line, and determines a projection of the apex position of the needle tip onto the second reference horizontal line as a second reference point.
[0120] S112, obtaining a third distance between the second reference point and the left side contour edge of the venous puncture needle and a fourth distance between the second reference point and the right side contour edge of the venous puncture needle.
[0121] S113: The processor obtains a distance and a value according to the third distance and the fourth distance.
[0122] S114, the processor obtains a first current deflection angle corresponding to the distance and value according to the correspondence between the distance and value and the deflection angle, and executes step S115.
[0123] S115, the processor adjusts the angle of the venous puncture needle according to the first current deflection angle to achieve a straightening operation of the venous puncture needle.
[0124] Combination Fig.11 As shown, the embodiment of the present disclosure provides a device 70 for adjusting the angle of a venous puncture needle, including a processor 700 and a memory 701. Optionally, the device 70 may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the method for adjusting the angle of a venous puncture needle of the above embodiment.
[0125] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0126] The memory 701 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 700 executes the function application and data processing by running the program instructions / modules stored in the memory 701, that is, the method for adjusting the angle of the venipuncture needle in the above embodiment is implemented.
[0127] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.
[0128] The disclosed embodiment provides an angle adjustment device, including: a device body, and the above-mentioned device 70 for adjusting the angle of a venous puncture needle. The device 70 for adjusting the angle of a venous puncture needle is installed on the device body. The installation relationship described here is not limited to placement inside the device body, but also includes installation connections with other components of the angle adjustment device, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 70 for adjusting the angle of a venous puncture needle can be adapted to a feasible angle adjustment device body, thereby realizing other feasible embodiments.
[0129] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for adjusting the angle of a venous puncture needle.
[0130] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0131] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0132] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0133] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0134] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for adjusting the angle of a venipuncture needle, characterized in that: include: The image of the venipuncture needle is obtained by taking a picture with a camera; According to the venipuncture needle image, the position of the needle tip apex is determined; Based on the distance rule corresponding to the needle tip vertex position, a first current deflection angle of the venipuncture needle relative to the camera lens is obtained; The angle of the venous puncture needle is adjusted according to the first current deflection angle to achieve a straightening operation of the venous puncture needle.
2. The method according to claim 1, characterized in that: Based on the distance rule corresponding to the needle tip vertex position, a first current deflection angle of the venous puncture needle relative to the camera lens is obtained, including: Determine the arc characteristics of the venipuncture needle; In the case where the arc feature indicates the existence of an arc, a horizontal line at the bottom of the venous puncture needle is determined as a first reference horizontal line, and a projection of the needle tip vertex position onto the first reference horizontal line is determined as a first reference point; According to the first reference point and the distance difference rule, a first deflection angle is obtained; When the first deflection angle is within the first angle threshold interval or within the second angle threshold interval, the first deflection angle is determined as the first current deflection angle.
3. The method according to claim 2, characterized in that According to the first reference point and the distance difference rule, a first deflection angle is obtained, including: Obtaining a first distance between the first reference point and the left side contour edge of the venous puncture needle and a second distance between the first reference point and the right side contour edge of the venous puncture needle; Obtaining a distance difference according to the first distance and the second distance; According to the corresponding relationship between the distance difference and the deflection angle, a first deflection angle corresponding to the distance difference is obtained.
4. The method according to claim 2, characterized in that: After obtaining the first deflection angle according to the first reference point and the distance difference rule, the following steps are also included: When the first deflection angle is outside the first angle threshold interval and the first deflection angle is outside the second angle threshold interval, a horizontal line passing through the apex position of the perforation is determined as a second reference horizontal line, and a projection of the apex position of the needle tip onto the second reference horizontal line is determined as a second reference point; According to the second reference point and the distance and value rule, a first current deflection angle is obtained.
5. The method according to claim 2, characterized in that: Also includes: After determining the arc feature of the venous puncture needle, if the arc feature indicates that there is no arc, determine the horizontal line passing through the apex position of the perforation as the second reference horizontal line, and determine the projection of the apex position of the needle tip to the second reference horizontal line as the second reference point; According to the second reference point and the distance and value rule, a first current deflection angle is obtained.
6. The method according to claim 4 or 5, characterized in that: According to the second reference point and the distance and value rule, the first current deflection angle is obtained, including: Obtaining a third distance between the second reference point and the left side contour edge of the venous puncture needle and a fourth distance between the second reference point and the right side contour edge of the venous puncture needle; According to the third distance and the fourth distance, a distance and value are obtained; According to the correspondence between the distance sum value and the deflection angle, a first current deflection angle corresponding to the distance sum value is obtained.
7. The method according to claim 6, characterized in that According to the correspondence between the distance and the value and the deflection angle, obtaining a first current deflection angle corresponding to the distance and the value includes: According to the correspondence between the distance sum value and the deflection angle, a second deflection angle corresponding to the distance sum value is obtained; When there are two second deflection angles and the angle is identified for the first time, the minimum value of the second deflection angle is selected as the first current deflection angle; or, When the second deflection angle is one, the second deflection angle is used as the first current deflection angle.
8. The method according to claim 7, characterized in that When the second deflection angle is two and the angle is identified for the first time, it also includes: After adjusting the angle of the venous puncture needle according to the first current deflection angle to achieve a straightening operation of the venous puncture needle, a second front deflection angle of the venous puncture needle relative to the camera is obtained again; When the second current deflection angle is outside the third angle threshold interval, determining the difference between the maximum value and the minimum value of the second deflection angle in the first angle recognition as the third current deflection angle; Continue to adjust the angle of the venous puncture needle according to the new third current deflection angle until the third current deflection angle is located in the third angle threshold interval.
9. A device for adjusting the angle of a venipuncture needle, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for adjusting the angle of a venipuncture needle according to any one of claims 1 to 8 when running the program instructions.
10. An angle adjustment device, characterized in that: include: Equipment body; The device for adjusting the angle of a venous puncture needle as described in claim 9 is installed on the device body.
Citation Information
Patent Citations
Automatic detecting method of machine vision system for cross section direction of syringe needle
CN102495075A
Machine vision-based injection needle tubing automatic detecting system and detecting method
CN104483321A
Machine vision based turn plate angle high-precision online measurement method
CN108007388A
Position detecting and correcting method and device for automatic injection instrument syringe needle
CN109011030A
Method and device for controlling centrifugal machine, centrifugal machine and storage medium
CN114377862A
