forked from Matthias-Wandel/imgcomp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the diffmap documentation into the docs directory
- Loading branch information
1 parent
a1e737f
commit b533c55
Showing
8 changed files
with
209 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
*.bak | ||
*.obj | ||
*.o | ||
*.exe | ||
*.pdb | ||
*.jpg | ||
.*.swp | ||
./*.jpg | ||
*.swp | ||
browse/*.cgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
<html> | ||
<head> | ||
<title>Imgcomp: Configuring detection regions</title> | ||
<style type=text/css> | ||
body { font-family: sans-serif; font-size: 100%;} | ||
img { margin-right: 20px; margin-top:0px; margin-bottom:10px; border: 0px;} | ||
img.r { margin-left: 12px; margin-right: 0px; float: right;} | ||
div.th { float:left; width:198px; height:170px;} | ||
div.th img { width: 160; height: 105; margin-right: 12px; | ||
margin-bottom:4px; border-width:1px; border-style:solid; display: block;} | ||
|
||
div.c { white-space: pre; font-family: monospace; font-weight: bold; font-size: 120%;} | ||
div.p { white-space: pre; font-family: monospace; font-weight: bold; font-size: 140%; margin-top:10px;} | ||
span.c { font-family: monospace; font-weight: bold; font-size: 120%;} | ||
|
||
div.out { white-space: pre; font-family: monospace; font-weight: bold; font-size: 85%; | ||
background-color: black; color: white; line-height: 0.85; | ||
display: inline-block; | ||
border-style: solid; border-color: grey; border-width: 5px; } | ||
|
||
</style></head> | ||
|
||
<h1>Imgcomp: Configuring detection regions</h1> | ||
When monitoring a scene using a Raspberry Pi and imgcomp, there are often | ||
regions of interest and other regions where motion is not of interest. | ||
Vegetation and flags waving in the wind can trigger motion without | ||
being an event of interest. | ||
<p> | ||
|
||
<table align=left cellspacing=0 cellpadding=0><td> | ||
<div class="out"> | ||
foo1.jpg - foo0.jpg: 0 at ( 0, 0) (time) | ||
fill 25-256,25-150 | ||
clear 128-256,25-75 | ||
Weight map: '-' = ignore, '1' = normal, '#' = 2x weight | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------1111111111111111111111111-------------------------------- | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
-------111111111111111111111111111111111111111111111111111111111 | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
---------------------------------------------------------------- | ||
|
||
</div> | ||
<td width=20><td valign=top> | ||
By default, imgcomp will detect motion over the entire image. | ||
<p> | ||
The first way to configure what is of interest is to use the "region" and "exclude" | ||
options. | ||
<p> | ||
The "region" option specifies a rectangle within which detection is to be performed. | ||
Only one region can be specified. However, it's possible to specify areas | ||
to ignore within that region using the "exclude" option. For example, the following | ||
two options would produce an L shaped region of interest in 1024x768 images. | ||
<p> | ||
<div class="c"><p>region = 100-1024,100-600 | ||
exclude = 512-1024,100-300</p></div> | ||
<p> | ||
Imgcomp will output an ASCII representation of the happed regions. When operating | ||
on large images (as large as the camera will go), this map will cause line wraps | ||
in each line, so it will messed up unless you use a small font on a large monitor. | ||
<p> | ||
Imgcomp will not output this map until it reads the first image. | ||
Prior to the first image, imgcomp does not know what | ||
size the acquired images are. | ||
<p><br> | ||
Once the first image is read, if images of a different size are encountered, | ||
imgcomp will exit. | ||
</table> | ||
<p> | ||
For more complex regions, specifying individual rectangles to itnore | ||
can be cumbersome. So another option imgcomp has is to read an | ||
image map indicating which parts of the image to ignore. | ||
<p> | ||
<img src="scene.jpg" width=500 height=375> | ||
<img src="diffmap.jpg" width=500 height=375> | ||
<p> | ||
<table align=left cellspacing=0 cellpadding=0><td> | ||
<div class="out"> | ||
Weight map (600x450): '-' = ignore, '1' = normal, '#' = 2x weight | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
---------------------------------------------------------------------------------------------------- | ||
-----------------------------------------------------1111111111111111111111------------------------- | ||
-----------------------------------------------------11111111111111111111111111111111111111111111111 | ||
-------------------------------------------------1111111111111111111111##########1111111111111111111 | ||
-------------------------------------------------1111111111111111111111##########1111111111111111111 | ||
-------------------------------------1111111111111111111111111111111111##########1111111111111111111 | ||
-------------------------------------1111111111111111111111111111################1111111111111111111 | ||
---------------------------------11111111111111111111111111111111################1111111111111111111 | ||
---------------------------------111111111111111111111111################111111111111111111111111111 | ||
---------------------------------111111111111111111111111################111111111111111111111111111 | ||
111111111111111111111111111111111111111111111111111111111################111111111111111111111111111 | ||
111111111111111111111111111111111111111111111111111111111##########111111111111111111111111111111111 | ||
111111111111111111111111111111111111111111111111111111111##########111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | ||
|
||
</div> | ||
<td width=20><td valign=top> | ||
For the scene above, I want to ignore the bushes because they move with the wind, | ||
the roadway, and the adjoining driveway. So I take an image acquired by | ||
imgcomp and paint those regions to ignore with solid blue. Just for demonstration, | ||
I also coloured a region in solid red to indicate high interest in this region. | ||
Sensitivity in this region will be doubled. The red and blue need to be | ||
fullly saturated colours for imgcomp to use them. For most images you can | ||
just paint red and blue over them without the colors of the image itself triggering | ||
as ignore or double sensitivity. | ||
<p> | ||
On startup, imgcomp outputs a text version of the map, shown at left. | ||
Please note that the weight map dimensions are scaled, typically 1/4 of the image dimensions. | ||
<p> | ||
When using image maps, the image map must be the same dimensions as the images captured | ||
by the camera. | ||
<p><br> | ||
<a href="index.html"><b>Back to Imgcomp main index</b></a> | ||
|
||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters