|
|
|
@ -34,14 +34,15 @@ from __future__ import print_function
|
|
|
|
|
|
|
|
|
|
import six
|
|
|
|
|
import numpy as np
|
|
|
|
|
# NOTE(minqiyang): this is an ugly fix for the numpy bug reported here
|
|
|
|
|
# FIXME(minqiyang): this is an ugly fix for the numpy bug reported here
|
|
|
|
|
# https://github.com/numpy/numpy/issues/12497
|
|
|
|
|
if six.PY3:
|
|
|
|
|
import subprocess
|
|
|
|
|
import sys
|
|
|
|
|
import_cv2_proc = subprocess.Popen([sys.executable, "-c", "import cv2"],
|
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
|
|
stderr=subprocess.PIPE)
|
|
|
|
|
import_cv2_proc = subprocess.Popen(
|
|
|
|
|
[sys.executable, "-c", "import cv2"],
|
|
|
|
|
stdout=subprocess.PIPE,
|
|
|
|
|
stderr=subprocess.PIPE)
|
|
|
|
|
out, err = import_cv2_proc.communicate()
|
|
|
|
|
retcode = import_cv2_proc.poll()
|
|
|
|
|
if retcode != 0:
|
|
|
|
|