Keyboard numbers
Credit: Image by Tama Leaver on Flickr. Some rights reserved
A US journalist who founded a not-for-profit news site is to launch an open-source programme that will turn scanned documents – such as receipts – into structured data.

Charles C. Duncan Pardo, founding editor of Raleigh Public Record, plans to launch the tool DocHive in exactly one month.

Duncan, who launched the online-only site dedicated to covering the capital city of North Carolina four years ago, told Journalism.co.uk he started developing the tool to speed up the process of extracting data from scanned campaign finance returns.

Faced with manually entering the data from receipts into Excel "one row at a time", Duncan decided he needed to find a more efficient way of pulling data from scanned documents and converting it to a spreadsheet.

Raleigh Public Record, which has a budget of $80,000-a-year, has three part-time members of staff and "relies very heavily on freelancers".

"We don't have a lot of resources, but we do have a lot of friends and connections", Duncan said, including his brother Edward, a software developer, who was keen to help him tackle the problem.

Duncan was successful in an application for grant funding to "really get rolling".

In this announcement post on the Reporters' Lab site, Duncan explains how it works. The programme converts the PDF into an image file and then "uses a template to break a page up into smaller sections".

"For example, in the campaign finance documents, DocHive will make separate sections for donor name, occupation, donation amount and all the other fields. Then, the programme will take each of those sections and turn it into a separate image file.

"The software takes that small image and uses optical character recognition technology to read the words or numbers and insert them into a CSV file.

DocHive is due to launch at the NICAR conference next month (28 February), and Duncan hopes journalists and developers working for news sites elsewhere will be able to adapt it to suit specific purposes.

"We are creating a wiki for the documentation," he said. "The hope is as other people tackle different documents, they will share those templates with others who are facing similar problems with documents."

Duncan will add updates on DocHive to Reporters Lab and Raleigh Public Record.

Free daily newsletter

If you like our news and feature articles, you can sign up to receive our free daily (Mon-Fri) email newsletter (mobile friendly).

blog comments powered by Disqus
http://www.journalism.co.uk/news/us-journalist-creating-tool-to-extract-data-from-pdfs/s2/a551899/
www.journalism.co.uk
crawl=CC-MAIN-2014-23
89655
application/http; msgtype=response
sha1:3NDMD5KAX7S3DYK5FZPHNURBS2U5EGU6
<urn:uuid:36f21713-99cb-4220-a5a3-9a86113f6b62>
2014-07-29T06:54:04Z
80.87.128.130
sha1:THYBSPDFOP3CWUKERE5P44CBF2EJL4KZ
<urn:uuid:8385855c-855c-485a-a28e-1d64d93bd765>
http://www.journalism.co.uk/news/us-journalist-creating-tool-to-extract-data-from-pdfs/s2/a551899/
response
<urn:uuid:935c5766-0c0d-42c1-9218-fca111ab5da2>
robots: classic
hostname: ip-10-146-231-18.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf