misb 0.1.3

MISB KLV metadata for drone video (STANAG 4609): ST 0601 UAS Datalink, ST 0102 security, ST 0903 VMTI and ST 1201 IMAPB. Decode and encode, checksum checked, no_std, no dependencies
Documentation

misb

crates.io docs.rs CI

Read and write the KLV metadata in drone video (STANAG 4609), in Rust, Python and one C++ header.

  • ST 0601 UAS Datalink: all 143 tags, sensor and frame-center position, footprint corners
  • ST 0903 VMTI: detections per frame, pixel boxes and ground positions
  • ST 0102 security markings, ST 1201 IMAPB
  • Checks the checksum and every length. No panics on bad input, no dependencies, no_std
  • Matches klvdata on every value of 26 public sample packets

Install

[dependencies]
misb = "0.1"

C++17: copy cpp/misb.hpp.

Python: pip install misb (built from python/, see python/DESCRIPTION.md).

Use

use misb::{klv, st0601::Packet};

// ffmpeg -i in.ts -map 0:d -c copy -f data day_flight.klv
let stream = std::fs::read("day_flight.klv")?;
for unit in klv::split(&stream) {
    let Ok(p) = Packet::from_unit(&unit) else { continue };
    println!("{:?} sensor {:?} looking at {:?}", p.timestamp(), p.sensor_position(), p.frame_center());
}
# Ok::<(), std::io::Error>(())

Docs

License

MIT OR Apache-2.0.