Artery area detection method, device, equipment, medium and system based on machine vision

CN118735870APending Publication Date: 2024-10-01AGIBOT MEDTECH (SUZHOU) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410779329.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

Smart Images

  • Figure CN118735870A_ABST
    Figure CN118735870A_ABST
Patent Text Reader

Abstract

The invention provides an artery area detection method, device, equipment, medium and system based on machine vision, and the method comprises the steps: obtaining tissue image data in not less than one cardiac cycle duration, dividing each tissue image into a plurality of to-be-processed areas with the same number, and determining the pixel feature value corresponding to each to-be-processed area; and for each to-be-processed area, based on the pixel characteristic value change information of the current to-be-processed area, determining whether the current to-be-processed area is a target artery area, and if so, prompting one or more target artery areas in the display picture. According to the technical scheme, under the condition that additional equipment is not needed, automatic detection can be dynamically and conveniently carried out on the artery area at low cost in real time, so that the mental share of an operator is relieved, and the efficiency and accuracy of detecting the artery position are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical image processing, and in particular to a method, device, equipment, medium and system for detecting an arterial region based on machine vision. Background Art

[0002] Laparoscopic surgery is a type of surgery that uses a medical device (i.e., an endoscope) with a miniature camera. In laparoscopic surgery, it is crucial to determine the arterial area within the surgical area. This is because, on the one hand, the artery needs to be clamped or cut off according to the surgical requirements; on the other hand, the surgeon needs to pay special attention to the arterial area to avoid scratching the arterial area and causing heavy bleeding.

[0003] At present, in order to locate and identify the arterial area blocked by tissue, the traditional processing method is: perform an enhanced CT (abbreviated as CTA) scan on the patient before surgery, and separate and model the blood vessels through the CTA image. After carefully observing the CTA image, the surgeon combines anatomical knowledge to construct the shape of the arterial blood vessels and their approximate relative position. In addition, a series of new technologies have emerged in the prior art, such as the blood vessel recognition method based on ultrasound images recorded in CN112365489A, the pulse wave waveform based on pulse wave sensor detection recorded in CN104873186B, the blood vessel recognition method based on the light absorption characteristics of hemoglobin recorded in CN113171053A, and the blood vessel recognition method based on machine learning recorded in CN114596247A, etc.

[0004] However, the above-mentioned traditional processing methods are heavily dependent on the professional knowledge and technical experience of the operator, and there are problems such as heavy mental burden on the operator, low efficiency and low accuracy in judging the arterial area; and the processing methods of CN112365489A and CN104873186B require the use of other equipment or components for blood vessel identification, but the temporary addition of additional hardware equipment will not only increase the cost, but also the operator needs to occupy at least one hand or one robotic arm to operate the newly added hardware equipment, which has the problems of cumbersome operation and poor convenience; the implementation of CN113171053A requires the use of fluorescein with an infrared light source for angiography, which requires intravenous injection in advance. The feasibility of this method depends on the metabolic characteristics of fluorescein and the infrared light source, and there are problems of low safety and low stability; and CN114596247A is only suitable for the identification of blood vessels that have already appeared in the figure, and cannot detect the arterial area covered by the capsule. Summary of the invention

[0005] The present application provides a method, device, equipment, medium and system for detecting an arterial region based on machine vision, so as to automatically detect the arterial region in a low-cost, real-time, dynamic and convenient manner without the need for additional equipment, thereby reducing the operator's mental workload and improving the efficiency and accuracy of detecting the arterial position.

[0006] In a first aspect, an embodiment of the present application provides an artery region detection method based on machine vision, the method comprising:

[0007] Acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration;

[0008] Dividing the plurality of continuous video frames in the tissue video or the plurality of continuous tissue images into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each of the to-be-processed regions;

[0009] For each of the regions to be processed, based on pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive video frames in the tissue video, or pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive tissue images, determining whether the current region to be processed is a target artery region;

[0010] If so, the target artery region is prompted in the display screen; wherein the target artery region is one or more regions in the region to be processed.

[0011] In combination with the first aspect, in an implementation manner of the first aspect, determining the pixel feature value corresponding to each of the to-be-processed areas includes:

[0012] Performing a homogenization process on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel;

[0013] The first grayscale characteristic value is used as the pixel characteristic value corresponding to the area to be processed.

[0014] In combination with the first aspect, in an implementation manner of the first aspect, determining the pixel feature value corresponding to each of the to-be-processed areas includes:

[0015] Performing a homogenization process on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel;

[0016] Performing the homogenization process on the grayscale values ​​corresponding to the target channel of all pixels of the currently processed image to obtain a second grayscale eigenvalue;

[0017] A third grayscale eigenvalue obtained by subtracting the second grayscale eigenvalue from the first grayscale eigenvalue is used as the pixel eigenvalue corresponding to the area to be processed.

[0018] In combination with the first aspect, in an implementable manner of the first aspect, determining whether the current area to be processed is a target artery area based on pixel feature value change information of the current area to be processed includes:

[0019] For the current area to be processed, determining a time series of characteristic values ​​corresponding to the current area to be processed according to the pixel characteristic values ​​respectively corresponding to the plurality of continuous video frames or the plurality of continuous tissue images;

[0020] Performing frequency domain analysis on the characteristic value time series to obtain an amplitude spectrum diagram; wherein the amplitude spectrum diagram is used to characterize the corresponding relationship between amplitude and frequency, the ordinate of the amplitude spectrum diagram represents amplitude, and the abscissa represents frequency;

[0021] Based on the amplitude spectrum diagram, determining each amplitude value and amplitude peak value within a preset frequency range;

[0022] Based on each of the amplitude values, determining an amplitude standard deviation;

[0023] Based on the amplitude peak value and the amplitude standard deviation, it is determined whether the current area to be processed is a target artery area.

[0024] In combination with the first aspect, in an implementable manner of the first aspect, determining whether the current area to be processed is a target artery area based on the amplitude peak value and the amplitude standard deviation includes:

[0025] Determine the ratio of the amplitude peak value to the amplitude standard deviation as the ratio to be compared;

[0026] If the ratio to be compared is greater than or equal to a preset threshold, determining that the current area to be processed is a target artery area;

[0027] If the ratio to be compared is less than a preset threshold, it is determined that the current area to be processed is not a target artery area.

[0028] In combination with the first aspect, in an implementable manner of the first aspect, performing frequency domain analysis on the eigenvalue time series to obtain an amplitude spectrum diagram includes:

[0029] After the eigenvalue time series is processed by the Heining window function, Fourier transform is performed to obtain an amplitude spectrum diagram.

[0030] In combination with the first aspect, in an implementable manner of the first aspect, the step of prompting the target artery region in the display screen includes:

[0031] Determining a margin mask image based on the coordinate information of the target artery region;

[0032] Superimposing the edge mask image and the current display image in the display screen to obtain an image to be displayed containing prompt information;

[0033] The image to be displayed is transmitted to a display device to display the image to be displayed.

[0034] In combination with the first aspect, in an implementation manner of the first aspect, the area to be processed includes (50-100)*(50-100) pixels.

[0035] In a second aspect, an embodiment of the present application further provides an artery region detection device based on machine vision, the device comprising:

[0036] An image acquisition module, used to acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration;

[0037] A module for determining an area to be processed, used for dividing a plurality of continuous video frames in the tissue video or a plurality of continuous tissue images into a plurality of areas to be processed of the same size, and determining a pixel feature value corresponding to each of the areas to be processed;

[0038] An artery region detection module is used to determine, for each of the regions to be processed, whether the current region to be processed is a target artery region based on pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive video frames in the tissue video, or pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive tissue images;

[0039] The arterial region prompting module is used to prompt the target arterial region in the display screen if so; wherein the target arterial region is one or more regions in the region to be processed.

[0040] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0041] one or more processors;

[0042] a storage device for storing one or more programs,

[0043] When one or more programs are executed by one or more processors, the one or more processors implement the machine vision-based artery region detection method as described in any of the embodiments of the present application.

[0044] In a fourth aspect, the embodiments of the present application further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a machine vision-based artery region detection method as described in any of the embodiments of the present application.

