Skip to main content
. 2021 Jun 8;21(12):3953. doi: 10.3390/s21123953
Algorithm 2: Detection algorithm based on video texture changes fraction
Input: video frames I(p)(1pN), set THR_R1 as threshold selected for peak point
Output: store position of suspicious tampering point in S
1: S=,C=0 //Reset S,C in Algorithm 1
2: for i=1;i<N;i++ do
3:    calculate video texture changes fraction TC(Ii,Ii+1)
4:      if TC(Ii,Ii+1)THR_R1 then
5:          add i into S
6:          C += 1
7:    end if
8: end for
9: if C1 then
10:   (a) return FORGED VIDEO
11:   (b) store S,C
12:else return ORIGINAL VIDEO
13:end if