|
|
|
@ -6,15 +6,16 @@ from typing import Callable, Tuple, List, Any
|
|
|
|
from types import ModuleType
|
|
|
|
from types import ModuleType
|
|
|
|
import cv2
|
|
|
|
import cv2
|
|
|
|
from PIL import Image, ImageOps
|
|
|
|
from PIL import Image, ImageOps
|
|
|
|
from pygrabber.dshow_graph import FilterGraph
|
|
|
|
|
|
|
|
import pyvirtualcam
|
|
|
|
import pyvirtualcam
|
|
|
|
|
|
|
|
|
|
|
|
# Import OS-specific modules only when necessary
|
|
|
|
# Import OS-specific modules only when necessary
|
|
|
|
if platform.system() == 'Darwin': # macOS
|
|
|
|
if platform.system() == 'Darwin': # macOS
|
|
|
|
import objc
|
|
|
|
|
|
|
|
from Foundation import NSObject
|
|
|
|
|
|
|
|
import AVFoundation
|
|
|
|
import AVFoundation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if os.name == 'nt': # Windows
|
|
|
|
|
|
|
|
from pygrabber.dshow_graph import FilterGraph
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import modules.globals
|
|
|
|
import modules.globals
|
|
|
|
import modules.metadata
|
|
|
|
import modules.metadata
|
|
|
|
from modules.face_analyser import get_one_face
|
|
|
|
from modules.face_analyser import get_one_face
|
|
|
|
|