kopia lustrzana https://github.com/OpenDroneMap/ODM
Hacky fix to make OpenCV dll (cv2.*.pyd) load properly. Fails if imported after PIL.
rodzic
2978d6927a
commit
13af2b0f47
3
run.py
3
run.py
|
@ -6,6 +6,9 @@ if sys.version_info.major < 3:
|
|||
print("Ups! ODM needs to run with Python 3. It seems you launched it with Python 2. Try using: python3 run.py ... ")
|
||||
sys.exit(1)
|
||||
|
||||
# Hack: early import cv2 because PIL init will break DLL loading.
|
||||
import cv2
|
||||
|
||||
import os
|
||||
from opendm import log
|
||||
from opendm import config
|
||||
|
|
Ładowanie…
Reference in New Issue