The invention discloses a
crowd density detection method fusing
optical flow and texture features, and relates to the technical field of
computer vision, and the method comprises the following steps: collecting a real-time video
stream of a camera, and carrying out graying,
Gaussian filtering and perspective correction preprocessing; performing motion compensation by using
image registration and offset transformation; modeling based on a
Gaussian mixture model and extracting a foreground to generate a binary
mask; analyzing a foreground coverage rate, an
optical flow and texture features; pre-defining a multi-ROI and a density early warning standard; inputting the fusion features into a regression model and outputting initial density; dynamically calibrating and correcting the deviation; and generating a thermodynamic diagram superposition video to realize
visualization. According to the invention, the
optical flow and texture features are fused to improve density
estimation precision, illumination resistance and dynamic background
interference resistance; the dynamic calibration maintains long-term accuracy, and the dynamic ROI adapts to scene change; the thermodynamic diagram can quickly identify risks, is adaptive to multiple scenes, and meets real-time monitoring requirements.