Assets¶
Supervision offers an assets download utility that allows you to download video files that you can use in your demos.
Download a specified asset if it doesn't already exist or is corrupted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Union[VideoAssets, str]
|
The name or type of the asset to be downloaded. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The filename of the downloaded asset. |
Example
Source code in supervision/assets/downloader.py
Bases: Enum
Each member of this enum represents a video asset. The value associated with each member is the filename of the video.
Enum Member | Video Filename | Video URL |
---|---|---|
VEHICLES |
vehicles.mp4 |
Link |
MILK_BOTTLING_PLANT |
milk-bottling-plant.mp4 |
Link |
VEHICLES_2 |
vehicles-2.mp4 |
Link |
GROCERY_STORE |
grocery-store.mp4 |
Link |
SUBWAY |
subway.mp4 |
Link |
MARKET_SQUARE |
market-square.mp4 |
Link |
PEOPLE_WALKING |
people-walking.mp4 |
Link |
BEACH |
beach-1.mp4 |
Link |
BASKETBALL |
basketball-1.mp4 |
Link |
SKIING |
skiing.mp4 |
Link |