yolov5字体大小
时间: 2023-09-01 14:14:04 浏览: 165
yolov5_5.0.7z
根据引用,YOLOv5的label字体大小可以在两个文件中进行修改。首先在plots.py文件中,可以在第99行修改label的粗细和背景填充的宽和高。具体修改如下:
```
if label:
tf = max(self.lw - 100, 1) # 修改字体粗细
w, h = cv2.getTextSize(label, 0, fontScale=self.lw / 6, thickness=tf)[<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [【YOLOV5】修改box粗细和label字体](https://blog.csdn.net/ghostype/article/details/122113895)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文