Research Article

Video Scene Information Detection Based on Entity Recognition

Algorithm 3

Video scene detection model.
Input: video data
Output: Scene detection results
1:for in to :
2: 
3:  is the icth frame of video
4: if is the first frame:
5:   determine if the subject of video is in the first frame
6: else:
7:   if scene has not been changed:
8:      determine if the subject of video is in the frame:
9:         if is
10:          adds to
11:          set to
12:         else:
13:          if time lag between now and the last scene is more than 3 s:
14:            adds to
15:            set to
16:         else:
17:            clear the last record in
18:            set to
19:    else:
20:      
21:      for in the number of frames in scene change:
22:       if scene back to original:
23:         
24:        end if
26:      end for
25:      if is True:
26:         adds to
27:      end if