We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4427d commit 9a5a7c8Copy full SHA for 9a5a7c8
test/tTextDetection.m
@@ -13,8 +13,7 @@
13
function exerciseDetection(test)
14
model = load(fullfile(test.RepoRoot,'model','craftNet.mat'));
15
inpImage = imread('businessCard.png');
16
- outputNames = {'Conv_118','Relu_109'};
17
- out = cell(size(outputNames'));
+
18
19
expectedBBoxes = [161.3333, 61.3333,542.6667, 61.3333,542.6667,145.3333,161.3333,145.3333;
20
169.3333,312.0000,192.0000,312.0000,192.0000,340.0000,169.3333,340.0000;
@@ -33,12 +32,12 @@ function exerciseDetection(test)
33
32
[image, imageScale] = helper.preprocess(inpImage);
34
35
%Inferance
36
- [out{:}] = predict(model.craftNet,dlarray(image,'SSCB'),'Outputs',outputNames);
+ out = predict(model.craftNet,dlarray(image,'SSCB'));
37
38
%Post process to get the boundingBoxes
39
boundingBoxes = helper.postprocess(out,imageScale);
40
41
test.verifyEqual(boundingBoxes,expectedBBoxes,'AbsTol',double(1e-4));
42
end
43
44
-end
+end
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments