[TIMOB-375] Access to camera as a barcode reader
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:28:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | barcode, camera |
Reporter | mutasim |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:28:12.000+0000 |
Updated | 2017-03-09T21:16:19.000+0000 |
Description
Google have open source libraries to do this (QR Codes), would be nice to see this accessible in Titanium
i have a working prototype around this using QR codes. I'll bring this in just as soon as 1.0 is out.
Hi jhaynie, i'm trying to make zxwing work on my project. If I have correctly understood, you already did it. So, can you help me please?
I'm able to access the camera and get the picture, and i've included zxwing library on my project. I just need a couple of code lines to
understand how to call the object-c function that decodes images. Thanks a lot, Flavio
if you can send me your sample project, maybe we can collaborate?
are you willing to contribute your work to titanium as open source?
Hi jhaynie, of course I'm willing to contribute my work as open source!
I was able to make zxwing work in a native obkect c project... I modified the source
and added a "take a picture" button. After that, the app decodes the qr code and give
me the result. Now I would like to paste it in a titanium project... I get no error
at compile time after insert the library on modules folder, but I can't figure out how
to call the function from javascript... I'm on it in this moment, if I get some
result i'll post you. Thanks a lot, Flavio
i haven't had a chance to create a better sample project - i will do that
before monday with the new documentation that will launch on monday. It's
rather easy. To call from JS - you just need to define a function in
objective-c module like this:
-(id)functionName:(id)args { return resultObject; }
This would map to JS:
var result = Ti.ModuleName.functionName(args);
To invoke a property accessor in JS:
-(id)propertyName { return result; }
To invoke a property setter in JS:
-(void)propertyName:(id)value {
}
Titanium generally will do the rest. If you need to fire events, the sample
module project created when you create a module will show you an example.
If you'd like, you can share your project with me and I can wire it up for
you and send it back to you.
Thank you jhaynie. I believe that my problem is to pass an image as parameter. I take a picture from camera and I want to use it as parameter for an object-c function (I've already make a module and titanium seems to compile it). I made a project in object-c that takes a shoot and decodes the qr code and it works. Now I'm tryng to call the function from titanium but my app freezes and gives me an error. In Xcode I do something like this:
[self.decoder decodeImage:image cropRect:cropRect];
If you give me your email address I will send you my working xcode project (I'm a web programmer, my obcject-c sucks :-D )
Thanks a lot, Flavio
jhaynie, did you get a chance to include your sample project in the documentation for 1.0?
Regards,
mutasim
I'm working on porting the doc and they should be done and published before
monday.
Hi jhaynie! Any news on porting?
Thanks a lot, Flavio
Any updates matey?
The module sdk docs are updated here:
http://developer.appcelerator.com/doc/mobile/iphone/module_sdk">http://developer.appcelerator.com/doc/mobile/iphone/module_sdk
Hi,
I am very curious if one of you ever got it working... (Since the last message on this already came from april). I am working on a similar project, A native qr-code reader in a mobile titanium application.
Do you guys know if anyone succeeded in realising this? I am not a programmer ( i am exacly a visual designer) so it's hard for me just to start somewhere. I am able to make a program in titanium, but i don't know really how to embedd a qr-reader/decoder in it which you can use the phone camera to "read" the code and a part of the application to decode it.
If anyone can help me any further with this, or wants to share his knowledge of this it really would help me a lot.
Hi, I'm working on it since February.
I'm not able yet to get zxing to work... but right now I just fix the barcode decoding problem by using this: http://zxing.org/w/decode.jspx">http://zxing.org/w/decode.jspx.
You take a picture with the camera, resize it and then upload it to that website... You will get the decoded string...
It's not an optimal solution, but jhaynie told us he is working on "marketplace app" wich will include some kind of api to decode barcodes.
Hope to be helpful,
Flavio
I have completed the initial version of this module for the upcoming marketplace.
I can provide a preview of the module to anyone that would like to test it ahead of its official release.
If interested, please send me email at jhaynie@appcelerator.com and reference the Barcode reader module.
this will not be in titanium itself but in the upcoming Module Marketplace to launch very soon. please stay tuned to developer blog.
Awesome. My prototype that I need to complete for angel funding in 2 weeks just got moved from "any day now" to "soon". I have an Android module using zxing, but the "Titanium Module SDK for iPhone/iPad" fails all over the place with the latest xcode. If a module for iPhone exists today, let's talk $$$ please!!
@JHill - email me and i can provide more details.
Thank you Jeff. Incoming... :)
There is an interesting project
http://code.google.com/p/tibar/">http://code.google.com/p/tibar/
Please integrate it on your main source.
Thanks
Do you have considered that:
http://blog.mwaysolutions.com/2010/09/24/barcode-module-for-appcelerator-titanium/"> http://blog.mwaysolutions.com/2010/09/24/barcode-module-for-appcele...
Closing ticket as invalid.