[0045] In a fifth aspect, an embodiment of the present application further provides an arterial region detection system based on machine vision, characterized in that the system comprises: an image acquisition device, an image processing server, and a display device; the image processing server can communicate interactively with the image acquisition device and the display device, the image processing server is provided with a processor and a memory, the memory stores a computer program, the processor is used to execute the computer program and implement the above-mentioned arterial region detection method based on machine vision when executing the computer program;

[0046] Wherein, the image acquisition device is used to acquire tissue video or multiple continuous tissue images; the image processing server is used to obtain the tissue video or multiple continuous tissue images acquired by the image acquisition device; to determine the tissue video or multiple continuous tissue images within a target duration; wherein the target duration is not less than the duration of a cardiac cycle; the multiple continuous video frames in the tissue video or the multiple continuous tissue images are respectively divided into multiple to-be-processed areas of the same number, and the pixel characteristic value corresponding to each of the to-be-processed areas is determined; for each of the to-be-processed areas, based on the pixel characteristic value change information of the multiple continuous video frames in the tissue video under the current to-be-processed area, or the pixel characteristic value change information of the multiple continuous tissue images under the current to-be-processed area, determine whether the current to-be-processed area is a target artery area; if so, control the display screen of the display device to prompt the target artery area; wherein the target artery area is one or more areas in the to-be-processed area; the display device is used to display the tissue video or tissue image, and prompt the target artery area in the display screen.

[0047] The embodiment of the present application provides an arterial region detection method, device, equipment, medium and system based on machine vision. In the arterial region detection method based on machine vision, by acquiring a tissue video or a plurality of continuous tissue images within a cardiac cycle, a plurality of continuous video frames or a plurality of continuous tissue images in the tissue video are divided into a plurality of regions to be processed of the same number, and the pixel feature value corresponding to each region to be processed is determined. Further, for each region to be processed, based on the pixel feature value change information of the current region to be processed corresponding to a plurality of continuous video frames in the tissue video, or the pixel feature value change information of the current region to be processed corresponding to a plurality of continuous tissue images, it is determined whether the current region to be processed is a target arterial region. If so, one or more target arterial regions are prompted in the display screen. The technical solution of the present application determines whether each region to be processed is a target arterial region by determining the pixel feature value change information corresponding to the region to be processed at the corresponding position of a plurality of video frames or a plurality of continuous images. Since arteries have the characteristic of periodic pulsation, when arteries pulsate, the pixel values ​​in multiple video frames or multiple continuous images will change in brightness. The present application effectively utilizes the periodic pulsation signal to detect the arterial area. Without the need for additional equipment, the arterial area can be automatically detected in a low-cost, real-time, dynamic and convenient manner, thereby reducing the operator's mental burden and improving the efficiency and accuracy of detecting the arterial position. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present application, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present application, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A schematic diagram of a flow chart of a method for detecting an arterial region based on machine vision provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a timeline for representing a target duration involved in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of dividing continuous video frames into regions according to an embodiment of the present application;

[0052] Figure 4 A schematic diagram of coarse-grained processing of continuous video frames according to an embodiment of the present application;

[0053] Figure 5 A schematic diagram of a target artery region involved in an embodiment of the present application;

[0054] Figure 6 This is a schematic diagram of providing a prompt to a target artery region by adding a marked display frame according to an embodiment of the present application;

[0055] Figure 7 A schematic flow chart of another method for detecting arterial regions based on machine vision provided in an embodiment of the present application;

[0056] Figure 8 A schematic flow chart of another method for detecting arterial regions based on machine vision provided in an embodiment of the present application;

[0057] Fig. 9 This is a spectrum comparison diagram before and after the DC component is removed according to an embodiment of the present application;

[0058] Fig.10 A spectrum comparison diagram of the target artery region and the non-target artery region involved in the embodiment of the present application after the DC component is removed;

[0059] Fig.11 The spectrum comparison diagram is before and after the Haining window function involved in the embodiment of the present application processes the eigenvalue time series;

[0060] Fig.12 A frequency spectrum comparison diagram of the target artery region and the non-target artery region involved in the embodiment of the present application after preprocessing and frequency domain analysis;

[0061] Fig.13 A schematic flow chart of another method for detecting arterial regions based on machine vision provided in an embodiment of the present application;

[0062] Fig.14 A schematic diagram of the structure of an artery region detection device based on machine vision provided in an embodiment of the present application;

[0063] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0064] Fig.16 This is a schematic diagram of the structure of an artery region detection system based on machine vision involved in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0066] Before introducing the technical solution provided by the embodiment of the present application, the application background of the solution can be explained first. Laparoscopic surgery is a surgery performed using a medical instrument (endoscope lens) with a miniature camera. The specific implementation process of laparoscopic surgery includes: under the condition of using an endoscope cold light source to provide lighting, the operator inserts the endoscope lens into the patient's abdominal cavity; uses digital camera technology to transmit the tissue image captured by the endoscope lens to the subsequent signal processing system through optical fibers; the processed tissue image is displayed in real time on a dedicated monitor; the operator analyzes and judges the patient's condition through the tissue image displayed on the monitor screen, and uses special endoscopic instruments to perform surgery.

[0067] Robot-assisted endoscopic surgery is a surgery in which the operator operates the robot master end to drive the robot slave end to control the robot to operate the endoscope lens and endoscope instruments. Robot-assisted endoscopic surgery has the characteristics of scalable proportions, filtering of human hand tremors, and more stable images, which makes this technology more accurate, less traumatic, and less complication for patients. In detail, the specific implementation process of this technology surgery includes: the operator makes a pre-operative patient assessment; at the beginning of the operation, one or several small incisions (punching) are made in the patient's abdomen to establish a channel, one of which is used to insert the endoscope lens. On the basis of the establishment of the channel, in order to facilitate the operation and provide sufficient surgical field of view, carbon dioxide gas will be filled into the abdominal cavity to make the abdominal wall bulge and form an operating space (this operation step is also called establishing pneumoperitoneum); then, the required endoscope instruments (instruments used for surgical operations, such as electrocoagulation scissors, non-invasive grasping forceps, etc.) are inserted through other small incisions; further, using the field of view provided by the endoscope lens, the operator can observe the monitor while performing surgical operations on the target surgical area, which usually includes cutting, removing diseased tissue, suturing, etc.

[0068] Based on the above application background, the specific application scenario of the present application can be further described, and kidney surgery is used as an example for illustrative description. During kidney surgery, it may be necessary to clamp or disconnect the renal artery, so firstly, the area where the renal artery is located needs to be found before the clamping or disconnection operation can be performed accurately.

[0069] For example, during kidney tumor resection, the renal artery needs to be temporarily clamped to reduce bleeding during surgery. However, the images taken by the current laparoscopic surgery endoscope with white light can only show the surface of the tissue, and the renal artery blocked by the perirenal fascia and perirenal fat cannot be seen. The indocyanine green dye used in the fluorescence mode can only gather in the liver or diseased tissue, and cannot stay in the blood vessels, so the renal artery cannot be identified. In order to locate and expose the renal artery, the surgeon usually performs a CTA scan on the patient before surgery, and separates and models the blood vessels through the CTA images; then, after carefully observing the CTA images, the surgeon combines anatomical knowledge to construct the required arterial blood vessel shape and approximate relative position in his mind, so as to plan the most reasonable approach; after the pneumoperitoneum is established, the surgeon carefully separates the surrounding tissues and exposes the renal artery according to the previously conceived approach and the estimated position of the renal artery, and then performs the clamping or disconnection operation. The above method requires the surgeon to carefully study the CTA images and remember them in his mind before surgery, which is heavily dependent on the surgeon's memory and understanding of the anatomical level. The original intention of this application is to reduce the surgeon's reliance on preoperative CTA, reduce the surgeon's mental burden, provide the surgeon with qualitative or semi-quantitative arterial position prompts, and improve the accuracy of arterial position judgment.

[0070] Embodiment 1

[0071] Figure 1 A flow chart of a method for detecting an arterial region based on machine vision provided in an embodiment of the present application is provided. This embodiment can be applied to the situation of automatically identifying the arterial region in the endoscopic image. The method can be performed by an arterial region detection device based on machine vision. The device can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC or a server.

