pub enum BraidHttpApiCallback {
NewCamera(RegisterNewCamera),
UpdateCurrentImage(PerCam<UpdateImage>),
UpdateCamSettings(PerCam<UpdateCamSettings>),
UpdateFeatureDetectSettings(PerCam<UpdateFeatureDetectSettings>),
DoRecordCsvTables(bool),
DoRecordMp4Files(bool),
SetExperimentUuid(String),
SetPostTriggerBufferSize(usize),
PostTriggerMp4Recording,
DoTakeNewBackgroundImage,
SetBackgroundUpdating(bool),
DoQuit,
}Expand description
API callback messages sent to Braid.
Variants§
NewCamera(RegisterNewCamera)
Called from strand-cam to register a camera
Note this is different than the cam_info_handler which only queries
for the appropriate camera configuration.
UpdateCurrentImage(PerCam<UpdateImage>)
Called from strand-cam to update the current image
UpdateCamSettings(PerCam<UpdateCamSettings>)
Called from strand-cam to update the current camera settings (e.g. exposure time)
UpdateFeatureDetectSettings(PerCam<UpdateFeatureDetectSettings>)
Called from strand-cam to update the current feature detection settings (e.g. threshold different)
DoRecordCsvTables(bool)
Start or stop recording data (.braid directory with csv tables for later .braidz file)
DoRecordMp4Files(bool)
Start or stop recording MKV videos for all cameras
SetExperimentUuid(String)
set uuid in the experiment_info table
SetPostTriggerBufferSize(usize)
Set the number of frames to buffer in each camera
PostTriggerMp4Recording
Initiate MKV recording using post trigger
DoTakeNewBackgroundImage
Take a new background image on all cameras.
Each camera re-initializes the background model used for feature detection from its currently incoming images.
SetBackgroundUpdating(bool)
Enable or disable continuous background model updating on all cameras.
DoQuit
Quit Braid.
This stops recording (closing all files), commands all connected cameras to quit, and then exits.
Trait Implementations§
Source§impl Clone for BraidHttpApiCallback
impl Clone for BraidHttpApiCallback
Source§fn clone(&self) -> BraidHttpApiCallback
fn clone(&self) -> BraidHttpApiCallback
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BraidHttpApiCallback
impl Debug for BraidHttpApiCallback
Source§impl<'de> Deserialize<'de> for BraidHttpApiCallback
impl<'de> Deserialize<'de> for BraidHttpApiCallback
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>,
Auto Trait Implementations§
impl Freeze for BraidHttpApiCallback
impl RefUnwindSafe for BraidHttpApiCallback
impl Send for BraidHttpApiCallback
impl Sync for BraidHttpApiCallback
impl Unpin for BraidHttpApiCallback
impl UnsafeUnpin for BraidHttpApiCallback
impl UnwindSafe for BraidHttpApiCallback
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
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> Preferences for Twhere
T: Serialize + DeserializeOwned,
impl<T> Preferences for Twhere
T: Serialize + DeserializeOwned,
Source§fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
Source§fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
key. This is
an instance method which completely overwrites the object’s state with the serialized
data. Thus, it is recommended that you call this method immediately after instantiating
the preferences object. Read more