Notices


Reply
Thread Tools
amorek13's Avatar
Posts: 245 | Thanked: 32 times | Joined on Oct 2009 @ CT USA
#81
remove zbar
 
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#82
Originally Posted by lardman View Post
If anyone knows about .desktop files, please take a look at the Diablo one. It's the same as used for the Fremantle build, not sure if that's good or not.
Removing or commenting out the "X-Osso-Service" line allows it to start from the launcher on my N800. I'm not sure what that does to the DBus code, as I can't get the launcher to redirect stdout/err to files.

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 

The Following User Says Thank You to jkq For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#83
Ah, good stuff, I'll test with that line removed and see if the DBus stuff starts working on the N8x0.

Many thanks
 
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#84
I was scanning some 1D product barcodes, and I'm noticing an extra "0" on the front.

I though I'd take a screenshot with load-applet, but it seems the camera feed isn't captured. Then I thought it'd be useful if mbarcode could save the image it processed to a file.

I attached a picture of a barcode I took with liqbase, and a screenshot of mbarcode's decode with that extra "0".

-jkq
Attached Images
  
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900

Last edited by jkq; 2009-12-05 at 20:20. Reason: added some pictures
 

The Following User Says Thank You to jkq For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#85
Barcodes with only 12 numbers are called UPC which is a subset of EAN (which has 13 characters).

Iirc I'll have to check and see how I've converted UPC to EANs (as I live in the UK, I don't actually tend see UPC barcodes). I may have made a mistake there as the checksum ought to change.

In fact I should just not do the conversion and present the raw data.

Consider it another change added to the list!
 

The Following User Says Thank You to lardman For This Useful Post:
Kieron's Avatar
Posts: 388 | Thanked: 115 times | Joined on Oct 2009 @ London, UK
#86
Originally Posted by lardman View Post
Ok, so I've done some more work on mbarcode recently. The code is in Garage project maemo-barcode if anyone's interested.

The Fremantle version in Extras-devel is a couple of iterations further on than the Diablo version (also in Extras-devel), but that's just because I've not got round to changing my sb target to check that it builds. Will do that this evening.

So current feature set:
  • Autofocus (N900) - automatically focuses when you click "Scan", also if you tap the video image while it's running.
  • Rotation support (N900)
  • Decodes 1D and QR codes using zbar (thanks tteribe/derf for adding QR support) and Datamatrix codes using libdmtx.
  • Displays the decoded data (in an edit box so you can copy it if needed) and tries to open an application to handle the data. This is mainly important for 2D barcodes which might contain vCards, telephone numbers, URLs, email addresses, etc.
  • For 1D codes, I have a very rough and ready Amazon webscraper in place, but really I could do with more data sources (there are some commented out in the code in web.c) and better parsing of the HTML data (not my area of expertise).

What I would really like is to use Amazon Web Services (AWS), but again I'm not an expert and the example source I've seen is all !C code. Any help gratefully appreciated.

So sometimes the app will tell you it's looking up a barcode, but nothing will happen - either due to no weblink, or the parser failing.

Things to improve/add:
  • Lots of compiler warnings, should clean the code up and get rid of these.
  • AWS support.
  • The code has a partially working database system (in which one can save and search for barcodes for e.g. your CD collection, etc.), but I've commented it out for the time being as it's not fully working. Get this working!
  • For a given product produce page which shows detailed information and reviews and prices at various retailers (AWS would help greatly with these items)
  • Add support for further 2D barcode payloads - please suggest any you think it doesn't handle, code appreciated too
  • Add support for installing an application from a 2D barcode - I've got some commented out code in there atm which will allow you to encode the contents of an .install file in e.g. a QR code (QR code decoding is much faster than datamatrix, so is preferable) and after decoding pass this onto the app manager.
  • improve performance of libdmtx, or preferably move the functionality to zbar (to avoid multiple image processing steps).
Thank you for this. Hope this app evolves into something even more spectacular.
 

The Following User Says Thank You to Kieron For This Useful Post:
Posts: 78 | Thanked: 28 times | Joined on Oct 2009 @ London
#87
Hi, is there any chance that the function could be added where 2D barcodes can be scanned and it will search google for that product? I have seen this on android phones and it is very handy as google finds the cheapest price for that item.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#88
I'm planning to add that feature, but as I don't know much about webscraping, patches are welcome.

I'm currently moving the code to use Qt, as this will allow me to integrate Python plugins (which should make writing plugins such as this Amazon lookup much easier and quicker).
 

The Following 4 Users Say Thank You to lardman For This Useful Post:
Posts: 13 | Thanked: 6 times | Joined on Nov 2009
#89
Lardman, I have an idea: we can install plugins through 2D barcodes. It's not so hard to code and it's quite useful
 
Posts: 7 | Thanked: 0 times | Joined on Nov 2009
#90
Hi lardman,

Great work on mbarcode! I have been silently following its rapid development for a little while and I have compiled a few questions along the way and thought it was about time I asked them.

1) Firstly, how the port to Qt going?

2) I am curious how much mbarcode relies on zbar? It looks from a quick scan of the source that zbar is only used for the N900 - if true, why is that so? If zbar does all the barcode scanning and video streaming, then mbarcode's responsibility is displaying the UI, packaging it up into an app, and providing dbus messages, right?

3) I have looked at zbar and can see that it has its own Qt widget - are you using that?

4) Do you have any plans to put mbarcode on gitorious and start accepting contributions? I would like to help out if I can.

5) Finally, I can't find any info regarding the licensing for mbarcode - will it be GPL or LGPL or something else entirely?

Regards,
Paul Drummond
 
Reply

Tags
barcode, camera, mbarcode

Thread Tools

 
Forum Jump


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