[0072] like Figure 1 As shown, the method includes:

[0073] S110, acquiring a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration.

[0074] The tissue video is an endoscopic video stream corresponding to the patient's internal body tissue. The tissue image is an endoscopic image corresponding to the patient's internal body tissue. Both the endoscopic video stream and the endoscopic image are acquired through an endoscopic lens under the condition that the endoscopic cold light source provides illumination.

[0075] Among them, the cardiac cycle duration refers to the length of time from the start of one heartbeat to the start of the next heartbeat. In actual application, due to individual differences among patients, the corresponding cardiac cycle durations may be different for different patients. The target duration should at least be greater than or equal to the duration of a single cardiac cycle. Specifically, for any patient, the cardiac cycle duration of the patient can be measured in advance, so that according to the measured cardiac cycle duration, a time length greater than or equal to the cardiac cycle duration can be automatically set as the target duration; in addition, for simplicity, according to common sense, the longest cardiac cycle duration of the patient is 1 second, and the target duration can be preset to be a time length greater than 1S. Of course, in actual use, in order to simplify the process, a time length of more than 3S can also be taken to increase the reliability of the arterial detection results.

[0076] Specifically, during the process of the operator performing laparoscopic surgery, the operator can collect and obtain in real time a tissue video stream of the target duration, or multiple continuous tissue images within the target duration. This acquisition method can be used in scenarios where the operator is assisting the operator in performing surgery. Alternatively, the operator can obtain tissue video streams or tissue images from a pre-collected historical endoscopic image database. This acquisition method can be used in scenarios where the operator reviews the patient's surgical process based on the historical endoscopic image data obtained during the operation, or organizes medical records.

[0077] It should be noted that, since the frame rate and resolution information are inherent properties of the image, the frame rate and resolution information can be obtained from the endoscopic image based on the acquisition of the endoscopic image (tissue video or tissue image). Exemplarily, the endoscopic lens captures a tissue image at a preset time interval (it should be noted that the preset time interval is related to the frame rate of the endoscope, such as the preset time interval corresponding to the existing conventional 30fps endoscope is 1 / 30S, and the preset time interval corresponding to the 60fps endoscope is 1 / 60S) and transmits these tissue images to the host; the host generates a video stream or a plurality of continuous tissue images based on the acquisition of these tissue images; it can be connected to the host running the algorithm through the High Definition Multimedia Interface (HDMI) (it should be noted that the host running the algorithm can also be integrated into the image host); the image reading program is used to obtain the first two frames of the video stream or two continuous tissue images, and the frame rate and resolution information are extracted from them. Exemplarily, the obtained resolution information is 1920 pixels in width and 1080 pixels in height; the frame rate is 30 fps (ie, the video stream includes 30 frames per second).

[0078] Based on the above examples, taking the real-time acquisition of endoscopic images as an example, a 30fps endoscope is used to collect tissue video in real time, that is, 30 continuous video frames can be collected per second. Figure 2 , the target duration is pre-set to 1 second, and the endoscope starts collecting tissue video from T0. At T0+1S, 30 continuous video frames in the time period of T0-T0+1S (i.e., the target duration) can be obtained. Optionally, in practical applications, a certain number of video frames can be selected from these 30 continuous video frames for subsequent processing. For example, the 1st video frame, the 5th video frame, the 10th video frame, the 15th video frame, the 20th video frame, the 25th video frame, and the 30th video frame are selected from the 30 continuous video frames, and these 6 video frames are processed later to reduce the amount of data calculation. Subsequently, at T0+2S, a certain number of continuous video frames in the time period of T0+1S-T0+2S (i.e., the target duration) can be obtained; thereafter, at T0+3S, a certain number of continuous video frames in the time period of T0+2S-T0+3S (i.e., the target duration) can be obtained, and so on. The present application can process and analyze the image data collected by the endoscope in real time during laparoscopic surgery, thereby achieving the effect of real-time dynamic prompting of the arterial area in the surgical field of view.

[0079] S120, dividing a plurality of continuous video frames in a tissue video or a plurality of continuous tissue images into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each to-be-processed region.

[0080] The pixel characteristic value is a value obtained by calculating the pixel value of at least one pixel point in the area to be processed, and is used to characterize the pixel value characteristics corresponding to the area to be processed.

[0081] In this embodiment, if a tissue video is obtained, each continuous video frame in the tissue video is processed in the same manner. If multiple continuous tissue images are obtained, each tissue image is processed in the same manner. Here, taking any one of the continuous video frames as an example, how to divide the area to be processed and how to determine the pixel feature value corresponding to the area to be processed are described in detail.

[0082] Specifically, an image division rule may be preset, so that continuous video frames are divided into regions according to the image division rule. For example, the image division rule may include but is not limited to: dividing the video frame into a preset number of squares of the same size; dividing the video frame into a preset number of rectangles of the same size; dividing the central area of ​​the video frame into squares and / or rectangles of a first size, and dividing the surrounding area of ​​the video frame into squares and / or rectangles of a second size, wherein the first size is smaller than the second size, etc. It should be particularly noted that the same image division rule is used to process each continuous video frame in the organizational video.

[0083] Optionally, the area to be processed may be divided into an area containing (50-100)*(50-100) pixels. That is, it can be understood that the number of pixels A included in the long side of a single area to be processed is between 50 and 100, and the number of pixels B included in the wide side is between 50 and 100, wherein the specific values ​​of A and B can be adjusted according to actual needs, for example, the values ​​of A and B are both 80. The purpose of this setting is that if the number of pixels is too small, although the display accuracy is high, there are problems of high noise and high computing power requirements; and if the number of pixels is too large, although the noise can be reduced and the computing power requirements become lower, the display accuracy will deteriorate. Therefore, the total number of pixels in the area to be processed needs to be moderate, so that the determined area to be processed can achieve a balance between display accuracy, noise impact and computing power requirements.

[0084] For example, a schematic diagram of dividing continuous video frames into regions is shown in Figure 3 , if the size of the continuous video frame is X*Y pixels, the continuous video frame is divided into N processing areas of the same size, each of which includes 80*80 pixels (this process can be called grid processing). Figure 3 As shown, 22*12 areas to be processed are finally obtained. The area number corresponding to the area to be processed in the 1st row and 1st column is (0, 0), the area number corresponding to the area to be processed in the 1st row and 2nd column is (0, 1), the area number corresponding to the area to be processed in the 2nd row and 1st column is (1, 0), and so on. The area number corresponding to the area to be processed in the 12th row and 22nd column is (11, 21).

[0085] Furthermore, the specific implementation method for determining the pixel characteristic value corresponding to each area to be processed is described in detail below. For each area to be processed, the method for determining its pixel characteristic value is the same, and one of the areas to be processed is used as an example for explanation. The area to be processed includes multiple pixels. When the continuous video frames are color images, each pixel includes the pixel values ​​of the R channel, the G channel and the B channel. The pixel characteristic value corresponding to the area to be processed can be determined according to the pixel value of any one of the three channels corresponding to each pixel. For example, the pixel values ​​of the R channel, the G channel or the B channel of each pixel in the area to be processed can be averaged (or the median can be taken) to obtain the pixel characteristic value corresponding to the area to be processed. Based on this, the pixel characteristic value corresponding to each area to be processed can be determined (this process can be called coarse-graining processing). See the schematic diagram of the continuous video frames after coarse-graining processing. Figure 4 , Figure 4 The horizontal and vertical coordinates are the region numbers after coarse-graining. The default region midpoint is an integer. Each small rectangle is a region to be processed. The pixel values ​​(i.e., pixel feature values) of each pixel point in a region to be processed after coarse-graining are the same.

[0086] Based on the above processing method, the pixel feature value corresponding to each area to be processed in each continuous video frame can be obtained; or the pixel feature value corresponding to each area to be processed in each tissue image in a plurality of continuous tissue images can be obtained.

[0087] S130. For each area to be processed, based on the pixel feature value change information of the current area to be processed corresponding to multiple consecutive video frames in the tissue video, or the pixel feature value change information of the current area to be processed corresponding to multiple consecutive tissue images, determine whether the current area to be processed is a target artery area.

