Video processing method and device, electronic equipment and medium

By analyzing the site estimation and transfer information of endoscopic video frames and calculating local speed, the accuracy and real-time problems of smoothness assessment in endoscopy are solved, and the operator's operating level and inspection efficiency are improved.

CN118695059APending Publication Date: 2024-09-24NEC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310288574.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology makes it difficult to accurately and real-time evaluate the smoothness of the operation during endoscopy, especially during the movement between different parts, making it difficult for the operator to adjust the operation in a timely manner, affecting inspection efficiency and safety.

Method used

By analyzing the endoscopic video frames, local speed information is calculated based on the part estimation and part transfer information of the current frame and previous frames, thereby determining the smoothness of the endoscope operation and providing real-time smoothness feedback.

Benefits of technology

It achieves accurate and real-time smoothness assessment of endoscope operations, helps operators adjust operations in a timely manner, and improves inspection efficiency and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695059A
    Figure CN118695059A
Patent Text Reader

Abstract

The embodiment of the invention relates to a video processing method and device, electronic equipment and a medium. The method comprises the steps of obtaining an endoscope video obtained through endoscope collection operation, and determining local speed information related to the endoscope collection operation based on part estimation of a current frame of the endoscope video, part estimation of at least one preorder frame and part transfer information. The method further includes determining a smoothness of the endoscope acquisition operation based at least on the local velocity information. According to the embodiment of the invention, the stability information of the video frame level can be obtained in real time, an operator is helped to adjust too fast or too slow acquisition operation in time, and the stability information is obtained under the condition of considering the part acquisition sequence in the endoscopy process, so that the stability information is more accurate and comprehensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of image processing technology, and more specifically, to a video processing method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] Endoscopic examination is an optical instrument examination that is inserted from the outside of the body through the natural cavity of the human body to examine diseases in the body. The endoscope can be composed of a flexible part, a light source and a set of lenses. When using it, the operator guides the endoscope into the organ to be examined, operates the endoscope to move, and can directly peek into the relevant parts and record images and videos.

[0003] During the endoscopic inspection process, there are differences in the operating levels of different operators, and one of the indicators is the smoothness of operation. Operations with poor smoothness are characterized by advancing or retracting the scope too quickly or too slowly, or switching between different parts at random. Operations with better smoothness are those that can be performed smoothly within a limited operating time, which can not only observe the various parts / lesions of the organ more clearly and comprehensively, but also avoid or reduce harm to the human body. Therefore, it is necessary to introduce an accurate smoothness detection mechanism in the endoscope system to improve the operating level of endoscopic inspection and the experience of the examinee. Summary of the invention

[0004] In view of this, an embodiment of the present disclosure proposes a technical solution for evaluating the smoothness of an acquisition operation by analyzing endoscopic video.

[0005] According to a first aspect of the present disclosure, a video processing method is provided. The method includes acquiring an endoscopic video obtained through an endoscopic acquisition operation; determining local speed information related to the endoscopic acquisition operation based on a part estimation of a current frame of the endoscopic video, a part estimation of at least one previous frame, and part transfer information; and determining the smoothness of the endoscopic acquisition operation based at least on the local speed information.

[0006] According to a second aspect of the present disclosure, a video processing device is provided. The device includes: a video acquisition unit configured to acquire an endoscopic video obtained through an endoscopic acquisition operation; a local speed determination unit configured to determine local speed information related to the endoscopic acquisition operation based on a part estimation of a current frame of the endoscopic video and a part estimation of at least one previous frame and part transfer information; and a smoothness determination unit configured to determine the smoothness of the endoscopic acquisition operation based at least on the local speed information.

[0007] According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processing unit; and at least one memory, wherein the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to execute according to the first aspect of the present disclosure.

[0008] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, comprising machine-executable instructions, which, when executed by a device, cause the device to perform the method according to the first aspect of the present disclosure.

[0009] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising machine executable instructions, which, when executed by a device, cause the device to perform the method according to the first aspect of the present disclosure.

[0010] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.

[0012] Figure 1 A schematic diagram illustrating an example environment in which various embodiments of the present disclosure can be implemented;

[0013] Figure 2 A schematic flow chart of a video processing method according to an embodiment of the present disclosure is shown;

[0014] Figure 3 A schematic diagram of a stationary estimation system according to an embodiment of the present disclosure is shown;

[0015] Figure 4 A schematic flow chart of a part estimation process according to an embodiment of the present disclosure is shown;

[0016] Figure 5 A schematic flow chart showing a process of determining local velocity information based on part transfer information according to an embodiment of the present disclosure;

[0017] Figure 6 A schematic flow chart showing a process of determining local stability according to an embodiment of the present disclosure;

[0018] Figure 7 A schematic block diagram showing a video processing device according to an embodiment of the present disclosure; and

[0019] Figure 8 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0021] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0022] During an endoscopic examination, the operator moves the endoscope lens to observe parts of the human body, for example, through a gastroscope and a colonoscope to examine the corresponding parts of the human body, and generates corresponding videos or images. Since the endoscope lens and catheter will be inserted into the human body, causing discomfort to the examinee, endoscopic examination requires the operator to have good operating stability, so that the various parts / lesions of the organ can be clearly and comprehensively observed, while avoiding or reducing the harm to the human body caused by the examination.

[0023] There are some methods that use endoscopic videos to evaluate the smoothness of endoscopic operation in real time to help improve the operation level. For example, one method evaluates the speed of lens advancement and retraction by analyzing the stability of the image frames of the video. Since the curvature of various parts of the body is different, even if the operation is very smooth, the difference between frames in different parts may be large, so it is difficult to use the same set of thresholds to evaluate the smoothness of all parts. Other methods calculate the movement time of the colonoscope between various parts to evaluate whether the actual movement speed meets the constraints, thereby determining the smoothness of the endoscopic operation. However, this method of estimating smoothness between different parts has too large granularity. For example, 30 points of the gastroscope can estimate 30 degrees of stability, and it is impossible to detect the smoothness of the operation in a timely manner.

[0024] In view of this, a smoothness estimation method with higher accuracy and good real-time performance is needed. In the method according to an embodiment of the present disclosure, an endoscopic video obtained by an endoscopic acquisition operation is first obtained, and the video may include a series of video frames. Then, the corresponding smoothness is analyzed at the video frame level. Specifically, the position estimation of each frame of the video is obtained, and the local speed information corresponding to the current frame is determined based on the position estimation of the current frame, the position estimation of its previous frame, and the predefined position transfer information. Then, the local speed information is used to determine the smoothness of the endoscopic acquisition operation. It should be noted that the speed information mentioned in this article reflects the smoothness of the operation and is not limited to the speed in the traditional physical sense. The following reference Figures 1 to 8 Detailed description of implementation details of the embodiments of the present disclosure.

[0025] Figure 1 A schematic diagram of an example environment 100 in which multiple embodiments of the present disclosure can be implemented is shown. As shown, the environment 100 relates to an endoscope system, which includes a control device 101 that can be operated by an operator, and the operator can operate the control device 101 to control the endoscope lens 102 to move in the human body and collect images and videos. The collected images and videos can be transmitted and stored at a computing device 105. A display 103 can be coupled to the computing device 105 and display the images and videos collected via the lens 102 in real time. Figure 1 A gastroscopic system is shown exemplarily, but it should be understood that the embodiments of the present disclosure can also be applied to other endoscopic systems, including but not limited to ENT endoscopes, oral endoscopes, dental endoscopes, neuroscopes, urethral cystoscopes, electroresectoscopes, laparoscopes, arthroscopes, sinusoscopes, laryngoscopes, colonoscopes, etc.

[0026] The computing device 105 may be a general computing device or a device dedicated to endoscopy, and is configured to be applicable to image processing and video processing, especially medical image processing. The computing device 105 may be a terminal or a server device. When the computing device 105 is a server, it may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets or a plurality of servers to construct a cloud server. When the computing device 105 may include but not limited to a desktop terminal or a mobile terminal, for example, a desktop, a mobile phone, a tablet computer, a laptop computer, a medical auxiliary instrument, etc.

[0027] As mentioned above, the lens 102 needs to enter the body when in use, which will cause discomfort to the subject, and the moving operation time of the lens 102 needs to be accelerated as much as possible. However, in order to ensure the observation effect of the endoscope, it is necessary to slow down the movement speed at specific parts as much as possible, observe for a longer time, and maintain good stability. In other words, the operator of the endoscope needs to control the stability of the lens 102 more accurately to improve the inspection efficiency and accuracy. According to an embodiment of the present disclosure, the computing device 105 can analyze the endoscopic video to evaluate the stability of the acquisition operation and help the operator improve the operation level.

[0028] References Figure 1 An exemplary environment in which embodiments of the present disclosure can be implemented is described. It should be understood that Figure 1 This is only illustrative, and the environment may also include more modules or systems, or some modules or systems may be omitted, or the modules or systems shown may be recombined. Figure 1 The present disclosure is not limited to the different environments shown.

[0029] Figure 2 FIG. 2 is a schematic flow chart of a video processing method 200 according to an embodiment of the present disclosure. The method 200 may be performed as follows: Figure 1 It should be understood that the method 200 may also include additional actions not shown and / or may omit the actions shown, and the scope of the present disclosure is not limited in this respect. Figure 1 The method 200 is described in detail.

[0030] In block 210, an endoscopic video obtained by an endoscopic acquisition operation is acquired. During an endoscopic examination, an operator manipulates the control device 101 to control the movement of the lens 102 in the human body or the direction of the lens 102 to capture and generate a video. The video may be transmitted to the computing device 105. In some embodiments, the computing device 105 may acquire the video obtained by the endoscopic acquisition operation in real time or near real time and analyze the video. Alternatively, the video may be stored in the computing device 105 and analyzed after the endoscopic examination is completed.

[0031] At block 220, local velocity information associated with the endoscopic acquisition operation is determined based on the location estimate of the current frame of the endoscopic video, the location estimate of at least one previous frame, and the location transfer information. The local velocity information corresponding to each frame of the endoscopic video may be determined.

[0032] The computing device 105 may generate a result of part estimation for each video frame in the endoscope video. The result of part estimation may include possibility values ​​for multiple parts of the examined organ. For example, the result of part estimation may be in the form of a vector, each component of the vector indicating the possibility or probability that the frame belongs to the corresponding part. In the part estimation result, the part corresponding to the maximum possibility or probability may be regarded as the part where the frame is located.

[0033] The site transfer information may include site transfer probability information (also referred to as a site transfer probability map). In some embodiments, the site transfer probability may be in the form of a matrix, where the rows and columns of the matrix correspond to the various sites, and the elements of the matrix indicate the probability of transferring from one site to another during the endoscopic examination (for example, the probability of transferring from the cardia to the stomach is 0.8). The site transfer information reflects the inspection order of the endoscope, and is used to constrain whether the jumps between the various sites are standardized, and is a global constraint. Using the site transfer information, it is possible to evaluate whether the transfer between a site indicated by a previous frame (for example, multiple previous frames as a whole) to a site indicated by a current frame meets this constraint, thereby evaluating the current smoothness. The site transfer information may be pre-stored at the computing device 105. The following Table 1 shows exemplary site transfer information:

[0034] Table 1

[0035]

[0036] The rows in Table 1 represent the parts obtained from the part estimation result of the previous frame, the columns represent the parts obtained from the part estimation result of the current frame, and the numerical values ​​in Table 1 represent the transition probability between the two parts. For example, in the case where the result of the part estimation of the previous frame indicates "esophagus" and the result of the part estimation of the current frame indicates "cardia", the local velocity information can be determined based on the probability "0.8" shown in Table 1.

[0037] In some embodiments, the probability obtained from the part transfer information can be used as a part of the local speed information corresponding to the current frame. This part can be referred to as the first speed information. In some embodiments, in addition to the speed information based on the part transfer information, the local speed information can also include information based on the inter-frame similarity information, also referred to as the second speed information. The computing device 105 can combine the first speed information and the second speed information to form the local speed information corresponding to the current frame. For example, the computing device 103 can determine the linear combination of the first speed information and the second speed information as the local speed information corresponding to the current frame. The following will refer to Figures 3 to 6 Detailed description.

