hostlib 9.0 程式碼問題

請教一下:

kl520_dme_yolo_multiple_dongles這個執行檔執行完畢後,所印出的結果值當中,class代表甚麼意思?


[device_idx 0]

   Number of class: 80

   Number of detection: 3

   Box[0] (x1, y1, x2, y2, score, class) = 296, 137, 420, 414, 0.9487, 0

   Box[1] (x1, y1, x2, y2, score, class) = 444, 176, 716, 370, 0.9764, 2

   Box[2] (x1, y1, x2, y2, score, class) = 36, 164, 308, 395, 0.9693, 2


[device_idx 1]

   Number of class: 80

   Number of detection: 3

   Box[0] (x1, y1, x2, y2, score, class) = 296, 137, 420, 414, 0.9487, 0

   Box[1] (x1, y1, x2, y2, score, class) = 444, 176, 716, 370, 0.9764, 2

   Box[2] (x1, y1, x2, y2, score, class) = 36, 164, 308, 395, 0.9693, 2


cam_dme_serial_yolo.cpp程式碼裡面定義的下述 enum 有關嗎?

如果上述class值為0代表找到的是PERSON且值為2代表找到的是CAR的話,請問kl520_dme_yolo_multiple_dongle使用的class表格是那些?(與下面enum一模一樣嗎?)

// class names

enum {

    PERSON,

    BICYCLE,

    CAR,

    MOTORBIKE,

    AEROPLANE,

    BUS,

    TRAIN,

    TRUCK,

    BOAT,

    TRAFFIC_LIGHT,

    FIRE_HYDRANT,

    STOP_SIGN,

    PARKING_METER,

    BENCH,

    BIRD,

    CAT,

    DOG,

    HORSE,

    SHEEP,

    COW,

    ELEPHANT,

    BEAR,

    ZEBRA,

    GIRAFFE,

    BACKPACK,

    UMBRELLA,

    HANDBAG,

    TIE,

    SUITCASE,

    FRISBEE,

    SKIS,

    SNOWBOARD,

    SPORTS_BALL,

    KITE,

    BASEBALL_BAT,

    BASEBALL_GLOVE,

    SKATEBOARD,

    SURFBOARD,

    TENNIS_RACKET,

    BOTTLE,

    WINE_GLASS,

    CUP,

    FORK,

    KNIFE,

    SPOON,

    BOWL,

    BANANA,

    APPLE,

    SANDWICH,

    ORANGE,

    BROCCOLI,

    CARROT,

    HOT_DOG,

    PIZZA,

    DONUT,

    CAKE,

    CHAIR,

    SOFA,

    POTTEDPLANT,

    BED,

    DININGTABLE,

    TOILET,

    TVMONITOR,

    LAPTOP,

    MOUSE,

    REMOTE,

    KEYBOARD,

    CELL_PHONE,

    MICROWAVE,

    OVEN,

    TOASTER,

    SINK,

    REFRIGERATOR,

    BOOK,

    CLOCK,

    VASE,

    SCISSORS,

    TEDDY_BEAR,

    HAIR_DRIER,

    TOOTHBRUSH,

};

Comments

  • the 80 classes should be the same across all examples, which are from coco 80 classes.

The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.