background preloader

Camera and streaming

Facebook Twitter

Good link

What is Nodejs. Is node js that simple?

What is Nodejs

Well, Yes & No. Depends on whether you love Javascript or not. In “not-so-simple” terms, node.js is a high performance, light weight platform which uses an event-driven, non-blocking I/O model, making this a perfect match for data-intensive real-time applications that run across distributed devices.You : Wooooww…. hold on.. hold on.. what is all this man!?

Me : This is nodejs! Playing with the Raspberry Pi’s camera. I recently picked up a camera module for the Raspberry Pi from Adafruit.

Playing with the Raspberry Pi’s camera

This post will serve to be notes to myself on how to use the dang thing. There’s a lot of info on the web, so I’m going to collect what’s applicable to myself here. This post will continue to evolve over time. Note, I’m using a Macbook Air, so all software and commands are centric to OSX (10.8.5). First off, you need some sort of stand for it. Based on the latest installation of Rasberian via NOOBS, the hardware installed easily, and was auto-detected by the Pi. Official documentation can be downloaded off of Github. Camera forum can be found here. Important note: You can’t view anything over VNC, and obviously you can’t do it via a ssh terminal.

Super Simple Commands: You’ll find these on all the sites: 1 : Capture an image 2 : Capture a (5 second, default) video, at 1920×1080 (1080p) 3 : Capture a 10 second video (in milliseconds) Viewing a video stream from the Pi on your Mac: Record raw video, convert to mp4, play: Raspberry Pi Camera Module. Introduction The Raspberry Pi camera module can be used to take high-definition video, as well as stills photographs.

Raspberry Pi Camera Module

It’s easy to use for beginners, but has plenty to offer advanced users if you’re looking to expand your knowledge. There are lots of examples online of people using it for time-lapse, slow-motion and other video cleverness. You can also use the libraries we bundle with the camera to create effects. If you’re interested in the nitty-gritty, you’ll want to know that the module has a five megapixel fixed-focus camera that supports 1080p30, 720p60 and VGA90 video modes, as well as stills capture. The camera module is very popular in home security applications, and in wildlife camera traps. You can also use it to take snapshots. Features 5MP sensor Wider image, capable of 2592x1944 stills, 1080p30 video 1080p video supported CSI Size: 25 x 20 x 9 mm Camera Details Installation involves connecting the ribbon cable to the CSI connector on the Raspberry Pi board.

Connect to the camera.

Good link

4. Basic Recipes — Picamera 1.9 documentation. The following recipes should be reasonably accessible to Python programmers of all skill levels.

4. Basic Recipes — Picamera 1.9 documentation

Please feel free to suggest enhancements or additional recipes. 4.1. Capturing to a file¶ Capturing an image to a file is as simple as specifying the name of the file as the output of whatever capture() method you require: import timeimport picamera with picamera.PiCamera() as camera: camera.resolution = (1024, 768) camera.start_preview() # Camera warm-up time time.sleep(2) camera.capture('foo.jpg') Note that files opened by picamera (as in the case above) will be flushed and closed so that when the capture method returns, the data should be accessible to other processes. 4.2. Capturing an image to a file-like object (a socket(), a io.BytesIO stream, an existing open file object, etc.) is as simple as specifying that object as the output of whatever capture() method you’re using: Note that the format is explicitly specified in the case above. BrickPi Browser Streaming Robot Tutorial.

Parts Raspberry Pi B+ or B - you can buy one from dexter industries, adafruit or amazon BrickPi - I got the advanced kit, but the regular should work tooBrickPi power pack - the advanced kit doesn't come with a battery pack, so you'll need one 2 Mindstorm motors 1 Pi camera - you get buy one from dexter industries, adafruit and amazon USB wifi - you can buy one from dexter industries, adafruit or amazon Software Raspbian distribution for Raspberry Pi - I tried pidora, but ran into difficulties.

BrickPi Browser Streaming Robot Tutorial

More on this later Python - by default Raspbian comes with itBrickPi from githubBrickPi Python from github A couple of tips on github. If this is your first time using github, there's a download link on the right. Robot You can build any robot you like that uses 2 motors. Prerequisites Before you start, here's a quick list of the prerequisites. Installation Checking out code from Github If you already checked out the source code, skip this step and go to installing BrickPi drivers. Raspberry Pi camera board video streaming » Miguel Mota. How to build and run MJPG-Streamer on the Raspberry Pi. It's been a while since I wrote the article on streaming video from the Raspberry Pi using MJPG-Streamer.

How to build and run MJPG-Streamer on the Raspberry Pi

Since I published that article I have received several comments and questions regarding issues building MJPG-Streamer, so in this short post I'm giving you revised build instructions. 1. Install build dependencies The following command installs the three libraries that MJPG-Streamer uses: $ sudo apt-get install libjpeg8-dev imagemagick libv4l-dev.