gencod (ean13) with iphone camera ?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Chrius
Posts: 19
Joined: Fri Jan 28, 2011 4:04 pm

gencod (ean13) with iphone camera ?

Post by Chrius » Wed Feb 09, 2011 5:11 am

hi all,

any way to use the iphone camera of the iphone to catch a gencod (ean13 mainly) ?

thks

Chris

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: gencod (ean13) with iphone camera ?

Post by Klaus » Wed Feb 09, 2011 11:50 am

Hi Chris,

sure you can import any photo from the iPhone camera with:
...
iPhonePickPhoto "camera", [ maxwidth, [ maxheight ] ]
...

But I have a feeling that this is not what you are looking for 8)


Best

Klaus

Chrius
Posts: 19
Joined: Fri Jan 28, 2011 4:04 pm

Re: gencod (ean13) with iphone camera ?

Post by Chrius » Thu Feb 10, 2011 2:52 pm

Well thanks Klaus, but you're feeling is good ;)

In fact, i just want to capture the gencod (in english not sure... eerr perhaps bar code ? ean ?) photo, and recognize the numbers composing the gencod, so i can use it as a text

Chris

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: gencod (ean13) with iphone camera ?

Post by Klaus » Thu Feb 10, 2011 3:38 pm

Hi Chris,

yes, i think "barcode" is the correct english term.
But I am afraid you cannot "recognize" the code easily with the build-in capabilities of LiveCode.


Best

Klaus

Chrius
Posts: 19
Joined: Fri Jan 28, 2011 4:04 pm

Re: gencod (ean13) with iphone camera ?

Post by Chrius » Thu Feb 10, 2011 4:19 pm

Well, in fact, i had too this feeling :roll:

So Runrev, work on this... OCR...

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: gencod (ean13) with iphone camera ?

Post by Klaus » Thu Feb 10, 2011 4:53 pm

Hi Chrius,

don't exspect OCR before version >8 in LiveCode! :D

You could do some math with the IMAGEDATA of an image, if you really like to,
but I have no idea about this stuff.

Please check these URLS, maybe there is something that gets you started:
http://www.sonsothunder.com/devres/live ... vecode.htm
Scroll down to "Graphics/Images"

http://runrev.com/newsletter/february/i ... etter4.php

Best

Klaus

Post Reply