advancedskrald/utils.py
2019-04-04 12:59:37 +02:00

8 lines
168 B
Python

from pathlib import Path
import cv2
def imwrite(*args, **kwargs):
Path(args[0]).parent.mkdir(parents=True, exist_ok=True)
return cv2.imwrite(*args, **kwargs)