Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Works on my machine
zesje
Commits
f5db63ff
Commit
f5db63ff
authored
5 years ago
by
RABijl
Browse files
Options
Downloads
Patches
Plain Diff
removes dependency of fix_corner_markers in pregrader.py
parent
a670c284
No related branches found
Branches containing commit
No related tags found
1 merge request
!28
combine precise positioning with pregrading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zesje/pregrader.py
+2
-2
2 additions, 2 deletions
zesje/pregrader.py
with
2 additions
and
2 deletions
zesje/pregrader.py
+
2
−
2
View file @
f5db63ff
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment