The invention discloses an
application layer flow control method based on image network transmission, and relates to the technical field of
data transmission and management.The method comprises the steps that a camera SDK is used for creating an acquisition
queue containing a buffer in a host
application layer, and the host
application layer can receive image data sent by a camera through the acquisition
queue; the method comprises the following steps of: receiving a buffer, putting the corresponding buffer into a
processing queue to inform a user to process, feeding back the condition of the buffer to a camera in real time by a host application layer through a
communication link in the process, determining whether to continuously send an image or not by the camera according to a feedback result, and stopping image transmission in time when the buffer capability of a host is insufficient to avoid
data loss; in the technical scheme of the invention, a host application layer can feed back the real-
time information of the buffer in the acquisition queue to the camera through a link, and when the host does not have a buffer area, the transmission is suspended and the image is stored in the buffer of the camera, so that the flow control from a
data source to the application layer is realized; the problem of transmission stability in network industrial camera application is effectively solved, and the network transmission reliability is improved.