{"id":625,"date":"2012-11-27T10:09:15","date_gmt":"2012-11-27T10:09:15","guid":{"rendered":"http:\/\/www.bardecode.com\/en1\/?p=625"},"modified":"2013-03-05T11:24:46","modified_gmt":"2013-03-05T11:24:46","slug":"reading-pdf-417-barcodes-from-scanned-images","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/en1\/reading-pdf-417-barcodes-from-scanned-images\/","title":{"rendered":"Reading PDF-417 barcodes from scanned images"},"content":{"rendered":"<p>PDF-417 barcodes are a common type of 2-D barcode and are designed to store more data than a 1-D barcode with built in redundancy and error correction. A PDF-417 barcode actually consists of stacks of 1-D barcodes arranged in columns. Each of the 1-D barcodes is called a cluster and has a numeric value. The barcode shown below is a typical example &#8211; it has 4 columns and each column contains 12 clusters.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/pdf417_eg.jpg\" alt=\"\" width=\"300\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Some of the clusters contain information about the structure of the barcode or the row number, some are used for error correction and the rest hold the data. PDF-417 barcodes can be encoded with different levels of error correction &#8211; higher levels give better resillience against damage but also need more clusters and so can lead to larger, more complex barcodes.<\/p>\n<p>When a PDF-417 barcode is scanned at a low resolution it becomes harder for barcode scanning software to calculate the value for each cluster, which means that more error correction needs to be done. After a certain point it will not be possible to error correct and a barcode will fail to read. In a batch of PDF-417 barcodes scanned at a low resolution there will be some that read ok and others than will not.<\/p>\n<p>As a general rule it is best to ensure that each column of a PDF-417 barcode occupies at least 50 pixels in the scanned image and preferably around 70 pixels. \u00a0It&#8217;s also a good idea to avoid encoding any more data than is stricly necessary and to use the highest error correction level possible without impacting on the size of the barcode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PDF-417 barcodes are a common type of 2-D barcode and are designed to store more data than a 1-D barcode with built in redundancy and error correction. A PDF-417 barcode actually consists of stacks of 1-D barcodes arranged in columns. Each of the 1-D barcodes is called a cluster and has a numeric value. The<\/p>\n<p><a href=\"https:\/\/www.bardecode.com\/en1\/reading-pdf-417-barcodes-from-scanned-images\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":330,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,76],"tags":[66,150,148,149,51,72,68,147,80,62],"class_list":["post-625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-image","category-settings","tag-development","tag-error-corrections","tag-fax","tag-faxed","tag-image-2","tag-pdf-417","tag-quality","tag-scanned","tag-settings-2","tag-software"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/625"}],"collection":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":4,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":1667,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/625\/revisions\/1667"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media\/330"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}