diff --git a/traffic_analyzer/ambulance_detect.py b/traffic_analyzer/ambulance_detect.py index 05744f1..3e6e237 100644 --- a/traffic_analyzer/ambulance_detect.py +++ b/traffic_analyzer/ambulance_detect.py @@ -143,9 +143,9 @@ cut = [115, 100, 400, 150] cut_send = [0, 0, 0, 0] img_counter = 0 socket_switch = True -dont_send = False -#cam = cv2.VideoCapture(0) -cam = cv2.VideoCapture('amb_1.mp4') +dont_send = True +cam = cv2.VideoCapture(0) +#cam = cv2.VideoCapture('amb_1.mp4') thread = threading.Thread(target=listener) thread.start() with detection_graph.as_default(): @@ -153,13 +153,16 @@ with detection_graph.as_default(): switch = 0 get_temps() amb_center = {'x': (400 + 550)/2, 'y': (115+215)/2} -a = 1 +a = 0 # frame_data = [] -while 1: - a += 1 - ret, image = cam.read() - if a % 10 != 0: +#while 1: +# ret, image = cam.read() +for i in os.listdir('images/'): + if not i.endswith('.jpg'): continue + image = cv2.imread('images/' + i) + a += 1 + cv2.imwrite(f'images/{a}.png', image) try: # Kavşak t1 = time.time() image_np = image @@ -197,6 +200,8 @@ while 1: for i in out_dict['detection_boxes']: (left, right, top, bottom) = (i[1] * width, i[3] * width, i[0] * height, i[2] * height) + with open(f'images/{a}_coordinates.txt', 'a') as f: + f.write(','.join(map(int, [left, right, top, bottom]))) if abs(((left + right)/2) - amb_center['x']) < 15 and abs(((top + bottom)/2) - amb_center['y']) < 15: print('Ambulance found!') diff --git a/traffic_analyzer/images/ambulance/close_high-0(1).jpg b/traffic_analyzer/images/ambulance/close_high-0(1).jpg new file mode 100644 index 0000000..4709ea7 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-0(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-0(2).jpg b/traffic_analyzer/images/ambulance/close_high-0(2).jpg new file mode 100644 index 0000000..c2bee6a Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-0(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-120(1).jpg b/traffic_analyzer/images/ambulance/close_high-120(1).jpg new file mode 100644 index 0000000..d3c91db Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-120(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-120(2).jpg b/traffic_analyzer/images/ambulance/close_high-120(2).jpg new file mode 100644 index 0000000..3ba9eec Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-120(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-150(1).jpg b/traffic_analyzer/images/ambulance/close_high-150(1).jpg new file mode 100644 index 0000000..20f2a56 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-150(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-150(2).jpg b/traffic_analyzer/images/ambulance/close_high-150(2).jpg new file mode 100644 index 0000000..e05e33d Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-150(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-180(1).jpg b/traffic_analyzer/images/ambulance/close_high-180(1).jpg new file mode 100644 index 0000000..7a389a0 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-180(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-180(2).jpg b/traffic_analyzer/images/ambulance/close_high-180(2).jpg new file mode 100644 index 0000000..38311eb Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-180(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-210(1).jpg b/traffic_analyzer/images/ambulance/close_high-210(1).jpg new file mode 100644 index 0000000..227eda0 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-210(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-210(2).jpg b/traffic_analyzer/images/ambulance/close_high-210(2).jpg new file mode 100644 index 0000000..71a8ce0 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-210(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-240(1).jpg b/traffic_analyzer/images/ambulance/close_high-240(1).jpg new file mode 100644 index 0000000..8d4c6cc Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-240(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-240(2).jpg b/traffic_analyzer/images/ambulance/close_high-240(2).jpg new file mode 100644 index 0000000..470ac5d Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-240(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-270(1).jpg b/traffic_analyzer/images/ambulance/close_high-270(1).jpg new file mode 100644 index 0000000..7a3bcb8 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-270(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-270(2).jpg b/traffic_analyzer/images/ambulance/close_high-270(2).jpg new file mode 100644 index 0000000..c2070ff Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-270(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-30(1).jpg b/traffic_analyzer/images/ambulance/close_high-30(1).jpg new file mode 100644 index 0000000..8add822 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-30(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-30(2).jpg b/traffic_analyzer/images/ambulance/close_high-30(2).jpg new file mode 100644 index 0000000..e92caf5 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-30(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-300(1).jpg b/traffic_analyzer/images/ambulance/close_high-300(1).jpg new file mode 100644 index 0000000..edb8aa8 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-300(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-300(2).jpg b/traffic_analyzer/images/ambulance/close_high-300(2).jpg new file mode 100644 index 0000000..c8817c1 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-300(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-330(1).jpg b/traffic_analyzer/images/ambulance/close_high-330(1).jpg new file mode 100644 index 0000000..daee4d1 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-330(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-330(2).jpg b/traffic_analyzer/images/ambulance/close_high-330(2).jpg new file mode 100644 index 0000000..d5ae0fa Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-330(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-360(1).jpg b/traffic_analyzer/images/ambulance/close_high-360(1).jpg new file mode 100644 index 0000000..e6772c5 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-360(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-360(2).jpg b/traffic_analyzer/images/ambulance/close_high-360(2).jpg new file mode 100644 index 0000000..a84601b Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-360(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-60(1).jpg b/traffic_analyzer/images/ambulance/close_high-60(1).jpg new file mode 100644 index 0000000..8993930 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-60(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-60(2).jpg b/traffic_analyzer/images/ambulance/close_high-60(2).jpg new file mode 100644 index 0000000..171c1fd Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-60(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-90(1).jpg b/traffic_analyzer/images/ambulance/close_high-90(1).jpg new file mode 100644 index 0000000..bffe41b Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-90(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_high-90(2).jpg b/traffic_analyzer/images/ambulance/close_high-90(2).jpg new file mode 100644 index 0000000..13dd0ae Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_high-90(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-0(1).jpg b/traffic_analyzer/images/ambulance/close_low-0(1).jpg new file mode 100644 index 0000000..c04d8af Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-0(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-0(2).jpg b/traffic_analyzer/images/ambulance/close_low-0(2).jpg new file mode 100644 index 0000000..1b8fe11 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-0(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-120(1).jpg b/traffic_analyzer/images/ambulance/close_low-120(1).jpg new file mode 100644 index 0000000..ee010c5 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-120(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-120(2).jpg b/traffic_analyzer/images/ambulance/close_low-120(2).jpg new file mode 100644 index 0000000..20ac130 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-120(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-150(1).jpg b/traffic_analyzer/images/ambulance/close_low-150(1).jpg new file mode 100644 index 0000000..b1d07a3 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-150(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-150(2).jpg b/traffic_analyzer/images/ambulance/close_low-150(2).jpg new file mode 100644 index 0000000..f8bab82 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-150(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-180(1).jpg b/traffic_analyzer/images/ambulance/close_low-180(1).jpg new file mode 100644 index 0000000..521af36 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-180(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-180(2).jpg b/traffic_analyzer/images/ambulance/close_low-180(2).jpg new file mode 100644 index 0000000..efcb813 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-180(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-210(1).jpg b/traffic_analyzer/images/ambulance/close_low-210(1).jpg new file mode 100644 index 0000000..9d9cc86 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-210(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-210(2).jpg b/traffic_analyzer/images/ambulance/close_low-210(2).jpg new file mode 100644 index 0000000..b85dc4a Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-210(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-240(1).jpg b/traffic_analyzer/images/ambulance/close_low-240(1).jpg new file mode 100644 index 0000000..86c68ff Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-240(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-240(2).jpg b/traffic_analyzer/images/ambulance/close_low-240(2).jpg new file mode 100644 index 0000000..8cf274d Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-240(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-270(1).jpg b/traffic_analyzer/images/ambulance/close_low-270(1).jpg new file mode 100644 index 0000000..cb6f497 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-270(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-270(2).jpg b/traffic_analyzer/images/ambulance/close_low-270(2).jpg new file mode 100644 index 0000000..5d4c4c8 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-270(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-30(1).jpg b/traffic_analyzer/images/ambulance/close_low-30(1).jpg new file mode 100644 index 0000000..1af1fd6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-30(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-30(2).jpg b/traffic_analyzer/images/ambulance/close_low-30(2).jpg new file mode 100644 index 0000000..7ce3bfc Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-30(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-300(1).jpg b/traffic_analyzer/images/ambulance/close_low-300(1).jpg new file mode 100644 index 0000000..89d77d6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-300(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-300(2).jpg b/traffic_analyzer/images/ambulance/close_low-300(2).jpg new file mode 100644 index 0000000..85fadf6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-300(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-330(1).jpg b/traffic_analyzer/images/ambulance/close_low-330(1).jpg new file mode 100644 index 0000000..370a8b5 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-330(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-330(2).jpg b/traffic_analyzer/images/ambulance/close_low-330(2).jpg new file mode 100644 index 0000000..b869604 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-330(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-360(1).jpg b/traffic_analyzer/images/ambulance/close_low-360(1).jpg new file mode 100644 index 0000000..28de41d Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-360(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-360(2).jpg b/traffic_analyzer/images/ambulance/close_low-360(2).jpg new file mode 100644 index 0000000..bb23f11 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-360(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-60(1).jpg b/traffic_analyzer/images/ambulance/close_low-60(1).jpg new file mode 100644 index 0000000..d171c6a Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-60(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-60(2).jpg b/traffic_analyzer/images/ambulance/close_low-60(2).jpg new file mode 100644 index 0000000..128945c Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-60(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-90(1).jpg b/traffic_analyzer/images/ambulance/close_low-90(1).jpg new file mode 100644 index 0000000..a052919 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-90(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/close_low-90(2).jpg b/traffic_analyzer/images/ambulance/close_low-90(2).jpg new file mode 100644 index 0000000..17eaf98 Binary files /dev/null and b/traffic_analyzer/images/ambulance/close_low-90(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-0(1).jpg b/traffic_analyzer/images/ambulance/far_high-0(1).jpg new file mode 100644 index 0000000..72405a6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-0(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-0(2).jpg b/traffic_analyzer/images/ambulance/far_high-0(2).jpg new file mode 100644 index 0000000..1671ab2 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-0(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-120(1).jpg b/traffic_analyzer/images/ambulance/far_high-120(1).jpg new file mode 100644 index 0000000..b1d9bc1 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-120(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-120(2).jpg b/traffic_analyzer/images/ambulance/far_high-120(2).jpg new file mode 100644 index 0000000..a838dc8 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-120(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-150(1).jpg b/traffic_analyzer/images/ambulance/far_high-150(1).jpg new file mode 100644 index 0000000..38aae97 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-150(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-150(2).jpg b/traffic_analyzer/images/ambulance/far_high-150(2).jpg new file mode 100644 index 0000000..f3d4654 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-150(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-180(1).jpg b/traffic_analyzer/images/ambulance/far_high-180(1).jpg new file mode 100644 index 0000000..e58245d Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-180(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-180(2).jpg b/traffic_analyzer/images/ambulance/far_high-180(2).jpg new file mode 100644 index 0000000..45dfd9f Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-180(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-210(1).jpg b/traffic_analyzer/images/ambulance/far_high-210(1).jpg new file mode 100644 index 0000000..6b8625c Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-210(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-210(2).jpg b/traffic_analyzer/images/ambulance/far_high-210(2).jpg new file mode 100644 index 0000000..4f4f0d9 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-210(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-240(1).jpg b/traffic_analyzer/images/ambulance/far_high-240(1).jpg new file mode 100644 index 0000000..9916922 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-240(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-240(2).jpg b/traffic_analyzer/images/ambulance/far_high-240(2).jpg new file mode 100644 index 0000000..db9e7a3 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-240(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-270(1).jpg b/traffic_analyzer/images/ambulance/far_high-270(1).jpg new file mode 100644 index 0000000..b9dc73a Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-270(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-270(2).jpg b/traffic_analyzer/images/ambulance/far_high-270(2).jpg new file mode 100644 index 0000000..fee847a Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-270(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-30(1).jpg b/traffic_analyzer/images/ambulance/far_high-30(1).jpg new file mode 100644 index 0000000..2030c8f Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-30(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-30(2).jpg b/traffic_analyzer/images/ambulance/far_high-30(2).jpg new file mode 100644 index 0000000..120451e Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-30(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-300(1).jpg b/traffic_analyzer/images/ambulance/far_high-300(1).jpg new file mode 100644 index 0000000..fff6152 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-300(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-300(2).jpg b/traffic_analyzer/images/ambulance/far_high-300(2).jpg new file mode 100644 index 0000000..f3a42e8 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-300(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-330(1).jpg b/traffic_analyzer/images/ambulance/far_high-330(1).jpg new file mode 100644 index 0000000..3bd99dc Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-330(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-330(2).jpg b/traffic_analyzer/images/ambulance/far_high-330(2).jpg new file mode 100644 index 0000000..1e2672d Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-330(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-360(1).jpg b/traffic_analyzer/images/ambulance/far_high-360(1).jpg new file mode 100644 index 0000000..da29d49 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-360(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-360(2).jpg b/traffic_analyzer/images/ambulance/far_high-360(2).jpg new file mode 100644 index 0000000..993fddb Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-360(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-60(1).jpg b/traffic_analyzer/images/ambulance/far_high-60(1).jpg new file mode 100644 index 0000000..429cc85 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-60(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-60(2).jpg b/traffic_analyzer/images/ambulance/far_high-60(2).jpg new file mode 100644 index 0000000..d94c3fc Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-60(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-90(1).jpg b/traffic_analyzer/images/ambulance/far_high-90(1).jpg new file mode 100644 index 0000000..c849186 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-90(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_high-90(2).jpg b/traffic_analyzer/images/ambulance/far_high-90(2).jpg new file mode 100644 index 0000000..3368371 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_high-90(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-0(1).jpg b/traffic_analyzer/images/ambulance/far_low-0(1).jpg new file mode 100644 index 0000000..f73781d Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-0(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-0(2).jpg b/traffic_analyzer/images/ambulance/far_low-0(2).jpg new file mode 100644 index 0000000..18c0c55 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-0(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-120(1).jpg b/traffic_analyzer/images/ambulance/far_low-120(1).jpg new file mode 100644 index 0000000..966e9bc Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-120(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-120(2).jpg b/traffic_analyzer/images/ambulance/far_low-120(2).jpg new file mode 100644 index 0000000..e7151e7 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-120(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-150(1).jpg b/traffic_analyzer/images/ambulance/far_low-150(1).jpg new file mode 100644 index 0000000..a763348 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-150(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-150(2).jpg b/traffic_analyzer/images/ambulance/far_low-150(2).jpg new file mode 100644 index 0000000..2259df7 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-150(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-180(1).jpg b/traffic_analyzer/images/ambulance/far_low-180(1).jpg new file mode 100644 index 0000000..c32959c Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-180(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-180(2).jpg b/traffic_analyzer/images/ambulance/far_low-180(2).jpg new file mode 100644 index 0000000..d361dfe Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-180(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-210(1).jpg b/traffic_analyzer/images/ambulance/far_low-210(1).jpg new file mode 100644 index 0000000..d83df17 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-210(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-210(2).jpg b/traffic_analyzer/images/ambulance/far_low-210(2).jpg new file mode 100644 index 0000000..2c0ff3d Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-210(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-240(1).jpg b/traffic_analyzer/images/ambulance/far_low-240(1).jpg new file mode 100644 index 0000000..a4137d6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-240(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-240(2).jpg b/traffic_analyzer/images/ambulance/far_low-240(2).jpg new file mode 100644 index 0000000..4a8f11f Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-240(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-270(1).jpg b/traffic_analyzer/images/ambulance/far_low-270(1).jpg new file mode 100644 index 0000000..912bebf Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-270(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-270(2).jpg b/traffic_analyzer/images/ambulance/far_low-270(2).jpg new file mode 100644 index 0000000..e45d03b Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-270(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-30(1).jpg b/traffic_analyzer/images/ambulance/far_low-30(1).jpg new file mode 100644 index 0000000..6650323 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-30(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-30(2).jpg b/traffic_analyzer/images/ambulance/far_low-30(2).jpg new file mode 100644 index 0000000..6509638 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-30(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-300(1).jpg b/traffic_analyzer/images/ambulance/far_low-300(1).jpg new file mode 100644 index 0000000..4e15c45 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-300(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-300(2).jpg b/traffic_analyzer/images/ambulance/far_low-300(2).jpg new file mode 100644 index 0000000..2a2f39f Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-300(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-330(1).jpg b/traffic_analyzer/images/ambulance/far_low-330(1).jpg new file mode 100644 index 0000000..62f6fc6 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-330(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-330(2).jpg b/traffic_analyzer/images/ambulance/far_low-330(2).jpg new file mode 100644 index 0000000..09ba204 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-330(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-360(1).jpg b/traffic_analyzer/images/ambulance/far_low-360(1).jpg new file mode 100644 index 0000000..ca3c45c Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-360(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-360(2).jpg b/traffic_analyzer/images/ambulance/far_low-360(2).jpg new file mode 100644 index 0000000..989dc00 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-360(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-60(1).jpg b/traffic_analyzer/images/ambulance/far_low-60(1).jpg new file mode 100644 index 0000000..f818853 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-60(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-60(2).jpg b/traffic_analyzer/images/ambulance/far_low-60(2).jpg new file mode 100644 index 0000000..9d52eb2 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-60(2).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-90(1).jpg b/traffic_analyzer/images/ambulance/far_low-90(1).jpg new file mode 100644 index 0000000..23d7800 Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-90(1).jpg differ diff --git a/traffic_analyzer/images/ambulance/far_low-90(2).jpg b/traffic_analyzer/images/ambulance/far_low-90(2).jpg new file mode 100644 index 0000000..9ebd2fa Binary files /dev/null and b/traffic_analyzer/images/ambulance/far_low-90(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-0(1).jpg b/traffic_analyzer/images/car1/close_high-0(1).jpg new file mode 100644 index 0000000..be8129b Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-0(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-0(2).jpg b/traffic_analyzer/images/car1/close_high-0(2).jpg new file mode 100644 index 0000000..91aad39 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-0(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-120(1).jpg b/traffic_analyzer/images/car1/close_high-120(1).jpg new file mode 100644 index 0000000..30c5e3d Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-120(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-120(2).jpg b/traffic_analyzer/images/car1/close_high-120(2).jpg new file mode 100644 index 0000000..be93eb0 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-120(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-150(1).jpg b/traffic_analyzer/images/car1/close_high-150(1).jpg new file mode 100644 index 0000000..0455c6f Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-150(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-150(2).jpg b/traffic_analyzer/images/car1/close_high-150(2).jpg new file mode 100644 index 0000000..6149677 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-150(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-180(1).jpg b/traffic_analyzer/images/car1/close_high-180(1).jpg new file mode 100644 index 0000000..30eb15b Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-180(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-180(2).jpg b/traffic_analyzer/images/car1/close_high-180(2).jpg new file mode 100644 index 0000000..9628e0d Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-180(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-210(1).jpg b/traffic_analyzer/images/car1/close_high-210(1).jpg new file mode 100644 index 0000000..9cbea17 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-210(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-210(2).jpg b/traffic_analyzer/images/car1/close_high-210(2).jpg new file mode 100644 index 0000000..2f56d88 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-210(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-240(1).jpg b/traffic_analyzer/images/car1/close_high-240(1).jpg new file mode 100644 index 0000000..41dd52c Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-240(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-240(2).jpg b/traffic_analyzer/images/car1/close_high-240(2).jpg new file mode 100644 index 0000000..49b56ce Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-240(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-270(1).jpg b/traffic_analyzer/images/car1/close_high-270(1).jpg new file mode 100644 index 0000000..09c7243 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-270(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-270(2).jpg b/traffic_analyzer/images/car1/close_high-270(2).jpg new file mode 100644 index 0000000..f5df382 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-270(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-30(1).jpg b/traffic_analyzer/images/car1/close_high-30(1).jpg new file mode 100644 index 0000000..f4db202 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-30(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-30(2).jpg b/traffic_analyzer/images/car1/close_high-30(2).jpg new file mode 100644 index 0000000..6f343f5 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-30(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-300(1).jpg b/traffic_analyzer/images/car1/close_high-300(1).jpg new file mode 100644 index 0000000..88cc962 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-300(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-300(2).jpg b/traffic_analyzer/images/car1/close_high-300(2).jpg new file mode 100644 index 0000000..a646f65 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-300(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-330(1).jpg b/traffic_analyzer/images/car1/close_high-330(1).jpg new file mode 100644 index 0000000..5753e73 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-330(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-330(2).jpg b/traffic_analyzer/images/car1/close_high-330(2).jpg new file mode 100644 index 0000000..5614085 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-330(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-360(1).jpg b/traffic_analyzer/images/car1/close_high-360(1).jpg new file mode 100644 index 0000000..efa2bc7 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-360(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-360(2).jpg b/traffic_analyzer/images/car1/close_high-360(2).jpg new file mode 100644 index 0000000..94120ca Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-360(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-60(1).jpg b/traffic_analyzer/images/car1/close_high-60(1).jpg new file mode 100644 index 0000000..84ecf66 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-60(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-60(2).jpg b/traffic_analyzer/images/car1/close_high-60(2).jpg new file mode 100644 index 0000000..917eec5 Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-60(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-90(1).jpg b/traffic_analyzer/images/car1/close_high-90(1).jpg new file mode 100644 index 0000000..a4aa96c Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-90(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_high-90(2).jpg b/traffic_analyzer/images/car1/close_high-90(2).jpg new file mode 100644 index 0000000..ef1fe9f Binary files /dev/null and b/traffic_analyzer/images/car1/close_high-90(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-0(1).jpg b/traffic_analyzer/images/car1/close_low-0(1).jpg new file mode 100644 index 0000000..ae6938a Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-0(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-0(2).jpg b/traffic_analyzer/images/car1/close_low-0(2).jpg new file mode 100644 index 0000000..25227a5 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-0(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-120(1).jpg b/traffic_analyzer/images/car1/close_low-120(1).jpg new file mode 100644 index 0000000..d8ec891 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-120(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-120(2).jpg b/traffic_analyzer/images/car1/close_low-120(2).jpg new file mode 100644 index 0000000..9eb3932 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-120(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-150(1).jpg b/traffic_analyzer/images/car1/close_low-150(1).jpg new file mode 100644 index 0000000..d8ec891 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-150(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-150(2).jpg b/traffic_analyzer/images/car1/close_low-150(2).jpg new file mode 100644 index 0000000..d8ec891 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-150(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-180(1).jpg b/traffic_analyzer/images/car1/close_low-180(1).jpg new file mode 100644 index 0000000..f44a3d3 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-180(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-180(2).jpg b/traffic_analyzer/images/car1/close_low-180(2).jpg new file mode 100644 index 0000000..103977a Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-180(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-210(1).jpg b/traffic_analyzer/images/car1/close_low-210(1).jpg new file mode 100644 index 0000000..713e3c8 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-210(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-210(2).jpg b/traffic_analyzer/images/car1/close_low-210(2).jpg new file mode 100644 index 0000000..99de222 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-210(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-240(1).jpg b/traffic_analyzer/images/car1/close_low-240(1).jpg new file mode 100644 index 0000000..6f529e8 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-240(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-240(2).jpg b/traffic_analyzer/images/car1/close_low-240(2).jpg new file mode 100644 index 0000000..4c37929 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-240(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-270(1).jpg b/traffic_analyzer/images/car1/close_low-270(1).jpg new file mode 100644 index 0000000..75ae111 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-270(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-270(2).jpg b/traffic_analyzer/images/car1/close_low-270(2).jpg new file mode 100644 index 0000000..9154eef Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-270(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-30(1).jpg b/traffic_analyzer/images/car1/close_low-30(1).jpg new file mode 100644 index 0000000..8fb220b Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-30(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-30(2).jpg b/traffic_analyzer/images/car1/close_low-30(2).jpg new file mode 100644 index 0000000..e57fc38 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-30(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-300(1).jpg b/traffic_analyzer/images/car1/close_low-300(1).jpg new file mode 100644 index 0000000..92a2260 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-300(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-300(2).jpg b/traffic_analyzer/images/car1/close_low-300(2).jpg new file mode 100644 index 0000000..6b05737 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-300(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-330(1).jpg b/traffic_analyzer/images/car1/close_low-330(1).jpg new file mode 100644 index 0000000..0e2ee68 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-330(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-330(2).jpg b/traffic_analyzer/images/car1/close_low-330(2).jpg new file mode 100644 index 0000000..027107b Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-330(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-360(1).jpg b/traffic_analyzer/images/car1/close_low-360(1).jpg new file mode 100644 index 0000000..a501527 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-360(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-360(2).jpg b/traffic_analyzer/images/car1/close_low-360(2).jpg new file mode 100644 index 0000000..3610f8e Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-360(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-60(1).jpg b/traffic_analyzer/images/car1/close_low-60(1).jpg new file mode 100644 index 0000000..3f1ac8e Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-60(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-60(2).jpg b/traffic_analyzer/images/car1/close_low-60(2).jpg new file mode 100644 index 0000000..d139bd8 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-60(2).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-90(1).jpg b/traffic_analyzer/images/car1/close_low-90(1).jpg new file mode 100644 index 0000000..63ad1ba Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-90(1).jpg differ diff --git a/traffic_analyzer/images/car1/close_low-90(2).jpg b/traffic_analyzer/images/car1/close_low-90(2).jpg new file mode 100644 index 0000000..13b9204 Binary files /dev/null and b/traffic_analyzer/images/car1/close_low-90(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-0(1).jpg b/traffic_analyzer/images/car1/far_high-0(1).jpg new file mode 100644 index 0000000..90b227f Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-0(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-0(2).jpg b/traffic_analyzer/images/car1/far_high-0(2).jpg new file mode 100644 index 0000000..6372468 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-0(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-120(1).jpg b/traffic_analyzer/images/car1/far_high-120(1).jpg new file mode 100644 index 0000000..8fd52c3 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-120(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-120(2).jpg b/traffic_analyzer/images/car1/far_high-120(2).jpg new file mode 100644 index 0000000..71b4310 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-120(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-150(1).jpg b/traffic_analyzer/images/car1/far_high-150(1).jpg new file mode 100644 index 0000000..b13a3ef Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-150(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-150(2).jpg b/traffic_analyzer/images/car1/far_high-150(2).jpg new file mode 100644 index 0000000..6b73b1b Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-150(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-180(1).jpg b/traffic_analyzer/images/car1/far_high-180(1).jpg new file mode 100644 index 0000000..6efd73a Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-180(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-180(2).jpg b/traffic_analyzer/images/car1/far_high-180(2).jpg new file mode 100644 index 0000000..e439d75 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-180(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-210(1).jpg b/traffic_analyzer/images/car1/far_high-210(1).jpg new file mode 100644 index 0000000..329cb8f Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-210(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-210(2).jpg b/traffic_analyzer/images/car1/far_high-210(2).jpg new file mode 100644 index 0000000..0a24ccf Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-210(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-240(1).jpg b/traffic_analyzer/images/car1/far_high-240(1).jpg new file mode 100644 index 0000000..703a584 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-240(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-240(2).jpg b/traffic_analyzer/images/car1/far_high-240(2).jpg new file mode 100644 index 0000000..5b66c0a Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-240(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-270(1).jpg b/traffic_analyzer/images/car1/far_high-270(1).jpg new file mode 100644 index 0000000..ef157ba Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-270(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-270(2).jpg b/traffic_analyzer/images/car1/far_high-270(2).jpg new file mode 100644 index 0000000..2e99ac5 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-270(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-30(1).jpg b/traffic_analyzer/images/car1/far_high-30(1).jpg new file mode 100644 index 0000000..57ad233 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-30(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-30(2).jpg b/traffic_analyzer/images/car1/far_high-30(2).jpg new file mode 100644 index 0000000..51e42dd Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-30(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-300(1).jpg b/traffic_analyzer/images/car1/far_high-300(1).jpg new file mode 100644 index 0000000..82cb3d3 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-300(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-300(2).jpg b/traffic_analyzer/images/car1/far_high-300(2).jpg new file mode 100644 index 0000000..9c544fa Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-300(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-330(1).jpg b/traffic_analyzer/images/car1/far_high-330(1).jpg new file mode 100644 index 0000000..091fe05 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-330(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-330(2).jpg b/traffic_analyzer/images/car1/far_high-330(2).jpg new file mode 100644 index 0000000..f31ee5f Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-330(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-360(1).jpg b/traffic_analyzer/images/car1/far_high-360(1).jpg new file mode 100644 index 0000000..8667520 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-360(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-360(2).jpg b/traffic_analyzer/images/car1/far_high-360(2).jpg new file mode 100644 index 0000000..fb2ba43 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-360(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-60(1).jpg b/traffic_analyzer/images/car1/far_high-60(1).jpg new file mode 100644 index 0000000..e6a4c39 Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-60(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-60(2).jpg b/traffic_analyzer/images/car1/far_high-60(2).jpg new file mode 100644 index 0000000..c2e159f Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-60(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-90(1).jpg b/traffic_analyzer/images/car1/far_high-90(1).jpg new file mode 100644 index 0000000..917379e Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-90(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_high-90(2).jpg b/traffic_analyzer/images/car1/far_high-90(2).jpg new file mode 100644 index 0000000..eafc67b Binary files /dev/null and b/traffic_analyzer/images/car1/far_high-90(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-0(1).jpg b/traffic_analyzer/images/car1/far_low-0(1).jpg new file mode 100644 index 0000000..bf2e874 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-0(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-0(2).jpg b/traffic_analyzer/images/car1/far_low-0(2).jpg new file mode 100644 index 0000000..4b53276 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-0(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-120(1).jpg b/traffic_analyzer/images/car1/far_low-120(1).jpg new file mode 100644 index 0000000..225e061 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-120(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-120(2).jpg b/traffic_analyzer/images/car1/far_low-120(2).jpg new file mode 100644 index 0000000..fdbc014 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-120(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-150(1).jpg b/traffic_analyzer/images/car1/far_low-150(1).jpg new file mode 100644 index 0000000..2ecf8ff Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-150(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-150(2).jpg b/traffic_analyzer/images/car1/far_low-150(2).jpg new file mode 100644 index 0000000..530773d Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-150(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-180(1).jpg b/traffic_analyzer/images/car1/far_low-180(1).jpg new file mode 100644 index 0000000..271f5a2 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-180(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-180(2).jpg b/traffic_analyzer/images/car1/far_low-180(2).jpg new file mode 100644 index 0000000..b59358e Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-180(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-210(1).jpg b/traffic_analyzer/images/car1/far_low-210(1).jpg new file mode 100644 index 0000000..a2b3ff8 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-210(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-210(2).jpg b/traffic_analyzer/images/car1/far_low-210(2).jpg new file mode 100644 index 0000000..bb892ca Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-210(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-240(1).jpg b/traffic_analyzer/images/car1/far_low-240(1).jpg new file mode 100644 index 0000000..a2906d0 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-240(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-240(2).jpg b/traffic_analyzer/images/car1/far_low-240(2).jpg new file mode 100644 index 0000000..8f78d3e Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-240(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-270(1).jpg b/traffic_analyzer/images/car1/far_low-270(1).jpg new file mode 100644 index 0000000..bee2b44 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-270(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-270(2).jpg b/traffic_analyzer/images/car1/far_low-270(2).jpg new file mode 100644 index 0000000..55042de Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-270(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-30(1).jpg b/traffic_analyzer/images/car1/far_low-30(1).jpg new file mode 100644 index 0000000..7f337e7 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-30(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-30(2).jpg b/traffic_analyzer/images/car1/far_low-30(2).jpg new file mode 100644 index 0000000..ba7a1cd Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-30(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-300(1).jpg b/traffic_analyzer/images/car1/far_low-300(1).jpg new file mode 100644 index 0000000..db82107 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-300(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-300(2).jpg b/traffic_analyzer/images/car1/far_low-300(2).jpg new file mode 100644 index 0000000..c6ed165 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-300(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-330(1).jpg b/traffic_analyzer/images/car1/far_low-330(1).jpg new file mode 100644 index 0000000..717f9f7 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-330(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-330(2).jpg b/traffic_analyzer/images/car1/far_low-330(2).jpg new file mode 100644 index 0000000..45ee641 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-330(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-360(1).jpg b/traffic_analyzer/images/car1/far_low-360(1).jpg new file mode 100644 index 0000000..6aad585 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-360(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-360(2).jpg b/traffic_analyzer/images/car1/far_low-360(2).jpg new file mode 100644 index 0000000..f2fa2f4 Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-360(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-60(1).jpg b/traffic_analyzer/images/car1/far_low-60(1).jpg new file mode 100644 index 0000000..229b79a Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-60(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-60(2).jpg b/traffic_analyzer/images/car1/far_low-60(2).jpg new file mode 100644 index 0000000..ad9244a Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-60(2).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-90(1).jpg b/traffic_analyzer/images/car1/far_low-90(1).jpg new file mode 100644 index 0000000..c7324aa Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-90(1).jpg differ diff --git a/traffic_analyzer/images/car1/far_low-90(2).jpg b/traffic_analyzer/images/car1/far_low-90(2).jpg new file mode 100644 index 0000000..20d9f3e Binary files /dev/null and b/traffic_analyzer/images/car1/far_low-90(2).jpg differ diff --git a/traffic_analyzer/train_image_taker.py b/traffic_analyzer/train_image_taker.py new file mode 100644 index 0000000..97e498c --- /dev/null +++ b/traffic_analyzer/train_image_taker.py @@ -0,0 +1,66 @@ +import cv2 +import time +import os +import numpy as np + +vehicles = ["ambulance", "car1"] +sides = [str(x) for x in range(0,361,30)] +distances =["close_high","far_high","close_low","far_low"] +cam_no = 0 +while 1: + cam = cv2.VideoCapture(cam_no) + if not (cam is None or not cam.isOpened()): + break + cam_no+=1 + +def take_image(): + for vehicle in vehicles: + if vehicle == "ambulance": + continue + if not os.path.exists("images\\"+vehicle): + os.makedirs("images\\"+vehicle) + for distance in distances: + for side in sides: + for i in range(1,3): + ret,img= cam.read() + cv2.imwrite("images\\{}\\{}-{}({}).jpg".format(vehicle,distance,side,i),img) + cv2.imshow("current",img) + ex_c = [27, ord("q"), ord("Q")] + if cv2.waitKey(1) & 0xFF in ex_c: + break + print("Took side {}:distance:{}, waiting 7 seconds".format(side,distance)) + time.sleep(7) + print("Finished distance:"+distance) + while not cv2.waitKey(1) & 0xFF in ex_c: + ret,img= cam.read() + cv2.imshow("current",img) + print("Finished vehicle:"+vehicle) + while not cv2.waitKey(1) & 0xFF in ex_c: + ret,img= cam.read() + cv2.imshow("current",img) + + + +def cut_image(): + + for vehicle in vehicles: + images = [] + image_main = None + if not os.path.exists("images\\"+vehicle): + os.makedirs("images\\"+vehicle) + for distance in distances: + for side in sides: + for i in range(1,3): + img = cv2.imread("images\\{}\\{}-{}({}).jpg".format(vehicle,distance,side,i)) + images.append(img) + image_main = np.zeros_like(images[0]) + sums = np.array(image_main, dtype='int64') + for i in range(len(images)): + sums += np.array(images[i],dtype='int64') + image_main = np.array(sums/(len(images)+1)).astype(uint8) + cv2.imshow("a",image_main) + cv2.waitKey(0) + +cut_image() + +