Registry / Framework

framework · v0.1.0
Osprey
Score a detection against a reference after clipping both to the camera frame.
Use Osprey
use vendor::osprey::osprey;
Run the example
nest demo osprey@0.1.0
blyxc native-run osprey-demo/main.blyx
Example source and expected output
use vendor::osprey::osprey;
fn main() {
let pred = [-2, 0, 2, 2];
let truth = [0, 0, 4, 2];
let width = 4.0;
let height = 4.0;
let threshold = 0.5;
let result = osprey_compare(pred, truth, width, height, threshold);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
0.5
1
4
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | ed8a8ff294 | 511cadb290d8558511da3fa40f34444b1aa0b4f2e433b0ad4e3d40b36560f0ca |