Coder Social home page Coder Social logo

aframepicam's Introduction

AFramePiCam

Project the video stream of the Raspberry Pi camera onto a plane in A-Frame VR. alt screenshot

Install

This demo dependents on Tornado Web Server and the picamera Please install on the Raspberry Pi:

apt-get install python-picamera
pip install tornado

Enable your camera in the raspi-config:

raspi-config

and check if the camera is working with

raspistill -o test.jpg

Checkout this repository on the Raspberry Pi:

git clone https://github.com/rebeccaXam/AFramePiCam.git

Run

To run the server on the Raspberry Pi:

cd AFramePiCam
python run.py

Press CTRL+C to stop the server.

A-Frame site

http://<raspberryIP>:8080/aframe/index.html

The video stream is on:

http://<raspberryIP>:8080/stream

The websocket to exchange messages between the A-Frame and the PI:

ws://<raspberryIP>:8080/ws

Enjoy ;)

aframepicam's People

Contributors

rebeccaxam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xpcrts d3rrick

aframepicam's Issues

Too heavy

I ran it on a dietpi and when I launch the vr site the raspberry heats up and the page doesn't load loops. Lighthttpd would be a much better solution than Vornado

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.