- removed unused import statements
- added macOS specific required library to requirements.txt - conditional import of pygrabber, which is unavailable for macOSpull/615/head
parent
c2cc885672
commit
0d4676591e
|
@ -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
|
||||||
|
|
|
@ -23,4 +23,5 @@ tqdm==4.66.4
|
||||||
gfpgan==1.3.8
|
gfpgan==1.3.8
|
||||||
pyobjc==9.1; sys_platform == 'darwin'
|
pyobjc==9.1; sys_platform == 'darwin'
|
||||||
pygrabber==0.2
|
pygrabber==0.2
|
||||||
pyvirtualcam==0.12.0
|
pyvirtualcam==0.12.0
|
||||||
|
pyobjc-framework-AVFoundation==10.3.1; sys_platform == 'darwin'
|
Loading…
Reference in New Issue