Skip to content

Commit 72632a7

Browse files
committed
add note about haarcascades helper to readmes
1 parent 2d0bad8 commit 72632a7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Installation and Usage
2828

2929
``import cv2``
3030

31+
The package contains haarcascade files. ``cv2.data.haarcascades`` can be used as a shortcut to the data folder. For example:
32+
33+
``cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")``
34+
3135
5. Read `OpenCV documentation <http://docs.opencv.org/>`__
3236

3337
6. Before opening a new issue, read the FAQ below and have a look at the other issues which are already open.

Diff for: README_CONTRIB.rst

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Installation and Usage
2828

2929
``import cv2``
3030

31+
The package contains haarcascade files. ``cv2.data.haarcascades`` can be used as a shortcut to the data folder. For example:
32+
33+
``cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")``
34+
3135
5. Read `OpenCV documentation <http://docs.opencv.org/>`__
3236

3337
6. Before opening a new issue, read the FAQ below and have a look at the other issues which are already open.

0 commit comments

Comments
 (0)