Giter Site home page Giter Site logo

rtcamera's Introduction

rtcamera

A fun camera app to process images in real time, using Web technologies. Check it out!

Warning: the online version might be slightly outdated as I only push "stable" code there. Check out the latest code if you want to play with the latest features

Requirements

You need a browser with support for WebRTC's getUserMedia and WebGL, and a connected camera for maximum fun.

Firefox for desktop has getUserMedia enabled by default starting on Firefox 22. If you want to run this on your Android device, you'll need to get a (Nightly](http://nightly.mozilla.org/) or Aurora version.

On Firefox OS, WebRTC support is not ready yet, so the live image processing feature is not available, but you can still pick existing images, modify them and save the ones you like.

Chrome should work out of the box on desktop, but WebRTC is not supported on the stable Chrome Mobile yet. You have to use Chrome Mobile Beta, and also go to chrome://flags and enable WebGL.

Safari doesn't seem to have support for WebRTC, we have to emulate IndexedDB using a shim (because it's not supported either) and WebGL needs to be manually enabled after enabling the Developer menu. But then it fails in weird places. If you can fix it, feel free to send a pull request and I'll merge the changes in :-)

How to run it

Get the code by cloning it:

git clone [email protected]:sole/rtcamera.git rtcamera

Then, because we load files using AJAX, you'll need to either upload a copy to your server, or use a local server.

If you're running Linux or Mac OS you will probably be able to start a local server by running this:

cd rtcamera
python -m SimpleHTTPServer

The app will be accessible at http://localhost:8000/

You will need to find out your computer's IP address if you want to try it on your mobile device. Once you know the address, replace localhost with it and try that on your device. For example, assuming the address is 192.168.0.10, you'd browse to http://192.168.0.10:8000 on your device.

A developer walkthrough is also available.

Bugs

We're using the mighty Bugzilla for filing bugs on this project. Please add them under Developer Ecosystem :: App Center, and for maximum helpfulness, you can also add [refapps][rtcamera] to the summary line.

You can also see the current list of bugs, and maybe contribute to the project by taking over one of them? :-)

Contributors

Used libraries

This app wouldn't be possible without these wonderful libraries. Many thanks to their authors!

Thanks

rtcamera's People

Contributors

aarondruck avatar sole 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.