File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 14
14
Field .LAST_NAME : "Last Name" ,
15
15
Field .FIRST_NAME : "First Name" ,
16
16
Field .MIDDLE_NAME : "Middle Name" ,
17
+ Field .TEST_FORM_CODE : "Test Form Code" ,
17
18
Field .STUDENT_ID : "Student ID" ,
18
19
Field .COURSE_ID : "Course ID" ,
19
- Field .TEST_FORM_CODE : "Test Form Code" ,
20
20
VirtualField .SCORE : "Total Score (%)" ,
21
21
VirtualField .POINTS : "Total Points"
22
22
}
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ class Field(enum.Enum):
15
15
LAST_NAME = enum .auto ()
16
16
FIRST_NAME = enum .auto ()
17
17
MIDDLE_NAME = enum .auto ()
18
+ TEST_FORM_CODE = enum .auto ()
18
19
STUDENT_ID = enum .auto ()
19
20
COURSE_ID = enum .auto ()
20
- TEST_FORM_CODE = enum .auto ()
21
21
22
22
23
23
class VirtualField (enum .Enum ):
Original file line number Diff line number Diff line change 63
63
# Dilates the image - removes black pixels from edges, which preserves
64
64
# solid shapes while destroying nonsolid ones. By doing this after noise
65
65
# removal and thresholding, it eliminates irregular things like W and M
66
- morphed_image = image_utils .dilate (prepared_image , save_path = debug_path )
66
+ morphed_image = image_utils .dilate (prepared_image ,
67
+ save_path = debug_path )
67
68
68
69
# Establish a grid
69
70
grid = grid_r .Grid (corners ,
102
103
answers_results .add (field_data , answers )
103
104
progress .step_progress ()
104
105
105
- answers_results .clean_up ("G" if empty_answers_as_g else "" )
106
+ answers_results .clean_up (
107
+ replace_empty_with = "G" if empty_answers_as_g else "" )
106
108
answers_results .save (output_folder ,
107
109
"results" ,
108
110
sort_results ,
You can’t perform that action at this time.
0 commit comments