Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Udayraj123 opened this issue Jul 6, 2024 · 4 comments
Open

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

Udayraj123 opened this issue Jul 6, 2024 · 4 comments

Comments

@Udayraj123
Copy link
Owner

This issue extends #156

  • Currently printing score and answers_summary on the final image

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

@Udayraj123 Udayraj123 converted this from a draft issue Jul 6, 2024
@Vishal35198
Copy link

hey can you please assign it to me i will try to solve this...

@Udayraj123
Copy link
Owner Author

Hey @Vishal35198, you can try out the repo's dev branch for this task. We can discuss a basic approach for it in this thread, then I'll assign it to you :)

@Vishal35198
Copy link

Can you please give a brief overview of the problem cause i can't grasp it properly please let me know.

@Udayraj123
Copy link
Owner Author

@Vishal35198 sure, you'll need to checkout the dev branch locally and after installations, check the output of bonus marking answer key sample -

python3 main.py -i samples/3-answer-key/bonus-marking 

In this sample folder we already have a evaluation.json file with current summary texts configured.

The output should look like this -
Image

Now in the scope of this issue:

  • Provide access to omr response in printing i.e. the configuration should support printing omr_response["roll"] or any other keys and values present in omr_response as part of summary texts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants