Using ImageMagick to identify a person walking over grass for a fixed camera in a sunny day
Posted: 2015-12-08T20:10:55-07:00
I wonder what would be the best way to use ImageMagick to identify a person (or a dog) walking over a grass in a sunny day, using a fixed camera.
For a cloudy day, that is not a problem, as you can see in the following image:
http://i1039.photobucket.com/albums/a47 ... vyhxjr.jpg
The image at the center is the reference image, while left image is the one with an intrusor (a man and a dog). In the right you can see the image obtained with the following command:
$ f is the file that I want to examine.
As you can see, it worked fine, except for the situation when the grass at the background is partially iluminated by sun. See below:
http://s1039.photobucket.com/user/vpmam ... b.jpg.html
In the case above, the grass at the background is partially illuminated by sun, causing a very bright area which is identified as a feature by the difference algorithm.
I wonder if there is a way, in ImageMagick, to disregard shuch a effect using some sort of statistical technique. I would try some sort of co-variance method, but this is just a guess. Something like a variogram, or equivalent.
Is anybody interested on this topic?
For a cloudy day, that is not a problem, as you can see in the following image:
http://i1039.photobucket.com/albums/a47 ... vyhxjr.jpg
The image at the center is the reference image, while left image is the one with an intrusor (a man and a dog). In the right you can see the image obtained with the following command:
Code: Select all
compare $f a0.jpg -fuzz 20% -metric FUZZ saida.jpg
convert $f a0.jpg saida.jpg +append saida2_$f.jpg
As you can see, it worked fine, except for the situation when the grass at the background is partially iluminated by sun. See below:
http://s1039.photobucket.com/user/vpmam ... b.jpg.html
In the case above, the grass at the background is partially illuminated by sun, causing a very bright area which is identified as a feature by the difference algorithm.
I wonder if there is a way, in ImageMagick, to disregard shuch a effect using some sort of statistical technique. I would try some sort of co-variance method, but this is just a guess. Something like a variogram, or equivalent.
Is anybody interested on this topic?