Udayraj123 / OMRChecker

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

[Bug] Unexpected Output(Cropping Issue) in `Template Layout` for the sample `/inputs/AdrianSamples/adrian_omr.png` #104

Closed Abhay04ch closed 1 year ago

Abhay04ch commented 1 year ago

Describe the bug While running the code of the sample example, the command python3 main.py --setLayout should give the cropped template layout automatically. However, the generated template layout is incorrectly cropped.

To Reproduce Steps to reproduce the behavior:

  1. Open (https://github.com/Udayraj123/OMRChecker/wiki/User-Guide) and follow the steps as per the guide.
  2. After creating the file inputs/template.json and adding the given text to it. Run the command python3 main.py --setLayout on the terminal.
  3. Following the above command produces an template layout improperly cropped.

Expected behavior The page should have got cropped automatically and show a basic overlay of the template.

Screenshots

image

Desktop (please complete the following information):

Udayraj123 commented 1 year ago

Able to reproduce the issue. Thanks.

Udayraj123 commented 1 year ago

I think the image in the wiki was compressed too much. I'll update it to a better quality

It works well for an uncompressed image.

image
Udayraj123 commented 1 year ago

Image updated at https://raw.githubusercontent.com/wiki/Udayraj123/OMRChecker/images/AdrianSample/HE/adrian_omr.png