Commit c852cd7f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Fix left and right annotations being swapped

parent 1fcbba89
This diff is collapsed.
Dev_files/1_1_21_1 21
Dev_files/1_1_22_1 22
Dev_files/1_1_23_1 23
Dev_files/1_1_24_1 24
Dev_files/1_1_25_1 25
Dev_files/1_1_26_1 26
Dev_files/1_1_27_1 27
Dev_files/1_1_28_1 28
Dev_files/1_1_29_1 29
Dev_files/1_1_30_1 30
Dev_files/1_1_31_1 31
Dev_files/1_1_32_1 32
Dev_files/1_1_33_1 33
Dev_files/1_1_34_1 34
Dev_files/1_1_35_1 35
Dev_files/1_2_21_1 21
Dev_files/1_2_22_1 22
Dev_files/1_2_23_1 23
Dev_files/1_2_24_1 24
Dev_files/1_2_25_1 25
Dev_files/1_2_26_1 26
Dev_files/1_2_27_1 27
Dev_files/1_2_28_1 28
Dev_files/1_2_29_1 29
Dev_files/1_2_30_1 30
Dev_files/1_2_31_1 31
Dev_files/1_2_32_1 32
Dev_files/1_2_33_1 33
Dev_files/1_2_34_1 34
Dev_files/1_2_35_1 35
Dev_files/2_1_21_1 21
Dev_files/2_1_22_1 22
Dev_files/2_1_23_1 23
Dev_files/2_1_24_1 24
Dev_files/2_1_25_1 25
Dev_files/2_1_26_1 26
Dev_files/2_1_27_1 27
Dev_files/2_1_28_1 28
Dev_files/2_1_29_1 29
Dev_files/2_1_30_1 30
Dev_files/2_1_31_1 31
Dev_files/2_1_32_1 32
Dev_files/2_1_33_1 33
Dev_files/2_1_34_1 34
Dev_files/2_1_35_1 35
Dev_files/2_2_21_1 21
Dev_files/2_2_22_1 22
Dev_files/2_2_23_1 23
Dev_files/2_2_24_1 24
Dev_files/2_2_25_1 25
Dev_files/2_2_26_1 26
Dev_files/2_2_27_1 27
Dev_files/2_2_28_1 28
Dev_files/2_2_29_1 29
Dev_files/2_2_30_1 30
Dev_files/2_2_31_1 31
Dev_files/2_2_32_1 32
Dev_files/2_2_33_1 33
Dev_files/2_2_34_1 34
Dev_files/2_2_35_1 35
Dev_files/3_1_21_1 21
Dev_files/3_1_22_1 22
Dev_files/3_1_23_1 23
Dev_files/3_1_24_1 24
Dev_files/3_1_25_1 25
Dev_files/3_1_26_1 26
Dev_files/3_1_27_1 27
Dev_files/3_1_28_1 28
Dev_files/3_1_29_1 29
Dev_files/3_1_30_1 30
Dev_files/3_1_31_1 31
Dev_files/3_1_32_1 32
Dev_files/3_1_33_1 33
Dev_files/3_1_34_1 34
Dev_files/3_1_35_1 35
Dev_files/3_2_21_1 21
Dev_files/3_2_22_1 22
Dev_files/3_2_23_1 23
Dev_files/3_2_24_1 24
Dev_files/3_2_25_1 25
Dev_files/3_2_26_1 26
Dev_files/3_2_27_1 27
Dev_files/3_2_28_1 28
Dev_files/3_2_29_1 29
Dev_files/3_2_30_1 30
Dev_files/3_2_31_1 31
Dev_files/3_2_32_1 32
Dev_files/3_2_33_1 33
Dev_files/3_2_34_1 34
Dev_files/3_2_35_1 35
Dev_files/4_1_21_1 21
Dev_files/4_1_22_1 22
Dev_files/4_1_23_1 23
Dev_files/4_1_24_1 24
Dev_files/4_1_25_1 25
Dev_files/4_1_26_1 26
Dev_files/4_1_27_1 27
Dev_files/4_1_28_1 28
Dev_files/4_1_29_1 29
Dev_files/4_1_30_1 30
Dev_files/4_1_31_1 31
Dev_files/4_1_32_1 32
Dev_files/4_1_33_1 33
Dev_files/4_1_34_1 34
Dev_files/4_1_35_1 35
Dev_files/4_2_21_1 21
Dev_files/4_2_22_1 22
Dev_files/4_2_23_1 23
Dev_files/4_2_24_1 24
Dev_files/4_2_25_1 25
Dev_files/4_2_26_1 26
Dev_files/4_2_27_1 27
Dev_files/4_2_28_1 28
Dev_files/4_2_29_1 29
Dev_files/4_2_30_1 30
Dev_files/4_2_31_1 31
Dev_files/4_2_32_1 32
Dev_files/4_2_33_1 33
Dev_files/4_2_34_1 34
Dev_files/4_2_35_1 35
Dev_files/5_1_21_1 21
Dev_files/5_1_22_1 22
Dev_files/5_1_23_1 23
Dev_files/5_1_24_1 24
Dev_files/5_1_25_1 25
Dev_files/5_1_26_1 26
Dev_files/5_1_27_1 27
Dev_files/5_1_28_1 28
Dev_files/5_1_29_1 29
Dev_files/5_1_30_1 30
Dev_files/5_1_31_1 31
Dev_files/5_1_32_1 32
Dev_files/5_1_33_1 33
Dev_files/5_1_34_1 34
Dev_files/5_1_35_1 35
Dev_files/5_2_21_1 21
Dev_files/5_2_22_1 22
Dev_files/5_2_23_1 23
Dev_files/5_2_24_1 24
Dev_files/5_2_25_1 25
Dev_files/5_2_26_1 26
Dev_files/5_2_27_1 27
Dev_files/5_2_28_1 28
Dev_files/5_2_29_1 29
Dev_files/5_2_30_1 30
Dev_files/5_2_31_1 31
Dev_files/5_2_32_1 32
Dev_files/5_2_33_1 33
Dev_files/5_2_34_1 34
Dev_files/5_2_35_1 35
Dev_files/6_1_21_1 21
Dev_files/6_1_22_1 22
Dev_files/6_1_23_1 23
Dev_files/6_1_24_1 24
Dev_files/6_1_25_1 25
Dev_files/6_1_26_1 26
Dev_files/6_1_27_1 27
Dev_files/6_1_28_1 28
Dev_files/6_1_29_1 29
Dev_files/6_1_30_1 30
Dev_files/6_1_31_1 31
Dev_files/6_1_32_1 32
Dev_files/6_1_33_1 33
Dev_files/6_1_34_1 34
Dev_files/6_1_35_1 35
Dev_files/6_2_21_1 21
Dev_files/6_2_22_1 22
Dev_files/6_2_23_1 23
Dev_files/6_2_24_1 24
Dev_files/6_2_25_1 25
Dev_files/6_2_26_1 26
Dev_files/6_2_27_1 27
Dev_files/6_2_28_1 28
Dev_files/6_2_29_1 29
Dev_files/6_2_30_1 30
Dev_files/6_2_31_1 31
Dev_files/6_2_32_1 32
Dev_files/6_2_33_1 33
Dev_files/6_2_34_1 34
Dev_files/6_2_35_1 35
This diff is collapsed.
Test_files/1_3_36_1 36
Test_files/1_3_37_1 37
Test_files/1_3_38_1 38
Test_files/1_3_39_1 39
Test_files/1_3_40_1 40
Test_files/1_3_41_1 41
Test_files/1_3_42_1 42
Test_files/1_3_43_1 43
Test_files/1_3_44_1 44
Test_files/1_3_45_1 45
Test_files/1_3_46_1 46
Test_files/1_3_47_1 47
Test_files/1_3_48_1 48
Test_files/1_3_49_1 49
Test_files/1_3_50_1 50
Test_files/1_3_51_1 51
Test_files/1_3_52_1 52
Test_files/1_3_53_1 53
Test_files/1_3_54_1 54
Test_files/1_3_55_1 55
Test_files/2_3_36_1 36
Test_files/2_3_37_1 37
Test_files/2_3_38_1 38
Test_files/2_3_39_1 39
Test_files/2_3_40_1 40
Test_files/2_3_41_1 41
Test_files/2_3_42_1 42
Test_files/2_3_43_1 43
Test_files/2_3_44_1 44
Test_files/2_3_45_1 45
Test_files/2_3_46_1 46
Test_files/2_3_47_1 47
Test_files/2_3_48_1 48
Test_files/2_3_49_1 49
Test_files/2_3_50_1 50
Test_files/2_3_51_1 51
Test_files/2_3_52_1 52
Test_files/2_3_53_1 53
Test_files/2_3_54_1 54
Test_files/2_3_55_1 55
Test_files/3_3_36_1 36
Test_files/3_3_37_1 37
Test_files/3_3_38_1 38
Test_files/3_3_39_1 39
Test_files/3_3_40_1 40
Test_files/3_3_41_1 41
Test_files/3_3_42_1 42
Test_files/3_3_43_1 43
Test_files/3_3_44_1 44
Test_files/3_3_45_1 45
Test_files/3_3_46_1 46
Test_files/3_3_47_1 47
Test_files/3_3_48_1 48
Test_files/3_3_49_1 49
Test_files/3_3_50_1 50
Test_files/3_3_51_1 51
Test_files/3_3_52_1 52
Test_files/3_3_53_1 53
Test_files/3_3_54_1 54
Test_files/3_3_55_1 55
Test_files/4_3_36_1 36
Test_files/4_3_37_1 37
Test_files/4_3_38_1 38
Test_files/4_3_39_1 39
Test_files/4_3_40_1 40
Test_files/4_3_41_1 41
Test_files/4_3_42_1 42
Test_files/4_3_43_1 43
Test_files/4_3_44_1 44
Test_files/4_3_45_1 45
Test_files/4_3_46_1 46
Test_files/4_3_47_1 47
Test_files/4_3_48_1 48
Test_files/4_3_49_1 49
Test_files/4_3_50_1 50
Test_files/4_3_51_1 51
Test_files/4_3_52_1 52
Test_files/4_3_53_1 53
Test_files/4_3_54_1 54
Test_files/4_3_55_1 55
Test_files/5_3_36_1 36
Test_files/5_3_37_1 37
Test_files/5_3_38_1 38
Test_files/5_3_39_1 39
Test_files/5_3_40_1 40
Test_files/5_3_41_1 41
Test_files/5_3_42_1 42
Test_files/5_3_43_1 43
Test_files/5_3_44_1 44
Test_files/5_3_45_1 45
Test_files/5_3_46_1 46
Test_files/5_3_47_1 47
Test_files/5_3_48_1 48
Test_files/5_3_49_1 49
Test_files/5_3_50_1 50
Test_files/5_3_51_1 51
Test_files/5_3_52_1 52
Test_files/5_3_53_1 53
Test_files/5_3_54_1 54
Test_files/5_3_55_1 55
Test_files/6_3_36_1 36
Test_files/6_3_37_1 37
Test_files/6_3_38_1 38
Test_files/6_3_39_1 39
Test_files/6_3_40_1 40
Test_files/6_3_41_1 41
Test_files/6_3_42_1 42
Test_files/6_3_43_1 43
Test_files/6_3_44_1 44
Test_files/6_3_45_1 45
Test_files/6_3_46_1 46
Test_files/6_3_47_1 47
Test_files/6_3_48_1 48
Test_files/6_3_49_1 49
Test_files/6_3_50_1 50
Test_files/6_3_51_1 51
Test_files/6_3_52_1 52
Test_files/6_3_53_1 53
Test_files/6_3_54_1 54
Test_files/6_3_55_1 55
This diff is collapsed.
Train_files/1_1_01_1 01
Train_files/1_1_02_1 02
Train_files/1_1_03_1 03
Train_files/1_1_04_1 04
Train_files/1_1_05_1 05
Train_files/1_1_06_1 06
Train_files/1_1_07_1 07
Train_files/1_1_08_1 08
Train_files/1_1_09_1 09
Train_files/1_1_10_1 10
Train_files/1_1_11_1 11
Train_files/1_1_12_1 12
Train_files/1_1_13_1 13
Train_files/1_1_14_1 14
Train_files/1_1_15_1 15
Train_files/1_1_16_1 16
Train_files/1_1_17_1 17
Train_files/1_1_18_1 18
Train_files/1_1_19_1 19
Train_files/1_1_20_1 20
Train_files/2_1_01_1 01
Train_files/2_1_02_1 02
Train_files/2_1_03_1 03
Train_files/2_1_04_1 04
Train_files/2_1_05_1 05
Train_files/2_1_06_1 06
Train_files/2_1_07_1 07
Train_files/2_1_08_1 08
Train_files/2_1_09_1 09
Train_files/2_1_10_1 10
Train_files/2_1_11_1 11
Train_files/2_1_12_1 12
Train_files/2_1_13_1 13
Train_files/2_1_14_1 14
Train_files/2_1_15_1 15
Train_files/2_1_16_1 16
Train_files/2_1_17_1 17
Train_files/2_1_18_1 18
Train_files/2_1_19_1 19
Train_files/2_1_20_1 20
Train_files/3_1_01_1 01
Train_files/3_1_02_1 02
Train_files/3_1_03_1 03
Train_files/3_1_04_1 04
Train_files/3_1_05_1 05
Train_files/3_1_06_1 06
Train_files/3_1_07_1 07
Train_files/3_1_08_1 08
Train_files/3_1_09_1 09
Train_files/3_1_10_1 10
Train_files/3_1_11_1 11
Train_files/3_1_12_1 12
Train_files/3_1_13_1 13
Train_files/3_1_14_1 14
Train_files/3_1_15_1 15
Train_files/3_1_16_1 16
Train_files/3_1_17_1 17
Train_files/3_1_18_1 18
Train_files/3_1_19_1 19
Train_files/3_1_20_1 20
Train_files/4_1_01_1 01
Train_files/4_1_02_1 02
Train_files/4_1_03_1 03
Train_files/4_1_04_1 04
Train_files/4_1_05_1 05
Train_files/4_1_06_1 06
Train_files/4_1_07_1 07
Train_files/4_1_08_1 08
Train_files/4_1_09_1 09
Train_files/4_1_10_1 10
Train_files/4_1_11_1 11
Train_files/4_1_12_1 12
Train_files/4_1_13_1 13
Train_files/4_1_14_1 14
Train_files/4_1_15_1 15
Train_files/4_1_16_1 16
Train_files/4_1_17_1 17
Train_files/4_1_18_1 18
Train_files/4_1_19_1 19
Train_files/4_1_20_1 20
Train_files/5_1_01_1 01
Train_files/5_1_02_1 02
Train_files/5_1_03_1 03
Train_files/5_1_04_1 04
Train_files/5_1_05_1 05
Train_files/5_1_06_1 06
Train_files/5_1_07_1 07
Train_files/5_1_08_1 08
Train_files/5_1_09_1 09
Train_files/5_1_10_1 10
Train_files/5_1_11_1 11
Train_files/5_1_12_1 12
Train_files/5_1_13_1 13
Train_files/5_1_14_1 14
Train_files/5_1_15_1 15
Train_files/5_1_16_1 16
Train_files/5_1_17_1 17
Train_files/5_1_18_1 18
Train_files/5_1_19_1 19
Train_files/5_1_20_1 20
Train_files/6_1_01_1 01
Train_files/6_1_02_1 02
Train_files/6_1_03_1 03
Train_files/6_1_04_1 04
Train_files/6_1_05_1 05
Train_files/6_1_06_1 06
Train_files/6_1_07_1 07
Train_files/6_1_08_1 08
Train_files/6_1_09_1 09
Train_files/6_1_10_1 10
Train_files/6_1_11_1 11
Train_files/6_1_12_1 12
Train_files/6_1_13_1 13
Train_files/6_1_14_1 14
Train_files/6_1_15_1 15
Train_files/6_1_16_1 16
Train_files/6_1_17_1 17
Train_files/6_1_18_1 18
Train_files/6_1_19_1 19
Train_files/6_1_20_1 20
...@@ -65,7 +65,7 @@ class File(VideoPadFile): ...@@ -65,7 +65,7 @@ class File(VideoPadFile):
line = line.strip() line = line.strip()
if not line: if not line:
continue continue
num_frame, x_eye_left, y_eye_left, x_eye_right, y_eye_right = \ num_frame, x_eye_right, y_eye_right, x_eye_left, y_eye_left = \
line.split(',') line.split(',')
annotations[num_frame] = { annotations[num_frame] = {
'reye': (int(y_eye_right), int(x_eye_right)), 'reye': (int(y_eye_right), int(x_eye_right)),
......
...@@ -73,3 +73,17 @@ def test_frames(): ...@@ -73,3 +73,17 @@ def test_frames():
" way we can test more features of the database interface.") " way we can test more features of the database interface.")
padfile = db.all_files()[0][0] padfile = db.all_files()[0][0]
assert db.number_of_frames(padfile) == 151, db.number_of_frames(padfile) assert db.number_of_frames(padfile) == 151, db.number_of_frames(padfile)
def test_annotations():
protocol = 'Protocol_1'
db.protocol = protocol
if db.original_directory is None:
raise nose.SkipTest(
"Please configure bob.db.oulunpu (refer to package documentation) "
"to point to the directory where the database's raw data are. This"
" way we can test more features of the database interface.")
padfile = db.all_files()[0][0]
annot = padfile.annotations['0']
# leye x must be higher than reye x to conform to Bob format
assert annot['leye'][1] > annot['reye'][1], annot
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment