4 releases
0.0.8 | Jun 6, 2024 |
---|---|
0.0.7 | Mar 25, 2024 |
#884 in Hardware support
11KB
188 lines
HIKVISION-RS
High-level asynchronous library for controlling cameras from Hikvision
using the PTZ API
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cam = hikvision::Cam::new("127.0.0.1", 1208, Some(("admin", "12345")), 500).await?;
cam.zoom_cam(10).await?;
Ok(())
}
lib.rs
:
hikvision-rs
High-level asynchronous library for controlling cameras from Hikvision using the PTZ API
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cam = hikvision_rs::Cam::new("127.0.0.1", "1208", Some("admin", "12345"), 500).await?;
cam.zoom_cam(10).await?;
Ok(())
}
Dependencies
~6–17MB
~224K SLoC