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

removes dependency of fix_corner_markers in pregrader.py

parent a670c284
No related branches found
No related tags found
1 merge request!28combine precise positioning with pregrading
......@@ -2,7 +2,7 @@ import cv2
import numpy as np
from .database import db, Solution
from .images import guess_dpi, get_box, fix_corner_markers
from .images import guess_dpi, get_box
def add_feedback_to_solution(sub, exam, page, page_img):
......@@ -61,7 +61,7 @@ def box_is_filled(box, page_img, threshold=235, cut_padding=0.05, box_size=9):
# add the actually margin from the scan to corner markers to the coords in inches
dpi = guess_dpi(page_img)
# get the box where we think the box is
cut_im = get_box(page_img, coords, padding=cut_padding)
......
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