[0038] At block 230, the smoothness of the endoscopic acquisition operation is determined based at least on the local velocity information. As mentioned above, the computing device 105 determines the local velocity information for each frame. Accordingly, the computing device 105 may determine the smoothness of the endoscopic acquisition operation based on the local velocity information corresponding to each frame. The smoothness for each frame may be referred to as the local smoothness. The local smoothness may be in the form of a percentage and may be classified as "too fast", "smooth", or "too slow".

[0039] In some embodiments, the computing device 105 may determine the local smoothness based on the local speed information at the frame level and the appropriate reference local speed. For example, in the case of real-time evaluation of smoothness, if the local speed information is within a predetermined range compared to the reference local speed, the computing device 105 may determine the local smoothness as "smooth", otherwise the computing device 105 may issue a "too slow" or "too fast" reminder to help the operator adjust the acquisition operation. In some embodiments, the computing device 105 may also give the overall smoothness of the acquisition operation after the video acquisition is completed. For example, the average value of the local smoothness of multiple frames or all frames may be determined as the overall smoothness. The computing device 105 may also calculate the smoothness near a specific part.

[0040] according to Figure 2 The method 200 shown can obtain the current smoothness information at the video frame level in real time, helping the operator to timely understand the current operation smoothness and adjust the acquisition operation in time. Moreover, this smoothness information takes into account the part acquisition sequence information during the endoscope inspection process, so it is more accurate and comprehensive.

[0041] Figure 3 300 schematic diagram of a stationary estimation system according to an embodiment of the present disclosure is shown. The stationary estimation system 300 can be implemented in the computing device 105 in the form of software or hardware, and is suitable for implementing reference Figure 2 The method 200 described herein. It should be understood that Figure 3 The illustrated stationarity estimation system 300 is merely exemplary and may include more or fewer modules or units.

[0042] In the system 300, the endoscope video 310 is provided to the smoothness component 320. The video 310 includes a series of frames F1 to Ft, where t is any integer greater than 1. Frame Ft can be referred to as a current frame, and frames F1 to Ft-1 can be referred to as previous frames. The smoothness component 320 can be configured to calculate the smoothness corresponding to each frame and the overall smoothness of the endoscope video 310.

[0043] As shown in the figure, the smoothness component 320 includes a part estimation unit 322, a similarity estimation unit 324 and pre-stored part transfer information 302. The part estimation unit 322 is used to generate the results of part estimation for frames F1 to Ft. The similarity estimation unit 324 is used to generate the similarity between frame Ft and its preceding frame. The part transfer information 302 includes the transfer possibility information between parts according to the endoscope inspection order.

[0044] Figure 4 FIG. 4 is a schematic flow chart of a part estimation process 400 according to an embodiment of the present disclosure. The part estimation unit 322 may be configured to implement Figure 4 The part estimation process 400 shown in FIG. 401 is a process for part estimation in which a part estimation unit 322 receives an input frame. In block 402, the part estimation unit 322 performs quality assessment on the input frame. For example, invalid images in the video 310, including but not limited to blurred images, exposed images, contaminated images, and non-standard parts, can be removed by image quality assessment, thereby obtaining video frames F1 to Ft with higher quality through quality screening.

[0045] In box 403, the part estimation unit 322 performs part recognition for the frames that pass the quality assessment. In some embodiments, the part estimation unit 322 can obtain the results of the part estimation of the current frame Ft and the results of the part estimation of the previous frames F1 to Ft-1 based on the prediction of the deep network. For example, labeled samples can be collected to train the deep network, and then the trained deep network can be used to predict the part to which each frame belongs. Alternatively, feature extraction and classifiers (such as support vector machines) can be used for training and prediction, or image features can be extracted, and the category probability can be obtained in a weighted manner, and compared with a threshold.

[0046] In box 404, the part estimation unit 322 outputs the result of the part estimation. The result of the part estimation can be in the form of a vector, including a possibility value or probability for each of the multiple parts. It should be noted that such a possibility value or probability is only used to indicate the relative possibility of the frame belonging to each part, rather than the absolute possibility. Therefore, the sum of the possibility values ​​in the part estimation result is not necessarily "1". In some implementations, the part corresponding to the maximum possibility in the part estimation result of the frame (that is, the possibility that the frame belongs to this part is the highest) can be determined as the part where the frame is located.

