Expand description
§Trustmark
An implementation of TrustMark watermarking for the Content Authenticity Initiative (CAI) in Rust, as described in:
TrustMark - Universal Watermarking for Arbitrary Resolution Images
https://arxiv.org/abs/2311.18297
Tu Bui1, Shruti Agarwal2, John Collomosse1,2
1DECaDE Centre for the Decentralized Digital Economy, University of Surrey, UK.
2Adobe Research, San Jose CA.
This is a re-implementation of the trustmark Python library.
§Example
use trustmark::{Trustmark, Version, Variant};
let tm = Trustmark::new("./models", Variant::Q, Version::Bch5).unwrap();
let input = image::open("../images/ghost.png").unwrap();
let output = tm.encode("0010101".to_owned(), input, 0.95);
Structs§
- Trustmark
- A loaded Trustmark model.