-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing a camera connected to Raspberry Pi #53
Comments
Not out of the box, but.... Take a look at this project: 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. |
Awesome, thanks! Ill try this out |
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 |
Hi @shanepisko, any success? |
Hi!
Then:
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({ camera.on("started", function( err, timestamp ){ camera.on("read", function( err, timestamp, filename ){ camera.on("exit", function( timestamp ){ camera.start(); Cheers! |
How would one connect to a camera attached to the pi? would this be done via javascript codes that add webcam support to your projects? Also could the Processing.js libraries be used with coder?
The text was updated successfully, but these errors were encountered: