Udayraj123 / OMRChecker

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

created a preprocessor Median blur #109

Closed rudrapsc closed 1 year ago

rudrapsc commented 1 year ago

solved the alignment issue in template.json file of sample 6(OMRChecker\samples\sample6\template.json) along with using median blur as a medium for smoothing . created a new preprocessor called MedianBlur (OMRChecker\src\processors\builtins.py).

rudrapsc commented 1 year ago

this is the output before editing the code

Screenshot_20221217_031619

this is the output after editing the code

Screenshot_20221217_031705

rudrapsc commented 1 year ago

I added a plugin class MedianBlur(OMRChecker\src\processors\builtins.py), this plugin uses median blur instead of gaussian blur median blur is an algorithm based library. Here, the central element of the image is replaced by the median of all the pixels in the kernel area. due to this ,the darkened circles appears more clearly and becomes easy to read.

Udayraj123 commented 1 year ago

Looks good! Thanks