Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
tests edits
Browse files Browse the repository at this point in the history
  • Loading branch information
amroamroamro committed Oct 7, 2018
1 parent bfe36cd commit d29007b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions opencv_contrib/test/unit_tests/TestFacemark.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
end

function test_load_dataset_list
%TODO: these text files contain hardcoded paths
if true
error('mexopencv:testskip', 'todo');
end
[imgFiles, ptsFiles, b] = cv.Facemark.loadDatasetList(...
fullfile(TestFacemark.root,'images.txt'), ...
fullfile(TestFacemark.root,'annotations.txt'));
Expand All @@ -134,6 +138,10 @@
end

function test_load_data_1
%TODO: these text files contain hardcoded paths
if true
error('mexopencv:testskip', 'todo');
end
[imgFiles, pts, b] = cv.Facemark.loadTrainingData1(...
fullfile(TestFacemark.root,'images.txt'), ...
fullfile(TestFacemark.root,'annotations.txt'));
Expand All @@ -148,6 +156,10 @@
end

function test_load_data_2
%TODO: these text files contain hardcoded paths
if true
error('mexopencv:testskip', 'todo');
end
[imgFiles, pts, b] = cv.Facemark.loadTrainingData2(...
fullfile(TestFacemark.root,'points.txt'));
validateattributes(imgFiles, {'cell'}, {'vector'});
Expand All @@ -161,6 +173,10 @@
end

function test_load_data_3
%TODO: these text files contain hardcoded paths
if true
error('mexopencv:testskip', 'todo');
end
fPoints = cv.glob(fullfile(TestFacemark.root,'david*.txt'));
[imgFiles, pts, b] = cv.Facemark.loadTrainingData3(fPoints);
validateattributes(imgFiles, {'cell'}, ...
Expand Down

0 comments on commit d29007b

Please sign in to comment.