Docs updates and improvements (#8183)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Priytosh Tripathi <priytosh.revolution@live.com>
This commit is contained in:
Glenn Jocher 2024-02-13 22:35:47 +01:00 committed by GitHub
parent 863c788f67
commit 22feb682d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 155 additions and 142 deletions

View file

@ -86,6 +86,8 @@ class Results(SimpleClass):
to(*args, **kwargs): Returns a copy of the Results object with tensors on a specified device and dtype.
new(): Returns a new Results object with the same image, path, and names.
plot(...): Plots detection results on an input image, returning an annotated image.
show(): Show annotated results to screen.
save(filename): Save annotated results to file.
verbose(): Returns a log string for each task, detailing detections and classifications.
save_txt(txt_file, save_conf=False): Saves detection results to a text file.
save_crop(save_dir, file_name=Path("im.jpg")): Saves cropped detection images.