pub struct Dataset { /* private fields */ }Expand description
A dataset in EdgeFirst Studio containing sensor data and annotations.
Datasets are collections of multi-modal sensor data (images, LiDAR, radar) along with their corresponding annotations (bounding boxes, segmentation masks, 3D annotations). Datasets belong to projects and can be used for training and validation of machine learning models.
§Features
- Multi-modal Data: Support for images, LiDAR point clouds, radar data
- Rich Annotations: 2D/3D bounding boxes, segmentation masks
- Metadata: Timestamps, sensor configurations, calibration data
- Version Control: Track changes and maintain data lineage
- Format Conversion: Export to popular ML frameworks
§Examples
use edgefirst_client::{Client, Dataset, DatasetID};
use std::str::FromStr;
// Get dataset information
let dataset_id = DatasetID::from_str("ds-abc123")?;
let dataset = client.dataset(dataset_id).await?;
println!("Dataset: {}", dataset.name());
// Access dataset metadata
println!("Dataset ID: {}", dataset.id());
println!("Description: {}", dataset.description());
println!("Created: {}", dataset.created());
// Work with dataset data would require additional methods
// that are implemented in the full APIImplementations§
Source§impl Dataset
impl Dataset
pub fn id(&self) -> DatasetID
pub fn project_id(&self) -> ProjectID
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn cloud_key(&self) -> &str
pub fn created(&self) -> &DateTime<Utc>
pub async fn project(&self, client: &Client) -> Result<Project, Error>
pub async fn annotation_sets( &self, client: &Client, ) -> Result<Vec<AnnotationSet>, Error>
pub async fn labels(&self, client: &Client) -> Result<Vec<Label>, Error>
pub async fn add_label(&self, client: &Client, name: &str) -> Result<(), Error>
pub async fn remove_label( &self, client: &Client, name: &str, ) -> Result<(), Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dataset
impl<'de> Deserialize<'de> for Dataset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.