Friday, May 6, 2011
Thursday, May 5, 2011
Tuesday, May 3, 2011
n-up several images
I need to compare like 100 pairs of images. I started by looking at them immediately one after the other. I don't feel comfortable with that. I want to see both of them together. I will create auxiliary images using ImageMagick and making use of this recipe:
Now I am going to create the auxiliary images in a shell script…
Q: another task might be this: how do I also reduce the size of every single image, so that they all fit on one "page"?
That's not really relevant, as the usual image viewers are able to display image in just the right size on your screen.
convert -append input1.jpg input2.jpg input3.jpg -border 5 output.jpgIf I try doing this using GraphicsMagic, I don't see the border.
Now I am going to create the auxiliary images in a shell script…
Q: another task might be this: how do I also reduce the size of every single image, so that they all fit on one "page"?
That's not really relevant, as the usual image viewers are able to display image in just the right size on your screen.
Labels:
image processing,
ImageMagick,
imaging
Wednesday, April 27, 2011
Unicode, UTF-8, Plan 9
Unicode - Wikipedia, the free encyclopedia
Did you know, that "UTF-8 was originally developed for Plan 9"?!
Labels:
Plan 9 from Bell Labs,
Unicode
PDF harvesting – automatic extraction of information from PDF files
Why and what for ...
There may be a lot of structured information available in a PDF file (I assume), just as in web pages, and I was thinking about also making use of that information.
Of course I owe you here a discussion of what structured information, we might wish to get hold on, and maybe I am going to add this here one day, but for the time being I will just focus on tables.
There may be a lot of structured information available in a PDF file (I assume), just as in web pages, and I was thinking about also making use of that information.
Of course I owe you here a discussion of what structured information, we might wish to get hold on, and maybe I am going to add this here one day, but for the time being I will just focus on tables.
For web pages i.e. HTML pages there are a couple of harvesting techniques out there.
I am focusing here on table extraction, and for HTML table extraction I want to refer you to another blog article of mine.
HTML table extraction looks like solved to me, PDF table extraction doesn't.
I think, there isn't as much meta-information left in PDF files as there is in HTML. I would rather appreciate, if somebody proves me wrong there, but I rather suspect, that's the way it is. I am still a little optimistic, that tables can get recognized in PDF files.
Update 2011-07-03:
pdf2table
2010-10-10 :
The only benefit from my attempts here: I got quite familiar with "pdftohtml -xml", which I have been using a lot lately.
I am focusing here on table extraction, and for HTML table extraction I want to refer you to another blog article of mine.
HTML table extraction looks like solved to me, PDF table extraction doesn't.
I think, there isn't as much meta-information left in PDF files as there is in HTML. I would rather appreciate, if somebody proves me wrong there, but I rather suspect, that's the way it is. I am still a little optimistic, that tables can get recognized in PDF files.
Update 2011-07-03:
- all these approaches cost me far too much effort already
- I don't regard them production ready
- of course it's possible to extract tabular information from PDF files
- if you do want to get at it yourself (with specific software, i.e. your own code), make use of "pdftohtml -xml"
Update 2012-01-09:
- read my latest (2012-01) article(s) tagged pdftohtml!
- I created some software, that extracts tables from PDF and saves them as CSV
- the heuristics for recognizing the tables are not in the software, rather does the user have to specify the physical x-positions – but that's not too hard, and the software supplies the user with all necessary and valuable details
pdf2table
2010-10-10 :
- in contact with the author
- created Apache Ant build files, managed to build the software on Linux
- managed to run the software
- the software actually runs "pdftohtml -xml"
- the software attempts to recognise table using some heuristics and creates an XML file with the tables recognised, but it fails far too often for my taste
- created RNC for that XML file
- corrected that XML file, optimized it slightly for further processing
- created a simple shell script to wrap the Java class
- …
The only benefit from my attempts here: I got quite familiar with "pdftohtml -xml", which I have been using a lot lately.
2010-10-10 :
- in contact with the maintainer on sourceforge and also with the authors
- the software comes with Apache Ant build files
- but I don't manage to run the software
- …
- http://ieg.ifs.tuwien.ac.at/projects/pdf2table/
(GNU license, apparently "sleeping" since 2006)
seems to apply heuristics to recognize tables and delivers XML for that;
I am going to try this out rather soon - http://tableseer.sourceforge.net/
… - http://www.convertzone.com/comparepdf2txt.htm
(commercial, apparently "sleeping" since 2003)
I will only spend my time and no money on these experiments, so I doubt I will be able to try this software out. - …
Labels:
PDF,
PDF harvesting,
PDF scraping,
pdftohtml
Unicode and emoticons
Emoticon - Wikipedia, the free encyclopedia
"Emoticons are introduced in Unicode Standard version 6.0. It covers unicode range from 1F600 to 1F64F."
Labels:
Unicode
a blog of mine on blogspot.com got removed - I am 100% sure it did not contain SPAM
a blog of mine on blogspot.com got removed - I am 100% sure it did not contain SPAM - Blogger Help
There was no way getting it back again, I wasn't even able to create an archive dump, before the access got deleted.
There was no way getting it back again, I wasn't even able to create an archive dump, before the access got deleted.
Labels:
blogspot.com
openSUSE 11.4 – installed it from online repositories
software.opensuse.org: Download openSUSE 11.4
- I decided to install openSUSE once again from online repositories,
- I downloaded a CD image,
- burnt it on CD,
- started my 1st installation overnight (a fresh install on a VM),
- and I found it completed in the morning.
Of course I will not do a completely unattended installation on my most appreciated ASUS notebook. I will watch that then with anxious meditation and prayers.
(I attempted to insert here Unicode 1F629 ("weary face"), but I could not find out how to achieve that.)
(I attempted to insert here Unicode 1F629 ("weary face"), but I could not find out how to achieve that.)
Labels:
Linux,
openSUSE,
openSUSE upgrade
ruby gem: Slop - Option gathering made easy
Slop - Option gathering made easy -> a DSL for command line options
Labels:
The Ruby Programming Language
Subscribe to:
Posts (Atom)