Skip to content

Commit 3cc7fc1

Browse files
Update main.py
1 parent 3958ddd commit 3cc7fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ndlkotenocr-lite-gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def pick_directory_result(e: ft.FilePickerResultEvent):
261261
for inputname in os.listdir(e.path):
262262
inputpath=os.path.join(e.path,inputname)
263263
ext=inputpath.split(".")[-1]
264-
if ext in ["jpg","png","tiff","jp2","tif","jpeg","bmp"] and os.path.isfile(inputpath):
264+
if ext.lower() in ["jpg","png","tiff","jp2","tif","jpeg","bmp"] and os.path.isfile(inputpath):
265265
inputpathlist.append(inputpath)
266266
if selected_output_path.value!=None:
267267
ocr_btn.disabled=False

0 commit comments

Comments
 (0)