Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 18th Oct 2013 21:13 Edited at: 18th Oct 2013 21:15
Is there any way to handle them using the AppGameKit?
Edit: I understand that the AppGameKit aims to game programming but I am wondering if I can build another type of application.
Thanks in advance
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Oct 2013 00:20
for normal barcodes you need a laser scanner but
here with agk u can use qr codes and a build in camera with auto focus.
at android there is a dialog between before you can take a photo.
313
16
Years of Service
User Offline
Joined: 29th Sep 2007
Location: Poland
Posted: 19th Oct 2013 00:54
You don't need laser scanner to scan for ex. EAN13 (or any one-dimension barcode). This can be achieve by phone. But fact is, AppGameKit can scan only QR. At least Tier 1.

AGK
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 19th Oct 2013 04:01
AGK can capture photos from the camera, and 1.08 includes memblock commands to read and analyze the pixel data of any loaded image. Although it only supports QR code reading, in theory one could develop their own barcode scanner using it. You'd first capture the image from the camera, then run the pixels through necessary algorithms and formulas to detect the lines and determine the code. You could then send this code via HTTP to an existing Web service to look up the product and return the result.

It won't be a simple undertaking to make an accurate barcode reader, but it is conceivable with manual work.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Oct 2013 10:18
I don't think it would be that hard to make a barcode reader. When you take the photo, just analyze the pixels along a line in the center of the photo. Anything brighter then a specific value is registered as white and anything darker then a different value is registered as black. The codes starts and stops with 2 thin lines and there's white to the left and right of these. There's also 2 thin lines in the middle. All you then need is to know how to convert the lines to numbers.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Oct 2013 12:16
for commerce sector booth is to slow.
but i found a interesting hardware combination.
search at ebay: "Laser 2,4GHz Wireless Barcode Scanner USB"
also long ago i saw a small scanner plug for usb and palm device.
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 20th Oct 2013 08:32
Thank you all for your responses.
My goal is to take a photo, read the barcode using the photo and then make the management of the information
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Oct 2013 16:16 Edited at: 23rd Oct 2013 16:19
i believe a minimun resolution should be 5 megapixels.
here a 8x8cm barcode label from my company (export & industrial Packaging ).
the photo is made with a simple low budget compact camera.

Attachments

Login to view attachments
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Oct 2013 17:16 Edited at: 23rd Oct 2013 17:35
something i begin today.

the beginning and end of barcode should be some space with same color white.

george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 26th Oct 2013 11:48
Great stuff. I know nothing about barcodes so this piece of code helps me a lot!

Login to post a reply

Server time is: 2024-05-20 06:15:53
Your offset time is: 2024-05-20 06:15:53