@@ -19,7 +19,7 @@ Light-weight (~10kB minified, ~5kB gzipped).
19
19
[ ![ Haar.js Mouth Detection] ( /examples/haar-mouth-detection.png )] ( http://foo123.github.com/examples/mouth-detection/ )
20
20
![ Haar.js Eyes Detection] ( /examples/haar-eyes-detection.png )
21
21
22
- ###Contents
22
+ ### Contents
23
23
24
24
* [ Live Playground Examples] ( #live-examples )
25
25
* [ How to Use] ( #how-to-use )
@@ -30,13 +30,13 @@ Light-weight (~10kB minified, ~5kB gzipped).
30
30
* [ Changelog] ( /changelog.md )
31
31
* [ Credits] ( /credits.md )
32
32
33
- ###Live Examples
33
+ ### Live Examples
34
34
* [ Interactive Face Detection] ( http://foo123.github.com/examples/face-detection/ )
35
35
* [ Many Faces Detection] ( http://foo123.github.com/examples/faces-detection/ )
36
36
* [ Interactive Mouth Detection] ( http://foo123.github.com/examples/mouth-detection/ )
37
37
38
38
39
- ###How To use
39
+ ### How To use
40
40
You can use the __ existing openCV cascades__ to build your detectors.
41
41
42
42
To do this just transform the __ opencv xml file__ to * javascript* or * json* format
@@ -90,11 +90,11 @@ __HAAR.js works both in the browser and in Node.js (supporting parallel computat
90
90
** NOTE** HAAR.js (0.4.4+) (and the generated cascades) support * umd-style* generic loading capability for: ** commonjs / node** , ** amd** , ** browsers script tags**
91
91
92
92
93
- ####Runing inside the browser
93
+ #### Runing inside the browser
94
94
Loading wth script tags
95
95
You can run the example face.html or mouth.html inside your browser
96
96
97
- ####Running inside node
97
+ #### Running inside node
98
98
For running, the package have a dependency on canvas
99
99
You can find an example inside examples/nodes.js
100
100
Valid Output
@@ -111,18 +111,18 @@ For example for Ubuntu :
111
111
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev
112
112
```
113
113
114
- ####Loading with requirejs
114
+ #### Loading with requirejs
115
115
As a third option, you can load the library with requireJS, both on the browser on with node.
116
116
There is an example of loading with RequireJS inside node in examples/require.js.
117
117
The configuration would be the same inside a browser
118
118
119
119
120
- ####Supporting parallel computation
120
+ #### Supporting parallel computation
121
121
The [ parallel.js] ( https://github.com/adambom/parallel.js ) library is included in this repository, see the _ face.html_ example for how to use.
122
122
In most cases using parallel computation (if supported) can be much faster (eg _ eye.html_ example)
123
123
124
124
125
- ###Where to find Haar Cascades xml files to use for feature detection
125
+ ### Where to find Haar Cascades xml files to use for feature detection
126
126
* [ OpenCV] ( http://opencv.org/ )
127
127
* [ This resource] ( http://alereimondo.no-ip.org/OpenCV/34 )
128
128
* search the web :)
@@ -131,13 +131,13 @@ The configuration would be the same inside a browser
131
131
132
132
133
133
134
- ###Usage Ideas
134
+ ### Usage Ideas
135
135
* [ SmileDetectJS] ( https://github.com/roironn/SmileDetectJS )
136
136
* [ ObjectDetect] ( https://github.com/mtschirs/js-objectdetect ) (some common ideas with HAAR.js are used with extra functionality like object tracking)
137
137
138
138
139
139
140
- ###TODO
140
+ ### TODO
141
141
- [x] optimize detector for real-time usage on browsers (eg. -> https://github.com/liuliu/ccv ) [ DONE use parallel.js]
142
142
- [x] add selection option, detection is confined to that selection (eg detect nose while face already detected) [ DONE]
143
143
- [x] check if some operations can use fixed-point arithmetic, or other micro-optimizations [ DONE where applicable]
0 commit comments