Update notebooks (#17260)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
83404afff1
commit
6ffd8841fd
3 changed files with 3 additions and 3 deletions
|
|
@ -112,7 +112,7 @@
|
||||||
"heatmap_obj = solutions.Heatmap(\n",
|
"heatmap_obj = solutions.Heatmap(\n",
|
||||||
" colormap=cv2.COLORMAP_PARULA, # Color of the heatmap\n",
|
" colormap=cv2.COLORMAP_PARULA, # Color of the heatmap\n",
|
||||||
" show=True, # Display the image during processing\n",
|
" show=True, # Display the image during processing\n",
|
||||||
" model=yolo11n.pt, # Ultralytics YOLO11 model file\n",
|
" model=\"yolo11n.pt\", # Ultralytics YOLO11 model file\n",
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"while cap.isOpened():\n",
|
"while cap.isOpened():\n",
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
"counter = solutions.ObjectCounter(\n",
|
"counter = solutions.ObjectCounter(\n",
|
||||||
" show=True, # Display the image during processing\n",
|
" show=True, # Display the image during processing\n",
|
||||||
" region=line_points, # Region of interest points\n",
|
" region=line_points, # Region of interest points\n",
|
||||||
" model=yolo11n.pt, # Ultralytics YOLO11 model file\n",
|
" model=\"yolo11n.pt\", # Ultralytics YOLO11 model file\n",
|
||||||
" line_width=2, # Thickness of the lines and bounding boxes\n",
|
" line_width=2, # Thickness of the lines and bounding boxes\n",
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
" # Annotate each mask with its corresponding tracking ID and color\n",
|
" # Annotate each mask with its corresponding tracking ID and color\n",
|
||||||
" for mask, track_id in zip(masks, track_ids):\n",
|
" for mask, track_id in zip(masks, track_ids):\n",
|
||||||
" annotator.seg_bbox(mask=mask, mask_color=colors(track_id, True), track_label=str(track_id))\n",
|
" annotator.seg_bbox(mask=mask, mask_color=colors(int(track_id), True), label=str(track_id))\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Write the annotated frame to the output video\n",
|
" # Write the annotated frame to the output video\n",
|
||||||
" out.write(im0)\n",
|
" out.write(im0)\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue