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:
parent
6bddeda34b
commit
f22d2d9546
11 changed files with 397 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue