[vc_row][vc_column][vc_column_text]
Motion is a software package used to detect moving objects. Only need one pcduino , one ordinary usb camera, you can monitor your own office and bedroom by pcduino.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Parts” tab_id=”1393812525-1-39″][vc_column_text]1. One pcDuino v2
2.An ordinary UVC camera with usb interface
Camera connected to the USB port of pcDuino[/vc_column_text][/vc_tab][vc_tab title=”Installation” tab_id=”1393812525-2-55″][vc_column_text]In ubuntu source has the corresponding software package. So the installation is simple.
$ sudo apt-get install motion[/vc_column_text][/vc_tab][vc_tab title=”Configuring motion” tab_id=”1393813591583-2-3″][vc_column_text]Motion configuration files are stored in / etc / motion directory
Motion profile comments written very clearly, I’ll take several commonly used ones for example
daemon off close daemon mode , if you open daemon mode , then motion would run directly in the background , if you do not manually kill off the process , then the motion would have been running in the background .
videodevice /dev/video0 The video device to be used for capturing. Default for Linux is /dev/video0. for FreeBSD the default is /dev/bktr0.
width 320 and height 240 is set to capture the image size, generally there is no demand , then do not exceed 640 × 320, so it is relatively easy to run the board .
framerate 2 Maximum number of frames to be captured from the camera per second.
minimum_frame_time 0 2 Minimum time in seconds between the capturing picture frames from the camera. Default: 0 = disabled – the capture rate is given by the camera framerate.
netcam_tolerant_check off Set less strict jpeg checks for network cameras with a poor/buggy firmware.
brightness and contrast and saturation The brightness ,contrast and saturation level for the video device. Default: 0 (disabled)
threshold 1500 Threshold for declaring motion. The threshold is the number of changed pixels counted after noise filtering, masking, despeckle, and labelling.Default: 1500
gap 60 Gap is the seconds of no motion detection that triggers the end of an event. An event is defined as a series of motion images taken within a short timeframe. Default: 60
output_all off Picture are saved continuously as if motion was detected all the time.Default: off
ffmpeg_video_codec swf Codec to be used by ffmpeg for the video compression. Timelapse mpegs are always made in mpeg1 format independent from this option.
locate Locate and draw a box around the moving object. Value ‘preview’ makes Motion only draw a box on a saved preview jpeg image and not on the saved mpeg movie.
target_dir /tmp/motion Target directory for picture and movie files.
webcam_motion off If set to ‘on’ Motion sends slows down the webcam stream to 1 picture per second when no motion is detected. When motion is detected the stream runs as defined by webcam_maxrate. When ‘off’ the webcam stream always runs as defined by webcam_maxrate.
webcam_localhost Limits the access to the webcam to the localhost.[/vc_column_text][/vc_tab][vc_tab title=”Monitor installation” tab_id=”1393813593062-3-1″][vc_column_text]1.Can use a mobile phone or PC to monitor camera. But PC ,mobile phone and pcDuino on the same network segment
2.PhoneScreen
Install the IP camera
3. pc monitor
Open the browser, in the address bar enter * * *. * * *. * *. * * * (your pcDuino IP) : 8081, can be monitored.[/vc_column_text][/vc_tab][vc_tab title=”Experiment results” tab_id=”1393813594712-4-2″][vc_column_text]When no moving objects
After the detection of moving objects, save images and video to the appropriate folder (default is / tmp / down motion directory)
Displayed on the screen
Photographed images and videos:
Leave a Reply
You must be logged in to post a comment.