Crate segment_anything_rs
source ·Expand description
§Segment Anything RS
A rust wrapper for Segment Anything
§Usage
use segment_anything_rs::*;
let model = SegmentAnything::builder().build().unwrap();
let image = image::open("examples/landscape.jpg").unwrap();
let images = model.segment_everything(image).unwrap();
for (i, img) in images.iter().enumerate() {
img.save(&format!("{}.png", i)).unwrap();
}
Structs§
- The segment anything model.
- A builder for
SegmentAnything
. - Settings for running inference on
SegmentAnything
. - The source of the model.