Raspberry Pi compatible webcam...


28 posts   Page 1 of 2   1, 2
by raspberrypiguy1 » Thu Apr 04, 2013 2:04 pm
I've been wondering, what is the best webcam to use with the Pi? I know that the official camera module is going to be released soon, but I need an earlier fix! I have had a look at RPi verified peripherals, but what it lacks is personal comments... And that why I am asking! Are there any of you who could vouch for a good cheap one that you have already used?

Thanks

The Raspberry Pi Guy

P.S: Sorry about all these 'ask' posts today! I have a lot of questions!
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by raspberrypiguy1 » Thu Apr 04, 2013 2:12 pm
Also, it will probably need to be powered from the Pi itself... Not from a hub! :D

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by gordon77 » Thu Apr 04, 2013 3:44 pm
I'm using a Logitech C270, for stills only though not video , and with the new kernel with the USB improvements I can get 960 x 720 stills :)

They are only approx £17 :)

Gordon77
Posts: 722
Joined: Sun Aug 05, 2012 3:12 pm
by raspberrypiguy1 » Thu Apr 04, 2013 6:18 pm
Ah, cool!

But I think I will be needing video, anyone else got any suggestions?!

Thanks

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by raspberrypiguy1 » Thu Apr 04, 2013 7:32 pm
What about one of the PlayStation eye cameras? I thought I saw some people who got those to work? At a good frame rate?

Thanks

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by keble » Thu Apr 04, 2013 8:53 pm
gordon77 wrote:I'm using a Logitech C270, for stills only though not video , and with the new kernel with the USB improvements I can get 960 x 720 stills :)

They are only approx £17 :)

Gordon77

Hi - I am also using a Logitech C270 - but can't get consistent still performance.
For example, using motion or streamer I can get a couple of images, and then I get error messages.
I've got a pretty recent OS (2013-02-09-wheezy-raspbian) - would this have the "kernel with USB improvements" you mention?
I'm going to run rpi-update now but if you can share how you got success I'd be grateful!
Posts: 36
Joined: Tue Apr 03, 2012 4:46 pm
by gordon77 » Thu Apr 04, 2013 9:39 pm
I used rpi-update.

The latest I got is #401, and apart from a SD card issue that a 2gb sd card wasn't big enough it worked fine.

I have only done

Install latest wheezy
Expand to fill card (from menu)
Update raspi-update (from menu)
Rpi-update

I have a rev1 RPi with 256mb ram

I mainly use pygame.camera for still capture.

Gordon77
Posts: 722
Joined: Sun Aug 05, 2012 3:12 pm
by keble » Thu Apr 04, 2013 9:44 pm
Many thanks, I'll give that a whirl :)
Posts: 36
Joined: Tue Apr 03, 2012 4:46 pm
by gordon77 » Thu Apr 04, 2013 9:51 pm
Try this, it will display all sizes upto 960 x 720 and save them as jpegs

Gordon77

Code: Select all
#!/usr/bin/python
import pygame, sys
from pygame.locals import *
import pygame.camera
import time

pygame.init()
pygame.camera.init()
L = []
L = [352,288,640,480,800,600,960,720]
count = 0
while count < 8:
   width = L[count]
   height = L[count+1]
   cam = pygame.camera.Camera("/dev/video0",(width,height))
   cam.start()
   pygame.display.set_caption(str(width) + "x" + str(height) + "  saved as /home/pi/" + str(width) + "x" + str(height) + '.jpg')
   windowSurfaceObj = pygame.display.set_mode((width,height))
   image = cam.get_image()
   catSurfaceObj = image
   windowSurfaceObj.blit(catSurfaceObj,(0,0))
   pygame.display.update()
   cam.stop()
   pygame.image.save(image,str(width) + "x" + str(height) +'.jpg')
   count +=2
   time.sleep(2)
Last edited by gordon77 on Fri Apr 05, 2013 10:56 am, edited 3 times in total.
Posts: 722
Joined: Sun Aug 05, 2012 3:12 pm
by raspberrypiguy1 » Fri Apr 05, 2013 7:13 am
And you are sure that that camera doesn't do video? I would of thought that if it can handle 960x720 stills that it would at least be able to do low res video?!

Thanks

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by raspberrypiguy1 » Fri Apr 05, 2013 7:23 am
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by shuckle » Fri Apr 05, 2013 7:35 am
raspberrypiguy1 wrote:What about one of the PlayStation eye cameras? I thought I saw some people who got those to work? At a good frame rate?

Thanks

The Raspberry Pi Guy

I am using PS3 eye camera with resolution 640x480 and I get reliable 8 fps video.

My model B 256MB raspberry is overclocked to 1000 MHz:
Code: Select all
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1000000


I use motion (but I have disabled motion detection and only use the video stream to my ZoneMinder system running in bigger computer). CPU load is about 95%:
Code: Select all
$ vmstat 1 3000
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0      0  22384  21064 140044    0    0     0     0   20   38 79 16  5  0
 1  0      0  22324  21064 140044    0    0     0     0 3876  137 77 19  4  0


