The invention discloses an edge end fire fighting access occupation detection method, which comprises the following steps: S10,
motion vector extraction and static scene identification: inputting a video source into a video
encoder by taking a single-frame image as a unit, obtaining
motion vector information of all
macro blocks of the frame image after each frame image is encoded, and judging whether the frame image is a static frame or not; m continuous static frames form a static scene SN, and the last frame of the static scene SN is marked as a representative frame F1; s20, motion event detection and new static scene extraction: after a motion frame is detected, waiting for continuous M static frames to form a new static scene SN2, and marking the last frame as a representative frame F2; s30, foreground region extraction: respectively extracting foreground masks
mask1 and
mask2 of F1 and F2 by using a
deep learning background removal model; s40, foreground difference comparison and occupation determination: calculating a difference matrix D (x, y) =
mask2 (x, y)-mask1 (x, y) for the mask1 and the mask2 pixel by pixel; if D (x, y) = + 1 represents that the foreground is newly added, channel occupation is determined; and if D (x, y) =-1 indicates that the foreground disappears, judging that the channel is unoccupied.