[0088] The current area to be processed is the area to be processed currently being processed, and each area to be processed can be used as the current area to be processed. The target artery area is the area to be processed to be displayed last, and there is a suspected artery in the target artery area.

[0089] If a tissue video is acquired, whether the current area to be processed is the target artery area is determined based on the pixel feature value change information of the current area to be processed corresponding to the continuous multiple tissue images. If multiple tissue images are acquired, whether the current area to be processed is the target artery area is determined based on the pixel feature value change information of the current area to be processed corresponding to the continuous multiple tissue images.

[0090] Next, the tissue video is taken as an example for explanation. For the current area to be processed, the variation range of the pixel characteristic values ​​of each continuous video frame is the pixel characteristic value variation information.

[0091] In order to quantitatively characterize the pixel feature value change information, avoid other external interference, and accurately find the target artery area, a time series can be constructed based on the pixel feature values ​​of each continuous video frame in the current area to be processed. On the basis of the above example, if 30 consecutive video frames are obtained, and each video frame is divided into 22*12 areas to be processed, if the current area to be processed is the area with area number (0, 0), the pixel feature value corresponding to the area number (0, 0) of the first consecutive video frame is A1, the pixel feature value corresponding to the area number (0, 0) of the second consecutive video frame is A2, and so on, the pixel feature value corresponding to the area number (0, 0) of the 30th consecutive video frame is A30, then the time series corresponding to the current area to be processed is {A1, A2, A3, ..., A30}; then the time series is subjected to frequency domain analysis and processing to obtain an amplitude spectrum diagram; further, multiple amplitude values ​​within a preset frequency range are determined; if there is at least one amplitude value that meets the preset conditions, the current area to be processed is determined to be the target artery area; if no amplitude value can meet the preset conditions, it is determined that the current area to be processed is not the target artery area. In the actual application process, in order to improve the calculation efficiency, a parallel calculation method can be used to determine whether each area to be processed is a target artery area.

[0092] It should be noted that the reason why the present application performs frequency domain analysis on the time series of pixel characteristic values ​​of the current area to be processed to obtain an amplitude spectrum diagram, and then determines whether the current area to be processed is the target artery area based on the amplitude spectrum diagram, is because: in the process of collecting tissue images or tissue videos, the surgeon may control the surgical instrument to operate in the surgical area, which will cause the surgical instrument and / or tissue to produce spatial displacement, thereby causing the pixel characteristic values ​​corresponding to the area to be processed to change accordingly. If only the change of the pixel characteristic value over time is used to determine whether the current area to be processed is the target artery area, it is impossible to exclude the interference of the surgical operation on the change of the image characteristic value of the current area to be processed; the present application converts the time series corresponding to the pixel characteristic value into an amplitude spectrum diagram, that is, converts the time domain signal into the frequency domain for analysis. Since the amplitude value within a specific frequency range can characterize the characteristics of the periodic pulsation of the artery, and the operation process of the operation is relatively random and does not have the characteristics of periodic pulsation, therefore, the interference of the surgical operation on the change of the image characteristic value of the current area to be processed can be avoided, and the reliability of artery detection can be improved.

[0093] S140: If yes, the target artery region is indicated in the display screen; wherein the target artery region is one or more regions in the region to be processed.

[0094] The display screen is the surgical field screen shown to the operator.

[0095] In this embodiment, the specific implementation method of providing a prompt for the target artery area may include but is not limited to: adjusting the brightness value, contrast value, hue value and / or saturation value of the pixel points in the target artery area; adding a label display box to the edge of the target artery area, etc.

[0096] Specifically, in the above steps, it can be determined whether each area to be processed is a target artery area, and if there are one or more target artery areas, these target artery areas are highlighted in the display screen, so as to achieve the purpose of prompting the operator that there may be arteries in the target artery area, and to warn the operator that special attention should be paid to the target artery area during the surgical operation, or the operator can further identify whether the target artery area contains an artery.

[0097] Based on the above exemplary embodiment, if the target artery regions are finally determined to be region numbers (6, 3), (6, 4) and (6, 7), the schematic diagram of the target artery regions is shown in FIG. Figure 5 ; In the display screen, a method of adding a label display frame to indicate the target artery area is shown in FIG. Figure 6 ,like Figure 6 As shown, the areas within the three black marked boxes in the picture are the target artery areas.

[0098] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. For example, network requests are intercepted and processed with the authorization of the user.

[0099] The technical solution of the embodiment of the present application is to obtain a tissue video or a plurality of continuous tissue images within a duration of not less than one cardiac cycle, and then divide the plurality of continuous video frames or the plurality of continuous tissue images in the tissue video into a plurality of regions to be processed of the same number, and determine the pixel characteristic value corresponding to each region to be processed. Further, for each region to be processed, based on the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous video frames in the tissue video, or the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous tissue images, determine whether the current region to be processed is a target artery region. If so, one or more target artery regions are prompted in the display screen. The technical solution of the present application is to determine whether each region to be processed is a target artery region by determining the pixel characteristic value change information corresponding to the region to be processed at the corresponding position of the plurality of video frames or the plurality of continuous images. Since arteries have the characteristic of periodic pulsation, when arteries pulsate, the pixel values ​​in multiple video frames or multiple continuous images will change in brightness. The present application effectively utilizes the periodic pulsation signals in multiple continuous images to detect the arterial area. Without the need for additional equipment, the arterial area can be automatically detected in a low-cost, real-time, dynamic and convenient manner, thereby reducing the operator's mental burden and improving the efficiency and accuracy of detecting the arterial position.

[0100] Embodiment 2

[0101] Figure 7 A schematic diagram of a method for detecting an arterial region based on machine vision provided in an embodiment of the present application is provided. On the basis of the above-mentioned embodiment, a detailed description is given on how to determine the pixel feature values ​​corresponding to the area to be processed. The specific implementation method can refer to the technical solution of this embodiment. The technical terms that are the same or corresponding to the above-mentioned embodiment are not repeated here.

[0102] like Figure 7 As shown, the method specifically comprises the following steps:

[0103] S210, acquiring a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration.

[0104] S220, dividing a plurality of continuous video frames in a tissue video or a plurality of continuous tissue images into a plurality of to-be-processed regions of the same number respectively.

[0105] S230 , performing homogenization processing on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale feature value.

[0106] S240: Use the first grayscale characteristic value as the pixel characteristic value corresponding to the area to be processed.

[0107] The target channel is at least one of the G channel and the B channel. The normalization process may be an average operation or a median value.

[0108] Specifically, the grayscale values ​​of the target channel of all pixels in the area to be processed can be averaged or median to obtain a grayscale average value or a grayscale median value; then, the grayscale average value or the grayscale median value is used as the first grayscale eigenvalue corresponding to the area to be processed, and the first grayscale eigenvalue is the pixel eigenvalue corresponding to the area to be processed.

[0109] In particular, the R channel has the largest color contribution in the laparoscopic image (because the color of the abdominal tissue is mostly reddish), which will cause color interference to the video frame, resulting in an impact on the accuracy of artery recognition. This embodiment determines the pixel feature value corresponding to the area to be processed based on the grayscale value of the B channel and / or the G channel, reduces the red interference data in the image, and improves the accuracy of artery recognition. In addition, since the noise of a single pixel is relatively large, it affects the accuracy of artery recognition. This embodiment can filter out the noise of a single pixel by performing homogenization processing on all pixels in the area to be processed, thereby further improving the accuracy of artery recognition.

[0110] In this embodiment, the specific implementation method of determining the pixel characteristic value corresponding to each area to be processed may also include: performing homogenization processing on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel; performing homogenization processing on the grayscale values ​​corresponding to the target channel of all pixels in the currently processed image to obtain a second grayscale characteristic value; and subtracting the second grayscale characteristic value from the first grayscale characteristic value to obtain a third grayscale characteristic value as the pixel characteristic value corresponding to the area to be processed.

[0111] The currently processed image is a continuous video frame or a tissue image currently being processed.

[0112] In actual situations, the grayscale values ​​corresponding to the target channel contain a large amount of DC components (due to the automatic exposure mechanism of the endoscope manufacturer or the influence of micro-movement of the endoscope, the overall image will have light and dark changes, and this light and dark change can be understood as a DC component). However, the light and dark changes of a certain area to be processed relative to the other areas to be processed are the quantity we need to obtain. Based on this, the grayscale values ​​corresponding to the target channel of all pixels in the current processing image can be homogenized (that is, the average value or the median value is taken), and the value obtained after the homogenization is called the second grayscale eigenvalue; for each area to be processed in the current processing image, on the basis of determining the first grayscale eigenvalue, the difference between the first grayscale eigenvalue and the second grayscale eigenvalue, that is, the third grayscale eigenvalue, is used as the pixel eigenvalue of the area to be processed, so as to achieve the purpose of removing the DC component.

[0113] S250. For each area to be processed, based on the pixel feature value change information of the current area to be processed corresponding to multiple consecutive video frames in the tissue video, or the pixel feature value change information of the current area to be processed corresponding to multiple consecutive tissue images, determine whether the current area to be processed is a target artery area.

[0114] S260: If yes, the target artery region is indicated in the display screen; wherein the target artery region is one or more regions in the region to be processed.

[0115] The technical solution of the embodiment of the present application, when determining the pixel characteristic value corresponding to the area to be processed, can perform homogenization processing on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel, so that the first grayscale characteristic value is used as the pixel characteristic value corresponding to the area to be processed. The technical solution of the present application, by performing homogenization processing on all pixels in the area to be processed, can not only reduce the computing power requirements, but also filter out the noise of a single pixel, thereby further improving the accuracy of artery recognition.

[0116] Embodiment 3

[0117] Figure 8 A schematic diagram of an artery region detection method based on machine vision provided in an embodiment of the present application is provided. On the basis of the above-mentioned embodiment, a detailed description is given on how to determine whether the current area to be processed is a target artery region based on the pixel feature value change information of the current area to be processed. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above-mentioned embodiment are not repeated here.

[0118] like Figure 8 As shown, the method specifically comprises the following steps:

[0119] S310, acquiring a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration.

[0120] S320, dividing a plurality of continuous video frames in a tissue video or a plurality of continuous tissue images into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each to-be-processed region.

[0121] S330 , for the current area to be processed, determine the characteristic value time series corresponding to the current area to be processed according to the pixel characteristic values ​​corresponding to a plurality of continuous video frames or a plurality of continuous tissue images.

[0122] In this embodiment, if N consecutive video frames are obtained, if the current area to be processed is the area with area number (0, 0), the pixel feature value corresponding to the area number (0, 0) of the first consecutive video frame is A1, the pixel feature value corresponding to the area number (0, 0) of the second consecutive video frame is A2, and so on. The pixel feature value corresponding to the area number (0, 0) of the Nth consecutive video frame is AN, then the feature value time series corresponding to the current area to be processed is {A1, A2, A3, ..., AN}.

[0123] If M tissue images are obtained, if the current area to be processed is the area with area number (0, 0), the pixel feature value of the first tissue image corresponding to the area number (0, 0) is S1, the pixel feature value of the second tissue image corresponding to the area number (0, 0) is S2, and so on. The pixel feature value of the Mth tissue image corresponding to the area number (0, 0) is SM, then the feature value time series corresponding to the current area to be processed is {S1, S2, S3, ..., SM}.

[0124] S340, performing frequency domain analysis on the eigenvalue time series to obtain an amplitude spectrum diagram.

[0125] The amplitude spectrum diagram is used to characterize the corresponding relationship between amplitude and frequency. The ordinate of the amplitude spectrum diagram represents amplitude, and the abscissa represents frequency.

[0126] In this embodiment, signal analysis and processing technology can be used to perform frequency domain analysis on the eigenvalue time series. For example, Fourier transform, fast Fourier transform or wavelet transform can be used to perform frequency domain analysis on the eigenvalue time series, thereby converting the eigenvalue time series from a time domain signal to a frequency domain signal, and obtaining a corresponding relationship chart between frequency and amplitude, that is, an amplitude spectrum diagram.

[0127] Optionally, a specific implementation method of performing frequency domain analysis on the eigenvalue time series to obtain the amplitude spectrum diagram may include: performing Fourier transform processing on the eigenvalue time series after adding a Henning window function to the eigenvalue time series to obtain the amplitude spectrum diagram.

[0128] The Gibbs effect is a common phenomenon in signal processing, especially when the signal changes suddenly or jumps. It may cause ringing or oscillation in the spectrum during the instantaneous transition of the signal, resulting in unexpected high-frequency components in the spectrum diagram. This phenomenon mainly occurs when the signal undergoes non-smoothing operations such as truncation or window function, for example, at the edge or jump of the signal. In order to remove the Gibbs effect in the eigenvalue time series, the eigenvalue time series is first processed based on the Henin window function to obtain a windowed eigenvalue time series. Furthermore, the windowed eigenvalue time series is subjected to a fast Fourier transform, and the modulus is taken to obtain the unilateral amplitude, so as to draw the amplitude spectrum diagram between the frequency and the unilateral amplitude, that is, the amplitude spectrum diagram corresponding to the eigenvalue time series is obtained.

[0129] It should be noted that the step of removing the DC component can also be performed before Fourier transforming the eigenvalue time series. It can be understood that the process of removing the DC component and adding the Henning window is an operation step of preprocessing the eigenvalue time series.

[0130] For example, Figure 3 The area to be processed with area number (6,7) in the current area to be processed can be used as the current area to be processed. Fast Fourier analysis can be performed on the eigenvalue time series of the current area to be processed to obtain the original spectrum amplitude map; then, the DC component in the original spectrum amplitude map is removed. For the spectrum comparison before and after removing the DC component, see Fig. 9 , Fig. 9 The frequency close to 0Hz represents the DC component. The spectrum curve corresponding to the five-pointed star icon represents the original spectrum amplitude diagram. The spectrum curve corresponding to the circular icon represents the spectrum amplitude diagram after the DC component is removed. Fig. 9 The black rectangular box in the middle represents the pulse component, which shows that removing the DC component does not affect the pulse component.

[0131] Fig.10 This is the spectrum comparison diagram of the target artery area and the non-target artery area after removing the DC component. Fig.10 The five-pointed star icon in the middle is the spectrum amplitude diagram of the target artery region (the known region number is (6,7) and the corresponding region to be processed is the target artery region) after the DC component is removed. The circular icon is the spectrum amplitude diagram of the non-target artery region (the known region number is (5,5) and the corresponding region to be processed is the non-target artery region) after the DC component is removed. Fig.10 The black rectangle in the middle represents the pulse component, which is Fig.10 It can be seen that at the pulse component, there is a significant difference in the frequency spectrum between the target artery area and the non-target artery area.

[0132] Fig.11 This is a spectrum comparison diagram before and after the eigenvalue time series is processed based on the Haining window function. Fig.11The five-pointed star icon in the middle is the spectrum amplitude diagram of the target artery area (the area to be processed corresponding to the known area number (6,7) is the target artery area) after the DC component is removed. The circular icon is the spectrum amplitude diagram of the target artery area after the DC component is removed and the Haining window function is used. Fig.11 The signal in the dotted ellipse is an oscillation caused by truncation and is not a real signal. Fig.11 It can be seen that adding a window will suppress the Gibbs effect, which makes the pulse component in the black rectangular frame more significant.

[0133] Fig.12 The spectrum comparison diagram of the target artery area and the non-target artery area after preprocessing and frequency domain analysis. Among them, the frequency domain analysis includes: 1) removing the DC component 2) adding a Heining window 3) fast Fourier analysis 4) taking the modulus to obtain a single-sided amplitude spectrum. The five-pointed star icon in 12 is the spectrum diagram of the target artery area (the area to be processed corresponding to the known area number (6,7) is the target artery area) after preprocessing and frequency domain analysis, the circular icon is the spectrum diagram of the non-target artery area (the area to be processed corresponding to the known area number (5,5) is the non-target artery area) after preprocessing and frequency domain analysis, and the light gray dotted line icon is the spectrum diagram of the non-target artery area (the area to be processed corresponding to the known area number (2,2) is the non-target artery area) after preprocessing and frequency domain analysis. Fig.12 The signal in the black dotted ellipse box is the pulse component. It can be seen that after preprocessing and frequency domain analysis, the pulse components of the spectrum graphs corresponding to the target artery area and the non-target artery area are significantly different, which can be used to identify the artery area.

