yolov8检测类别
时间: 2024-12-27 12:19:10 浏览: 9
### YOLOv8 支持的检测目标类别
YOLOv8 默认支持的标准 COCO 数据集中的 80 类常见物体检测[^1]。这些类别涵盖了日常生活中的大多数物品,具体列表如下:
1. person
2. bicycle
3. car
4. motorcycle
5. airplane
6. bus
7. train
8. truck
9. boat
10. traffic light
11. fire hydrant
12. stop sign
13. parking meter
14. bench
15. bird
16. cat
17. dog
18. horse
19. sheep
20. cow
21. elephant
22. bear
23. zebra
24. giraffe
25. backpack
26. umbrella
27. handbag
28. tie
29. suitcase
30. frisbee
31. skis
32. snowboard
33. sports ball
34. kite
35. baseball bat
36. baseball glove
37. skateboard
38. surfboard
39. tennis racket
40. bottle
41. wine glass
42. cup
43. fork
44. knife
45. spoon
46. bowl
47. banana
48. apple
49. sandwich
50. orange
51. broccoli
52. carrot
53. hot dog
54. pizza
55. donut
56. cake
57. chair
58. couch
59. potted plant
60. bed
61. dining table
62. toilet
63. tv
64. laptop
65. mouse
66. remote
67. keyboard
68. cell phone
69. microwave
70. oven
71. toaster
72. sink
73. refrigerator
74. book
75. clock
76. vase
77. scissors
78. teddy bear
79. hair drier
80. toothbrush
对于自定义数据集或特定应用场景下的目标检测需求,可以通过重新训练模型来扩展或更改可识别的对象种类。这通常涉及准备新的标注数据并调整配置文件以适应新类别的数量。
```python
from ultralytics import YOLO
model = YOLO('yolov8n.yaml') # 使用预定义的小型网络结构加载模型
```
阅读全文