cv-examples
cv-examples copied to clipboard
Uncaught (in promise) TypeError: cv.Point is not a constructor
Thanks for making openCV work with p5js. I know this is a 2 year old project. But i will post my findings away and hopefully solutions if i find any.
This works with other javascript + opencv examples i have seen cv.rectangle(mask, new cv.Point(20,20), new cv.Point(200,200), [0, 255, 0, 255]);
but not with your p5js + cv combo. It throws this error Uncaught (in promise) TypeError: cv.Point is not a constructor
.
I have similar issues when trying to use cv.drawContours()
I am thankful for any advice.