Created starter files for the project.
This commit is contained in:
commit
73f0c0db42
1992 changed files with 769897 additions and 0 deletions
33
venv/Lib/site-packages/cv2/__init__.py
Normal file
33
venv/Lib/site-packages/cv2/__init__.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
import importlib
|
||||
import os
|
||||
import sys
|
||||
|
||||
from .cv2 import *
|
||||
from .data import *
|
||||
|
||||
# wildcard import above does not import "private" variables like __version__
|
||||
# this makes them available
|
||||
globals().update(importlib.import_module("cv2.cv2").__dict__)
|
||||
|
||||
ci_and_not_headless = False
|
||||
|
||||
try:
|
||||
from .version import ci_build, headless
|
||||
|
||||
ci_and_not_headless = ci_build and not headless
|
||||
except:
|
||||
pass
|
||||
|
||||
# the Qt plugin is included currently only in the pre-built wheels
|
||||
if (
|
||||
sys.platform == "darwin" or sys.platform.startswith("linux")
|
||||
) and ci_and_not_headless:
|
||||
os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)), "qt", "plugins"
|
||||
)
|
||||
|
||||
# Qt will throw warning on Linux if fonts are not found
|
||||
if sys.platform.startswith("linux") and ci_and_not_headless:
|
||||
os.environ["QT_QPA_FONTDIR"] = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue