Skip to content

Commit

Permalink
fix: bug causing jpgs to be white when preprocessing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf authored Nov 17, 2024
1 parent 89a7ba9 commit c0dde50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fishsense_lite/commands/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def execute(

output_file.parent.mkdir(parents=True, exist_ok=True)

if format == "jpg":
if format.lower() == "jpg":
img = uint16_2_uint8(img)

cv2.imwrite(output_file.absolute().as_posix(), img)
Expand Down

0 comments on commit c0dde50

Please sign in to comment.