Udayraj123 / OMRChecker

Evaluate OMR sheets fast and accurately using a scanner 🖨 or your phone 🤳.
MIT License
784 stars 324 forks source link

[Enhancement] Printing summary texts on Checked OMR images #194

Open Udayraj123 opened 4 months ago

Udayraj123 commented 4 months ago

This issue extends https://github.com/Udayraj123/OMRChecker/issues/156

Provide access to omr response in printing

We can also pass **omr_response in a new format string that can help us print custom_labels etc on the image.

Support custom colors

We can take custom colors and thickness for each summary text in a font object

Support for new lines in the texts

cv2 putText doesn't seem to support newlines by default We can use this answer as a util: https://stackoverflow.com/a/73471951/6242649

Handling custom page_dimensions

using "page_dimensions" in evaluation.json will not work currently because all bubble positions are relative to template.pageDimensions We can use a transformation matrix to map all the field bubbles to the resized page dimensions