[0134] S350: Determine each amplitude value and amplitude peak value within a preset frequency range based on the amplitude spectrum diagram.

[0135] Medical common sense shows that the frequency range of arterial pulsation is 0.8 Hz to 3.3 Hz (corresponding to 48 to 198 beats / min), which is exactly the frequency range that this application is interested in. Based on this, the preset frequency range is 0.8 Hz to 3.3 Hz.

[0136] In this embodiment, the preset frequency range includes multiple amplitude values, and the amplitude value with the largest value among the multiple amplitude values ​​is determined as the amplitude peak value. The amplitude peak value can be expressed as F max .

[0137] S360. Determine the amplitude standard deviation based on each amplitude value.

[0138] In this embodiment, on the basis of obtaining a plurality of amplitude values, the plurality of amplitude values ​​are substituted into a standard deviation calculation formula to obtain an amplitude standard deviation.

[0139] S370: Determine whether the current area to be processed is a target artery area based on the amplitude peak value and the amplitude standard deviation.

[0140] In this embodiment, whether the current area to be processed contains a pulse component can be determined based on the magnitude relationship between the amplitude peak value and the amplitude standard deviation, thereby determining whether the current area to be processed is a target artery area.

[0141] Optionally, based on the amplitude peak value and the amplitude standard deviation, a specific implementation method for determining whether the current area to be processed is a target artery area may include: determining the ratio of the amplitude peak value to the amplitude standard deviation as a ratio to be compared; if the ratio to be compared is greater than or equal to a preset threshold, determining that the current area to be processed is the target artery area; if the ratio to be compared is less than the preset threshold, determining that the current area to be processed is not the target artery area.

[0142] In this embodiment, a preset threshold may be preset, for example, the preset threshold is 2. This is because the pulse component is significantly larger than other amplitude values, and the amplitude peak value mistaken for the pulse component may be eliminated by the preset threshold, thereby improving the recognition accuracy of the target artery area.

[0143] Specifically, Fmax represents the peak amplitude, SD represents the standard deviation of the amplitude, and the ratio to be compared K=Fmax / SD. When the preset threshold is 2, if K≥2, the current area to be processed is the target artery area, and if K<2, the current area to be processed is not the target artery area.

[0144] In this embodiment, in view of the problem that it is difficult to detect arteries through a single image when arteries are covered by obstructions in the viewing angle of the endoscope, the present application constructs a feature value time series through the pixel feature values ​​corresponding to the area to be processed at the corresponding positions of multiple video frames or multiple continuous images, and performs frequency domain analysis on the feature value time series to detect the pulse component. If the pulse component exists, it is considered that the area to be processed may contain an artery. This is because arteries have the characteristic of periodic pulsation. When the artery pulsates, the pixel values ​​in multiple video frames or multiple continuous images will undergo regular changes in light and dark, so that the arterial area can be effectively detected using the periodic pulsation signal.

[0145] S380: If yes, the target artery region is indicated in the display screen; wherein the target artery region is one or more regions in the region to be processed.

[0146] The technical solution of the embodiment of the present application, when determining whether the current area to be processed is the target artery area based on the pixel characteristic value change information of the current area to be processed, for the current area to be processed, according to the pixel characteristic values ​​corresponding to multiple continuous video frames or multiple continuous tissue images, respectively, the characteristic value time series corresponding to the current area to be processed is determined, and then the characteristic value time series is subjected to frequency domain analysis to obtain an amplitude spectrum diagram, and further, based on the amplitude spectrum diagram, each amplitude value and amplitude peak value within a preset frequency range are determined, and then based on each amplitude value, the amplitude standard deviation is determined, so as to determine whether the current area to be processed is the target artery area based on the amplitude peak value and the amplitude standard deviation. The technical solution of the present application, through the pixel characteristic values ​​corresponding to the area to be processed at the corresponding positions of multiple video frames or multiple continuous images, the characteristic value time series is constructed, and the characteristic value time series is subjected to frequency domain analysis to detect the pulse component, and if the pulse component exists, it is considered that the area to be processed may contain an artery. This is because arteries have the characteristic of periodic pulsation. When arteries pulsate, the pixel values ​​in multiple video frames or multiple continuous images will change in brightness, so the periodic pulsation signals in multiple continuous images can be effectively used to detect the arterial area.

[0147] Embodiment 4

[0148] Fig.13 This is a schematic diagram of a method for detecting an arterial region based on machine vision provided in an embodiment of the present application. Based on the above embodiment, a detailed description is given on how to indicate the target arterial region in the display screen. The specific implementation method can refer to the technical solution of this embodiment. The technical terms that are the same or corresponding to the above embodiment are not repeated here.

[0149] like Fig.13 As shown, the method specifically comprises the following steps:

[0150] S410, acquiring a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration;

[0151] S420, dividing a plurality of continuous video frames or a plurality of continuous tissue images in a tissue video into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each to-be-processed region;

[0152] S430, for each area to be processed, based on pixel feature value change information of the current area to be processed corresponding to multiple consecutive video frames in the tissue video, or pixel feature value change information of the current area to be processed corresponding to multiple consecutive tissue images, determining whether the current area to be processed is a target artery area;

[0153] S440: If yes, determine the edge mask image based on the coordinate information of the target artery region.

[0154] In this embodiment, after determining one or more target artery regions, the coordinate information corresponding to the four corners of the target artery region is easily obtained. Therefore, the edge line of the target artery region can be determined based on the four corner coordinate information, and the pixel values ​​corresponding to the edge line pixels are assigned to 0, thereby obtaining an edge mask image.

[0155] S450: Superimpose the edge mask image and the current display image in the display screen to obtain an image to be displayed containing prompt information.

[0156] The currently displayed image is a continuous video frame or a tissue image being displayed in the display screen.

[0157] In this embodiment, in order to clearly display the specific position of the target artery area in the current display image, the edge mask image can be superimposed on the layer of the current display image to obtain an image to be displayed that contains prompt information (i.e., the edge line of the target artery area).

[0158] S460: Transmit the image to be displayed to a display device to display the image to be displayed.

[0159] The technical solution of the embodiment of the present application can first determine the edge mask image based on the coordinate information of the target artery area when prompting the target artery area in the display screen, and then superimpose the edge mask image and the current display image in the display screen to obtain the image to be displayed containing the prompt information, so as to transmit the image to be displayed to the display device to display the image to be displayed. The technical solution of the present application can clearly display the specific position of the target artery area in the current display image.

[0160] Embodiment 5

[0161] Fig.14 A schematic diagram of the structure of an arterial region detection device based on machine vision provided in an embodiment of the present application, the device includes: an image acquisition module 510, a to-be-processed region determination module 520, an arterial region detection module 530 and an arterial region prompt module 540.

[0162] The image acquisition module 510 is used to acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration;

[0163] A module 520 for determining a region to be processed, for dividing a plurality of continuous video frames or a plurality of continuous tissue images in a tissue video into a plurality of regions to be processed of the same size, and determining a pixel feature value corresponding to each region to be processed;

[0164] The artery region detection module 530 is used to determine whether the current region to be processed is a target artery region based on the pixel feature value change information of the current region to be processed corresponding to multiple consecutive video frames in the tissue video, or the pixel feature value change information of the current region to be processed corresponding to multiple consecutive tissue images.

[0165] The artery region prompting module 540 is used to prompt the target artery region in the display screen if so; wherein the target artery region is one or more regions in the region to be processed.

[0166] On the basis of the above device, optionally, the to-be-processed area determination module 520 includes: a pixel characteristic value determination submodule; the pixel characteristic value determination submodule includes: a grayscale characteristic value determination unit and a pixel characteristic value determination unit;

[0167] A grayscale characteristic value determination unit is used to perform a homogenization process on the grayscale values ​​corresponding to the target channel of all pixels in the processing area to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel;

[0168] The pixel characteristic value determining unit is used to use the first grayscale characteristic value as the pixel characteristic value corresponding to the area to be processed.

