hikvision-rs

Crates.iohikvision-rs
lib.rshikvision-rs
version0.1.0
created_at2024-03-21 22:45:28.58516+00
updated_at2025-10-31 15:12:10.546404+00
descriptionHigh-level asynchronous library for controlling cameras from Hikvision using the PTZ API
homepage
repositoryhttps://github.com/PuffyWithEyes/hikvision-rs
max_upload_size
id1182117
size51,944
puffy_with_eyes (PuffyWithEyes)

documentation

README

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(())
}

If the camera does not respond to your commands, then try the following:

In the camera settings, set the Configuration -> PTZ -> "Basic Settings" -> "Manual Control Speed" parameter to "Compatible".

Commit count: 0

cargo fmt