摘要 |
Disclosed are a method, device and system for obtaining the number of persons. The method comprises: obtaining a data frame in a surveillance video, setting a target model in the data frame, and extracting a foreground image of the data frame, the foreground image comprising moving targets extracted from the data frame (step 101); matching the moving targets in the foreground image according to the target model, obtaining the number of persons in the corresponding data frame according to a matching result, extracting a feature of a moving target that is matched successfully, and tracking the corresponding moving target according to the feature (step 102); and obtaining the actual number of persons in the surveillance video within a preset time period according to a tracking result and the obtained number of persons in each data frame, the tracking result comprising: whether moving targets in the data frames are the same moving target (step 103). The method can improve the efficiency and accuracy in counting the number of persons. |