Enroll
Add multiple reference images and metadata for each identity.
CactusBrain Vision / Developer Preview
Build persistent collections of products, tools, or other known objects, then identify a new image locally with ranked matches and explicit unknown rejection.
Add multiple reference images and metadata for each identity.
Create and reopen atomically stored collections with model compatibility checks.
Rank identities using normalized cosine similarity and configurable top-K results.
Return an explicit unknown result when the best score falls below the collection threshold.
The application supplies a runtime adapter and storage directory. CactusBrain Vision owns enrollment, persistence, matching, and result semantics.
let vision = try CactusBrainVision(
runtime: runtime,
collectionsDirectory: collectionsDirectory
)
let collection = try vision.createCollection(id: "products")
try await collection.add(
id: "coke-500",
images: images
)
let result = try await collection.identify(image: image)CactusBrain Vision accepts any implementation of VisionEmbeddingRuntime. Its tests use a deterministic fake solely to verify SDK behavior.
A released cellm adapter must provide image preprocessing and a compatible embedding model before production end-to-end inference is available.