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).
3. Make sure that your BP has access to internet and check the IP address of your BP:4. Configure the software Copy the Code
- sudo apt-get install motion
In here there are a few basic changes that you need to perform: Copy the Code
- sudo nano /etc/motion/motion.conf
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. Copy the Code
- Daemon = OFF to ON
- webcam_localhost = ON to OFF
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:
Then change the value “start_motion_daemon=no” to “yes” Copy the Code
- sudo nano /etc/default/motion
Finally you can start the motion service to stream the web cam images
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) Copy the Code
- sudo service motion start
If all goes well, you can watch the frames captured by the USB camera.
Motion Home Page: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome