Sign in with
Sign up | Sign in

Batch file renaming based on barcode

Last response: in Applications
Share

Hello,
I have a challenge on my hands - I have about 10 000 images that i would like to rename in a folder. each image is a scanned tiff file with a 39 Barcode on it. The barcode is consistently in the right hand Quarter of the page.
Id like to rename the files based on the barcode value on each image.

So image 1 is called image5487.tiff and the barcode value on that image is "DLL0002154".

id like the image file name to be DLL0002154.tiff so that when all 10 000 are finished in a folder, i can easily find them by the barcode value.

Id like a solution where a piece of software can loop through a folder, open the image, read the barcode and rename and save the image with that new name before moving on to the next.

can anyone help?

Thanx
Carel

You need some custom software here. No cheap off-the shelf software will read a specific part from an image, automatically with location info as to where the numbers are. Maybe google or Adobe can help here. I don't know about every piece of software out there, but what you are trying to do is not easy.

Sounds like a fun project.

There are a few open source Java libraries for image 39 barcode image parsing. This one seems like it could do what you are looking for.

The complexity may be in your rough and ready "right hand quarter of the image" statement. Because the image isn't purely the barcode you've got a good chance of the barcode result being wrong for whatever software you use. Which means you potentially need to manually check these 10k images for correctness. Not ideal!

Can you supply a few example images?

carelh said:
Hello,
I have a challenge on my hands - I have about 10 000 images that i would like to rename in a folder. each image is a scanned tiff file with a 39 Barcode on it. The barcode is consistently in the right hand Quarter of the page.
Id like to rename the files based on the barcode value on each image.

So image 1 is called image5487.tiff and the barcode value on that image is "DLL0002154".

id like the image file name to be DLL0002154.tiff so that when all 10 000 are finished in a folder, i can easily find them by the barcode value.

Id like a solution where a piece of software can loop through a folder, open the image, read the barcode and rename and save the image with that new name before moving on to the next.

can anyone help?

Thanx
Carel



Related ressources

Hi I am Pragati
my problem is same as yours I have n numbers of scan files in a folder. I want to write windows service which runs afetr 5min ,and it will open that floder then choose one file using ocr solution search barcode and then save tht using barcode number in c#?
how pla help me for this


thanks in advance :) 

Hi Carel,

Did you get any useful answers? There are at least 2 options for you that I am aware of and they both work well.

1. try (demo version for free): http://www.bardecode.com/filer.html
It does exactly what you are needing and finds the barcode automatically. No extra code needed on your part.
It's not very expensive (this is relative of course).

2. Good OCR software like that of Adobe Reader PRO has a barcode feature you can enable so that after OCR, the barcode is in the OCR output text in a fixed place (for example, the last row of data in the OCR output text is only the barcode). Then you can write software to find this string and rename your images (overnight batch). This option is good if a) you already have this software and b) you know how to write code to do this.

Item 1 above will do exactly what you describe and it's relatively cheap.

Good luck and hope this helps.
Deb

carelh said:
...<snip>
...10 000 images...each image is a scanned tiff file with a 39 Barcode on it.
...image 1 is called image5487.tiff and the barcode value is "DLL0002154"....
[need] image file name to be DLL0002154.tiff
[need] software can loop through a folder, open the image, read the barcode and rename and save the image [with barcode as name]
Thanx
Carel

FYI…

BardecodeFiler is an application that splits and renames TIF and PDF [and JPG] documents according to the barcode values found in the images.
The application reads documents from an input folder and creates new documents in an output folder. The original documents are not modified or deleted. The name of a new document is controlled by a template, which can include the original file name, barcode values and sequence numbers. Documents can either be left whole or split in sub-files according to barcode location.

In JPG Mode the application only processes JPG files from the input folder. Files are processed in alphabetic order and the output template name is automatically set to %VALUES_%PAGE. An input file that contains a barcode is copied to the output folder as page 1 using the barcode value found in the file. If the next file contains no barcode then it is copied to the output folder as page 2 using the same barcode value. The process is repeated until a file is found to contain a barcode value, in which case it is used as page 1 and the process repeats.
http://www.bardecode.com/downloads/bardecodefiler.pdf
http://www.bardecode.com/filer.html



iRondo's Barcode Renaming profile tracks each page, whether in a multipage or single page TIFF file:
- Identifies the barcode on each pages
- Renames the page as a file with the name value of the barcode
- Pages without barcodes are moved to the exception directory for follow up and correction
- The output log can be used directly to update database transaction
http://www.irondo.com/purchase.html


Docufi Split and rename files to barcodes
Common Batch tools for your scanned or PDF documents
Many documents contain vital information in the form of 1-D (Linear) or 2-D barcodes. They are often skewed at various angles and located anywhere within the document. With DocuFi Batch, these markers can be used to identify new breaks in documents as well as be used to name the file or destination folder.

Flexible Document File Naming - You can automate the naming and destination path of your documents using barcodes and text strings. Within the Split and Save Tab of the profile editor is a set of preferences you can adjust to accommodate this. Standard barcodes, special keywords or any text strings can be used to identify your file name or destination folder. Read More

Name Files - Use barcodes, date, time, page number or regular text in any pattern you choose to create your output file names. In the Rename File as field, you simply enter exactly how you want the file name created (for example, %bar1-%bar2-%date). DocuFi Batch can read up to ten barcodes anywhere on a page.

Routing Files - Use the same options to identify a folder for your target files. Sometimes called document routing, you can control where your split documents end up based on some of the content located in them. Use the Create Sub Folder field and enter a text string including barcode keywords, other keywords or any text pattern.

Split at Barcodes – Use highly reliable barcodes to automate the file splitting of your documents. Simply check the Split at Barcodes check box and additional options to tell the system to start looking for barcodes. It will create new documents whenever appropriate barcodes are encountered. You have the ability to define which barcode types to look for, you can even control how separator (barcode) pages are handled with the Remove Barcode Separator Pages option.
http://www.docufi.com/how-to-guides/batch-processing-ti...


Barcode Director
Automate the processing of document images that come to you by fax, email, scanning or report production. Read the barcodes anywhere in these image documents, on the cover pages or on any inside page, in any orientation. Extract the data from the barcodes and assign it to your variables and then sort, separate, route and store the image files.

Barcode Director can accept any image format, including PDF, TIFF, JPG and dozens of other formats. It can create separated files in TIFF or PDF or the original format, and it can also report on all the barcodes found and their attributes.

Barcode Director can automatically analyze images and apply repair scripts to correct for their poor quality in order to improve the recognition rate of barcodes.

A simple, intuitive user interface leads you through the powerful processing capabilities of the application.
http://www.inliteresearch.com/barcode-recognition/barco...


ZXing (pronounced "zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Our focus is on using the built-in camera on mobile phones to scan and decode barcodes on the device, without communicating with a server. However the project can be used to encode and decode barcodes on desktops and servers as well.
http://code.google.com/p/zxing/


!