[0169] On the basis of the above device, optionally, the to-be-processed area determination module 520 further includes: a DC component removal unit;

[0170] The DC component removal unit is specifically used to perform homogenization processing on the grayscale values ​​corresponding to the target channel of all pixel points in the processing area to obtain a first grayscale eigenvalue; wherein the target channel is at least one of the G channel and the B channel; perform homogenization processing on the grayscale values ​​corresponding to the target channel of all pixel points in the current processing image to obtain a second grayscale eigenvalue; and use the third grayscale eigenvalue obtained by subtracting the second grayscale eigenvalue from the first grayscale eigenvalue as the pixel eigenvalue corresponding to the processing area.

[0171] Based on the above device, optionally, the artery region detection module 530 includes:

[0172] A time series determination unit is used to determine a time series of characteristic values ​​corresponding to the current area to be processed based on pixel characteristic values ​​corresponding to a plurality of continuous video frames or a plurality of continuous tissue images;

[0173] An amplitude spectrum diagram determination unit is used to perform frequency domain analysis on the characteristic value time series to obtain an amplitude spectrum diagram; wherein the amplitude spectrum diagram is used to characterize the corresponding relationship between amplitude and frequency, the ordinate of the amplitude spectrum diagram represents the amplitude, and the abscissa represents the frequency;

[0174] an amplitude determination unit, for determining each amplitude value and an amplitude peak value within a preset frequency range based on the amplitude spectrum diagram;

[0175] an amplitude standard deviation determining unit, for determining an amplitude standard deviation based on each amplitude value;

[0176] The arterial region determination unit is used to determine whether the current area to be processed is a target arterial region based on the amplitude peak value and the amplitude standard deviation.

[0177] Based on the above device, optionally, the arterial area determination unit is specifically used to determine the ratio of the amplitude peak to the amplitude standard deviation as the ratio to be compared; if the ratio to be compared is greater than or equal to a preset threshold, it is determined that the current area to be processed is the target arterial area; if the ratio to be compared is less than the preset threshold, it is determined that the current area to be processed is not the target arterial area.

[0178] On the basis of the above device, optionally, an amplitude spectrum diagram determining unit is specifically used to perform Fourier transform processing on the eigenvalue time series after adding a Henning window function to obtain an amplitude spectrum diagram.

[0179] Based on the above device, optionally, the artery region prompting module 530 includes:

[0180] An edge mask determination unit, used to determine an edge mask image based on coordinate information of a target artery region;

[0181] The to-be-displayed image determination unit is used to perform superposition processing on the edge mask image and the current display image in the display screen to obtain the to-be-displayed image containing prompt information;

[0182] The image display unit to be displayed is used to transmit the image to be displayed to the display device to display the image to be displayed.

[0183] Based on the above device, optionally, the area to be processed contains (50-100)*(50-100) pixels.

[0184] The technical solution of the embodiment of the present application is to obtain a tissue video or a plurality of continuous tissue images within a duration of not less than one cardiac cycle, and then divide the plurality of continuous video frames or the plurality of continuous tissue images in the tissue video into a plurality of regions to be processed of the same number, and determine the pixel characteristic value corresponding to each region to be processed. Further, for each region to be processed, based on the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous video frames in the tissue video, or the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous tissue images, determine whether the current region to be processed is a target artery region. If so, one or more target artery regions are prompted in the display screen. The technical solution of the present application is to determine whether each region to be processed is a target artery region by determining the pixel characteristic value change information corresponding to the region to be processed at the corresponding position of the plurality of video frames or the plurality of continuous images. Since arteries have the characteristic of periodic pulsation, when arteries pulsate, the pixel values ​​in multiple video frames or multiple continuous images will change in brightness. The present application effectively utilizes the periodic pulsation signals in multiple continuous images to detect the arterial area. Without the need for additional equipment, the arterial area can be automatically detected in a low-cost, real-time, dynamic and convenient manner, thereby reducing the operator's mental burden and improving the efficiency and accuracy of detecting the arterial position.

[0185] The machine vision-based arterial region detection device provided in the embodiments of the present application can execute the machine vision-based arterial region detection method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0186] It is worth noting that the various units and modules included in the above system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.

[0187] Embodiment 6

[0188] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.15 A block diagram of an exemplary electronic device 60 suitable for implementing the embodiments of the present application is shown. Fig.15 The electronic device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0189] like Fig.15As shown, the electronic device 60 is in the form of a general computing device. The components of the electronic device 60 may include but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601).

[0190] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0191] The electronic device 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 60, including volatile and non-volatile media, removable and non-removable media.

[0192] The system memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and / or cache memory 605. The electronic device 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 606 may be used to read and write non-removable, non-volatile magnetic media ( Fig.15 not shown, usually called a "hard drive"). Although Fig.15 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 603 via one or more data medium interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of each embodiment of the present application.

[0193] A program / utility 608 having a set (at least one) of program modules 607 may be stored, for example, in the memory 602, such program modules 607 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 607 generally perform the functions and / or methods of the embodiments described herein.

[0194] The electronic device 60 may also communicate with one or more external devices 609 (e.g., keyboards, pointing devices, displays 610, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 60, and / or may communicate with any device that enables the electronic device 60 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 611. Furthermore, the electronic device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 612. As shown, the network adapter 612 communicates with other modules of the electronic device 60 via a bus 603. It should be understood that although Fig.15 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 60, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0195] The processing unit 601 executes various functional applications and page processing by running the programs stored in the system memory 602, such as implementing the artery region detection method based on machine vision provided in the embodiment of the present application.

[0196] Embodiment 7

[0197] The embodiment of the present application further provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a method for detecting an arterial region based on machine vision. The method includes:

[0198] Acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration;

[0199] Dividing a plurality of continuous video frames or a plurality of continuous tissue images in a tissue video into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each to-be-processed region;

[0200] For each area to be processed, based on pixel feature value change information of the current area to be processed corresponding to a plurality of consecutive video frames in the tissue video, or pixel feature value change information of the current area to be processed corresponding to a plurality of consecutive tissue images, determining whether the current area to be processed is a target artery area;

[0201] If so, the target artery region is prompted in the display screen; wherein the target artery region is one or more regions in the region to be processed.

[0202] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, - but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0203] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0204] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0205] The computer program code for performing the operation of the embodiment of the present application can be written in one or more programming languages ​​or a combination thereof, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect to the Internet).

[0206] Embodiment 8

[0207] Fig.16 A schematic diagram of the structure of a machine vision-based arterial region detection system provided in an embodiment of the present application, the system comprising: an image acquisition device 710, an image processing server 720 and a display device 730; the image processing server 720 can interact and communicate with the image acquisition device 710 and the display device 730, the image processing server is provided with a processor and a memory, the memory stores a computer program, the processor is used to execute the computer program and implement the above-mentioned machine vision-based arterial region detection method when executing the computer program.

[0208] The image acquisition device 710 is used to acquire tissue videos or multiple continuous tissue images;

[0209] The image processing server 720 is used to obtain the tissue video or multiple continuous tissue images collected by the image acquisition device; to determine the tissue video or multiple continuous tissue images within the target time length; wherein the target time length is not less than the time length of one cardiac cycle; to divide multiple continuous video frames in the tissue video or multiple continuous tissue images into multiple to-be-processed areas of the same number, and to determine the pixel characteristic value corresponding to each to-be-processed area; for each to-be-processed area, based on the pixel characteristic value change information of multiple continuous video frames in the tissue video under the current to-be-processed area, or the pixel characteristic value change information of multiple continuous tissue images under the current to-be-processed area, determine whether the current to-be-processed area is the target artery area; if so, control the display screen of the display device to prompt the target artery area; wherein the target artery area is one or more areas in the to-be-processed area;

[0210] The display device 730 is used to display tissue videos or tissue images and to indicate the target artery area in the display screen.

