-
Notifications
You must be signed in to change notification settings - Fork 0
/
Json_to_csv_test.py
41 lines (31 loc) · 2.58 KB
/
Json_to_csv_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import pandas as pd
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_101846_1_1/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR1/Label/IR1.csv', index = None, header=True)
#### 2
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_101846_1_3/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR2/Label/IR2.csv', index = None, header=True)
####### 3
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_101846_1_7/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR3/Label/IR3.csv', index = None, header=True)
####### 4
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_101846_1_8/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR4/Label/IR4.csv', index = None, header=True)
####### 5
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_130434_1_4/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR5/Label/IR5.csv', index = None, header=True)
######## 6
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_130434_1_7/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR6/Label/IR6.csv', index = None, header=True)
####### 7
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_130434_1_9/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR7/Label/IR7.csv', index = None, header=True)
####### 8
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_131530_1_1/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR8/Label/IR8.csv', index = None, header=True)
######## 9
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_131530_1_4/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR9/Label/IR9.csv', index = None, header=True)
####### 10
df = pd.read_json (r'/home/alam/Downloads/Project_7/siamfc-master/data/test-dev/20190925_131530_1_5/IR_label.json')
export_csv = df.to_csv (r'/home/alam/Downloads/Project_7/siamfc-master/data/VideosIRTest/IR10/Label/IR10.csv', index = None, header=True)
#