提交 23591837 编写于 作者: L Liu Yiqun

Remove the requires of opencv-python.

上级 e4c97e48
...@@ -12,7 +12,7 @@ from paddle.trainer.config_parser import logger ...@@ -12,7 +12,7 @@ from paddle.trainer.config_parser import logger
try: try:
import cv2 import cv2
except ImportError: except ImportError:
logger.warning("OpenCV2 is not installed, using PIL to prcoess") logger.warning("OpenCV2 is not installed, using PIL to process")
cv2 = None cv2 = None
__all__ = ["CvTransformer", "PILTransformer", "MultiProcessImageTransformer"] __all__ = ["CvTransformer", "PILTransformer", "MultiProcessImageTransformer"]
......
...@@ -3,7 +3,10 @@ try: ...@@ -3,7 +3,10 @@ try:
import cv2 import cv2
except: except:
print( print(
"import cv2 error, please install opencv-python: pip install opencv-python" "import cv2 error, please install python wrapper of opencv using:\n"
" pip install opencv-python\n"
" or\n"
" apt-get install python-opencv\n"
) )
__all__ = [ __all__ = [
......
...@@ -19,7 +19,6 @@ setup(name='paddle', ...@@ -19,7 +19,6 @@ setup(name='paddle',
"numpy", "numpy",
"protobuf==${PROTOBUF_VERSION}", "protobuf==${PROTOBUF_VERSION}",
"matplotlib", "matplotlib",
"opencv-python",
"rarfile" "rarfile"
], ],
packages=packages, packages=packages,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册