Parallel Thread Endoscopic Image Processing for Real-Time Accuracy
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing endoscopic image processing technologies struggle to match the frame rate of real-time video streams due to limited processing speed, leading to impaired performance in terms of real-time accuracy and recall rate.
Innovation Solution
The proposed solution involves using parallel threads for processing endoscopic images, where a first thread detects the original endoscopic image and transmits the detection result to an integration module, and a second thread adjusts the output result based on the control instruction formed by the integration module, ensuring the output matches the use environment of the endoscopic video stream.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If a target detection model is integrated to perform real-time detection on endoscopic video streams, then detection accuracy is improved, but processing speed becomes limited and cannot match the video frame rate
Solution Approach 1:
The patent divides the processing system into two parallel threads: a first thread for real-time detection and a second thread for post-processing and refinement. This segmentation allows the detection model to operate independently without being bottlenecked by subsequent processing steps, thereby maintaining both high detection accuracy and processing speed that matches video frame rate.
Solution Approach 2:
The patent performs detection operations in advance in the first thread before the video frames are fully processed. By completing detection on current frames while previous frames are still being post-processed in the second thread, the system achieves preliminary action that prevents processing bottlenecks and maintains real-time performance.
2Device complexity
If sequential processing is used for target detection on video frames, then processing logic is simple, but processing speed cannot match the real-time video stream frame rate
Solution Approach 1:
The patent segments the sequential processing into two parallel threads with distinct functions. The first thread handles detection while the second thread handles post-processing, allowing simultaneous execution that increases productivity without significantly increasing overall system complexity.
Solution Approach 2:
The patent introduces an intermediary buffer mechanism between the two threads that manages data flow and synchronization. This intermediary allows the threads to operate independently at their own speeds while maintaining coordination, achieving frame rate matching without complex inter-thread communication overhead.
Data Source
AI summary
This application provides an endoscopic image processing method and apparatus, an electronic device, and a storage medium. The method includes: obtaining an endoscopic video stream, the endoscopic video stream including an original endoscopic image; detecting the original endoscopic image in a corresponding video frame through a first thread, and transmitting a detection result of the original endoscopic image to an integration module; forming a control instruction through the integration module according to the detection result; and adjusting, in response to the control instruction and through a second thread, an output result in the second thread, the output result corresponding to a use environment of the endoscopic video stream, the first thread and the second thread being parallel threads.


