transformers.js/examples/vanilla-js
Per Harald Borgen ef27100553
Add JavaScript tutorial to the docs (#271)
2023-09-17 21:47:09 +02:00
..
README.md Add JavaScript tutorial to the docs (#271) 2023-09-17 21:47:09 +02:00
index.html Add JavaScript tutorial to the docs (#271) 2023-09-17 21:47:09 +02:00
index.js Add JavaScript tutorial to the docs (#271) 2023-09-17 21:47:09 +02:00
style.css Add JavaScript tutorial to the docs (#271) 2023-09-17 21:47:09 +02:00

README.md

Vanilla JS Application

This folder contains the source code for a simple web application that detects objects in images using Transformers.js! Check out the demo here.

If you'd like to build it yourself, you can follow the written or interactive video tutorials we have made!

Here's how it works: the user clicks “Upload image” and selects an image using an input dialog. After analysing the image with an object detection model, the predicted bounding boxes are overlaid on top of the image, like this:

Demo