Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#61
Regarding choosing which app is opened when you open the lens protective cover: https://bugs.maemo.org/show_bug.cgi?id=6510
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#62
A very nice beginning!

I would like more feedback about what is going with the whole Scan window. The only button is the "Scan" / "Cancel" button, and there's no indication of what the "Scan" button does (except start the camera).

I would like the ability to send a barcode picture to mbarcode. This could be implemented via the "sharing plugins" thing, or a file dialog that lets me choose a picture. At the moment, if I have a picture with a barcode in it, I have to display the barcode on another computer's screen and then point my N900 at the picture to get it to scan.

Just want to report that it reads a very complicated QR Code (from my daughter's passport application) just fine.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#63
Yes, I've had a couple of people wanting it to be able to handle photographs that have already been taken, I can add this in reasonably easily.

Well as soon as you press scan and the camera starts up, the decoder is looking for barcodes in the images that are coming through. As soon as it finds one it stops and displays the results.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#64
Originally Posted by lardman View Post
Well as soon as you press scan and the camera starts up, the decoder is looking for barcodes in the images that are coming through. As soon as it finds one it stops and displays the results.
Ok,

A related issue: I found I have to hit the Scan / Cancel button a couple of times, because if it doesn't find the barcode right away, it stops focusing and needs to be restarted. So, hit Scan, get the barcode in the picture properly, hit Cancel, hit Scan, it focuses and displays the barcode translation.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#65
lardman: could you check this code for me? It seems to be producing ... interesting results.

__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
amorek13's Avatar
Posts: 245 | Thanked: 32 times | Joined on Oct 2009 @ CT USA
#66
Originally Posted by qole View Post
lardman: could you check this code for me? It seems to be producing ... interesting results.


hehe interesting stuff good work
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#67
hehe interesting stuff good work
Thanks

Right, I'm part way through an update, which I'll try to finish at lunch time.
Have removed the "Application top" notification
Will see if I can make the GUI come up faster (so it at least feels quicker)
Will make a single large text area rather than the 4 single line ones
Stop web lookups as they don't seem to work very well (will add them back in once I've sorted out something better)
Add ability to open an existing image file and scan it.

I must admit I've not seen any problems/crashes caused by the DBus code, but will do some more testing and see if I can work out what's going on there.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 114 | Thanked: 201 times | Joined on Apr 2009
#68
Originally Posted by lardman View Post
I must admit I've not seen any problems/crashes caused by the DBus code, but will do some more testing and see if I can work out what's going on there.
I'd bet on this having something to do with it:

Code:
~ $ mbarcode
Opening database... /home/user/.mbarcode/mbarcode.db
We're an N800
About to do osso_initialize()
About to do osso_get_sys_dbus_connection()
mbarcode[13292]: GLIB CRITICAL ** default - dbus_g_bus_get: assertion `error == NULL || *error == NULL' failed
Because when the crash happens, we get this:
Code:
decoded UPC-A symbol "792502900673"
analyse_image() returned TRUE
first bit
Got a message from the GStreamer thread
Entered libdmtx_analyse_image()
libdmtx_analyse_image(): done dmtxImageCreate
libdmtx_analyse_image(): done dmtxDecodeCreate
Just finished processing barcode
process 13292: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3003.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#69
Ah ok, failed to initialise. I've probably already asked, but does this always happen for you? And also what type of device are you running on?

While I'm happy to fix problems and make small enhancements (see my post above), I'm planning on committing most of my work to porting to use Qt. For one thing Qt will be the main toolkit of Maemo 6, so I can save some transition time, but also as Qt is able to incorporate scripting languages such as Python, this will make writing plugins easier.

I hope this won't take more than a few days.

Not every having written a Qt/C++ app from scratch, what do people recommend wrt:
Using GStreamer?
How to encapsulate my current global struct AppData - create an mbarcode class to hold this?

Thanks
 
Posts: 114 | Thanked: 201 times | Joined on Apr 2009
#70
Originally Posted by lardman View Post
I've probably already asked, but does this always happen for you? And also what type of device are you running on?
N800, Diablo (5.2008.43-7), reproducible every time (I have yet to get a barcode capture that doesn't result in a crash).
 
Reply

Tags
barcode, camera, mbarcode

Thread Tools

 
Forum Jump


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