Page 1 of 1

Processing+Pi3+Camera = ?

Posted: Mon Apr 11, 2016 1:03 am
by richardlikely
Anyone using Processing w/ Pi camera successfully? I have tried 3 different Jessie installations and gotten nowhere. I even installed the experimental Jessie image for Pi 3 linked to in this post: https://github.com/processing/processin ... spberry-Pi

And the Video library will not even install. On my other attempts I got the Processing Video library to install but when trying to open up a capture stream from the Pi camera, it doesn't work, complaining that no camera can be found. The camera works fine with "raspistill" on the command line.

The work done to get Processing running well on the Pi is amazing, and I have a project that requires capturing video when triggered by a sensor, very basic stuff. I know Processing the best, and that's why I need to build it with that. I know something similar can be done with Python, but I don't have time to learn it as well as I need to before the deadline.

Thanks for anyone who can shed some light.

cheers
RL

Re: Processing+Pi3+Camera = ?

Posted: Mon Apr 11, 2016 1:01 pm
by Maikoule
Is the PiCamera activated in the setup?

Raspistill and Raspivid are both included in the Jessie package normally

with python you have to import the picamera module
import picamera

camera=picamera.PiCamera()

cf http://picamera.readthedocs.org/en/rele ... start.html

Re: Processing+Pi3+Camera = ?

Posted: Mon Apr 11, 2016 2:03 pm
by richardlikely
Hi Maikoule

Thanks for the reply. Camera is enabled. I really need to work in Processing, so using Python won't help. :-/

RL

Re: Processing+Pi3+Camera = ?

Posted: Mon Apr 11, 2016 2:27 pm
by ghans
Try

Code: Select all

sudo modprobe bcm2835-v4l2
This enables the official V4L2 driver for the Pi Camera.

ghans

Re: Processing+Pi3+Camera = ?

Posted: Mon Apr 11, 2016 5:43 pm
by richardlikely
Than you ghans

ran the command, that went well. Now Processing complains "No such Gstreamer factory: v4l2src" and the sketch hangs when trying to capture the camera.

Re: Processing+Pi3+Camera = ?

Posted: Tue Apr 12, 2016 11:20 pm
by m_alex_morris
I've been trying to do something similar. I was able to get rid of these errors by installing gstreamer 0.10 and gstreamer 1.0. I think I used the recommended commands on this page:

https://github.com/processing/processin ... spberry-Pi

After doing this, I was able to get a usb webcam to work (kind of) but it still does not recognize the piCamera. If anyone finds a different solution for this, I'm all ears too.

Re: Processing+Pi3+Camera = ?

Posted: Wed Apr 13, 2016 4:01 pm
by richardlikely
m_alex_morris wrote:I've been trying to do something similar. I was able to get rid of these errors by installing gstreamer 0.10 and gstreamer 1.0. I think I used the recommended commands on this page:

https://github.com/processing/processin ... spberry-Pi

After doing this, I was able to get a usb webcam to work (kind of) but it still does not recognize the piCamera. If anyone finds a different solution for this, I'm all ears too.


Yeah I have to try to build this thing with Python now. If I can pull it off, it will probably run faster anyway.