GitXplorerGitXplorer
j

tensorflowjs-objectdetection-tutorial

public
74 stars
31 forks
1 issues

Commits

List of commits on branch master.
Verified
3991687938a4b6d4a1282a720176cacf6f57d539

Merge pull request #2 from ivoilic/patch-1

jjuandes committed 4 years ago
Verified
e84fc3d3d72bc671744258af0afc9d4ced16363c

Added the playsInline attribute to the video

committed 4 years ago
Verified
549b8f8372bffc783a32cc9388a4eab4d4c585f7

Update README.md

jjuandes committed 5 years ago
Unverified
d2319e5a2564b6dea2ccde57b03d02b9f126ddae

Fixed for Safari

jjuandes committed 5 years ago
Unverified
e069d0917068cd9a68fb665cf9cedd513c01638e

Added check for webkitGetUserMedia and mozGetUserMedia

jjuandes committed 5 years ago
Unverified
25a518c72b5199e64d6bfa6ec708ccd1807a50d4

Added space between gifs

jjuandes committed 5 years ago

README

The README file for this repository.

In-browser real-time object detection with TensorFlow.js and React

This repo contains the code needed to build an object detection web app using TensorFlow.js and React. The app, uses the computer's webcam stream to perform real-time object detections in every frame it receives.

The model

The model featured in the app, is a pre-trained COCO SSD system.

Requirements

Only a browser and a local web server.

Instructions

To launch the web app, go to the root directory of the app, and launch a web server. An easy way to create a one is with Python, using the following command $ python3 -m http.server or $ python -m SimpleHTTPServer if you're using Python 2.

Once the server is up and running, open your browser, and go to http://localhost:8000/, and you'll be greeted by a prompt window requesting permission to access the webcam. Upon accepting said request, wait a bit until the model is downloaded and voila, rejoice with the glory of out-of-the-box deep learning. Have fun!

Tutorial

For a complete tutorial, and a theory lesson about the model and what's under the hood, please refer to the following link: In-Browser Object Detection Using Tensorflow.js

This is the app in action.