[0047] Continue to refer Figure 3, the similarity estimation unit 324 can be used to calculate the similarity between the current frame Ft and one or more previous frames. In some embodiments, the similarity estimation unit 324 calculates the individual similarities between the current frame and any previous frame, and combines these individual similarities as the similarity between the current frame and the previous frame. The way to calculate individual similarities may include but is not limited to: sparse optical flow field, dense optical flow field, image feature extraction and matching, perceptual hashing, dual-channel deep network, etc. The similarity between the current frame and the previous frame can be calculated by the following equation:

[0048] sim(x)=∑ i w i Dis(I i ,I j ) (1)

[0049] Where Sim(x) represents the similarity between the current frame and the previous frame, w i Represents weight, Dis(I i ,I j ) indicates the current frame I j With any previous frame I i The distance between.

[0050] The results of the part estimation for each video frame output by the part estimation unit 322, the similarity output by the similarity estimation unit 324, and the part transfer information 302 may be provided to the local speed information estimation unit 326 to calculate the local speed information for the current frame Ft. In some embodiments, the local speed information estimation unit 326 may determine the first speed information V1 based on the part estimation results for each frame F1 to Ft from the part estimation unit 322 and the part transfer information, and may determine the second speed information V2 based on the similarity from the similarity estimation unit 324. Then, the local speed information estimation unit 326 may combine the first speed information and the second speed information to determine the local speed information V(x) corresponding to the current frame Ft.

[0051] Figure 5 FIG. 5 is a schematic flow chart of a process 500 for determining local velocity information based on part transfer information according to an embodiment of the present disclosure. The local velocity information estimating unit 326 may be configured to perform the process 500 .

[0052] In box 501, it is determined whether the maximum likelihood value in the result of the part estimation of the current frame exceeds the threshold value T1. In box 501, it can also be determined that the current frame Ft is a video frame with higher quality, for example, the quality exceeds the threshold value T2. If this condition is not met, the method 500 proceeds to box 504, and the first speed information of the previous frame is used as the first speed information V1 of the current frame. If the conditions on the possibility threshold and / or the quality threshold are met, the current frame can be considered to be a video frame that can represent that a specific part has been entered, and further, the first speed information V1 is determined based on the part corresponding to the current frame and another part corresponding to the previous frame, and the part transfer information. In this case, the method 500 proceeds to box 502.

[0053] In block 502, a first portion corresponding to the current frame and a second portion corresponding to another frame are determined based on a portion trajectory of the current frame and a portion estimation of at least one preceding frame, the second portion being different from the first portion. As mentioned above, the result of any one of the portion estimation of the current frame and the portion estimation of at least one preceding frame may include a likelihood value for each of a plurality of portions. In some embodiments, determining the first portion corresponding to the current frame may include determining the first portion based on the portion estimation of the current frame. For example, the portion corresponding to the maximum likelihood in the result of the portion estimation of the current frame may be determined as the first portion where the current frame is located.

[0054] In order to determine the second part different from the first part, the results of the part estimation of the preceding frames F1 to Ft-1 are analyzed. Specifically, based on the part estimation of these preceding frames, another frame is determined, and the part estimation of the other frame has the maximum probability value for other parts different from the first part. In other words, the frame number of the non-current frame part with the highest probability is obtained in the preceding frame. Then, the second part is determined according to the determined part estimation result of the other frame, and the specific method can be the same as the first part.

[0055] In block 503, first velocity information is determined based on the first site, the second site, and the site transfer information. In some embodiments, the site transfer information may be, for example, a site transfer probability based on the sequence of endoscopic examination sites (e.g., Table 1), and the first velocity information V1 may be determined by looking up the table.

[0056] The local speed information estimation unit 326 may also determine second speed information V2 corresponding to the current frame based on the similarity Sim(x) from the similarity estimation unit 324. The second speed information V2 may be determined according to the following equation.

[0057] V2 = exp (-Sim(x)) / sigma^2) (2)

[0058] Where sigma is a fixed parameter that can be determined empirically.

[0059] Then, the local speed information estimation unit 326 may determine the local speed information V(x) corresponding to the current frame according to the first speed information V1 and the second speed information V2, as shown in the following equation:

