inferencejs Reference
Reference for `inferencejs`, an edge library for deploying computer vision applications built with Roboflow to web/JavaScript environments
Installation
Getting Started
import { InferenceEngine } from "inferencejs";
const PUBLISHABLE_KEY = "rf_a6cd..."; // replace with your own publishable key from Roboflow
const inferEngine = new InferenceEngine();
// Load a model by its model id, copied from the model's page on Roboflow.
const workerId = await inferEngine.startWorkerByModelId("[MODEL ID]", PUBLISHABLE_KEY);
//make inferences against the model
const result = await inferEngine.infer(workerId, img);API
InferenceEngine
YOLO Lite YOLOv8 YOLOv5
GazeDetections
CVImage
Constructor
Methods
Last updated
Was this helpful?