def getHand(img, hand= 'left'):
    """
    Split the given two-hand image into a single hand image.
        
    :param img:   input RGB image
    :param hand:  'left' - left half of the picture 
                  'right' - right half of the image
        
    """
    rows, cols, channels = img.shape
    new_cols = round(cols/2)

    
    if hand == 'left':
        img_cropped = img[:, 0:new_cols-1,:]
    elif hand == 'right':
        img_cropped = img[:, new_cols:cols-1,:]
    else:
        print('Returning input image')
        img_cropped = img
    
    return img_cropped