[0060] V(x) = w1*V1 + w2 * V2 (3)

[0061] Where w1 and w2 are fixed parameters that can be determined empirically.

[0062] Return to reference Figure 3 , the local speed information estimation unit 326 can output the position and local speed information of the previous frame and the current frame Ft to the smoothness estimation unit 328. The smoothness estimation unit 328 can be configured to evaluate the local smoothness according to the local speed information and the reference endoscopic video 304. The reference endoscopic video 304 can include pre-stored standard and smooth adjacent part video segments. The smoothness estimation unit 328 compares the local speed information from the local speed information estimation unit 326 with the reference speed information indicated by the reference endoscopic video 304, thereby determining the local smoothness.

[0063] Figure 6 A schematic flow chart of a process 600 for determining local stationarity according to an embodiment of the present disclosure is shown. The stationarity estimation unit 328 may be configured to implement the process 600 to determine the local stationarity of the current frame.

[0064] In block 610, a corresponding segment in the reference endoscope video is determined based on the first part corresponding to the current frame and its neighboring parts. The smoothness estimation unit 328 can obtain a standard and stable video segment of the neighboring parts according to the first part and the preceding part of the current frame, and obtain an average per-frame speed SV under the video segment. In some embodiments, the average per-frame speed SV can be pre-calculated and stored by the local speed information estimation unit 326, and the calculation method can be the same as that for the video 310.

[0065] At block 620, reference speed information is determined based on the corresponding segment. The reference speed information depends on the given video segment, so for different parts, the reference speed information is also different. In some implementations, the smoothness estimation unit 328 can obtain the corresponding reference speed information based on the identification of the video segment.

[0066] In box 630, based on the local speed information and the reference speed information, the local smoothness corresponding to the current frame is determined. In some embodiments, the smoothness estimation unit 328 can compare the local speed information and the reference speed information to determine the difference between them. If the difference is within the predetermined range r1, it can be determined that the local meets the endoscope operation requirements; if the difference is outside the predetermined range r1, a reminder indicating that the endoscope acquisition operation is too fast or too slow can be generated. In some examples, if |V(x)-SV|<r1, the local smoothness corresponding to the current frame can be determined by the following equation:

[0067]

[0068] Where S(x) represents the local smoothness of the current frame, r1 represents a predetermined threshold, SV represents reference speed information, and V(x) represents the local speed information corresponding to the current frame. In addition, if V(x)-SV>r1, it is determined that the current frame is too fast, and the local smoothness S(x) can be set to 20%. If V(x)-SV<r1, it is determined that the current frame is too slow, and the local smoothness S(x) can be set to 20%.

[0069] refer to Figure 3 In some embodiments, the overall smoothness of the video can also be determined based on the local smoothness of multiple frames. In some embodiments, the overall smoothness can be determined based on the average of multiple local smoothness of multiple video frames in the endoscopic video. The overall smoothness can be calculated after the video acquisition operation is completed.

[0070] Reference above Figures 1 to 6 A method or process for processing an endoscopic video to evaluate the smoothness associated with video acquisition according to an embodiment of the present disclosure is described. Compared with existing solutions, the embodiment of the present disclosure can obtain the current smoothness information for each video frame in real time, helping the operator to adjust the acquisition operation in time, and this smoothness information is obtained by considering the order of part acquisition during the endoscopic examination process, so it is more accurate and comprehensive.

[0071] Compared with the traditional single-cue smoothness estimation, some embodiments of the present disclosure can also obtain an endoscopic smoothness estimation result combining multiple cues. These clues include pre-stored video clips between adjacent parts, which are all standardized and stable acquisition videos. The clues are used to constrain whether the acquisition of adjacent parts during the acquisition process is standardized, which is a global constraint. The clues also include pre-stored part transfer information, which is used to constrain whether the jump between parts is standardized, which is a global constraint. The clues also include removing invalid video frames in the actual acquisition process to obtain the part probability of high-quality video frames, which is a global constraint. The clues also include obtaining the similarity of adjacent video frames in the actual acquisition process, which is a local constraint. Therefore, the embodiments of the present disclosure take into account both global and local phonemes, and the order of part acquisition, and can obtain more accurate and comprehensive evaluation results.

