Skip to content

Commit 98c6100

Browse files
committed
Using cv.Point() causes segfault on OpenCV < 3.4, use cv.Point2() instead
1 parent 4528aa3 commit 98c6100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/photo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ module.exports = function ({ cv, utils }) {
7171

7272
const src = new cv.Mat(5, 5, cv.CV_8UC3, [128, 128, 128]);
7373
const dest = new cv.Mat(10, 10, cv.CV_8UC3, [32, 32, 32]);
74-
const mask = new cv.Mat(10, 10, cv.CV8U, 255);
75-
const center = new cv.Point(5, 5);
74+
const mask = new cv.Mat(5, 5, cv.CV_8UC3, [255, 255, 255]);
75+
const center = new cv.Point2(5, 5);
7676
const cloneType = cv.NORMAL_CLONE;
7777

7878
const expectOutput = (res) => {

0 commit comments

Comments
 (0)