Site Tools


linux:raspberry:picam:motion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:raspberry:picam:motion [2019/01/21 10:44] lunetikklinux:raspberry:picam:motion [2022/06/13 17:35] – [Configuration] lunetikk
Line 6: Line 6:
  
 ==== Configuration ==== ==== Configuration ====
 +
 +=== motion.conf ===
 +
 +see my configfile below...
  
 === Maskfile === === Maskfile ===
 +
 +The maskfile is used to ignore certain areas with moving objects (like trees, pedestrians, cars) which normally would cause motion to capture pictures/videos. The file must have the same width and height as the picture captured by your camera. 
 +
 +Take a captured picture, paint all the correct areas white, the ones you want to ignore black. //You can also use different gray tones for different sensitivity (never tried).//
 +
 +Copy the picture to your Raspberry and convert it to the correct format.
 +
 +<code>
 +djpeg -grayscale -pnm <YOURPICTURE> > maskfile.pgm
 +</code>
 +
 +If djpeg is missing, install the following package (libjpeg-progs - Programs for manipulating JPEG files)
 +<code>
 +apt-get install libjpeg-progs
 +</code>
 +
 +Place your maskfile next to your "motion.conf" (in /etc/motion) and set the maskfile in your config (syntax: mask_file <FILE>).
  
 [[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionMaskFile|How to create a Maskfile]] [[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionMaskFile|How to create a Maskfile]]
Line 33: Line 54:
 <code>modprobe bcm2835-v4l2</code> <code>modprobe bcm2835-v4l2</code>
  
-and add the module to /etc/modules as a new line +and add the module to /etc/modules as a new line (persistent)
  
 <code>bcm2835-v4l2</code> <code>bcm2835-v4l2</code>
linux/raspberry/picam/motion.txt · Last modified: 2022/06/13 18:57 by lunetikk