[0072] Figure 7 FIG. 7 is a schematic block diagram of a video processing apparatus 700 according to an embodiment of the present disclosure. The apparatus 700 may be implemented by the computing device 105 and may be implemented as software, hardware, or a combination of software and hardware.

[0073] As shown in the figure, the device 700 includes a video acquisition unit 710, a local speed determination unit 720, and a smoothness determination unit 730. The video acquisition unit 710 is configured to acquire an endoscopic video obtained through an endoscopic acquisition operation. The local speed determination unit 720 is configured to determine local speed information related to the endoscopic acquisition operation based on a part estimation of a current frame of the endoscopic video and a part estimation of at least one previous frame and part transfer information. The smoothness determination unit 730 is configured to determine the smoothness of the endoscopic acquisition operation based at least on the local speed information. In some implementations, the local speed determination unit 720 can be determined by, for example, referring to Figure 3 The smoothness determination unit 730 may be implemented by, for example, the smoothness estimation unit 328.

[0074] In some embodiments, the local speed information may include first speed information, and the local speed determination unit 720 may be configured to: determine a first part corresponding to the current frame and a second part corresponding to another frame in at least one previous frame based on a part estimation of the current frame and a part estimation of at least one previous frame, the second part being different from the first part; and determine the first speed information based on the first part, the second part, and the part transfer information.

[0075] In some embodiments, the local speed information may further include second speed information, and the local speed determination unit 720 may further be configured to: determine the similarity between the current frame and one or more preceding frames of at least one preceding frame; and determine the second speed information based on the similarity.

[0076] In some embodiments, the results of any one of the part estimation of the current frame and the part estimation of at least one previous frame may include a likelihood value for each of the multiple parts, and the local speed determination unit 720 may also be configured to: in response to the maximum likelihood value in the result of the part estimation of the current frame exceeding a threshold, determine the first speed information based on the first part, the second part and the part transfer information.

[0077] In some embodiments, the local speed determination unit 720 can also be configured to determine a first part based on the part estimation of the current frame, and be configured to: determine another frame in at least one previous frame, wherein in the part estimation of at least one previous frame, the part estimation of the other frame has a maximum likelihood value for other parts different from the first part; and determine a second part based on the part estimation of the other frame.

[0078] In some embodiments, the apparatus 700 may further include a part estimation unit. The part estimation unit may be configured to obtain a result of any one of the part estimation of the current frame and the part estimation of at least one previous frame based on the prediction of the deep network.

[0079] In some embodiments, the apparatus 700 may further include a quality assessment unit. The quality assessment unit may be configured to perform quality assessment on video frames in the endoscope video, and determine a current frame and at least one video frame that meet quality requirements.

[0080] In some embodiments, the smoothness may include the local smoothness of the current frame, and the smoothness determination unit 730 may also be configured to: determine reference speed information based on the reference endoscopic video; and determine the local smoothness based on the local speed information and the reference speed information.

[0081] In some embodiments, the smoothness determination unit 730 may also be configured to: determine a corresponding segment in a reference endoscopic video based on a first portion corresponding to a current frame and a neighboring portion of the first portion; and determine reference speed information based on the corresponding segment.

[0082] In some embodiments, the smoothness determination unit 730 may also be configured to determine that the local smoothness meets the endoscope operation requirements in response to a difference between the local speed information and the reference speed information being within a predetermined range.

[0083] In some embodiments, the apparatus may further include a reminder unit configured to generate a reminder indicating that the endoscope acquisition operation is too fast or too slow in response to a difference between the local speed information and the reference speed information being outside a predetermined range.

[0084] In some embodiments, the smoothness may also include overall smoothness, and the smoothness determination unit 730 may also be configured to determine the overall smoothness based on an average value of multiple local smoothness of multiple video frames in the endoscopic video.

[0085] Figure 8 A schematic block diagram of an example device 800 that can be used to implement an embodiment of the present disclosure is shown. For example, a computing device 105 according to an embodiment of the present disclosure can be implemented by device 800. As shown, device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 802 or computer program instructions loaded from a storage unit 808 into a random access memory (RAM) 803. In RAM 803, various programs and data required for the operation of device 900 can also be stored. CPU 801, ROM 802, and RAM 803 are connected to each other via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0086] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0087] The various processes and processing described above, such as methods 200, 400, 500, and / or 600, may be performed by the processing unit 801. For example, in some embodiments, the methods 200, 400, 500, and / or 600 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the CPU 801, one or more actions of the methods 200, 400, 500, and / or 600 described above may be performed.

