Skip to main content
. 2021 Jun 8;21(12):3953. doi: 10.3390/s21123953
Algorithm 3: judgment of video tamper
Input:suspicious tampering point set in S, the variable counter for peak point C
Output: frame insertion setSinsert , frame deletion set Sdelete 
1: Sinsert =,Sdelete=
2: for i=1;i<C;i++ do
3:    for j=i+1;j<C;j++ do
4:      if j>C:
5:         add i into Sdelete
6:      else:
7:           calculate  OF fluctuation feature r between frame S[i]1and S[j]+1
8:         if r1:
9:              add i,j into Sinsert 
10:         end if
11:      end if
12:   end for
13: end for