Patent ID: 11955143
Assignee: ARASHI VISION INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 2:
3. The video automatic editing method according to claim 1, wherein the preset editing rule comprises a preset lens type and a number of key frames of a video segment to be edited corresponding to the preset lens type; the screening out the plurality of video segments meeting the preset editing rule from the video to be edited comprises:
detecting each lens type of the video segment to be edited sequentially, a number of preset lens types in the preset editing rule being j, with j≥3;
determining whether a lens type of the key frame is a currently detected lens type, wherein the determining whether a lens type of the key frame is a currently detected lens type comprising:
determining whether a lens type of the i-th key frame is the j-th lens type through a function ƒj(i),, f
       j
      
      (
      i
      )
     
     =
     
      {
      
       
        
         1
        
        
         
          
           
            if
            ⁢
               
            
             S
             i
            
           
           ∈
           
            SSet
            j
           
          
          ❘
          
           
            D
            i
           
           ∈
           
            DSet
            j
           
          
         
        
       
       
        
         0
        
        
         else
        
       
      
     
    
   
   
    
     (
     1
     )
    
   
  
 

wherein in the formula (1), SSetj and DSetj are respectively a set of scene types and a set of target objects for the j-th preset lens type in the preset editing rule, and Si and Di are respectively the scene type and the target object of the i-th key frame; when ƒi(i)=1, the lends type of the i-th key frame is the currently detected lens type; when ƒj(i)=0, the lends type of the i-th key frame is not the currently detected lens type;
determining whether the lens type of the video segment to be edited meets the currently detected lens type of the key frame, wherein the determining whether the lens type of the video segment to be edited meets the currently detected lens type of the key frame comprises: presetting a number of consecutive key frames of the video segment to be edited corresponding to each lens type to t, with t≥3, determining whether the edited video segment meets the currently detected lens type through a function mj(i,t),, m
       j
      
      (
      
       i
       ,
       t
      
      )
     
     =
     
      {
      
       
        
         1
        
        
         
          
           if
           ⁢
              
           
            
             
              f
              j
             
             (
             i
             )
            
            ·
            
             
              f
              j
             
              
             (
             
              i
              +
              1
             
             )
            
            ·
            ⋯
            ·
            
             
              f
              j
             
             (
             
              i
              +
              t
              -
              1
             
             )
            
           
          
          =
          1
         
        
       
       
        
         0
        
        
         else
        
       
      
       
     
    
   
   
    
     (
     2
     )
    
   
  
 

wherein, in the formula (2), mj(i,t)=1 indicates that the lens type of the edited video segment meets the currently detected lens type, and mj(i,t)=0 indicates that the lens type of the edited video segment does not meet the currently detected lens type;
acquiring video segments to be edited, lens types of which meeting the currently detected lens types of the key frames, wherein the acquiring video segments to be edited, lens types of which meeting the currently detected lens types of the key frames comprises: when detecting the j-th lens type, denoting video segments corresponding to the i-th key frame as maskj(i,t), maskj(i,t) representing video segments between beginning time of displaying the i-th key frame and beginning time of displaying the (i+t)-key frame in the video.