Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ndlocr-lite-gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ def pick_directory_result(e: ft.FilePickerResultEvent):
ext = filename.split(".")[-1].lower()

# 対象の拡張子かチェック
if ext in ["jpg", "png", "tiff", "jp2", "tif", "jpeg", "bmp"]:
if ext in ["jpg", "png", "tiff", "jp2", "tif", "jpeg", "bmp","webp"]:
all_files_to_process.append((full_path, "image"))
elif ext == "pdf":
all_files_to_process.append((full_path, "pdf"))
Expand Down
2 changes: 1 addition & 1 deletion src/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def process(args):

for inputpath in rawinputpathlist:
ext=inputpath.split(".")[-1]
if ext.lower() in ["jpg","png","tiff","jp2","tif","jpeg","bmp"]:
if ext.lower() in ["jpg","png","tiff","jp2","tif","jpeg","bmp","webp"]:
inputpathlist.append(inputpath)
if len(inputpathlist)==0:
print("Images are not found.")
Expand Down