ultralytics 8.3.69 New Results to_sql() method for SQL format (#18921)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Muhammad Rizwan Munawar 2025-01-29 03:49:30 +05:00 committed by GitHub
parent 813511a232
commit 748c380fc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 84 additions and 7 deletions

View file

@ -508,7 +508,12 @@ All Ultralytics `predict()` calls will return a list of `Results` objects:
| `verbose()` | `str` | Return log string for each task. |
| `save_txt()` | `None` | Save predictions into a txt file. |
| `save_crop()` | `None` | Save cropped predictions to `save_dir/cls/file_name.jpg`. |
| `tojson()` | `str` | Convert the object to JSON format. |
| `summary()` | `List[Dict]` | A list of dictionaries, each containing summarized information for results |
| `to_df()` | `DataFrame` | Convert the results to Pandas Dataframe. |
| `to_csv()` | `str` | Convert the result to CSV (comma separated values) format. |
| `to_xml()` | `str` | Convert the results to XML (Extensible Markup Language) format. |
| `to_json()` | `str` | Convert the results to JSON format. |
| `to_sql()` | `None` | Dump the results into the SQL database. |
For more details see the [`Results` class documentation](../reference/engine/results.md).