Page 1 of 1

gencod (ean13) with iphone camera ?

Posted: Wed Feb 09, 2011 5:11 am
by Chrius
hi all,

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

thks

Chris

Re: gencod (ean13) with iphone camera ?

Posted: Wed Feb 09, 2011 11:50 am
by Klaus
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

Re: gencod (ean13) with iphone camera ?

Posted: Thu Feb 10, 2011 2:52 pm
by Chrius
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

Re: gencod (ean13) with iphone camera ?

Posted: Thu Feb 10, 2011 3:38 pm
by Klaus
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

Re: gencod (ean13) with iphone camera ?

Posted: Thu Feb 10, 2011 4:19 pm
by Chrius
Well, in fact, i had too this feeling :roll:

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

Re: gencod (ean13) with iphone camera ?

Posted: Thu Feb 10, 2011 4:53 pm
by Klaus
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