Discussion

Using USB Camera @Banana Pi(Web Camera Sever)

7 11920
Post Last Edited by tony_zhang at 2014-5-7 18:54

According to http://forum.lemaker.org/viewthread.php?tid=303&extra=page%3D1, the USB camera works well on BP, we can watch the video on monitor connected to BP. But sometimes we want use BP to play a role as IP camera so that it has much fun. It can be used to monitor your house frome anywhere so that nobody dare to break into your lovely house.

1. Reference to  http://forum.lemaker.org/viewthread.php?tid=303&extra=page%3D1step 1 to check the usb camera has been identified by our BP.

2.Now we need to install the software, we are going to be using a great little application called Motion, this will do a few things for us including accessing the USB cam, getting the images, and streaming them via a built in web server. As the name suggests it will also track and trigger events on motion been detected in the video frames (more on that later).
  1. sudo apt-get install motion
Copy the Code
3. Make sure that your BP has access to internet and check the IP address of your BP:
  1. ifconfig
Copy the Code
4. Configure the software
  1. sudo nano /etc/motion/motion.conf
Copy the Code
In here there are a few basic changes that you need to perform:
  1. Daemon = OFF to ON

  2. webcam_localhost = ON to OFF
Copy the Code
You can change other settings but it’s recommend you don’t take more than 2 frames, and you been the default frame pixel size, for stability.

5. Start the software

To ensure that the motion service will actually start as a daemon we need to change another configuration setting, so enter the following:
  1. sudo nano /etc/default/motion
Copy the Code
Then change the value “start_motion_daemon=no” to “yes”

Finally you can start the motion service to stream the web cam images
  1. sudo service motion start
Copy the Code
Then after about 30 seconds using your PC browse to the new web interface, which should be at the below URL (where 192.168.1.125 is your Banana PI’s IP address)

http://192.168.1.125:8081

If all goes well, you can watch the frames captured by the USB camera.
QQ截图20140507165852.png

Motion Home Page: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
Post Last Edited by monkeyse7en at 2014-5-7 17:13

So we can use this to make a security monitoring system! I hope this can be developed to a good BP project.

Yes, this works fine for me...

But it seems this only works for a USB UVC camera.
How to make it work for bananapi's own camera module?


cheers
Pei

Montion work perfectly with Banana Pi camera module.

korect  
if this works for multiple webcam ?

I would have to read some digital camera reviews just to be sure which brand is the best to attach.

Edited by VoucherCodes at Sep 14, 2017 00:30

Thank you for providing this new technological information.It works well for my voucher codes system

Thanks for providing us the new technology. It will works for my website https://gogetdeals.co.uk/

You have to log in before you can reply Login | Sign Up

Points Rules