YMMV

* your mileage may vary

Saturday, 17 May 2014

Beaglebone Black (BBB) with Logitech C270 Webcam

How to set up the BBB with a Logitech C270 Webcam
Prep & Optional Tools:  
sudo apt-get update
sudo apt-get install guvcview
apt-get install uvcdynctrl
apt-get install uvccapture

sudo apt-get install qv4l2
sudo apt-get install mplayer
sudo apt-get install v4l-utils
sudo reboot

Clear out dmesg:
sudo dmesg --clear

Plug in cam & check device is recognise:
lsusb
Bus 002 Device 009: ID 046d:0825 Logitech, Inc. Webcam C270

confirm video0
ls /dev/video0

check dmesg for errors
dmesg

run mplayer
mplayer tv:// -tv driver=v4l2:width=960:height=720:device=/dev/video0:outfmt=MJPG

9 comments:

  1. Hello! can I ask which version did you use in ubuntu? Thanks

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hello,
    I was using debian not ubuntu

    Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l
    GNU/Linux
    PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"

    ReplyDelete
  4. are you able to get audio? Mine reports "no sound"

    ReplyDelete
  5. Hello,
    - I don't have access to my BBB right now so I can't check. Sorry about that.

    ReplyDelete
  6. I've read that cheese can be used as a graphical interface to any webcam plugged into the beaglebone black, but is the only way to see the video is to install lxde? That's a problem because the stock emmc is 90% full, and installing lxde doesn't fit!

    Is it possible to boot from the emmc, but install cheese (and run) from the sd-card? Or is it best to both boot from the sd and install cheese on the sd?

    Any thoughts on Camorama or Guvcview?

    ReplyDelete
    Replies
    1. Hello
      mplayer runs without a gui and supports most webcams
      anytime I use a lxde gui I run it from the SD card due to space issues.
      you could try to purge some programs to make space on the emmc
      or
      start with the console version and install
      1. Display Server (Xorg Display Server)
      2. Desktop Environment (Lightweight X11 Desktop Environment (LXDE))
      3. Window Manager
      4. Login Manager (LightDM Login Manager)

      but I've never done this ..... so I'm not sure about the exact steps

      Delete
  7. Hello, I am trying to read the frames using Open CV and I have also followed all the steps mentioned above but I don't know why I getting image array as zeros. Here I have provided a link also to see the problem in detailed. I am using Logitech c310 and Jessie as my OS. Please help me out how to read from the camera.


    This is the link to the problem in more brief.
    http://stackoverflow.com/questions/41202836/empty-numpy-array-recieved-when-using-opencv-cv2-videocapture-read

    Thank you.

    ReplyDelete