aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTimothy Knight <tknight@google.com>2014-07-25 01:12:46 -0700
committerTimothy Knight <tknight@google.com>2014-07-25 01:13:01 -0700
commit9d33b0db842c1bcaf8f5ab74ecd96b2cea22b5d6 (patch)
tree91ac8febf68c4763630c8bce5a24185ce3ff5e54 /apps
parent89557d1a61a3c92a40d4ffd948d88c3818bf2f2f (diff)
downloadpdk-9d33b0db842c1bcaf8f5ab74ecd96b2cea22b5d6.tar.gz
CameraITS: Added OpenCV to environment
Change-Id: I78797c91315e179a9b42978b148e83b97d021ae4
Diffstat (limited to 'apps')
-rw-r--r--apps/CameraITS/README13
-rw-r--r--apps/CameraITS/build/envsetup.sh4
2 files changed, 15 insertions, 2 deletions
diff --git a/apps/CameraITS/README b/apps/CameraITS/README
index 1f7ae76..c530dc7 100644
--- a/apps/CameraITS/README
+++ b/apps/CameraITS/README
@@ -77,6 +77,19 @@ Note that the Anaconda python executable's directory must be at the front of
your PATH environment variable, assuming that you are using this Python
distribution. The Anaconda installer may set this up for you automatically.
+Some tests require OpenCV to be installed.
+
+(For Ubuntu users)
+
+ sudo apt-get install python2.7-opencv
+
+(For Anaconda users)
+
+ conda install opencv
+
+To verify that OpenCV is installed properly, the "cv2" package should be
+available to be imported from inside the Python interpreter.
+
Once your Python installation is ready, set up the test environment.
2.2.1. Linux + Mac OS X
diff --git a/apps/CameraITS/build/envsetup.sh b/apps/CameraITS/build/envsetup.sh
index 13fb0a6..a258ddb 100644
--- a/apps/CameraITS/build/envsetup.sh
+++ b/apps/CameraITS/build/envsetup.sh
@@ -29,8 +29,8 @@ command -v python >/dev/null 2>&1 || \
python -V 2>&1 | grep -q "Python 2.7" || \
echo ">> Require python 2.7" >&2
-python -c 'import numpy, PIL, Image, matplotlib, pylab' >/dev/null 2>&1 || \
- echo ">> Require scipy stack" >&2
+python -c 'import numpy, PIL, Image, matplotlib, pylab, cv2' >/dev/null 2>&1 || \
+ echo ">> Require numpy+scipy stack" >&2
export PYTHONPATH="$PWD/pymodules:$PYTHONPATH"