barcode reading
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
barcode reading
Hi,
Does anyone know anything about barcode reading?
My objective is to be able to read a barcode and retrieve related data from a database.
Thanks.
Does anyone know anything about barcode reading?
My objective is to be able to read a barcode and retrieve related data from a database.
Thanks.
http://www.ashberg.de/php-barcode/
might be a start, for reading them however I think you'll def. need some hardware interaction
might be a start, for reading them however I think you'll def. need some hardware interaction
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
I would suggest something like a unique id, of maybe 6 numbers being inputted into the database on sign-up. Then perhaps use that application posted above for the image creation on request (UPC looks OK). That way, everything relating to PHP, will use the 6 digit ID, and only the barcode scanner will read the image (which then, essentially is converting the image back into the number anyway).aceconcepts wrote:I was wondering how I would go about "getting" the barcode value and using it to query a database (assuming I have the hardware).
I would wait until you get the hardware until you (obviously talk to the salesman about what you want, hopefully he/she has half a brain) worry about querying the database, as I'd assume that the number if what would come from the hardware anyway.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Yeah the upload app is very cool.
Thanks for the post iknownothing, I was thinking of doing something like a longer unique id when people sign up, thus keeping things "php-simple"
.
I don't have the hardware yet but how does it work when you scan a barcode? How would one "get" the image scanned?
What I mean is how does the scanner communicate with a php script to retrieve the image/barcode?
I think i'm making sense
Thanks.
Thanks for the post iknownothing, I was thinking of doing something like a longer unique id when people sign up, thus keeping things "php-simple"
I don't have the hardware yet but how does it work when you scan a barcode? How would one "get" the image scanned?
What I mean is how does the scanner communicate with a php script to retrieve the image/barcode?
I think i'm making sense
Thanks.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
As far as I can remember (look into barcode readers, they have info on this) barcode scanners simply emulate keyboard strokes.
When you scan a barcode, relavent characters should be entered into the currently selected textbox. Which you can then POST to a PHP script. Not sure if reading a barcode from PHP is really nessecary.
When you scan a barcode, relavent characters should be entered into the currently selected textbox. Which you can then POST to a PHP script. Not sure if reading a barcode from PHP is really nessecary.
I can confirm that hardware barcode readers do return a regular string with data
(like a keyboard as hockey mentionned) You'll probably find lots of barcode recognition software too..
(Even i was able to create a very, very, very basic Code39 scanner (using c#) in less than an afternoon)
(Even i was able to create a very, very, very basic Code39 scanner (using c#) in less than an afternoon)