maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   mbarcode (https://talk.maemo.org/showthread.php?t=34996)

lardman 2010-12-22 18:23

Re: mbarcode
 
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

TiagoTiago 2010-12-23 00:14

Re: mbarcode
 
Could you add support for reading POSTNET and IM barcodes please?

eneitten usr XD 2010-12-23 00:57

Re: mbarcode
 
we need all the support we need lol

lardman 2010-12-23 09:18

Re: mbarcode
 
Quote:

Originally Posted by TiagoTiago (Post 902459)
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 :)

lardman 2010-12-23 09:20

Re: mbarcode
 
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! :)

lardman 2010-12-23 15:43

Re: mbarcode
 
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.

lardman 2010-12-23 18:39

Re: mbarcode
 
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/

dsolbach 2010-12-23 19:19

Re: mbarcode
 
Thanks a lot for mBarcode! Just downloaded Firefox beta with it.

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

lardman 2010-12-23 21:30

Re: mbarcode
 
Quote:

Originally Posted by dsolbach (Post 903006)
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 :)

Wikiwide 2010-12-27 05:21

Re: mbarcode
 
Quote:

Originally Posted by lardman (Post 902895)
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).


All times are GMT. The time now is 08:47.

vBulletin® Version 3.8.8