Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#71
Ok, I need to do more Diablo testing. My apologies.

Will see if I can debug it over lunch.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 13 | Thanked: 6 times | Joined on Nov 2009
#72
Lardman, you are awesome, thanks for great work I'm looking forward to see Python in this application so I would be able to join this project.
One idea: you can show a window with a list of "handlers" of this barcode type. And this handlers can be just functions, as I told before. For example if we recognize ISBN it's "find book on Amazon", "find book on Google", "find book in .PDF"
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#73
Ok, so making progress, but currently debugging the "reading in and scanning a barcode from a file" bit, hang in there!
 
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#74
Originally Posted by lardman View Post
Ok, so making progress, but currently debugging the "reading in and scanning a barcode from a file" bit, hang in there!
Cool! Any luck with the DBus crashes on Diablo?

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#75
Not very exciting, but I've just pushed a new version of mbarcode (0.0.8). I don't know where this will end up, whether back in -devel or still in -testing.

Not exciting (other than for Diablo users as it doesn't segfault all the time now) as the features I've added aren't fully working yet. I would have waited until I'd got things fixed, but thought that the poor Diablo users, whom I've been neglecting, could do with some working code.

Summary of partial changes below:

I've fixed/hacked away the Diablo segfault caused by the NULL DBus connection by checking if the connection is there before I try to send. Doh!

However I need to get to the bottom of why it's not working. It may well be because the .desktop file isn't working (on the N900 it is, and you can't start from the command line - I was surprised to see the debugging output from the N800 tbh).

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.

In terms of other changes, I've removed my (hidden as not working well) CD/Book/DVD db code from the build, so the binary should be slightly smaller, and also removed the dep on sqlite3. This will be added back in as a plugin in the Qt version.

I've altered the front page to have an "open file" button, but for some reason the gdk_pixbuf_new_from_file_at_scale() code is failing in a strange way. It returns NULL for the buffer, but the gerror object is also returned as NULL. Again, I need to work out what's wrong here and fix it, then we should have the ability to open a file and decode any barcodes therein. I might change the way these buttons are arranged (have them side by side) if it's annoying the way it is?

I've also added a single large text area rather than the 4 small ones before. I hope this larger area will make it easier to read data from 2D barcodes.

I've disabled the webscraping which was causing segfaults and not generally managing to look much up anyway. Will add this back in in the Qt version via plugins, or sooner if someone comes up with some code

That's about all for now, if anyone fancies doing some .desktop and gdk debugging then please be my guest
 

The Following 4 Users Say Thank You to lardman For This Useful Post:
jkq's Avatar
Posts: 251 | Thanked: 131 times | Joined on Oct 2009 @ USA
#76
Originally Posted by lardman View Post
Not exciting (other than for Diablo users as it doesn't segfault all the time now) as the features I've added aren't fully working yet. I would have waited until I'd got things fixed, but thought that the poor Diablo users, whom I've been neglecting, could do with some working code.
Yay!

Originally Posted by lardman View Post
I've fixed/hacked away the Diablo segfault caused by the NULL DBus connection by checking if the connection is there before I try to send. Doh!

However I need to get to the bottom of why it's not working. It may well be because the .desktop file isn't working (on the N900 it is, and you can't start from the command line - I was surprised to see the debugging output from the N800 tbh).
Confirmed -- 0.0.8 does not crash on my N800 (and I can finally see qole's secret barcode message! ). Now it reports:

Code:
Just finished processing barcode
DBus connection failed, debug this!
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.
I don't know much about .desktop files, but I'll try to take a look at it later today or over the weekend.

Originally Posted by lardman View Post
I've altered the front page to have an "open file" button, but for some reason the gdk_pixbuf_new_from_file_at_scale() code is failing in a strange way. It returns NULL for the buffer, but the gerror object is also returned as NULL. Again, I need to work out what's wrong here and fix it, then we should have the ability to open a file and decode any barcodes therein. I might change the way these buttons are arranged (have them side by side) if it's annoying the way it is?
I guess I'll hold off on testing the "open file" feature.

How about placing both of the buttons to one side (keep them stacked on top of each other) and putting the result box below it?

Originally Posted by lardman View Post
I've also added a single large text area rather than the 4 small ones before. I hope this larger area will make it easier to read data from 2D barcodes.
The text bumps up against the camera area, and looks a bit strange to me. Would it be possible to shift it to the side somewhat?

Thanks!

-jkq
__________________
Class .. : Quiet One
Humor .. : [*********-] Alignment: Chaotic Good
Patience : [******----] Weapon(s): Python scripts
Agro ... : [***-------] Relic(s) : N900
 
Posts: 13 | Thanked: 6 times | Joined on Nov 2009
#77
This is what happens when I rotate my N900 twice:
http://rghost.ru/674035/image.png
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#78
This is what happens when I rotate my N900 twice:
Yep, that's caused because the window into which the camera data is drawn is not double buffered (can't be or you get all sorts of weird problems, like black screen while it's running, etc.).

This also means that it displays what was last in that location - click scan briefly and you'll get some camera footage instead.

I will fix this though, probably by writing a black/blank image or the last decoded image to the space after the gst pipeline is switched off and every time the orientation changes.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#79
The text bumps up against the camera area, and looks a bit strange to me. Would it be possible to shift it to the side somewhat?
Yes, I should be able to fiddle with the border settings on the two Box containers, I'll have a look at this, thanks for the reminder.
 
Posts: 108 | Thanked: 180 times | Joined on Sep 2009
#80
I cannot update. Reason conflict with packet zbar.

Last edited by koivjann; 2009-12-05 at 12:29.
 
Reply

Tags
barcode, camera, mbarcode

Thread Tools

 
Forum Jump


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