Skip to content

Real time object recognition from a live video stream

Notifications You must be signed in to change notification settings

sandropaganotti/hls-coco

Repository files navigation

In Browser Real Time Object Detection From an HTTP Live Stream

This experiment combines hsl.js and tensorflow.js to perform real time object detection from a browser. When the mouse hovers the canvas the entire stream is shown, with the detected object framed in a black box, otherwise only the parts of the stream corresponding to detected objects are displayed.

a video of the experiment
Click here to check the demo on heroku

Configuration

The experiment accepts two HTTP get params:

ℹ️ Note: expect some loading time, since the model used by the experiment weights ~25Mb.

Read the Code

All the code is in a single 128-lines file - js-src\index.js

Run Locally

  • docker-compose up --build and then point a browser to localhost:8080
  • run docker-compose run node npm run dev if you want your JS changes to be compiled.

Thanks!

About

Real time object recognition from a live video stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published