Skip to content
Snippets Groups Projects
Commit 8a398e59 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'obliterate_opencv' into 'master'

comment opencv instructions from docs

opencv is not very stable and is not a dependency of this package anymore.
Testing it in doctests is causing this package to fail which should not be the case.

See merge request !11
parents 1438763f b74d979f
No related branches found
No related tags found
1 merge request!11comment opencv instructions from docs
Pipeline #
......@@ -64,9 +64,11 @@ The code below shall detect most frontal faces in a provided (gray-scaled) image
>>> import bob.ip.color
>>> lena_gray = bob.ip.color.rgb_to_gray(bob.io.base.load(get_file('lena.jpg')))
>>> try:
... from cv2 import CascadeClassifier
... cc = CascadeClassifier(get_file('haarcascade_frontalface_alt.xml'))
... face_bbxs = cc.detectMultiScale(lena_gray, 1.3, 4, 0, (20, 20))
... # the following lines depend on opencv API, hence commented out.
... # from cv2 import CascadeClassifier
... # cc = CascadeClassifier(get_file('haarcascade_frontalface_alt.xml'))
... # face_bbxs = cc.detectMultiScale(lena_gray, 1.3, 4, 0, (20, 20))
... face_bbxs = [[214, 202, 183, 183]] #e.g., manually
... except ImportError: #if you don't have OpenCV, do it otherwise
... face_bbxs = [[214, 202, 183, 183]] #e.g., manually
>>> print(face_bbxs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment