{ "id": "61007", "key": "TIMOB-375", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:28:16.000+0000", "created": "2011-04-15T02:28:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "barcode", "camera" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:16:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Google have open source libraries to do this (QR Codes), would\nbe nice to see this accessible in Titanium
i have a working prototype around this using QR codes. I'll\nbring this in just as soon as 1.0 is out.
Hi jhaynie, i'm trying to make zxwing work on my project. If I\nhave correctly understood, you already did it. So, can you help me\nplease?
\nI'm able to access the camera and get the picture, and i've\nincluded zxwing library on my project. I just need a couple of code\nlines to
\nunderstand how to call the object-c function that decodes images.\nThanks a lot, Flavio
if you can send me your sample project, maybe we can\ncollaborate?
\nare you willing to contribute your work to titanium as open\nsource?
Hi jhaynie, of course I'm willing to contribute my work as open\nsource!
\nI was able to make zxwing work in a native obkect c project... I\nmodified the source
\nand added a \"take a picture\" button. After that, the app decodes\nthe qr code and give
\nme the result. Now I would like to paste it in a titanium\nproject... I get no error
\nat compile time after insert the library on modules folder, but I\ncan't figure out how
\nto call the function from javascript... I'm on it in this moment,\nif I get some
\nresult i'll post you. Thanks a lot, Flavio
i haven't had a chance to create a better sample project - i\nwill do that
\nbefore monday with the new documentation that will launch on\nmonday. It's
\nrather easy. To call from JS - you just need to define a function\nin
\nobjective-c module like this:
-(id)functionName:(id)args { return resultObject; }
\nThis would map to JS:
\nvar result = Ti.ModuleName.functionName(args);
\nTo invoke a property accessor in JS:
\n-(id)propertyName { return result; }
\nTo invoke a property setter in JS:
\n-(void)propertyName:(id)value {
\n}
\nTitanium generally will do the rest. If you need to fire events,\nthe sample
\nmodule project created when you create a module will show you an\nexample.
If you'd like, you can share your project with me and I can wire\nit up for
\nyou and send it back to you.
Thank you jhaynie. I believe that my problem is to pass an image\nas parameter. I take a picture from camera and I want to use it as\nparameter for an object-c function (I've already make a module and\ntitanium seems to compile it). I made a project in object-c that\ntakes a shoot and decodes the qr code and it works. Now I'm tryng\nto call the function from titanium but my app freezes and gives me\nan error. In Xcode I do something like this:
\n[self.decoder decodeImage:image cropRect:cropRect];
\nIf you give me your email address I will send you my working\nxcode project (I'm a web programmer, my obcject-c sucks :-D )
\nThanks a lot, Flavio
jhaynie, did you get a chance to include your sample project in\nthe documentation for 1.0?
\nRegards,
\nmutasim
I'm working on porting the doc and they should be done and\npublished before
\nmonday.
Hi jhaynie! Any news on porting?
\nThanks a lot, Flavio
Any updates matey?
The module sdk docs are updated here:
\nhttp://developer.appcelerator.com/doc/mobile/iphone/module_sdk
Hi,
\nI am very curious if one of you ever got it working... (Since\nthe last message on this already came from april). I am working on\na similar project, A native qr-code reader in a mobile titanium\napplication.
\nDo you guys know if anyone succeeded in realising this? I am not\na programmer ( i am exacly a visual designer) so it's hard for me\njust to start somewhere. I am able to make a program in titanium,\nbut i don't know really how to embedd a qr-reader/decoder in it\nwhich you can use the phone camera to \"read\" the code and a part of\nthe application to decode it.
\nIf anyone can help me any further with this, or wants to share\nhis knowledge of this it really would help me a lot.
Hi, I'm working on it since February.
\nI'm not able yet to get zxing to work... but right now I just fix\nthe barcode decoding problem by using this: http://zxing.org/w/decode.jspx.
\nYou take a picture with the camera, resize it and then upload it to\nthat website... You will get the decoded string...
\nIt's not an optimal solution, but jhaynie told us he is working on\n\"marketplace app\" wich will include some kind of api to decode\nbarcodes.
\nHope to be helpful,
\nFlavio
I have completed the initial version of this module for the\nupcoming marketplace.
\nI can provide a preview of the module to anyone that would like\nto test it ahead of its official release.
If interested, please send me email at jhaynie@appcelerator.com and\nreference the Barcode reader module.
this will not be in titanium itself but in the upcoming Module\nMarketplace to launch very soon. please stay tuned to developer\nblog.
Awesome. My prototype that I need to complete for angel funding\nin 2 weeks just got moved from \"any day now\" to \"soon\". I have an\nAndroid module using zxing, but the \"Titanium Module SDK for\niPhone/iPad\" fails all over the place with the latest xcode. If a\nmodule 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
\nhttp://code.google.com/p/tibar/
\nPlease integrate it on your main source.
\nThanks
Do you have considered that:
\n\nhttp://blog.mwaysolutions.com/2010/09/24/barcode-module-for-appcele...