352 Commits

Author SHA1 Message Date
Peter Braden
baada9d639 Merge pull request #324 from jainanshul/regression_matrix_constructor
Fix regression in matrix constructor that takes in array of default v…
2015-10-29 12:40:55 +01:00
Anshul Jain
b3aae5af58 Add support for GetRotationMatrix2D and WarpAffine 2015-10-29 15:11:07 +05:30
Anshul Jain
62697ccf86 Fix regression in matrix constructor that takes in array of default values 2015-10-28 16:20:36 +05:30
vyacheslav-lonschakov
50276232b1 Replaced error message to dynamically array. 2015-10-19 08:29:11 +03:00
Anshul Jain
b66139e0ee Add async versions of predict and train face recognition methods. 2015-10-15 10:54:08 -07:00
Peter Braden
d291d89771 Merge pull request #315 from adius/add-otsus-method
Add otsus method
2015-10-09 10:21:14 +02:00
Adrian Sieber
9faf0f5a77 Add function argument to specify the threshold algorithm 2015-10-08 22:00:12 +02:00
Adrian Sieber
90fe184501 Mark the default value in error message 2015-10-08 21:58:32 +02:00
Adrian Sieber
8281330044 Use correct datatype for binarization type 2015-10-08 21:46:03 +02:00
Adrian Sieber
901edf4d58 Throw error if invalid binarization technique is provided 2015-10-08 21:43:36 +02:00
Adrian Sieber
769b3f912e Remove redundant variable assignment 2015-10-08 21:43:05 +02:00
Anshul Jain
dc12c4f2ed Prevent a copy during grayscale conversion 2015-10-08 12:21:44 -07:00
Anshul Jain
a2073757a2 Add support for CV_BGR2RGB color transformation 2015-10-08 12:21:44 -07:00
Anshul Jain
c7037ef20c Fix formatting for CvtColor matrix function 2015-10-08 12:21:41 -07:00
Adrian Sieber
0737bdd85a Use "else if" to clarify mutual exclusivity 2015-10-08 20:50:59 +02:00
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