Changes

Jump to: navigation, search

Improving picture quality

3,810 bytes added, 10:47, 7 January 2014
m
Tutorials on the internet
{{languages}}While researching your family tree, you will come along old sources that need carefull careful handling. Pictures from these taking taken in an archive are often not optimal, and need cleaning up to make the text readable. Some pictures are snapshots of microfilm screenreaders.
Here we show how you can work on your picture to make the text come out better, improving readability. All with open source software, off of course!
[[Category:Genealogy]]== The sample picture 1==
== The sample picture 1==
[[Image:unclean_picture_example1.jpeg|thumb]]
The sample picture is a raw jpeg picture of 1.5Mbtaken from a microfilm screenreader. Light The screenreader light is centered in the middle, getting darker at the edgesas is common with these readers. The relevant section wanted has been placed in the centre of the screen, and a picture has been taken with a digital camera.
=== Viewing ===
A good application to view these files is ''Gwenview'' (KDE).
A good application to view these files is ''Gwenview'' (KDE) or ''GQviewer'' (Gnome). === Cleaning 1: Obtaining a nicer picture with GIMP=== 
==== Step 1 ====
 To edit it, [http://www.gimp.org The Gimp](GNU Image Manipulation Program)] comes to the rescue.
# Open the file.
# Select the relevant portion with the <code>rectangular select tool</code>. Copy and paste into a new canvas: type respectively, {{man key press|CTRL+|C}}, {{man key press|CTRL+|N }} + click {{man button|OK}}, {{man key press|CTRL+|V}}.# Save the file in the GIMP xcf format.
==== Step 2 ====
 
In Gimp, the Filters menu has the correctly named 'Enhance' submenu.
# Choose <code>2x2 Contrast Enhance</code>.
# Select the <code>Destripe</code> option, and set the value to 50.
# Now, in the ''Tools menu'', go to the ''Colour Tools'' submenu, and choose ''Curves''. You can now play with the curve level to get a better contrast on the picture . <br />[[Image:adjust_colour_curve_example1.png]]<br /> We see here that the picture lacks in white and in black, but has a second peak of darkgrey pixels. We enhance the white to make the contrast larger, and we downgrade the importance of the darkgrey peak. We also cut out completely the black.
# As a last edit, select the centre highlighted region of the picture with the elliptic selection tool, and select in ''Tools menu--> Colour Tools'' the ''Brightness-contrast'' option, and reduce the brightness.
Now, save the result as png with maximum compression level.
The result: [[Image:Unclean_picture_example1_step2.png|thumb]]
[[Image:Unclean_picture_example1_step2.png|500px]]
 
=== Cleaning 2: Aiming for readability: Black and white with Digikam and Gimp ===
==== Step 1: Crop and auto-correction ====
[[Image:Unclean_picture_example1_digikam1.jpg|thumb|Step 1]]
 
Open the jpeg file with [http://www.digikam.org Digikam]. Via the crop tool you cut out the relevant section of the picture. Next you go in the ''Fix->Colors'' menu, and select ''Auto-correction''.
 
Choose as type: ''Equalise''.
 
 
==== Step 2: Brightness contrast improvement with GIMP ====
[[Image:Unclean_picture_example1_digikam2_gimp.jpg|thumb|Step 2]]
Digikam only allows brightness correction on the entire picture, so right-click on the picture of step 1, and open it with GIMP. In Gimp, we will make a rectangular selection of the different regions: left, center, right and bottom, and we adjust brightness/contrast separately via ''Tools menu--> Colour Tools'' then ''Brightness-contrast''.
 
 
Note the vertical lines we introduced by this between the regions with changed brightness.
 
==== Step 3: Border detection ====
Now, with GIMP we invoke select ''Filters'', suboption ''Borders'', and choose as method ''Difference of Gaussians''. As radius 1 we choose 100, and as radius 2 we choose 0. The checkboxes with ''Normalize'' and ''Inverse'' are checked. This will make the letters stand out more.
 
The result:
 
[[Image:Unclean_picture_example1_digikam3_gimp.jpg|500px]]
 
=== Some information about the source ===
The picture was taken with a digital camera from a microfilm on a screenreader.
The microfilm had ref. #0293844 and contains the Parochial Register of a village called Onze-Liev-Vrouw-Waver, which is situated near the town of Mechelen, Prov. of Antwerp, Belgium.The register covers the birth acts from the periode 1657 - 1683.
 
:<code>line 1 </code> Manuele Baptizatorum ab anno 1657
:<code>line 2 </code> usquad annum 1683
 
This particular act was dated the 2nd of July 1657 (folio #46)
=== What does it say? ===
The reason of editing the picture is to have a nice picture going with the source. However, in some cases, cleaning up is paramount to be able to read the source. Here this is not really the case, but reading might nevertheless be enhanced by the sharper contrast.
Once you decipher how this priest writes ''B'' and ''P'' and ''s'', reading becomes possible.
The text of this source says:
???? Help !!!:<code>line 1 </code> fac secunda Junij Baptiza-:<code>line 2 </code> tus est petrus Leyns:<code>line 3 </code> filius legitimus Guillielmus:<code>line 4 </code> Leyns et Elisabetha op de:<code>line 5 </code> Beke. Susceptores fuerent:<code>line 6 </code> petrus Arts et Catharina:<code>line 7 </code> van de Voorde which translates to: ''I baptized on June the second Petrus Leyns legitimate son of Guillielmus Leyns and Elisabetha Op de Beke. Godparents were petrus Arts and Catharina Van de Voorde.'' === Some comments on the name ===Starting from the early 1600 the name changed with the different interpretations of the priests. The name was recorded orally. Lens, Lensen, Lenssen(s), Lenz(e), Lentz, Lensch, Linsing(h), Lince(ns), Len(t)zen and Leyns(e) all refer to the same name. Earliest recording dates back to 1326. It is a patronymic name: origin : Laurentius.
=== Other tips for translating text characters =Tutorials on the internet ==If you have found a nice tutorial on the net, add it here.
I don't have exempleThe following are for cleaning with the aim of getting a better result, but using not to make it more readable. *[http://web.archive.org/web/20090813222038/http://www.gimpguru.org/AskTheGuru/G20040808/ Cleaning an old sepia picture]*[http://www.holoweb.net/~liam/pictures/howto/clean-up-a-scan/ Cleaning a scan of an engraving]'''negativeOther:''' function on editor, may help us for translating some text characters*[http://script.byu.Also, OCR (optical character recognition) may be used on scan but there is some open-sources tools edu/ Script Tutorials] offers guidance in the deciphering of manuscripts and librairies who allow us to use it on pictureother old documents that were printed in old typefaces or written in old handwriting styles[[Category:Genealogy]]

Navigation menu