Hello, with latest 4.6.0 version of opencv.js i have the following error when using findNonZero function:
let src = cv.imread('canvasInput');
let dst = new cv.Mat();
cv.threshold(src, dst, 177, 200, cv.THRESH_BINARY);
let nonzero = new cv.Mat();
cv.findNonZero(dst, nonzero);
I get :
TypeError: cv.findNonZero is not a function
To reproduce, copy paste the example code to the “Try It” section in OpenCV: Image Thresholding
The findNonZero function is present in the api documentation, so i suppose it should be available in the js release, am i missing something?