Share via


how to read Numbers using any machine or bar code reader

Question

Tuesday, June 5, 2012 7:41 AM

i have strip  having 20 digits written  in number format like 1233444556778899. 

i want to read them via bar code reader  is that posssible or their is any other way exisit?

i want to use bar code reader to make quick process of data fetching 

thanks in advance

Ali Muhammad

All replies (11)

Tuesday, June 5, 2012 11:05 AM âś…Answered

Hi Ali,

OK, so that could be solved with the OCR version of the solution, making your solution a lot more error prone. Reading the numbers on (bent surfaces of) luggage might get you into trouble when you use OCR.

I would seriously consider printing barcodes in stead of numbers, and using the barcode (scanner) for what it's made for ;)

Hope this helps

Mark the best replies as answers - Twitter: @rickvdbosch - Blog: http://bloggingabout.net/blogs/rick


Tuesday, June 5, 2012 7:39 AM

i have strip  having 20 digits written  in number format like 1233444556778899. 

i want to read them via bar code reader  is that posssible or their is any other way exisit?

i want to use bar code reader to make quick process of data fetching 

thanks in advance

Ali Muhammad


Tuesday, June 5, 2012 8:05 AM

Hi Ali,

Have a look at the (free!) Code 39 font. This enables you to make any string into a barcode, as long as it starts and ends with an asterisk (*).

Your code would become *1233444556778899*, which you can print as a barcode using the Code 39 font. Most (all?) barcode readers can read Code 39.

Hope this helps

Mark the best replies as answers - Twitter: @rickvdbosch - Blog: http://bloggingabout.net/blogs/rick


Tuesday, June 5, 2012 9:07 AM

Hi,

Are you using SerialPort device to read a strip

PS.Shakeer Hussain


Tuesday, June 5, 2012 10:42 AM

i can use any device that you will recomnd , my problem is read the numbers from any device either it is barcode reader machine or some thing else

Ali Muhammad


Tuesday, June 5, 2012 10:43 AM

i dont want to convert my numbers into barcode,

my problem is to read that strip using any device , i dont know ho to read numbers  via any barcode reader

dont need to convert them

Ali Muhammad


Tuesday, June 5, 2012 10:52 AM

Hi Ali,

So you would like a device that can read normal numbers? Try a (hand) scanner and some good OCR SDK/Library/software. Tessnet2 might be an option.

Please be aware this may (will?) cause much more data entry errors, as OCR isn't infallible.

If you are looking for how to read (the text in) a barcode with a barcode reader: the reader will probably give you the contents of the barcode in plain text. I used a simple setup a while ago: a printed barcode, a USB barcode scanner and a Windows app with a textbox.
Set the focus to the textbox, scan the barcode and the contents appeared in the textbox.

If neither of these answers help you, please explain your exact problem a bit more elaborately please.

**EDIT
**If you are looking for a device to use, use something like this: a USB barcode scanner. This will output the contents of your barcode as text.

Hope this helps.

Mark the best replies as answers - Twitter: @rickvdbosch - Blog: http://bloggingabout.net/blogs/rick


Tuesday, June 5, 2012 11:01 AM

see  i have a courier system in which what ever i post a ticket number is generated and pasted on the luggage

right. that number is 20 length exactly like (12345678912345678912).

i want to degitalized that system so that when ever i give focus of my barcode reader it should give me details regarding that post.

now i have barcode reader and obviously it cant read the normal numbers, i want to read those numbers so that at back end i write query to fetch crosponding record details of that post by giving them that number.

Ali Muhammad


Tuesday, June 5, 2012 11:33 AM

Hi,

You can read it by using SerialPort.

Void ReadBarCode()

{

      SerialPort _serialPort = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);

    _serialPort.Handshake = Handshake.None;

     _serialPort.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived);

   // Opens serial port
    _serialPort.Open(); 

}

 

void sp_DataReceived(object sender, SerialDataReceivedEventArgs e)

{

    Thread.Sleep(500);

    string data = _serialPort.ReadLine();

    textbox1.text=data;

}

PS.Shakeer Hussain


Tuesday, June 5, 2012 12:36 PM

A barcode reader (or barcode scanner) is an electronic device for reading printed barcodes. Like a flatbed scanner, it consists of a light source, a lens and a light sensor translating optical impulses into electrical ones. Additionally, nearly all barcode readers contain decoder circuitry analyzing the barcode's image data provided by the sensor and sending the barcode's content to the scanner's output port.  And more information just go to : joface.com  . If u have any question about education then go to: http://www.joface.com


Tuesday, June 5, 2012 10:54 PM

Hi

Most barcode readers can be configured to strip data from barcode strings before transmitting to host/PC. Checkout your barcode scanner manual, there should be barcode commends to set up this type of data editing.

Regards

Rob

Barcode Labels