Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting new cv.Point2fVector() is not a constructor error in opencvjs

Hello,

With help of opencv.js, I am tying to use below code in my front-end application but getting error as "new cv.Point2fVector() is not a constructor"

Please guide me how to get use of these below functions or types

var obj_corners = new cv.Point2fVector();
        obj_corners[0] = new cv.Point(0,0);
        obj_corners[1] = new cv.Point(img1Raw.cols,0);
        obj_corners[2] = new cv.Point(img1Raw.cols, img1Raw.rows);
        obj_corners[3] = new cv.Point(0, img1Raw.rows);