The invention relates to a stable display method based on a UDP (
User Datagram Protocol) in a real-time image transmission process. The stable display method comprises the following steps of: constructing a UI (
User Interface)
basic class in a Qt framework; constructing three thread objects in the
basic class, namely data receiving,
data processing and
image processing; in the data receiving thread, image
data monitoring is carried out in a UDP network port channel in real time and is transmitted to the
data analysis thread, and circulation is carried out; meanwhile, adding a dynamic buffer setting
algorithm in a slot function; starting a
data processing thread, performing analysis
processing on the received data packet, transmitting complete image data to an
image processing thread, and continuing to repeat the operation; the
image processing thread is responsible for transmitting the image data to an
image display control of the UI interface for display, and the operation is continuously repeated; and observing an
algorithm execution effect, and evaluating a
resource utilization rate and
image integrity. According to the invention, the problem of unstable
image display in the real-time image transmission process of the
laser communication UDP can be solved, and stable display of the image with minimum resources is ensured.