The invention provides a multi-prediction-frame real-time display method for target detection
algorithm acceleration based on an FPGA, and relates to the technical field of target detection
deep learning algorithms, and the method comprises the steps: carrying out the post-
processing of each block feature map of a regression
branch, and generating N prediction frames; the coordinate [(x11, y11), (x21, y21)] of the prediction frame bbox1 is analyzed, the original y11 row
mask is read from the BRAM to the one-dimensional register set to serve as an initial value, and the y11 row
mask is updated on the one-dimensional register set from the x11 column to the x21 column and written back to the BRAM; updating masks of all the remaining rows from y11 + 1 to y21 in the prediction frame bbox1 row by row and writing the masks back to the BRAM; according to the method,
mask updating of the remaining bbox < 2 >-bbox < N > is completed one by one and written back to the BRAM; and carrying out picture drawing on the video
stream according to all the updated masks, if the mask is 0, passing through the original picture data, and if the mask is 1, replacing the original picture data with the color of the prediction frame. According to the method, the mask of the picture can be generated in real time, the mask does not need to be generated after all prediction frames are generated, and the reasoning speed can be effectively improved.