4 releases
0.1.11 | Jul 13, 2024 |
---|---|
0.1.9 | Jul 12, 2024 |
0.1.6 | Apr 18, 2024 |
#147 in Hardware support
733 downloads per month
Used in hikvision
160KB
2.5K
SLoC
📄 中文 | 📄 English
Github | Gitee | crates.io | Rust Doc
⚡ what this ?
This is the Hikvision Camera Rust SDK, which supports universal network cameras, universal USB cameras, IoT cameras, and industrial cameras (USB, network, CamL)
Support SDK
SDK |
Windows10 |
Unix |
- |
---|---|---|---|
MVS | √ |
X |
Industrial Capture Camera (USB、CamL、GigE) |
NET | √ |
X |
Universal Network Camera |
USB | X |
X |
USB Camera |
OTAP | X |
X |
Open Things Access Protocol |
SDK Support API
API |
MVS |
NET |
USB |
OTAP |
- |
---|---|---|---|---|---|
Init SDK | √ |
√ |
- |
- |
Init SDK |
Enumerate | √ |
X |
- |
- |
Enumerate Device |
Login | - |
√ |
- |
- |
Login Device |
Open | √ |
- |
- |
- |
Open Device |
Handle | √ |
√ |
- |
- |
Crete Device Handle |
Log | √ |
√ |
- |
- |
Log output |
Clean SDK | √ |
√ |
- |
- |
Clean SDK |
Clean All | √ |
√ |
- |
- |
Clean All |
Destroy All | √ |
√ |
- |
- |
Destroy All |
Callback Sream | √ |
√ |
- |
- |
Callback Sream |
Sream | √ |
√ |
- |
- |
Data Sream |
Fix Network | √ |
X |
- |
- |
Fix Network packet size |
Preview | √ |
√ |
- |
- |
Display Camera Image |
Capture Image | √ |
√ |
- |
- |
Capture Image |
Save JPEG | √ |
√ |
- |
- |
Save One JPEG |
GUI | √ |
√ |
- |
- |
GUI Window |
✨ Features
[features]
net = []
mvs = []
default = []
📖 Example
[dependencies]
hikvision = {version="0.1", feature=["mvs","net"]}
Examples
💡!important:
- Env.json The Lib Path of System Env;
{origin}
of init app current path
{
"envs": [
{
"key": "HCNET_LIB",
"value": "{origin}/libs/HCNet/lib"
},
{
"key": "HCNET_COM_LIB",
"value": "{origin}/libs/HCNet/lib/HCNetSDKCom"
},
{
"key": "HCMVS_LIB",
"value": "{origin}/libs/HCMvs/Win64_x64"
}
]
}
- The Hikvision Camera Lib of hikvision-rs
# put the lib to libs/HCMvs OR libs/HCNet
cargo run --example global_mvs
cargo run --example global_net
- add your Cargo.toml
[dependencies]
hikvision = {version="0.1", feature=["mvs","net"]}
🚀 fast running
# test global mvs init sdk
cargo run --example global_mvs
# test global net init sdk
cargo run --example global_net
🦊 Applied Projects
A graphical project developed through hikvision-rs;
Capture images through Hikvision cameras, upload logs and images to the MES system
🔭 why need to hikvision-rs?
🙋 Reference items and materials
Dependencies
~4–11MB
~121K SLoC