This module contains all the code for running our experiments for Tango. To reproduce our results, please run each of the cells in this notebook.

write_json_line_by_line[source]

write_json_line_by_line(data, file_path)

read_csv_to_dic_list[source]

read_csv_to_dic_list(file_path)

read_json[source]

read_json(file_path)

read_json_line_by_line[source]

read_json_line_by_line(file_path)

find_file[source]

find_file(pattern, path)

write_csv_from_json_list[source]

write_csv_from_json_list(data, output_path)

group_dict[source]

group_dict(data, lambda_expr)

load_settings[source]

load_settings(path)

get_grayscale[source]

get_grayscale(image)

remove_noise[source]

remove_noise(image)

thresholding[source]

thresholding(image)

thresholding_med[source]

thresholding_med(image)

dilate[source]

dilate(image)

erode[source]

erode(image)

opening[source]

opening(image)

canny[source]

canny(image)

deskew[source]

deskew(image)

match_template[source]

match_template(image, template)

extract_text[source]

extract_text(img)

preprocess_img[source]

preprocess_img(image)

extract_frames[source]

extract_frames(video_path, out_path, fps)

process_frame[source]

process_frame(frame)

from nbdev.export import notebook2script
notebook2script()