How to use Roboflow Ultralytics to run model on the web using vanilla js

I am trying to build an object detection model, preferably Yolov11, that model works on the roboflow website with python, but how to deploy on local server, which can host only static files.

Hi @Hacktronics!
Here is a prompt to pass to your favorite AI tool to generate the necessary code for you:
Generate a complete index.html file that lets me upload an image, runs my YOLOv11 Roboflow model client-side in the browser using the @roboflow/inference SDK with my publishable key, and draws bounding boxes + labels on a canvas. Leave placeholders for WORKSPACE_ID/PROJECT_ID, VERSION_NUMBER, and RF_PUBLISHABLE_KEY. It should be self-contained so I can host it on any static site.

Thanks for such detailed prompt. Luckily I was able to use vanilla TensorFlow.js to do the detection.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.