Skip to main content

cli_main_dispatch

Function cli_main_dispatch 

Source
pub fn cli_main_dispatch(app_name: &'static str) -> Result<()>
Expand description

Select the camera backend from the command line (defaulting to Pylon), construct the corresponding camera module, and run the Strand Camera application.

Only the selected backend’s module is constructed, and neither backend loads its vendor SDK until a camera is actually enumerated or opened. The module is leaked to obtain the 'static reference cli_main requires (the process exits immediately afterwards regardless).