Update utils/utils.py
Browse files- utils/utils.py +3 -1
utils/utils.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
"""
|
| 2 |
Utility classes for BackgroundFX Pro
|
| 3 |
-
Includes FileManager and
|
| 4 |
"""
|
| 5 |
|
| 6 |
# Set OMP_NUM_THREADS at the very beginning of utils module too
|
| 7 |
import os
|
| 8 |
if 'OMP_NUM_THREADS' not in os.environ:
|
| 9 |
os.environ['OMP_NUM_THREADS'] = '4'
|
|
|
|
| 10 |
|
| 11 |
import shutil
|
| 12 |
import tempfile
|
|
@@ -17,6 +18,7 @@
|
|
| 17 |
import subprocess
|
| 18 |
import cv2
|
| 19 |
import numpy as np
|
|
|
|
| 20 |
|
| 21 |
logger = logging.getLogger(__name__)
|
| 22 |
|
|
|
|
| 1 |
"""
|
| 2 |
Utility classes for BackgroundFX Pro
|
| 3 |
+
Includes FileManager, VideoUtils, and ImageUtils
|
| 4 |
"""
|
| 5 |
|
| 6 |
# Set OMP_NUM_THREADS at the very beginning of utils module too
|
| 7 |
import os
|
| 8 |
if 'OMP_NUM_THREADS' not in os.environ:
|
| 9 |
os.environ['OMP_NUM_THREADS'] = '4'
|
| 10 |
+
os.environ['MKL_NUM_THREADS'] = '4'
|
| 11 |
|
| 12 |
import shutil
|
| 13 |
import tempfile
|
|
|
|
| 18 |
import subprocess
|
| 19 |
import cv2
|
| 20 |
import numpy as np
|
| 21 |
+
from PIL import Image, ImageEnhance, ImageFilter
|
| 22 |
|
| 23 |
logger = logging.getLogger(__name__)
|
| 24 |
|