ROS Quickstart Guide (#13553)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Francesco Mattioli 2024-06-19 01:54:19 +02:00 committed by GitHub
parent 6bddeda34b
commit f22d2d9546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 397 additions and 19 deletions

View file

@ -134,7 +134,7 @@ class ObjectDetection:
return im0, class_ids
def __call__(self):
"""Executes object detection on video frames from a specified camera index, plotting bounding boxes and returning modified frames."""
"""Run object detection on video frames from a camera stream, plotting and showing the results."""
cap = cv2.VideoCapture(self.capture_index)
assert cap.isOpened()
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)