摘要 |
Disclosed is a method for detecting change of a video scene based on an adaptive threshold. The method comprises the steps of: calculating a similarity coefficient between color histograms of every two adjacent image frames in a video file; sequentially connecting all the similarity coefficients to form a similarity curve; setting a sliding window, determining an adaptive threshold of the similarity curve in the sliding window, finding the maximum value of the similarity curve in the sliding window, and recording the corresponding position of the maximum value in the video file; and if the maximum value of the similarity curve in the sliding window is greater than the adaptive threshold determined according to the sliding window and the number of the image frames spaced between the corresponding position of the maximum value in the video file and a previous video scene switching position is greater than a preset value B, determining the corresponding position of the maximum value in the video file as a video scene switching position. By means of the present invention, disturbance caused by abrupt change of a shooting angle or shot object can be well eliminated, the detection is rapid and accurate, and high application value is achieved. |