[0088] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0089] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0090] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0091] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0092] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0093] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0094] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0095] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0096] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A video processing method, comprising: Acquiring endoscopic video obtained through an endoscopic acquisition operation; Determining local velocity information associated with the endoscopic acquisition operation based on a part estimate of a current frame of the endoscopic video, a part estimate of at least one previous frame, and part transfer information; as well as Based at least on the local velocity information, a smoothness of the endoscopic acquisition operation is determined.

2. The method according to claim 1, wherein the local speed information comprises first speed information, and determining the local speed information comprises: Determining, based on the part estimate of the current frame and the part estimate of the at least one previous frame, a first part corresponding to the current frame and a second part corresponding to another frame of the at least one previous frame, the second part being different from the first part; as well as The first speed information is determined based on the first part, the second part, and the part transfer information.

3. The method according to claim 2, wherein the local speed information comprises second speed information, and determining the local speed information further comprises: Determining a similarity between the current frame and one or more preceding frames of the at least one preceding frame; as well as Based on the similarity, the second speed information is determined.

4. The method according to claim 2, wherein: The result of any one of the part estimation of the current frame and the part estimation of the at least one previous frame includes a likelihood value for each of the plurality of parts, and determining the first speed information includes: In response to a maximum likelihood value in a result of part estimation of the current frame exceeding a threshold, the first speed information is determined based on the first part, the second part, and the part transfer information.

5. The method according to claim 4, wherein Determining a first portion corresponding to the current frame includes: Determining the first part based on the part estimation of the current frame; Determining a second location corresponding to another frame of the at least one preceding frame comprises: determining the other frame of the at least one preceding frame, wherein the part estimate of the other frame has a maximum likelihood value for other parts than the first part among the part estimates of the at least one preceding frame; as well as The second part is determined based on the part estimate of the other frame.

6. The method according to claim 1, further comprising: Based on the prediction of the deep network, a result of any one of the part estimation of the current frame and the part estimation of the at least one previous frame is obtained.

7. The method according to claim 1, further comprising: A quality assessment is performed on the video frames in the endoscopic video to determine the current frame and the at least one video frame that meet the quality requirement.

8. The method according to claim 1, wherein the smoothness comprises a local smoothness of the current frame, and determining the smoothness of the endoscopic acquisition operation comprises: determining reference speed information based on a reference endoscopic video; as well as The local smoothness is determined based on the local speed information and the reference speed information.

9. The method according to claim 8, wherein: Determining reference speed information based on the reference endoscopic video includes: Determining a corresponding segment in the reference endoscopic video based on a first part corresponding to the current frame and a neighboring part of the first part; and Based on the corresponding segment, the reference speed information is determined.

10. The method according to claim 8 or 9, further comprising: In response to a difference between the local speed information and the reference speed information being within a predetermined range, it is determined that the local smoothness meets endoscope operation requirements.

11. The method according to claim 8 or 9, further comprising: In response to a difference between the local speed information and the reference speed information being outside a predetermined range, a reminder is generated indicating that the endoscope acquisition operation is too fast or too slow.

12. The method according to claim 8 or 9, wherein the smoothness further comprises overall smoothness, and determining the smoothness of the endoscopic acquisition operation comprises: The overall smoothness is determined based on an average value of multiple local smoothness of multiple video frames in the endoscopic video.

13. A video processing device, comprising: a video acquisition unit configured to acquire an endoscopic video obtained through an endoscopic acquisition operation; a local speed determination unit configured to determine local speed information related to the endoscope acquisition operation based on a part estimate of a current frame of the endoscope video and a part estimate of at least one previous frame and part transfer information; as well as The smoothness determination unit is configured to determine the smoothness of the endoscope acquisition operation based at least on the local velocity information.

14. An electronic device comprising: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 12.

15. A computer-readable storage medium comprising machine-executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 12.

16. A computer program product comprising machine executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 12.