 |
Puppy Linux Discussion Forum Puppy home page: puppylinux.com
|
The time now is Tue 09 Feb 2010, 08:33
All times are UTC - 4 |
| Author |
Message |
polle
Joined: 27 Jun 2007 Posts: 11
|
Posted: Thu 14 Aug 2008, 07:41 Post_subject:
Image Magick |
|
As I had to convert some photos and didn't find a pet package for ImageMagick I compiled it from source, first got an error about fontconfig not found, so I compiled this first, afterwards no problem compilng ImageMagick
Made a pet package of both programs if someone is interested:
http://users.telenet.be/mylinux/fontconfig-2.6.0-i486.pet
http://users.telenet.be/mylinux/ImageMagick-6.4.1-10-i486.pet
|
|
Back to top
|
|
 |
jeffrey
Joined: 16 Jan 2006 Posts: 156 Location: Christchurch, New Zealand
|
Posted: Mon 03 Nov 2008, 21:19 Post_subject:
|
|
Very useful, thanks. This version has got image statistics included, so it should be relatively easy to compare a sequence of photos to detect significant changes for an intruder detection system. For example,
| Code: | convert image1.gif image2.gif -compose difference -composite miff:- | identify -verbose - | awk '$1=="Channel"&&$2=="statistics:"{p++; next} $1=="Alpha:"{exit} p{print}'
|
will show differences between image1 and image2 on the colour channels. Try comparing two identical photos, two with minor differences, two with slight lighting changes, and two where one has an intruder and the other does not. Then find suitable thresholds for an intruder.
Doubtless this is off-topic, but it may help some poor soul. There are countless other (more common) uses for Image Magick, of course.
|
|
Back to top
|
|
 |
KF6SNJ
Joined: 19 Jun 2007 Posts: 604 Location: Robotics Lab/Amateur Radio Station
|
Posted: Mon 03 Nov 2008, 21:28 Post_subject:
|
|
Doesn't seem off topic to me. Rather it looks like you are consider a new way to make use of Image Magick. Nothing wrong with that. In fact, it could also be useful for detecting a difference between a genuine artwork and cheap forgeries. I would like to hear a little more about that idea.
_________________ The only windows I have are those on my home.
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 8321 Location: Ontario Canada,Sydney Australia
|
Posted: Tue 04 Nov 2008, 03:32 Post_subject:
Re: Image Magick |
|
I was missing fontconfig the other day when I was compiling gimp or could of been transmission, it might be useful to include it in future devx's.
ttuuxxx
_________________ www.ttuuxxx.com <--- home of 'Living Water' and 'Fire Hydrant'
|
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 754
|
Posted: Tue 04 Nov 2008, 06:38 Post_subject:
|
|
fontconfig should be considered a basic part of any GTK2 environment as many, many programs will require it.
|
|
Back to top
|
|
 |
jeffrey
Joined: 16 Jan 2006 Posts: 156 Location: Christchurch, New Zealand
|
Posted: Tue 04 Nov 2008, 16:21 Post_subject:
Detecting a significant difference between two photos |
|
KF6SNJ, I really don't know much more than I said yesterday. But last night I threw together a script to start testing for significant differences in photos. I'd like it to give a positive result if someone walks onto my property, but not if it's only a cat, or the sun going behind a cloud. I'll have to test that and it may take me a week or two to get around to it. In the meantime, here's my initial script. It uses Image Magick to compare two images for differences, returning an exit code of 0 if they match (or are reasonably similar), an error code of 2 if the user didn't supply two filenames, or an error code from 5 upwards depending on how different the photographs are. (I used a logarithmic scale to reduce a wide range of numbers down to something more sedate.) The log result is derived from the product of the mean of the alpha and colour channel values (which seemed to give a big number on different photos and a small number on similar ones), and values of 0 (identical photos) to 4 (roughly the same) are treated as having only minor differences, so the script returns 0 in for that range, or 5+ if the photos have more significant differences. I'm sure that this will need tuning, but it's a start. Now I need to get a Web camera and work out how long a USB connection I can run...
 |
| Description |
|

Download |
| Filename |
pixcompare.zip |
| Filesize |
772 Bytes |
| Downloaded |
118 Time(s) |
|
|
Back to top
|
|
 |
cklammer

Joined: 26 Apr 2008 Posts: 24 Location: Abu Dhabi, United Arab Emirates
|
Posted: Wed 28 Jan 2009, 01:35 Post_subject:
libbz2 missing dependency in 4.1.2 |
|
Hi all,
When I installed IM on 4.1.2 I received a whole shitload of messages regarding a missing dependency: libbz2.so.1.0.
Turns out that I had a broken symlink with that name in /usr/lib.
| Code: | | find / -name 'libbz2*' -print | more 2>/dev/null |
<... SNIPPED a whole list of found libbz2's ...>
| Code: | | file /usr/lib/libbz2.so.1.0 | <... Got the message about the broken symlink to libbz2.so.1.0.0 >
I fixed it:
| Code: | cd /usr/lib
rm libbz2.so.1.0
ln -s libbz2.so.1.0.4 libbz2.so.1.0 |
I really don't know if this was only my specific installation or a general problem with 4.1.2 - one of the Ueberusers can go and verify maybe, please.
Best of Luck,
cklammer
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|