Skip to content
Snippets Groups Projects
Commit d5e67127 authored by RABijl's avatar RABijl
Browse files

adds labels to ideal crop tests

parent 0ed1fca4
No related branches found
No related tags found
1 merge request!17Add pregrading
Pipeline #18004 failed
......@@ -10,7 +10,7 @@ def add_feedback_to_solution(sub, exam, page, page_img, corner_keypoints):
Adds the multiple choice options that are identified as marked as a feedback option to a solution
Parameters
----------
------
sub : Submission
the current submission
exam : Exam
......@@ -22,11 +22,7 @@ def add_feedback_to_solution(sub, exam, page, page_img, corner_keypoints):
"""
problems_on_page = [problem for problem in exam.problems if problem.widget.page == page]
fixed_corners = fix_corner_markers(corner_keypoints, page_img.shape)
x_min = min(point[0] for point in fixed_corners)
y_min = min(point[1] for point in fixed_corners)
top_left_point = (x_min, y_min)
top_left_point, fixed_corner_keypoints = fix_corner_markers(corner_keypoints, page_img.shape)
for problem in problems_on_page:
sol = Solution.query.filter(Solution.problem_id == problem.id, Solution.submission_id == sub.id).one_or_none()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment