Comments (5)
Not out of the box, but....
Take a look at this project:
https://github.com/troyth/node-raspicam/
I think you could add that module to the package.json, then make a CameraLib project that surfaces that into a simple api that you can use to pull jpgs from in your other apps.
from coder.
Awesome, thanks! Ill try this out
from coder.
So if I install raspicam via npm I will still have to add it to package.json? How do I got about doing that? Sorry I'm very new to all of this stuff. I just received my camera module, got it hooked up and taking photos via command line. I tried installing raspicam but it did not work and said that I might have the wrong version of node.js
Any help is greatly appreciated
from coder.
Hi @shanepisko, any success?
from coder.
Hi!
This may help. You need to install the following (please do a backup of your SD card first):
- To work with the raspicam as a webcam (video camera) device (installing UV4L drivers):
wget http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc && sudo apt-key add ./lrkey.asc
sudo nano /etc/apt/sources.list
>> Add there the following line:
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main
Then:
Ctrl+X
Save
Then:
sudo apt-get update
sudo apt-get install uv4l uv4l-raspicam
sudo apt-get install uv4l-raspicam-extras
- To verify the driver:
- If installed, this should show the manual:
man uv4l - Check if video0 device exist:
ls /dev
- If installed, this should show the manual:
- To avoid the (ugly) preview window follow these steps:
- If there is an /etc/init.d/uv4l_raspicam.sh file, then:
- Open the /etc/init.d/ directory as root (with the menu option in the File Manager at the LXE):
- Edit it and add the following parameter to to the line which loads the driver:
--nopreview
- More data:
- If there is an /etc/init.d/uv4l_raspicam.sh file, then:
- Then install https://github.com/troyth/node-raspicam/:
npm install raspicam
I don't remember if I had to do more changes.
To make a test from Coder, create a new app and add the following code at the end of Coder's NODE tab. It seems to be working just find:
var RaspiCam = require("/home/pi/node_modules/raspicam");
var camera = new RaspiCam({
mode: "video",
output: "/tmp/video.h264",
framerate: 15,
timeout: 5000 // take a 5 second video
});
camera.on("started", function( err, timestamp ){
console.log("video started at " + timestamp );
});
camera.on("read", function( err, timestamp, filename ){
console.log("video captured with filename: " + filename + " at " + timestamp );
});
camera.on("exit", function( timestamp ){
console.log("video child process has exited at " + timestamp );
});
camera.start();
Cheers!
Julián
from coder.
Related Issues (20)
- add the code to a website
- Long wait with no user feedback after login HOT 1
- Blinky Lights coder project bug
- Chromebook " issue. HOT 2
- The Mac Installer bundles an older version of raspi.img file HOT 1
- Coder + RPi + Arduino with Sensors Possible?
- Raspberry Pi 3 HOT 16
- Installing TWEEPY through ssh
- error starting localserver.js HOT 1
- Multiple users in Coder server
- Installation Error Using Mac Installer HOT 4
- Unable to install coder manually on raspbian lite
- Raspberry pi 3 not booting up with coder HOT 7
- installed bonjour print services still not able to access http:coder.local HOT 2
- Google Coder as a Background service?
- Install using Etcher
- Is it possible to run Coder on windows? HOT 1
- Pi Zero W
- Hi
- Coder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coder.