Also the microphone works fine by the way (but that needs to new 3.6.11+ #399 kernel minimum to get adequate sound level)
Posts: 410
Joined: Sun Aug 26, 2012 11:49 am
by raspberrypiguy1 » Fri Apr 05, 2013 10:47 am
Ahhh... OK...

I don't have a PS3, so I don't have a PS3 eye camera... And they (on Amazon) set you back a hefty £20!

What about the PS2 eye camera? Only a couple of quid on Amazon;

http://www.amazon.co.uk/Official-Silver ... ds=eye+ps2

Thanks

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by gordon77 » Fri Apr 05, 2013 10:58 am
raspberrypiguy1 wrote:And you are sure that that camera doesn't do video? I would of thought that if it can handle 960x720 stills that it would at least be able to do low res video?!

Thanks

The Raspberry Pi Guy


I am sure it will, what program do you want to try it with ?

Gordon77
Posts: 722
Joined: Sun Aug 05, 2012 3:12 pm
by raspberrypiguy1 » Fri Apr 05, 2013 11:10 am
I don't know what program yet, the goal is for it to display (or stream) video from a robot... I'm not too worried about resolution, as long as its good enough to see surroundings then I'm good!

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by raspberrypiguy1 » Fri Apr 05, 2013 5:23 pm
I've taken the £4.75 plunge and bought myself a PS2 Eye toy camera... We will see how that goes!

The Raspberry Pi Guy
14 year old Raspberry Pi tutorial maker, programmer, electronics tinkerer, fascinated by space & the ISS, Maths enthusiast. Oh... And the Raspberry Pi is awesome!
User avatar
Posts: 362
Joined: Sun Sep 02, 2012 7:01 pm
by gordon77 » Mon Apr 08, 2013 3:20 pm
gordon77 wrote:
raspberrypiguy1 wrote:And you are sure that that camera doesn't do video? I would of thought that if it can handle 960x720 stills that it would at least be able to do low res video?!

Thanks

The Raspberry Pi Guy


I am sure it will, what program do you want to try it with ?

Gordon77


I tried the C270 with video using guvcviewer and it worked at

320x 240 15fps
352 x 288 15fps
640 x 480 8.5fps
800 x 600 4fps
960 x 720 3.5 fps

all from GUI and using mjpg format

Gordon
Posts: 722
Joined: Sun Aug 05, 2012 3:12 pm
by keble » Wed Apr 10, 2013 9:43 pm
gordon77 wrote:Try this, it will display all sizes upto 960 x 720 and save them as jpegs

Gordon77

A belated thanks for this! I got the python script to run (I'm new to this) after weeding out some whitespace that python didn't like - not sure why.
Well, it took 4 snapshots and partly rendered them on the screen (I could see that the resolution was good), then everything has frozen up!

After a reboot I can see that the images have resolutions up to 960x720

I'm beginning to think I either need to reflash (I know that I get USB problems after a forced power-off) or perhaps to get another RPi (in case this one really has got something wrong with it).

However it's clear that the python route can get the resolution I want, so I'll persist with it.

Thanks again
Rob
Posts: 36
Joined: Tue Apr 03, 2012 4:46 pm
by keble » Tue Apr 23, 2013 9:38 pm
Here's an update on the above: I've been trying out the pygames camera module and its proving far better than any of the other approaches I tried (eg motion, streamer).
I can now consistently get 640x480 from my Logitech C270 (can also get higher but this is what I want for my time lapse stuff).
Learning python hasn't been too bad, plenty of help out there :)
Posts: 36
Joined: Tue Apr 03, 2012 4:46 pm
by parseINT32 » Fri May 03, 2013 7:21 pm
hi, i need a cam to record video through command line...
What about PS2 eyetoy?

Do i need a microphone to record video in background?
Posts: 14
Joined: Fri Mar 01, 2013 11:22 am
by dacmill4 » Sat May 11, 2013 12:44 am
I used a Logitech c210.

Check out the following:

http://www.youtube.com/watch?v=rYKhGfZbj-0

Click on "Show More" in YouTube to get the technical details.
Posts: 9
Joined: Thu Feb 28, 2013 1:04 am
by bobturbos » Fri May 31, 2013 7:14 am
Hi,
I don’t know which is the best, but I know which is the cheapest. I just bought a £4.99 OPTIMUM 3 megapixel webcam in B&M and worked great for me.
http://www.bmstores.co.uk/products/opti ... cam-251953

bobturbos
Posts: 1
Joined: Fri May 31, 2013 7:01 am
by AMazinG » Wed Jun 05, 2013 9:59 pm
Hi,

i have a Logitech Pro9000, and works perfectly fin giving stable 30fps for 320x240 resolution or below with guvcview. However when I use it with C++ (openCV 2.3) framerate drops to 5-10 fps.

greetz..
[AMG]
User avatar
Posts: 7
Joined: Fri May 17, 2013 11:05 pm
Location: Hamburg, DE
by simplesi » Thu Jun 06, 2013 10:43 am
I don’t know which is the best, but I know which is the cheapest. I just bought a £4.99 OPTIMUM 3 megapixel webcam in B&M and worked great for me.

This is what I've been waiting for - someone to find a £5 (retail not car boot ) cam that works :)

I hope they've got a lot of them in stock :)

What sort of frame rate/resolution do you get with it (and using what software?)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter
Posts: 1994
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
by lunix » Mon Jun 10, 2013 1:27 am
raspberrypiguy1 wrote:I've taken the £4.75 plunge and bought myself a PS2 Eye toy camera... We will see how that goes!

The Raspberry Pi Guy

Clearly- you think you're awesome. We will see how that goes
Posts: 4
Joined: Mon May 06, 2013 10:47 pm