Skip to content

Commit

Permalink
Had to update jsfeat_detect to work with npm version of jsfeat
Browse files Browse the repository at this point in the history
  • Loading branch information
andyinabox committed Jan 23, 2016
1 parent 7b3a52b commit e68ad32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/clm_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<body>
<script src="./ext_js/utils.js"></script>
<!-- <script src="../node_modules/exdat/build/dat.gui.min.js"></script> -->
<script src="./ext_js/jsfeat-min.js"></script>
<script src="../node_modules/jsfeat/build/jsfeat.js"></script>
<script src="./ext_js/frontalface.js"></script>
<script src="./ext_js/jsfeat_detect.js"></script>
<script src="./ext_js/numeric-1.2.6.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions examples/ext_js/jsfeat_detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ var jsfeat_face = function(image) {
work_ctx.drawImage(image, 0, 0);
}
var imageData = work_ctx.getImageData(0, 0, w, h);
jsfeat.imgproc.grayscale(imageData.data, img_u8.data);

jsfeat.imgproc.grayscale(imageData.data, w, h, img_u8);

jsfeat.imgproc.equalize_histogram(img_u8, img_u8);

Expand Down

0 comments on commit e68ad32

Please sign in to comment.