mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Some code clean up
This commit is contained in:
parent
e9cbf158d5
commit
3b5311cf42
@ -15,7 +15,7 @@
|
||||
}
|
||||
, "engine": "node >= 0.4.1"
|
||||
, "scripts": {
|
||||
"preinstall": "node-gyp rebuild"
|
||||
"preinstall": "node-gyp clean rebuild"
|
||||
, "test": "vows test/unit.js"
|
||||
}
|
||||
, "main": "./lib/opencv"
|
||||
|
||||
@ -18,7 +18,7 @@ CascadeClassifierWrap::Init(Handle<Object> target) {
|
||||
constructor->SetClassName(String::NewSymbol("CascadeClassifier"));
|
||||
|
||||
// Prototype
|
||||
Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
//Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "detectMultiScale", DetectMultiScale);
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ Contour::Init(Handle<Object> target) {
|
||||
constructor->SetClassName(String::NewSymbol("Contours"));
|
||||
|
||||
// Prototype
|
||||
Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
//Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "size", Size);
|
||||
|
||||
@ -22,7 +22,7 @@ Matrix::Init(Handle<Object> target) {
|
||||
constructor->SetClassName(String::NewSymbol("Matrix"));
|
||||
|
||||
// Prototype
|
||||
Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
//Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "row", Row);
|
||||
|
||||
@ -28,7 +28,7 @@ VideoCaptureWrap::Init(Handle<Object> target) {
|
||||
constructor->SetClassName(String::NewSymbol("VideoCapture"));
|
||||
|
||||
// Prototype
|
||||
Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
//Local<ObjectTemplate> proto = constructor->PrototypeTemplate();
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "read", Read);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user