Hi,
ZBar succesfully write the readed codes into a specified txt file (I use this method under windows command line: "zbarcam \dev\video1 >out.txt").
... but I'd like to send the data directly to a php (ex.:http://www.foo.com/process.php).
Can I do that somehow? (ex.: zbarcam \dev\video1 >http://www.foo.com/process.php?code=)
thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm looking to do the exact same thing. Looks like no one has a proper answer. Just been playing around and this batch script seems to sort of work though..
cd C:\Program Files (x86)\ZBar\bin>
zbarimg -d C:\Users\User\Desktop\image.png > C:\Users\User\Desktop\1.txt
set /p VAR1=<C:\Users\User\Desktop\1.txt
start http://domain.co.uk/page.php?var=%var1%
del C:\Users\User\Desktop\1.txt
Now just need to get it to work with the webcam (I'm trying to verify ticket numbers)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the exec command.
barcode=exec('zbarimg image_file_link.jpg');
print barcode.
If you only need the barcode, use '--raw' and '-q' modifiers.
Last edit: Leandro Felizari 2015-07-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
ZBar succesfully write the readed codes into a specified txt file (I use this method under windows command line: "zbarcam \dev\video1 >out.txt").
... but I'd like to send the data directly to a php (ex.:http://www.foo.com/process.php).
Can I do that somehow? (ex.: zbarcam \dev\video1 >http://www.foo.com/process.php?code=)
thank you
nobody?
I'm looking to do the exact same thing. Looks like no one has a proper answer. Just been playing around and this batch script seems to sort of work though..
cd C:\Program Files (x86)\ZBar\bin>
zbarimg -d C:\Users\User\Desktop\image.png > C:\Users\User\Desktop\1.txt
set /p VAR1=<C:\Users\User\Desktop\1.txt
start http://domain.co.uk/page.php?var=%var1%
del C:\Users\User\Desktop\1.txt
Now just need to get it to work with the webcam (I'm trying to verify ticket numbers)
You can use the exec command.
barcode=exec('zbarimg image_file_link.jpg');
print barcode.
If you only need the barcode, use '--raw' and '-q' modifiers.
Last edit: Leandro Felizari 2015-07-28