chore: Auto update by pre-commit hooks [skip changelog]
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 947 B After Width: | Height: | Size: 924 B |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1019 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -99,7 +99,7 @@ if __name__ == "__main__":
|
||||
elif isinstance(tasks[i]["template"], list):
|
||||
# this is for multi-template:
|
||||
filename = f"{raw_image.stem}/{tasks[i]['template'][0]}"
|
||||
|
||||
|
||||
if "Default" in filename:
|
||||
filename = filename.split("Default")[-1][1:]
|
||||
|
||||
@@ -117,7 +117,7 @@ if __name__ == "__main__":
|
||||
(0, 0, 0),
|
||||
-1,
|
||||
)
|
||||
|
||||
|
||||
print("Saving", dst_path / filename)
|
||||
cv2.imwrite(str(dst_path / filename), cropped)
|
||||
|
||||
|
||||