Skip to content

Commit 15dd99c

Browse files
authored
Update main.cpp
1 parent 7a1053d commit 15dd99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NanoDet
1818

1919
private:
2020
const int stride[3] = { 8, 16, 32 };
21-
const string classesFile = "coco.names";
21+
const string classesFile = "coco.names"; ////这个是存放COCO数据集的类名,如果你是用自己数据集训练的,那么需要修改
2222
int input_shape[2]; //// height, width
2323
const float mean[3] = { 103.53, 116.28, 123.675 };
2424
const float std[3] = { 57.375, 57.12, 58.395 };
@@ -255,7 +255,7 @@ int main()
255255
{
256256
NanoDet nanonet(416, 0.35, 0.6);
257257

258-
string imgpath = "street.png";
258+
string imgpath = "street.png"; ///输入图片的路径,你也可以改成外部传参argv的方式,或者是读取视频文件
259259
Mat srcimg = imread(imgpath);
260260
nanonet.detect(srcimg);
261261

0 commit comments

Comments
 (0)