gbeflow/__init__.py
def load_avi_as_array(path):
    '''
    Use `av` module to load each frame from an avi movie
    into a numpy array
    
    Parameters
    ----------
    path : str
        Complete or relative path to avi movie file for import
        
    Returns
    -------
    np.array 
        Array with dimensions frames,x,y
    '''
    
    # Import movie data
    v = av.open(path)
    
    # Initialize list to save each frame
    Larr = []
    
    # Save each frame as an array
    for packet in v.demux():
        for frame in packet.decode():
            Larr.append(np.asarray(frame.to_image()))
            
    # Convert list of arrays to single array
    vimg = np.array(Larr)
    
    return(vimg)

    Use `av` module to load each frame from an avi movie
    into a numpy array
    
    Parameters
    ----------
    path : str
        Complete or relative path to avi movie file for import
        
    Returns
    -------
    np.array 
        Array with dimensions frames,x,y
    
Use `av` module to load each frame from an avi movie
into a numpy array

Parameters

path : str
Complete or relative path to avi movie file for import

Returns

np.array
Array with dimensions frames,x,y
Use ` av ` module to load each frame from an avi movie into a numpy array Parameters path : str Complete or relative path to avi movie file for import Returns np . array Array with dimensions frames x y
def load_avi_as_array(path):
    v = av.open(path)
    Larr = []
    for packet in v.demux():
        for frame in packet.decode():
            Larr.append(np.asarray(frame.to_image()))
    vimg = np.array(Larr)
    return(vimg)
def load_avi_as_array ( path ) : v = av . open ( path ) Larr = [ ] for packet in v . demux ( ) : for frame in packet . decode ( ) : Larr . append ( np . asarray ( frame . to_image ( ) ) ) vimg = np . array ( Larr ) return ( vimg )
Use `av` module to load each frame from an avi movie
into a numpy array
Use ` av ` module to load each frame from an avi movie into a numpy array
'''
    Use `av` module to load each frame from an avi movie
    into a numpy array
    
    Parameters
    ----------
    path : str
        Complete or relative path to avi movie file for import
        
    Returns
    -------
    np.array 
        Array with dimensions frames,x,y
    ''' # Import movie data # Initialize list to save each frame # Save each frame as an array # Convert list of arrays to single array
path