Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#681
I've been doing some updating to the main mBarcode program - I've updated the plugin settings dialog so that you can enable/disable plugins, this means that they then won't be displayed on the Results page. If you disable all but one plugin, and tick the reelvant checkbox on the settings page you can have mBarcode automatically run the enabled plugin (might be useful for stocktaking, adding to lists, etc.).

I'm currently trying to work out why slot methods don't get called in the Python plugins, but the biggest annoyance of my past week of mBarcode hacking is that I added an on-screen button to allow the user to load and scan from an image file (no icon atm, so we have 2 spanners on the RHS) but I can't for the life of me get it to work (i.e. successfully decode the image data it's passed) - I've added debugging output, saved the frames coming from the normal video stream and that generated from the image file, and still I can't see what the problem is.

Anyway, I'll push an update in the next day or so (will mean bumping all the plugin packages too as the plugin api has been modified to allow for enabling/disabling plugins), but if anyone fancies doing some debugging of my image loading/decoding problem (and you'll need to modify the code, and certainly need to look at an understand it) please let me know.

Cheers

P.S. I've also started adding more stuff to the maemo.org wiki page: Explanation, howtos, todo, etc. I'll get there in the end!

Please feel free to add useful docs/screenshots/other description stuff

http://wiki.maemo.org/MBarcode

Last edited by lardman; 2010-12-22 at 20:11.
 

The Following 3 Users Say Thank You to lardman For This Useful Post:
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#682
Could you add support for reading POSTNET and IM barcodes please?
 

The Following User Says Thank You to TiagoTiago For This Useful Post:
Posts: 59 | Thanked: 10 times | Joined on Dec 2010 @ / Puerto Rico/ Arecibo
#683
we need all the support we need lol
__________________
the world beyond is what i discovered when i found Maemo,,,...© [°I__ I ] © Thank you LORD 4 ALL XD



About eneitten usr XD

Location
mississippi /\&\/ Puerto Rico
Operating System
Maemo4 (Penguin SMASHING windows lmbo]
Mobile Phone
it doesnt matter i still gotta wait to get a nokia what else...,,,,waiting..,,,,,,
Handhelds
15 months N810 all day everyyyyyy day thats it!!: g eek:
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#684
Originally Posted by TiagoTiago View Post
Could you add support for reading POSTNET and IM barcodes please?
I would like to add support for every barcode type and payload under the sun, but time is short

First step is to add an enhancement bug to the bugtracker so that we can keep track of things in one place: https://bugs.maemo.org/enter_bug.cgi?product=mbarcode

Next step is to see if ZBar (or libdmtx) are considering adding these (and whether there's any code that can therefore be worked on), if not, the next step is to see if there are any open source decoders available so that we could add in an extra decoder.

If none of those work, then patches are of course always welcome
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#685
Ah, I've fixed the Python scripting plugin (signals and slots now working, yay!), so once I commit that later on today (with the updated version of mBarcode) you'll all be able to write nice Python scripts to handle barcode payloads!
 

The Following 3 Users Say Thank You to lardman For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#686
Right, new version of mBarcode and all the plugins (just bumped the version number as they are compiled against the new plugin api) on their way to extras-devel.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#687
Oh btw, here's some skeleton-ish code for your Python plugins: https://garage.maemo.org/plugins/scm...de&view=markup

Stick them in /usr/share/mbarcode/plugins/pythonqt/
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 9 | Thanked: 2 times | Joined on Oct 2010
#688
Thanks a lot for mBarcode! Just downloaded Firefox beta with it.

https://www.mozilla.com/en-US/mobile/beta/
 

The Following User Says Thank You to dsolbach For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#689
Originally Posted by dsolbach View Post
Thanks a lot for mBarcode! Just downloaded Firefox beta with it.

https://www.mozilla.com/en-US/mobile/beta/
Cool, glad to be of help
 

The Following 2 Users Say Thank You to lardman For This Useful Post:
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#690
Originally Posted by lardman View Post
Right, new version of mBarcode and all the plugins (just bumped the version number as they are compiled against the new plugin api) on their way to extras-devel.
Where is the new API described?

Right now new Mbarcode cannot work because of my out-of-date plug-in. Just crashes at first loading of the plug-ins.

Are getImage and getInformativeText mandatory functions?

I will upload here code and compiled library if I manage to compile my plugin with new API.

EDIT: Now Mbarcode doesn't crash and it can scan a barcode and display results, but it doesn't see my plug-in at all. What am I missing? It's not in the list of plug-ins.

EDIT: Ok, it works now, I'll need to add some code so that informative text was more informative than short text.

Note: I don't really understand how can signal be connected to MaemoBarcodeWindow* parent when I haven't taken plugin's parent at all; this->parent = parent; is obsolete. But it doesn't really matter.

Note about QrCode plugin: its image is too small in "Set Plugins" window. And if some-when I will need to use an image, I would be interested in knowing how to adapt it to needed size (small in results, large in settings).

Last edited by Wikiwide; 2010-12-27 at 05:58.
 
Reply

Tags
barcode, camera, mbarcode


 
Forum Jump


All times are GMT. The time now is 07:52.