Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Osprey

Score a detection against a reference after clipping both to the camera frame.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.0Download ZIPed8a8ff294511cadb290d8558511da3fa40f34444b1aa0b4f2e433b0ad4e3d40b36560f0ca