docs.rs failed to build hikvision-mvs-sys-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
hikvision_mvs_sys
hikvision_mvs_sys is a Rust binding for the Hikvision MVS SDK.
Features
- Initialize the MVS SDK
- Enumerate and list connected cameras
- Open a camera and configure settings
Example
use hikvision_mvs_sys::*;
use std::ptr;
unsafe {
// Initialize SDK
if MV_CC_Initialize() != MV_OK as i32 {
eprintln!("Failed to initialize SDK.");
return;
}
let mut device_list: MV_CC_DEVICE_INFO_LIST = MV_CC_DEVICE_INFO_LIST {
nDeviceNum: 0,
pDeviceInfo: [ptr::null_mut(); 256],
};
// Enumerate devices
if MV_CC_EnumDevices(MV_GIGE_DEVICE | MV_USB_DEVICE, &mut device_list) != MV_OK as i32 {
eprintln!("Failed to enumerate devices.");
return;
}
}