Fix notebook classes_names argument with names (#15915)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
885a56837f
commit
eecee8f666
2 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@
|
|||
" colormap=cv2.COLORMAP_PARULA,\n",
|
||||
" view_img=True,\n",
|
||||
" shape=\"circle\",\n",
|
||||
" classes_names=model.names,\n",
|
||||
" names=model.names,\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"while cap.isOpened():\n",
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@
|
|||
"counter = solutions.ObjectCounter(\n",
|
||||
" view_img=True, # Display the image during processing\n",
|
||||
" reg_pts=line_points, # Region of interest points\n",
|
||||
" classes_names=model.names, # Class names from the YOLO model\n",
|
||||
" names=model.names, # Class names from the YOLO model\n",
|
||||
" draw_tracks=True, # Draw tracking lines for objects\n",
|
||||
" line_thickness=2, # Thickness of the lines drawn\n",
|
||||
")\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue