Example #1
0
def run__erase_lines_in_image():

    img_path = 'test_videos/census-1.jpg'
    img_prefix = ''
    imgs, filenames = hp.hp_imread_all_images(img_path,
                                              fname_prefix=img_prefix)
    for img in imgs:
        erase_img = erase_lines_in_image(img, pause_img_sec=0)
        hp.hp_imshow(np.hstack((cv2.cvtColor(img,
                                             cv2.COLOR_RGB2GRAY), erase_img)),
                     desc="erase lines")
Example #2
0
def run__derotate():

    img_path = 'test_videos/census-rotate-2.jpeg'

    imgs, filenames = hp.hp_imread_all_images(img_path,
                                              fname_prefix='census-rotate-')
    for img in imgs:
        rot_img = derotate_image(img,
                                 rot_img_fname=None,
                                 check_time_=False,
                                 pause_img_sec=0)
        hp.hp_imshow(np.hstack((img, rot_img)), desc="de-rotation")