Commit 81ec3cef authored by Amrita Deb's avatar Amrita Deb
Browse files

Merge branch 'rohlfing_fix_watermark_distance' into 'master'

Fix: Make watermark distance independent of DPI value

See merge request rwthmoodle/exam-scan!30
parents c1d0f3f1 70478205
......@@ -81,8 +81,10 @@ def create_watermark_template(img_file, matnum, dpi):
# Positions of watermarks
x_pos = []
y_pos = []
for y in range(0, height*2, 500):
for x in range(0, width*2, 500):
x_dist = int(2*dpi)
y_dist = int(2*dpi)
for y in range(0, height*2, x_dist):
for x in range(0, width*2, y_dist):
x_pos.append(x)
y_pos.append(y)
......
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