287 Commits

Author SHA1 Message Date
Anshul Jain
bb07fcdaf6 FaceRecognizer: convert to grayscale only if 3 channels are provided 2015-10-07 08:48:25 -07:00
Keegan Brown
8b3e747c35 Eliminated deprecation warnings while building in Node v4.1.2 2015-10-06 12:46:44 -05:00
Keegan Brown
ec09e0bdde Swapped out all "handle" for "local"
Now building and passing tests locally in node v0.10.40 v0.12.7 and
v4.1.1. Other modules would not build at node lower than v0.10, so I
stopped there.
2015-10-05 14:33:12 -05:00
Keegan Brown
a0faef9e65 Here goes nothing...
So apparently Nan v2 has removed Handle and uses Local instead. Not
sure wtf that’s all about. I have no idea if this works, but it builds
in both node v4.1.1 and v0.12.7 and passes the included tests in both.
2015-10-05 13:53:34 -05:00
Keegan Brown
0216128fb0 Builds fine in 4, Fails in 0.12.7 2015-10-01 18:15:10 -05:00
Keegan Brown
1974fd6d00 Revert "conversion + build + test passed... so far"
This reverts commit ea69fcc10b73a191e1d3dc6c9decdc1ebc8bc714.
2015-10-01 11:03:08 -05:00
Keegan Brown
ea69fcc10b conversion + build + test passed... so far 2015-09-29 13:39:49 -05:00
Peter Braden
cbaff9a133 Make FaceRecognizer require OpenCV <= v2.4.8.
For some reason OpenCV shipped a broken branch build on Ubuntu 2.4.2 64
bit.

Thanks to @gluxon for noticing this:
https://github.com/peterbraden/node-opencv/issues/56#issuecomment-20263153

Rather than try and be clever, I'm just gonna up the version
requirements.

This fixes #56 #41 #105 #240 and #275
2015-09-22 11:24:40 -04:00
Anshul Jain
7c426bf69a Fix code formatting for native code closes #295 2015-09-14 17:03:51 -07:00
Anshul Jain
4f04198cc3 Create a matrix using the provided scalar 2015-09-10 17:59:33 -07:00
Michael Vines
20807d6284 Only run equalizeHist() if an BGR matrix was provided
Grayscale matrices are used unmodified.
2015-08-30 01:08:55 -07:00
Michael Vines
63bc56be70 VideoCaptureWrap: patch memory leak and simplify AsyncVCWorker. 2015-08-26 22:18:28 -07:00
Peter Braden
5026afaf08 Merge pull request #282 from mvines/3950c04
detectMultiScale now works if a grayscale matrix is provided
2015-08-22 18:03:25 +02:00
Peter Braden
dab2d6253a Merge pull request #283 from mvines/100755
Matrix::ToBuffer no longer references deallocated memory
2015-08-22 18:03:04 +02:00
Michael Vines
45d6b84320 Add support for VideoCapture grab/retrieve 2015-08-21 15:04:28 -07:00
Michael Vines
ddf0313d3a Matrix::ToBuffer no longer references deallocated memory 2015-08-21 14:12:07 -07:00
Michael Vines
dece21619f AsyncDetectMultiScale: use input matrix if color conversion was not required. 2015-08-21 14:10:39 -07:00
dropfen
e2cabf1305 Allow UTF8 Filenames in readImage 2015-08-20 19:09:36 +02:00
Peter Braden
757de05823 Merge pull request #269 from emanuelandrada/master
Fixes error trying to load an image that is not an image.
2015-07-24 09:35:25 +02:00
Max Ehrlich
3655349e83 Fixed function name 2015-07-23 11:16:27 -04:00
Max Ehrlich
1eeae7879c Added release function to attempt to explicitly free mat memory 2015-07-23 10:34:56 -04:00
Emanuel
0905ab4035 Fixes error trying to load an image that is not an image.
Fixes error trying to detect faces in some images.
2015-07-21 02:12:30 -03:00
Peter Braden
2ddb97047e Merge pull request #253 from tualo/master
added cv::normalize and getData
2015-07-15 12:32:02 +02:00
Thomas Hoffmann
da55bda0c9 added missed BackgroundSubtractor including 2015-07-07 20:37:23 +02:00
Thomas Hoffmann
ef8090f4b6 added simple brightness 2015-07-01 14:56:26 +02:00
Peter Braden
3fdb9c5ad5 Merge pull request #258 from hybridgroup/return-instead-of-throw
Return error instead of throw
2015-06-15 13:02:08 +02:00
Paul Morris-Hill
9a21b9ea86 Added support for the fitEllipse method on contours 2015-06-13 02:24:03 +01:00
Thomas Hoffmann
71da46939b added brightness support for gray images 2015-06-11 13:40:04 +02:00
Thomas Hoffmann
d5441b93ff fixed channel check 2015-06-11 12:59:00 +02:00
Thomas Hoffmann
f9d5c8a4d7 added brightness 2015-06-11 12:23:54 +02:00
Adrian Zankich
77b72dc350 Return error instead of throw 2015-06-09 17:27:18 -07:00
Thomas Hoffmann
51d0c8db02 fixed enum error 2015-05-15 12:18:47 +02:00
Thomas Hoffmann
f91caf8c69 added normalize constants 2015-05-15 11:34:42 +02:00
Thomas Hoffmann
2704d607fe added mask parameter 2015-05-15 11:34:11 +02:00
Thomas Hoffmann
569a1143cd added getData and normailze 2015-05-15 10:43:33 +02:00
Morgan 'ARR\!' Allen
27267f310a added option for putText line thickness 2015-05-06 10:46:00 -07:00
Thomas Hoffmann
150fc4a66d added mat.put(buffer) function 2015-04-22 07:51:46 +02:00
AVVS
a7eba6a9e4 Add imageSimilarity method beased on features 2d 2015-03-31 18:51:08 -07:00
Max Ehrlich
7acb6ea5cd Added fillPoly function for drawing polygons 2015-03-17 10:09:39 -04:00
Max Ehrlich
24a23b803b Merge remote-tracking branch 'origin/stereo'
Conflicts:
	binding.gyp
2015-02-13 12:24:05 -05:00
Max Ehrlich
14fed8c12b Fixed a bug causing argments to be read incorrectly in stereoRectify 2015-02-13 12:11:18 -05:00
Max Ehrlich
f60b41ec32 Fixed naming error in reprojectImageTo3d 2015-02-13 12:05:58 -05:00
Max Ehrlich
bce394f775 Init StereoGC class 2015-02-12 14:17:58 -05:00
Peter Braden
6725545e33 Merge branch 'test-examples'
Conflicts:
	package.json
2015-02-11 21:44:20 +01:00
Peter Braden
1baad7b364 Merge branch 'master' into hybridgroup-master
Conflicts:
	.travis.yml
2015-02-11 20:34:09 +01:00
Peter Braden
091447b573 Merge branch 'master' into test-examples
Conflicts:
	src/Matrix.cc
2015-02-11 19:59:30 +01:00
Peter Braden
ae5887c4cd Use Nan for rest of the method 2015-02-11 19:44:38 +01:00
Peter Braden
03ce7973bf Use Nan for template matches 2015-02-11 19:20:19 +01:00
Peter Braden
c5bd3e89bd Merge branch 'master' into oskardahlberg-templateMatches 2015-02-11 18:47:04 +01:00
Peter Braden
373fa339f7 Remove unused 'sleep_for' variable to suppress compile warning 2015-02-11 18:46:23 +01:00