Skip to content

Commit

Permalink
docs etc
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbraden committed Jan 27, 2012
1 parent c93b9dc commit d54e8dc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
build
.lock-wscript
.DS_Store
node_modules
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ If you need to pipe data into an image, you can use an imagestream:
#### Image Processing


#### Object Detection

There is a shortcut method for
[Viola-Jones Haar Cascade](http://www.cognotics.com/opencv/servo_2007_series/part_2/sidebar.html) object
detection. This can be used for face detection etc.



Expand Down
42 changes: 33 additions & 9 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@

im.calcHistograms(function(err, hist){})

- Matrix doesn't need to be eventemitter:
im.calcHistograms(mask, function(err, hist){})

instead create a cv.MatrixBuffer class that is an event emitter, and wraps matrix in js



############ Ideas #####################

var mat = cv.readImageSync('foo.jpg');
## Face recognition TODO

cv.readImage('foo.jpg', function(err, mat){});

// Load Database
// TODO<

var s = new opencv.ImageStream()

s.on('load', function(mat){
cv.writeImage(mat, filename, function(err){});

cv.loadImage('test.jpg', function(err, im){
im.detectObject("front-face.xml", {}, function(err, faces){ // <--- Rename faceDetect to detectObject - it's generic

_.each(faces, function(v){

// TODO {

var section = im.slice(v.x, v.y, v.x + v.width, v.y + v.height);
section.convertGrayscale()
section.resize(WID, HEIGHT);
section.equaliseHistogram();

// } TODO

})
})
})

request.get('foo').pipe(s);





-----


http://www.athile.net/library/wiki/index.php?title=Library/V8/Tutorial#Wrapping_a_Javascript_function_as_a_std::function.3C.3E

https://www.cloudkick.com/blog/2010/aug/23/writing-nodejs-native-extensions/

0 comments on commit d54e8dc

Please sign in to comment.