[0211] In this embodiment, the image acquisition device 710 not only establishes a communication connection with the image processing server 720, but also establishes a communication connection with the display device 730. In a specific application process, the image acquisition device 710 may be an endoscope lens, and during the operation, the surgeon may use the image acquisition device 710 to collect tissue videos or multiple continuous tissue images in real time, and transmit the collected image data to the display device 730 for display. At the same time, the image acquisition device 710 also transmits the tissue videos or multiple continuous tissue images to the image processing server 720. After receiving these image data, the image processing server 720 can determine tissue videos or multiple continuous tissue images within a preset time period of not less than one cardiac cycle, and then divide the multiple continuous video frames in the tissue video or the multiple continuous tissue images into a plurality of areas to be processed of the same number, and determine the pixel feature values ​​corresponding to each area to be processed. Furthermore, for each area to be processed, based on the pixel feature value change information of the multiple continuous video frames in the tissue video under the current area to be processed, or the pixel feature value change information of the multiple continuous tissue images under the current area to be processed, determine whether the current area to be processed is the target artery area; if so, control the display device 730 to prompt one or more target artery areas in the display screen.

[0212] The technical solution of the embodiment of the present application is to obtain a tissue video or a plurality of continuous tissue images within a duration of not less than one cardiac cycle, and then divide the plurality of continuous video frames or the plurality of continuous tissue images in the tissue video into a plurality of regions to be processed of the same number, and determine the pixel characteristic value corresponding to each region to be processed. Further, for each region to be processed, based on the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous video frames in the tissue video, or the pixel characteristic value change information of the current region to be processed corresponding to the plurality of continuous tissue images, determine whether the current region to be processed is a target artery region. If so, one or more target artery regions are prompted in the display screen. The technical solution of the present application is to determine whether each region to be processed is a target artery region by determining the pixel characteristic value change information corresponding to the region to be processed at the corresponding position of the plurality of video frames or the plurality of continuous images. Since arteries have the characteristic of periodic pulsation, when arteries pulsate, the pixel values ​​in multiple video frames or multiple continuous images will change in brightness. The present application effectively utilizes the periodic pulsation signals in multiple continuous images to detect the arterial area. Without the need for additional equipment, the arterial area can be automatically detected in a low-cost, real-time, dynamic and convenient manner, thereby reducing the operator's mental burden and improving the efficiency and accuracy of detecting the arterial position.

[0213] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for detecting arterial regions based on machine vision, characterized in that: include: Acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration; Dividing the plurality of continuous video frames in the tissue video or the plurality of continuous tissue images into a plurality of to-be-processed regions of the same number, and determining a pixel feature value corresponding to each of the to-be-processed regions; For each of the regions to be processed, based on pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive video frames in the tissue video, or pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive tissue images, determining whether the current region to be processed is a target artery region; If so, the target artery region is prompted in the display screen; wherein the target artery region is one or more regions in the region to be processed.

2. The method according to claim 1, characterized in that The step of determining the pixel characteristic value corresponding to each of the to-be-processed areas comprises: Performing a homogenization process on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel; The first grayscale characteristic value is used as the pixel characteristic value corresponding to the area to be processed.

3. The method according to claim 1, characterized in that The step of determining the pixel characteristic value corresponding to each of the to-be-processed areas comprises: Performing a homogenization process on the grayscale values ​​corresponding to the target channel of all pixels in the area to be processed to obtain a first grayscale characteristic value; wherein the target channel is at least one of the G channel and the B channel; Performing the homogenization process on the grayscale values ​​corresponding to the target channel of all pixels of the currently processed image to obtain a second grayscale eigenvalue; A third grayscale eigenvalue obtained by subtracting the second grayscale eigenvalue from the first grayscale eigenvalue is used as the pixel eigenvalue corresponding to the area to be processed.

4. The method according to claim 1, characterized in that: The determining whether the current area to be processed is a target artery area based on the pixel characteristic value change information of the current area to be processed includes: For the current area to be processed, determining a time series of characteristic values ​​corresponding to the current area to be processed according to the pixel characteristic values ​​respectively corresponding to the plurality of continuous video frames or the plurality of continuous tissue images; Performing frequency domain analysis on the characteristic value time series to obtain an amplitude spectrum diagram; wherein the amplitude spectrum diagram is used to characterize the corresponding relationship between amplitude and frequency, the ordinate of the amplitude spectrum diagram represents amplitude, and the abscissa represents frequency; Based on the amplitude spectrum diagram, determining each amplitude value and amplitude peak value within a preset frequency range; Based on each of the amplitude values, determining an amplitude standard deviation; Based on the amplitude peak value and the amplitude standard deviation, it is determined whether the current area to be processed is a target artery area.

5. The method according to claim 4, characterized in that The determining whether the current area to be processed is a target artery area based on the amplitude peak value and the amplitude standard deviation includes: Determine the ratio of the amplitude peak value to the amplitude standard deviation as the ratio to be compared; If the ratio to be compared is greater than or equal to a preset threshold, determining that the current area to be processed is a target artery area; If the ratio to be compared is less than a preset threshold, it is determined that the current area to be processed is not a target artery area.

6. The method according to claim 4, characterized in that The performing frequency domain analysis on the characteristic value time series to obtain an amplitude spectrum diagram includes: After the eigenvalue time series is processed by the Heining window function, Fourier transform is performed to obtain an amplitude spectrum diagram.

7. The method according to claim 1, characterized in that Prompting the target artery area in the display screen includes: Determining a margin mask image based on the coordinate information of the target artery region; Superimposing the edge mask image and the current display image in the display screen to obtain an image to be displayed containing prompt information; The image to be displayed is transmitted to a display device to display the image to be displayed.

8. The method according to claim 1, characterized in that: The area to be processed includes (50-100)*(50-100) pixels.

9. An artery region detection device based on machine vision, characterized in that: include: An image acquisition module, used to acquire a tissue video or a plurality of continuous tissue images within a target duration; wherein the target duration is not less than a cardiac cycle duration; A module for determining an area to be processed, used for dividing a plurality of continuous video frames in the tissue video or a plurality of continuous tissue images into a plurality of areas to be processed of the same size, and determining a pixel feature value corresponding to each of the areas to be processed; An artery region detection module is used to determine, for each of the regions to be processed, whether the current region to be processed is a target artery region based on pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive video frames in the tissue video, or pixel feature value change information of the current region to be processed corresponding to a plurality of consecutive tissue images; The arterial region prompting module is used to prompt the target arterial region in the display screen if so; wherein the target arterial region is one or more regions in the region to be processed.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the artery region detection method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the artery region detection method according to any one of claims 1 to 8 when executed.

12. An artery region detection system based on machine vision, characterized in that: The system comprises: an image acquisition device, an image processing server and a display device; the image processing server can communicate interactively with the image acquisition device and the display device; the image processing server is provided with a processor and a memory, the memory stores a computer program, the processor is used to execute the computer program and implement the artery region detection method based on machine vision according to any one of claims 1 to 8 when executing the computer program; Wherein, the image acquisition device is used to acquire tissue videos or multiple continuous tissue images; The image processing server is used to obtain the tissue video or multiple continuous tissue images acquired by the image acquisition device; to determine the tissue video or multiple continuous tissue images within a target duration; wherein the target duration is not less than the duration of one cardiac cycle; to divide the multiple continuous video frames in the tissue video or the multiple continuous tissue images into multiple to-be-processed areas of the same number, and to determine the pixel characteristic value corresponding to each of the to-be-processed areas; for each of the to-be-processed areas, based on the pixel characteristic value change information of the multiple continuous video frames in the tissue video under the current to-be-processed area, or the pixel characteristic value change information of the multiple continuous tissue images under the current to-be-processed area, determine whether the current to-be-processed area is a target artery area; if so, control the display screen of the display device to prompt the target artery area; wherein the target artery area is one or more areas in the to-be-processed area; The display device is used to display tissue videos or tissue images and to indicate the target artery area in the display screen.

Citation Information

Patent Citations

  • A wearable artery detection device and its data processing method

    CN104873186B

  • Ultrasonic image blood vessel bifurcation detection method

    CN112365489A

  • Near-infrared imaging fused endoscopic surgery blood vessel enhancement detection method

    CN113171053A

  • Blood vessel detection device and image-based blood vessel detection method

    CN114596247A

  • Retrospective off-line gating method for intravascular ultrasound image sequence

    CN102509267A