richardlikely
Posts: 12
Joined: Mon Apr 11, 2016 12:53 am

Processing+Pi3+Camera = ?

Mon Apr 11, 2016 1:03 am

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
Last edited by richardlikely on Mon Apr 11, 2016 5:44 pm, edited 1 time in total.

Maikoule
Posts: 12
Joined: Sun Apr 03, 2016 3:34 pm

Re: Processing+Pi3+Camera = ?

Mon Apr 11, 2016 1:01 pm

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

richardlikely
Posts: 12
Joined: Mon Apr 11, 2016 12:53 am

Re: Processing+Pi3+Camera = ?

Mon Apr 11, 2016 2:03 pm

Hi Maikoule

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

RL

ghans
Posts: 7883
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Processing+Pi3+Camera = ?

Mon Apr 11, 2016 2:27 pm

Try

Code: Select all

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

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

richardlikely
Posts: 12
Joined: Mon Apr 11, 2016 12:53 am

Re: Processing+Pi3+Camera = ?

Mon Apr 11, 2016 5:43 pm

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.

m_alex_morris
Posts: 2
Joined: Tue Apr 12, 2016 11:04 pm

Re: Processing+Pi3+Camera = ?

Tue Apr 12, 2016 11:20 pm

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.

richardlikely
Posts: 12
Joined: Mon Apr 11, 2016 12:53 am

Re: Processing+Pi3+Camera = ?

Wed Apr 13, 2016 4:01 pm

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.

Return to “Troubleshooting”