How to scan a QR-code from webcam to Excel or Google spreadsheet in real-time. Also, how to scan a regular barcode from webcam to Excel or Google spreadsheet in real-time. |
(Note: The ZBarSpreadsheet software in this post is free. In another article I wrote about QuickMark which is a different program that works with Excel but not with Google Spreadsheet.)
UPC barcodes appear on grocery store items and retail packaging. Code39 barcodes are the type that appear on UPS and Fedex shipping labels and on boxes for inventory control. Two-dimensional codes, the kind with "dots" such as the QR-code, are most often used to transfer information from the QR code to a smartphone, tablet or some other mobile device. However, when you use this webcam program to scan either a barcode or a QR-code the data is typed into Microsoft Excel or a Google spreadsheet (or other program) in real-time.
Why you might want to use a QR code for data capture:
ZBar is an "open source" (FREE) program for reading bar codes from webcams, video streams, and image files. ZBar reads the most popular types of bar codes including the QR codes, UPC codes and Code 39 bar codes. ZBar is small, fast and takes little memory.
ZBarSpreadsheet is a small program that works with ZBar to automatically type, in real-time, any scanned data into a spreadsheet or other program. ZBar Spreadsheet terminates each scan with a "down arrow" keystroke to advance to the next row of the spreadsheet.
First, download and install ZBar bar code reader from this direct link
Then, download ZBarSpreadsheet ZIP file from this direct link and follow the steps below:
ZBar and ZBarSpreadsheet work from a Command Window (CMD).
Wow!! Thanks for this super tutorial. I downloaded and set it up in less than 5 minutes. And it works super!!! It even scans the QR codes pretty fast as well.
Thank you 🙂
Not working. Only come ZbarSpreadSheet window. Time is counting but not opening video window. Plz help
how can i have it tab over to the price box in my spread sheet so enter the price of the qr code i scan. i would like to scan one code and have it input the item in the first box and the price in the second
How to select a cam? just hangs but the EXE works great but only displays the code from bar code and not type it as keyboard strocks
I get an access denied error when the camera .exe is loading. I’m running windows 10. Ideas?
can anyone tell me how to connect Zbar with excel sheet?
Unfortunately, under Win7/64bit, this program is not working.
The program can’t access the temporary created file under zbar/zbarcam 1/zbar.txt
And fails to inizialize the zbar camera/reader.
Can your program read multiple lines of data in a QRcode and split the data so that each line of data is put into adjacent cells on the same row.
e.g QR data – 1234/456
B145
GR16378
Excel Row – A=1234/456, B=B145, C=GR16378
Data is split with CR/LF
its says zbar.txt access denied ….. what to do now?
the zbar command prompt shows me
\ZBar>zbarcam 1>zbar.txt
Access is denied.
after I typed ZbarSS
why?
Thanks! It’s very usefull. It works like a charm.
Can this be used with an Android phone?
it appear :
C:\ program……\zbar\zbarcam 1\zbar.txt
access is denied
The dialog window appear : Unable to open zbar.txt, please help me
well, i am being denied access to the spreadsheet and the camera and to the zbar.txt.
help
Hello: I am looking for a solution whereby I can print out custom qr codes onto stickers. I would affix the stickers to my tools, then scan them when I drop them off at my job sites or lend them out. When scanned with my smartphone, the qr data, the date, time and geolocation would all get uploaded to a g docs document so I know what tools are where. Does your software or company provide this solution?
Thanks,
When I type zbarSS into the zbar command prompt it says ‘zbarSS’ is not recognized as an internal or external command,
operable program or batch file. I can get the camera to operate and even to recognize a qr code, it only gives the output in the command prompt, it doesn’t open or access a spreadsheet.
it writes the xonverted text only on the .txt file nothing appears on the excel file
Hi there,
I would like to scan the qr code only once. In case I accidentally scan that same code again, scanner should ignore or tell me it has been scanned. In short, I do not want duplicate scan. Is it possible? Thanks a lot!
Can It work with POS too?
Did anyone use it?
Chuck – I am getting an error C:\Program Files (x86)\ZBar>zbarSS
‘zbarSS’ is not recognized as an internal or external command, operable program or batch file.
April 20, 2012 at 9:57 pm
good