Download clean/video/pwtf_dvd/preprocessing/test_tools/ct/utils.py from deepsafe/model-code: direct link, hf CLI and curl.
- Browser
- Download file 100 Bytes
-
https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/pwtf_dvd/preprocessing/test_tools/ct/utils.py
- Command line
-
hf download hf://deepsafe/model-code/clean/video/pwtf_dvd/preprocessing/test_tools/ct/utils.py
-
curl -L -o utils.py https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/pwtf_dvd/preprocessing/test_tools/ct/utils.py
100 Bytes
| import cv2 | |
| def write_img(file, img): | |
| cv2.imwrite(file, img, [cv2.IMWRITE_PNG_COMPRESSION, 0]) | |