Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit bae4f7e

Browse files
committed
Update for Python 3.6; version-lock scipy notebook
1 parent 88b8315 commit bae4f7e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM jupyter/scipy-notebook
1+
FROM jupyter/scipy-notebook:c54800018c2c
22
MAINTAINER Ian McIntyre <[email protected]>
33

44
# Change me if you want to build with a different version of OpenCV
@@ -35,11 +35,11 @@ WORKDIR $OPENCV_BUILD_DIR
3535
RUN cmake -D CMAKE_BUILD_TYPE=RELEASE \
3636
-D CMAKE_INSTALL_PREFIX=/usr/local \
3737
-D OPENCV_EXTRA_MODULES_PATH=$OPENCV_CONTRIB_GIT_DIR \
38-
-D PYTHON3_EXECUTABLE=/opt/conda/bin/python3.5 \
39-
-D PYTHON3_LIBRARY=/opt/conda/lib/libpython3.5m.so \
40-
-D PYTHON3_INCLUDE_DIR=/opt/conda/include/python3.5m \
41-
-D PYTHON3_NUMPY_INCLUDE_DIRS=/opt/conda/lib/python3.5/site-packages/numpy/core/include \
42-
-D PYTHON3_PACKAGES_PATH=/opt/conda/lib/python3.5/site-packages \
38+
-D PYTHON3_EXECUTABLE=/opt/conda/bin/python3.6 \
39+
-D PYTHON3_LIBRARY=/opt/conda/lib/libpython3.6m.so \
40+
-D PYTHON3_INCLUDE_DIR=/opt/conda/include/python3.6m \
41+
-D PYTHON3_NUMPY_INCLUDE_DIRS=/opt/conda/lib/python3.6/site-packages/numpy/core/include \
42+
-D PYTHON3_PACKAGES_PATH=/opt/conda/lib/python3.6/site-packages \
4343
$OPENCV_GIT_DIR
4444

4545
# Finish and install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ plt.imshow(img) # shows face without box
3030
# find /opt -iname *haar*
3131
face_cascade = cv2.CascadeClassifier('/opt/opencv/data/haarcascades/haarcascade_frontalface_default.xml')
3232

33-
faces = face_cascade.detectMultiScale(img, 1.3, 5)
33+
faces = face_cascade.detectMultiScale(img, 1.1, 3)
3434
for (x,y,w,h) in faces:
3535
cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
3636
roi = img[y:y+h, x:x+w]

0 commit comments

Comments
 (0)