Exemple #1
0
def read_image_frame(dir_path):
    paths=utils.get_paths(dir_path,dirs=True)
    images=[]
    for cat,path in enumerate(paths):
	cat_imgs=utils.read_img_dir(path)
        cat_imgs=[standard_image(cat,img) for img in cat_imgs]
        images+=cat_imgs
    return create_img_frame(images)
Exemple #2
0
def read_action(action_path):
    print(action_path)
    action_name=get_action_name(action_path)
    images=utils.read_img_dir(action_path)
    print(len(images))
    return Action(action_name,images)