Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit d79fd51

Browse files
exclude facemark tests for versions lower than 3.4.0
1 parent 47fde65 commit d79fd51

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/tests/modules/face/face.test.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ describe('face', () => {
3434
recognizerTests(() => testImg, args, values, cv.LBPHFaceRecognizer);
3535
});
3636

37-
facemarkStructsTests();
37+
if (cv.version.minor >= 4) {
38+
facemarkStructsTests();
3839

39-
describe('FacemarkLBF', () => {
40-
facemarkTests(() => testImg, cv.FacemarkLBF, cv.FacemarkLBFParams);
41-
});
40+
describe('FacemarkLBF', () => {
41+
facemarkTests(() => testImg, cv.FacemarkLBF, cv.FacemarkLBFParams);
42+
});
4243

43-
describe('FacemarkAAM', () => {
44-
facemarkTests(() => testImg, cv.FacemarkAAM, cv.FacemarkAAMParams);
45-
});
44+
describe('FacemarkAAM', () => {
45+
facemarkTests(() => testImg, cv.FacemarkAAM, cv.FacemarkAAMParams);
46+
});
47+
}
4648
});

0 commit comments

Comments
 (0)