Closed anandSTPS closed 1 year ago
Hi @anandSTPS, good catch! I might have missed that as macOS filesystem is case-insensitive. Better if we change the condition to be case-insensitive only
Yes, converting all file extension names to lower or uppercase before processing will do just fine.
@anandSTPS feel free to open a PR for the same then
Closing as fixed in #132
Describe the bug [Bug] OMR input images are processed twice in windows environment. Possibly because windows is case-insensitive.
To Reproduce file to edit src/entry.py (the following edit solves the issue)
import platform
if(platform.system()=="Windows"): exts = (".png", ".jpg", ".jpeg") else: exts = (".png", ".jpg", ".jpeg", ".PNG", ".JPG", "*.JPEG")
Expected behavior OMR input files must be processed only once
Desktop (please complete the following information):