Salman Ul Haq
Salman Ul Haq
Awesome, thanks!
is there an exhaustive list of config parameters in documentation somewhere? That will be very useful
@padom template's Mat and the input image should both be of same type (single channel etc) and depth (8bit etc). Make sure that's the case.
are they RGB or single channel? You need to convert both template and input to single channel before running matchTemplate()
whats the exact error?
I just looked at the code to see what might be wrong. Here's your amended code which may work (I didn't test): ``` js cv.readImage("./test.jpg", function(err, im) { im.convertGrayscale(); im.matchTemplate("./template.jpg",...
there's an inherent issue which the author of this function may have overlooked. He reads the template image as: ``` c++ cv::imread(filename, CV_8S); ``` which means he's reading it as...
You can add two matrices with addWeighted (set weights to 1.0 for both) ``` js cv.readImage("image1.jpg", function(err, image1) { if (err) throw err; cv.readImage("image2.jpg", function(err, image2) { if (err) throw...
It's fairly simply, though not available yet. I'll add image arithmetic ops, check back in a few days :)
What functions are you calling? I've tried processing a couple of images in parallel through a REST API (built myself on top of node-opencv ) and it worked just fine.