#camera #controlling #api #high-level #async #hikvision #ptz

hikvision-rs

High-level asynchronous library for controlling cameras from Hikvision using the PTZ API

3 releases

0.0.7 Mar 25, 2024
0.0.6 Mar 25, 2024

#685 in Asynchronous

Download history 476/week @ 2024-03-19 234/week @ 2024-03-26 74/week @ 2024-04-02

181 downloads per month

MIT license

11KB
187 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
~238K SLoC