The invention relates to the technical field of
computer vision and industrial
safety monitoring, and discloses a video target detection method and
system based on a
coupling frame difference yolov8 model, and the method comprises the steps: 1, collecting a video
stream in real time, extracting an
RGB image of a current frame, and converting the
RGB image into a gray-
scale map; meanwhile, a historical frame grey-
scale map cache
queue with a
fixed length is constructed and maintained and is used for storing grey-scale information of recent frames; step 2, calculating a
frame difference between a current frame grey-
scale map and a historical frame grey-scale map at an interval of 10 frames in a buffer
queue, introducing a space-time
coupling causal attention mechanism, and generating a self-adaptive attention weight single-channel
frame difference image; 3, taking the single-channel frame difference image as a motion feature channel, and splicing the single-channel frame difference image with the RGB three-channel image of the current frame in the channel dimension to construct a four-channel fusion data
tensor; and step 4, training a yolov8 detection model by using the four-channel fusion data, so that the yolov8 detection model can cooperatively utilize static appearance and
dynamic motion clues, and a detection result is output.