This example contains a browser-based JavaScript application that detects objects in images using Transformers.js. The app requires no server, external libraries, or build tools. All you need is a code editor and a browser.
Here's how it works: the user uploads an image to the browser via the “Upload image” button. The app then downloads an AI model, runs the image through it, and finally displays an overview of where the different objects are located.
To learn more about how the code works, visit this tutorial.
Download the repo and simply drag and drop the index.html
file into a browser of your choice.