Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2009, 10:03 PM   #1 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Question Can the camera be used to read Barcode?

I have an idea to cowork with who knows something about reading barcode using camera, and even better he knows how to implement the idea as an app.
nessus is offline   Reply With Quote
Old 01-07-2009, 10:25 PM   #2 (permalink)
Senior Member
 
Join Date: Dec 2008
Posts: 142
Rep Power: 1
ambiensignal is on a distinguished road
Default

If the person knows how to code barcode recognition from a picture, then sure. Being able to read barcodes isn't a feature in a camera.
ambiensignal is offline   Reply With Quote
Old 01-07-2009, 10:32 PM   #3 (permalink)
Senior Member
 
brendand's Avatar
 
Join Date: Aug 2008
Posts: 202
Rep Power: 1
brendand is on a distinguished road
Default

I don't think the camera in the iPhone is capable of focusing close enough to get a good photo of the barcode though. The bars would be too close together to clearly distinguish them.
brendand is online now   Reply With Quote
Old 01-07-2009, 10:52 PM   #4 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

This is a 2D barcode app on windows mobile.
QuickMark v3.3 barcode reader freeware for Windows Mobile Pocket PC.

I think there should be a feasible way to recognize barcode in picture taken by smartphone camera.
nessus is offline   Reply With Quote
Old 01-07-2009, 10:52 PM   #5 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 25
Rep Power: 0
mikep is on a distinguished road
Default

There are several projects doing this. I read a story about a couple of apps on Google's Android that do this and then place flags on a map where yo could find the item close by as well (price comparison).

It had a link to 4 code projects for doing exactly that, unfortunately I cant find the link right now, but might be able to tomorrow when I am on my other computer.

I'll try to think about posting it here if I find it.

If not search, "android google book bar code camera" that might lead to a few things.
mikep is offline   Reply With Quote
Old 01-07-2009, 10:58 PM   #6 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 25
Rep Power: 0
mikep is on a distinguished road
Default

Found the project that Google is using is XZing (Zebra Crossing).

There are others as well.
mikep is offline   Reply With Quote
Old 01-07-2009, 10:59 PM   #7 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Quote:
Originally Posted by mikep View Post
There are several projects doing this. I read a story about a couple of apps on Google's Android that do this and then place flags on a map where yo could find the item close by as well (price comparison).

It had a link to 4 code projects for doing exactly that, unfortunately I cant find the link right now, but might be able to tomorrow when I am on my other computer.

I'll try to think about posting it here if I find it.

If not search, "android google book bar code camera" that might lead to a few things.
Great, but I am new to iphone app dev, so if somebody would like to collaborate, we can share some ideas.

Waiting for your digging in your another computer.
nessus is offline   Reply With Quote
Old 01-07-2009, 11:02 PM   #8 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 25
Rep Power: 0
mikep is on a distinguished road
Default

A cool blog story about bar codes in Japan and the iPhone.

QR Code Reader for iPhone - Barcodes / ZXing | Simon Blog

I am a partner in a price comparison engine and this is very interesting to us.
mikep is offline   Reply With Quote
Old 01-07-2009, 11:03 PM   #9 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 25
Rep Power: 0
mikep is on a distinguished road
Default

Quote:
Originally Posted by nessus View Post
Great, but I am new to iphone app dev, so if somebody would like to collaborate, we can share some ideas.

Waiting for your digging in your another computer.

I won't be digging in there until tomorrow... But I believe there were 4-5 listed. But Zebra crossing was the most interesting of them IMHO.
mikep is offline   Reply With Quote
Old 01-07-2009, 11:16 PM   #10 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Quote:
Originally Posted by mikep View Post
I won't be digging in there until tomorrow... But I believe there were 4-5 listed. But Zebra crossing was the most interesting of them IMHO.
Thank you for so many sharings, Mike.

I am looking through these links now, but I found ZXing can read many types of barcode, while Barcodes on the iphone platform only recognizes QR code. So there might be a heavy work ahead if I want to port them.
nessus is offline   Reply With Quote
Old 01-08-2009, 12:07 AM   #11 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Mike, NeoReader in AppStore NOTEs that product barcodes like UPC/EAN/JAN cant be read by iphone camera.

Seems there is a barrier to bring my idea into reality for groceries.
nessus is offline   Reply With Quote
Old 01-08-2009, 01:28 AM   #12 (permalink)
iPhone App Developer
 
chbeer's Avatar
 
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 219
Rep Power: 1
chbeer is on a distinguished road
Default

I tried around a bit and the cameras seems not to be capable of focusing the barcode so that you could analyse it. The picture is awfuly blurry.

I also had some nice ideas what one could do with a barcode scanner... but canceled my work on that.
__________________
Learn vocabularies on iPhone? iVocabulary!
chbeer is offline   Reply With Quote
Old 01-08-2009, 03:05 AM   #13 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Quote:
Originally Posted by chbeer View Post
I tried around a bit and the cameras seems not to be capable of focusing the barcode so that you could analyse it. The picture is awfuly blurry.

I also had some nice ideas what one could do with a barcode scanner... but canceled my work on that.
do you ever think about porting ZXing wholy to iphone? maybe it could improve the recognition ratio to acceptance.

Well, if that's still not applicable, let's wait for the barcode tech's maturity and iphone's camera upgrade to, say, 5mp.
nessus is offline   Reply With Quote
Old 01-08-2009, 06:30 AM   #14 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 25
Rep Power: 0
mikep is on a distinguished road
Default

The person would probably have to back up to take the photo and the you allow editing so they can let you know where the bar code it.

It seems like it is being done in Japan from one of the stories I posted earlier.

Here is the first story that I saw that talked briefly about Android and bar codes.

http://www.nytimes.com/2009/01/02/te..._r=2&adxnnl=1&

