@@ -43,8 +43,9 @@ Future<bool> checkCaffeNetAsync(cv.Net net) async {
43
43
expect ((minLoc.x, minLoc.y), (955 , 0 ));
44
44
expect ((maxLoc.x, maxLoc.y), (812 , 0 ));
45
45
46
- final perf = await net.getPerfProfileAsync ();
46
+ final ( perf, layerTimes) = await net.getPerfProfileAsync ();
47
47
expect (perf, greaterThan (0 ));
48
+ expect (layerTimes, isNotEmpty);
48
49
49
50
return true ;
50
51
}
@@ -74,8 +75,9 @@ Future<bool> checkTensorflowAsync(cv.Net net) async {
74
75
expect ((minLoc.x, minLoc.y), (481 , 0 ));
75
76
expect ((maxLoc.x, maxLoc.y), (234 , 0 ));
76
77
77
- final perf = await net.getPerfProfileAsync ();
78
+ final ( perf, layerTimes) = await net.getPerfProfileAsync ();
78
79
expect (perf, greaterThan (0 ));
80
+ expect (layerTimes, isNotEmpty);
79
81
80
82
return true ;
81
83
}
@@ -105,8 +107,9 @@ Future<bool> checkOnnxAsync(cv.Net net) async {
105
107
expect ((minLoc.x, minLoc.y), (955 , 0 ));
106
108
expect ((maxLoc.x, maxLoc.y), (812 , 0 ));
107
109
108
- final perf = await net.getPerfProfileAsync ();
110
+ final ( perf, layerTimes) = await net.getPerfProfileAsync ();
109
111
expect (perf, greaterThan (0 ));
112
+ expect (layerTimes, isNotEmpty);
110
113
111
114
return true ;
112
115
}
@@ -143,9 +146,9 @@ void main() async {
143
146
config: "test/models/bvlc_googlenet.prototxt" ,
144
147
);
145
148
await checkCaffeNetAsync (model);
146
- expect (model.dump (), isNotEmpty);
149
+ // expect(model.dump(), isNotEmpty);
147
150
148
- model.dispose ();
151
+ // model.dispose();
149
152
});
150
153
151
154
test ('cv.NetAsync.fromBytesAsync' , () async {
@@ -226,7 +229,7 @@ void main() async {
226
229
227
230
final blob = await cv.blobFromImagesAsync (imgs);
228
231
expect (blob.isEmpty, false );
229
- expect (cv.getBlobSize (blob), cv. Scalar ( 2 , 3 , 480 , 512 ) );
232
+ expect (cv.getBlobSize (blob), [ 2 , 3 , 480 , 512 ] );
230
233
231
234
final images = await cv.imagesFromBlobAsync (blob);
232
235
expect (images.length, 2 );
@@ -246,7 +249,7 @@ void main() async {
246
249
247
250
final blob = await cv.blobFromImagesAsync (imgs);
248
251
expect (blob.isEmpty, false );
249
- expect (cv.getBlobSize (blob), cv. Scalar ( 2 , 1 , 480 , 512 ) );
252
+ expect (cv.getBlobSize (blob), [ 2 , 1 , 480 , 512 ] );
250
253
});
251
254
252
255
test ('cv.NMSBoxesAsync' , () async {
0 commit comments