Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72632a7

Browse filesBrowse files
committed
add note about haarcascades helper to readmes
1 parent 2d0bad8 commit 72632a7
Copy full SHA for 72632a7

File tree

2 files changed

+8
-0
lines changed
Filter options

2 files changed

+8
-0
lines changed

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+4Lines changed: 4 additions & 0 deletions
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.

‎README_CONTRIB.rst

Copy file name to clipboardExpand all lines: README_CONTRIB.rst
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.