Skip to content

🚗 Browser game where a vehicle is driven through the camera using the ResNet model (Residual Network) to estimate the position of the hands.

License

Notifications You must be signed in to change notification settings

MCarlomagno/CarDrivingResNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Driving ResNet

Browser game where a vehicle is driven through the camera using the ResNet model (Deep Residual Network) to estimate the position of the hands.

The application is written on top of this codepen.

Face recognition auth

Setup

Install dependencies and prepare the build directory:

yarn

To watch files for changes, and launch a dev server:

yarn watch

Technologies

HTML + CSS + Javascript

This application is written in vanilla js with HTML and CSS without any framework, using yarn as dependency manager.

A few resources about HTML+CSS+JS: https://www.w3schools.com/ How to use Yarn: https://classic.yarnpkg.com/en/docs/managing-dependencies/

Tensorflow.js

TensorFlow.js is a library for machine learning in JavaScript.

A few resourses to get started with Tensorflow.js.

ResNet CNN Model

Residual Networks, or ResNets, learn residual functions with reference to the layer inputs, instead of learning unreferenced functions. Instead of hoping each few stacked layers directly fit a desired underlying mapping, residual nets let these layers fit a residual mapping. They stack residual blocks ontop of each other to form network: e.g. a ResNet-50 has fifty layers using these blocks.

Face recognition auth

More info in this paper.

How it works

Using the PoseNet library of tensorflow.js we can obtain the positions of the different parts of the body during the streaming of the video in real time.

In this project, the position of the wrists is estimated, and then the angle formed by the segment between them is calculated to infer if the "steering wheel" moved to the left or right.

Car ResNet 1 Car ResNet 2 Car ResNet 3

Finally we use the result to alter the movement of the vehicle on the road.

Demo

https://mcarlomagno.github.io/CarDrivingResNet/

Licence

https://opensource.org/licenses/BSD-3-Clause

About

🚗 Browser game where a vehicle is driven through the camera using the ResNet model (Residual Network) to estimate the position of the hands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published