Which led me to this one about the 2 apps for android that do this...

Shopping with Google Android: Which app is best? | The Download Blog - Download.com


Which led me to searching... and reading... (I did find one decent size company that did some research on reading bar codes on cheap cameras that were all fuzzy and so on)

Barcode Reader - Project:Possibility Wiki

Ok.. And here is what you want (I think) some code to do it in Objective-C for the iPhone. I have not looked at the code yet... but they are offering it.

Barcodes as URLs

That is based on this project from Japan... http://qrcode.sourceforge.jp/

Cheers,
Mike



If you come up with a cool app, be sure to send me a token to dl it!

Last edited by mikep; 01-08-2009 at 06:33 AM.
mikep is offline   Reply With Quote
Old 01-08-2009, 06:50 AM   #15 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Quote:
Originally Posted by mikep View Post
The person would probably have to back up to take the photo and the you allow editing so they can let you know where the bar code it.

It seems like it is being done in Japan from one of the stories I posted earlier.

Here is the first story that I saw that talked briefly about Android and bar codes.

http://www.nytimes.com/2009/01/02/te..._r=2&adxnnl=1&

Which led me to this one about the 2 apps for android that do this...

Shopping with Google Android: Which app is best? | The Download Blog - Download.com


Which led me to searching... and reading... (I did find one decent size company that did some research on reading bar codes on cheap cameras that were all fuzzy and so on)

Barcode Reader - Project:Possibility Wiki

Ok.. And here is what you want (I think) some code to do it in Objective-C for the iPhone. I have not looked at the code yet... but they are offering it.

Barcodes as URLs

That is based on this project from Japan... Open Source QR Code Library

Cheers,
Mike



If you come up with a cool app, be sure to send me a token to dl it!
Mike, you did a fabulous homework for barcode recognition. Thank you very much. You definitely give me a generous hand.

I am diving into what you offered. No matter whether it's applicable to proceed my idea, I will let you know my next action.
nessus is offline   Reply With Quote
Old 01-08-2009, 10:17 AM   #16 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 1
Rep Power: 0
srowen is on a distinguished road
Default

Quote:
Originally Posted by nessus View Post
Thank you for so many sharings, Mike.

I am looking through these links now, but I found ZXing can read many types of barcode, while Barcodes on the iphone platform only recognizes QR code. So there might be a heavy work ahead if I want to port them.
(I am a developer of zxing)

In case it wasn't clear, Barcodes is the iPhone client from the ZXing project. You are right that we only ported support for QR Codes. The other formats we support are 1D formats and would not decode on the iPhone because it lacks auto-focus or macro mode. (The G1 does, so that's why you see the shopping apps that scan 1D codes. Incidentally these apps also using ZXing for barcode scanning.)

The source code for Barcodes is available from the ZXing project. You are welcome to port the 1D scanning code too, but it won't work on the iPhone. However, I have heard of lenses you can add on to the iPhone to make it focus up close, which would make scanning of 1D codes feasible.
srowen is offline   Reply With Quote
Old 01-08-2009, 03:38 PM   #17 (permalink)
Mobile Geek
 
Join Date: Aug 2008
Location: Florida, USA
Posts: 350
Rep Power: 1
rames44 is on a distinguished road
Send a message via AIM to rames44 Send a message via Yahoo to rames44
Default

Ya, 1D codes are tough to do on phones that don't have macro lenses because of the fine bar-space patterns in most 1D codes - the bars and spaces get blurred together.

2D codes like QR Code, DataMatrix, etc. typically are easier because they have larger modules, plus they have error correction built into the symbologies, which allows you to survive a less-than-perfect read.

The NeoMedia reader mentioned doesn't actually succeed at doing most 1D codes except in the most extreme and lucky circumstances. Their original app description was a bit misleading in that respect.
__________________
For a little fun, check out my Biorhythms app
rames44 is offline   Reply With Quote
Old 01-08-2009, 09:37 PM   #18 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 14
Rep Power: 0
nessus is on a distinguished road
Default

Quote:
Originally Posted by srowen View Post
(I am a developer of zxing)

In case it wasn't clear, Barcodes is the iPhone client from the ZXing project. You are right that we only ported support for QR Codes. The other formats we support are 1D formats and would not decode on the iPhone because it lacks auto-focus or macro mode. (The G1 does, so that's why you see the shopping apps that scan 1D codes. Incidentally these apps also using ZXing for barcode scanning.)

The source code for Barcodes is available from the ZXing project. You are welcome to port the 1D scanning code too, but it won't work on the iPhone. However, I have heard of lenses you can add on to the iPhone to make it focus up close, which would make scanning of 1D codes feasible.
Thank you for inside information, Owen.

Then it came to a rash conclusion that porting ZXing to iphone for 1D barcode, JAN/EAN/UPC, does very little to make a steady app, unless iphone has auto-focus and macro-mode.

So we should do nothing but wait, or prepare the ZXing on iphone for iphone's hardware/software upgrade?
nessus is offline   Reply With Quote
Old 01-08-2009, 11:39 PM   #19 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 123
Rep Power: 1
dicklacara is on a distinguished road
Default

Quote:
Originally Posted by nessus View Post
Thank you for so many sharings, Mike.

I am looking through these links now, but I found ZXing can read many types of barcode, while Barcodes on the iphone platform only recognizes QR code. So there might be a heavy work ahead if I want to port them.
Oops... Didn't read all the posts before posting... redundant!

Last edited by dicklacara; 01-08-2009 at 11:47 PM.
dicklacara is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements


» Stats
Members: 8,229
Threads: 20,197
Posts: 90,213
Top Poster: RickMaddy (2,121)
Welcome to our newest member, jrsiqueira
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0