mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
19 lines
401 B
Python
19 lines
401 B
Python
import ctypes
|
|
|
|
# try to open the opencv libs
|
|
# raise an exception if the libs are not found
|
|
|
|
# linux
|
|
try:
|
|
ctypes.CDLL('libcv.so')
|
|
except:
|
|
# windows
|
|
try:
|
|
ctypes.CDLL('cv.dll')
|
|
except:
|
|
raise RuntimeError('The opencv libraries were not found. Please make sure they are installed and available on the system path.')
|
|
|
|
from opencv_constants import *
|
|
from opencv_cv import *
|
|
|