cv-examples icon indicating copy to clipboard operation
cv-examples copied to clipboard

Uncaught (in promise) TypeError: cv.Point is not a constructor

Open stephanschulz opened this issue 3 years ago • 0 comments

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.

stephanschulz avatar Dec 02 '20 19:12 stephanschulz