Skip to content

Commit 9a5a7c8

Browse files
authored
Update tTextDetection.m
1 parent ad4427d commit 9a5a7c8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/tTextDetection.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
function exerciseDetection(test)
1414
model = load(fullfile(test.RepoRoot,'model','craftNet.mat'));
1515
inpImage = imread('businessCard.png');
16-
outputNames = {'Conv_118','Relu_109'};
17-
out = cell(size(outputNames'));
16+
1817

1918
expectedBBoxes = [161.3333, 61.3333,542.6667, 61.3333,542.6667,145.3333,161.3333,145.3333;
2019
169.3333,312.0000,192.0000,312.0000,192.0000,340.0000,169.3333,340.0000;
@@ -33,12 +32,12 @@ function exerciseDetection(test)
3332
[image, imageScale] = helper.preprocess(inpImage);
3433

3534
%Inferance
36-
[out{:}] = predict(model.craftNet,dlarray(image,'SSCB'),'Outputs',outputNames);
35+
out = predict(model.craftNet,dlarray(image,'SSCB'));
3736

3837
%Post process to get the boundingBoxes
3938
boundingBoxes = helper.postprocess(out,imageScale);
4039

4140
test.verifyEqual(boundingBoxes,expectedBBoxes,'AbsTol',double(1e-4));
4241
end
4342
end
44-
end
43+
end

0 commit comments

Comments
 (0)