advancedskrald/utils.py

8 lines
168 B
Python
Raw Normal View History

2019-04-04 10:59:37 +00:00
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)