YOLOP icon indicating copy to clipboard operation
YOLOP copied to clipboard

Detection category

Open zhangbaoj opened this issue 4 years ago • 5 comments

Hello, if I want to output the target category to the detection image, where should I modify?

zhangbaoj avatar Sep 06 '21 02:09 zhangbaoj

In order to display the target category, I added the following content to line 81 of plot.py:

cv2.putText(img, label, (c1[0], c1[1] - 2), 0, tl / 3, [225, 255, 255], lineType=cv2.LINE_AA)

The following content is displayed in the result of the detection image:

Does the 0 in the image represent the category, and does 0.92 represent the confidence level? 图片

zhangbaoj avatar Sep 06 '21 07:09 zhangbaoj

Yes, you are right. Thanks for your interest in our project.

Riser6 avatar Sep 06 '21 07:09 Riser6

你们的工程是不是把'car', 'bus': , 'truck', 'train'都归为类别0了?

zhangbaoj avatar Sep 06 '21 08:09 zhangbaoj

yes

Riser6 avatar Sep 06 '21 08:09 Riser6

Hi, may I ask how to change 0 to class name like car, truck...? thank you

stanny880913 avatar Dec 25 '23 08:12 stanny880913