Git Product home page Git Product logo

ip-camera-tensorflow's Introduction

Making my IP Camera smart

While enjoying my weekends, I stumbled upon a youtube video which talked about using on device machine learning (aka TensorFlow JS) to detect if your pets have moved around your house or jump on to your sofa. So I thought, if I am able to do the same thing to detect people outside my house using my IP Camera.

TLDR: Yes. You can do it.

Problems to solve

How to get RTSP stream from CCTV to display within a web page?

This was a difficult problem to solve because currently it is impossible to display a RTSP stream into an <img> or even <video> tag. The only solution that I manage to find about is to convert the RTSP stream into a websocket stream.

I followed this guide https://github.com/k-yle/rtsp-relay that I found on github and followed it accordingly.

After I have this setup, it was just connecting the websocket stream to the tensorflowjs model to detect for people!

Here is how it looks like with me carrying my laptop.

me carrying my laptop

As you can see, the confidence of the model for detecting me is pretty high and I am quite satisfied with the result.

Guides that I have read

ip-camera-tensorflow's People

Contributors

kohchihao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.