![]() |
Re: mbarcode
It seams that it doesn´t support written accents. Instead of an "á" or an "ó" it displays an square. Is it my problem or an issue with the program.
|
Re: mbarcode
Quote:
Quote:
Quote:
|
Re: mbarcode
Quote:
|
Re: mbarcode
I created this one with all the vowels:
|
Re: mbarcode
ZXing generates this output (http://zxing.org/w/decode):
A á E é I Ã* O ó U ú and mBarcode generates something with similar end symbols (look at the terminal output. Ignore the fact that on some line most of the data are turned into delta characters, this seems to be caused by not using qPrintable() but instead using the stream operator to send the text to qDebug().) So the question is really, what sort of encoding does the barcode contain? Afaiu, both libzbar and libdmtx should accept UTF-8, and it is possible to specify this at the beginning of the barcode. See this comment: http://sourceforge.net/tracker/?func...36&atid=928516 Basically it's going to take some more digging I think to work out whether the fault lies with the data (not saying what encoding it uses), the decoders (not guessing correctly or not handling the particular encoding in the data) or mBarcode (loosing the encoding along the way). We specifically generate the QStrings that pass the data around using .fromUtf8(), so I think we should be handling it correctly. I'll see if there's a way of forcing the decoders to always assume UTF-8 in the absence of any other indicators. |
Re: mbarcode
Confirming that the new mbarcode version from Extras-Devel is way more responsive now.
|
Re: mbarcode
I've just pushed a very minor update to extras-devel which implements focus+scan for 5sec if you press the space button as mrsellout requested.
I've also worked out why the DBus and PythonQt plugins weren't working (my not using QDir very well) and will do some testing to see if I can get these up and running asap. Nothing in Extras-* for these, but they are sat in SVN if anyone wants to take a look. |
Re: mbarcode
I'll try to get around and fix the fps startup issue. I just haven't found the error in the code yet. I think it could be solved by checking the shutter state one more time.
About the characters, this was something I looked into earlier. The problem is that ISO-8859-something or UTF-8 is usually the encoding used for qr codes, but there is no default encoding in the specification, so everything, including UTF-8, might be used. In other words, if there is no information about the character encoding used by the qr encoder, there is no way to know what it is. I suggest we go with assuming UTF-8, as it is most universal, unless there are any encoding hints in the code. |
Re: mbarcode
But we could of course add an user option to change the encoding in case we get it wrong. Or somehow try to "guess" the encoding, if that is at all possible?
|
Re: mbarcode
Quote:
Quote:
Dragly, any thoughts on giving an indication (e.g. colour the list item) in the ResultsWindow sink list so that users know their tap has been registered? |
Re: mbarcode
One could hope the encoder developers were thinking the same thing, but when I researched this I found several online encoders using completely different character sets. I don't remember which it was, but there was even one webpage decoding it's own codes with the wrong char encoding :-p
Letting the user choose an encoding manually should hopefully help us out in the cases where everything else fails. I have no idea why the visual indication of clicking a button in the results list has disappeared, but I'll look into it ASAP. I think I'll do some work on mBarcode by the end of the week. |
Re: mbarcode
Quote:
Quote:
Quote:
The list doesn't contain any widgets and uses a custom delegate painter to draw the items, so I imagine the painter will need to be told the location of the selected item so that it can draw e.g. a different background. I don't really know, I got bogged down in the delegate stuff over the past few days and decided to move onto more productive avenues instead. I'm thinking of moving things like the DBus setup into the same thread that does plugin loading (if possible) just to try to remove as much stuff as possible before the UI is shown. Might also move the gst pipeline setup, but was planning on leaving that for the time being as it will probably necessitate changing how the UI starts up. I'm also going to split up the qrcode sink into multiple sinks so that for any given payload (e.g. a vCard) it can display separate buttons (i.e. sinks) for both the overall vCard and also the contents. I.e. button to save the vCard, button to dial telephone #s, open URLs, send emails to email addresses, etc. Oh yes, and get the MECARD reading working as you kindly moved the vCard import to using the QtMobility functions, thanks! :) |
Re: mbarcode
http://chart.apis.google.com/chart?c...%A9my+Hubscher
This has the BOM encoded at the start to indicate it's UTF-8, which seems to decode properly. On a completely different note, has anyone else found that you sometimes revert back to continuous scanning until you open the Settings dialog? I thought I'd fixed this but apparently not. Drat! :) - seems to happen to me after I've scanned something. I'll have to check and see what's going wrong there |
Re: mbarcode
Quote:
|
Re: mbarcode
Ok, fixed the one with the continuing scanning - I think it's because the timed scanning timer is still running if you close the results window quickly after it's got something. I've made it stop when any window is opened now.
I may have also fixed the OpenGLES framerate thing. With the shutter closed at startup I see it start at ~8fps and drop down to 2.5fps or thereabouts. Is that what we're after? I'm pushing a new version now. Edit: I should also add that in my efficiency drive, I've paused the pipeline whenever a window is opened. We might need to revisit switching timers off when the app is backgrounded as I have a feeling they remain running. |
Re: mbarcode
what happened to mbarcode ? i update it twice till now and it can't detect the firefox barcodes ? before the 2 updates it was perfect but the new updates just messed it up really bad !!!
|
Re: mbarcode
Really?! Can you give me an example URL with one of these and I'll work out what's up?
Nothing has changed with the decoders, just with the UI and handler code, so it really ought to work as before. |
Re: mbarcode
Quote:
|
Re: mbarcode
But can you give us an example of a code which isn't working (i.e. a picture - perhaps taken using mBarcode itself...)? Otherwise it's a bit hard to work out what's wrong.
|
Re: mbarcode
Quick reply...
The latest version of mbarcode: First scanned QR code - all correct, Open URL from QR code plugin. After returning from results page to camera, locking and unlocking the device, scanning a EAN-13 code, the result page contains the old result from QR code ("open URL"), and it can still open URL of the previously scanned QR code. It's supposedly problem of interaction between the new version of mbarcode and the unchanged QR code plugin, because the problem wasn't noticed in previous versions of mbarcode (or, maybe, such sequence of events hasn't happened before?). Thank you for mbarcode! I'm using it in manual mode (no auto-focus, no auto-scan). |
Re: mbarcode
Quote:
i tried to do as Wikiwide said and i closed the auto focus and auto scan and it worked, i dunno if its better without the auto focus and auto scan or not |
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
With auto-scanning set on, pressing the shutter button fully down (or the space bar) will give you the option to save the current frame to file. Otherwise there's a little disk icon in the top right-hand corner below the X (close) button. Please attach an example of a barcode that isn't working for you. |
Re: mbarcode
Ok, so I've added a function to decode and add MECARD/BizCards, but it's failing to add the contacts to the db. I need to work out whether it's possible to obtain more information from the QtContacts* stuff to work out why (and indeed if using the QContactManager even works under Maemo).
While doing this, I was thinking that it would be useful to let plugins signal the UI/user that they have (un)successfully performed their processing, using e.g. one of those information ribbons. One option is to let each plugin do its own thing and generate an info ribbon as and when it wishes; another is to provide a slot/signal pair which the plugin can call with a message when it's done (or even while still processing). The latter case would mean we could specify how the messages appear and even keep a record/history, etc. What are your thoughts Dragly as this would be a slight change to the plugin API? |
Re: mbarcode
My thoughts on user feedback has been to use the ResultsWindow list. By changing the text/icon, the plugin can show the number of results, an error text etc. That is the reason why there is a timer in the ResultsWindow.
A ribbon is not a bad idea, but I'm afraid that this might spam the user if all the plugins start using this approach. The ribbons are limited to only show one at the time. Without a timeout, each ribbon must be clicked on to go away, and with a timeout the user might not see the info from the ribbon before it is gone. I believe updating the plugin text or title is the best approach to give the user input on what's going on, unless we want this kind of input in other places than the ResultsWindow? |
Re: mbarcode
Ah ok, that sounds like a good idea, ignore my previous ribbon thoughts :)
I've just had a look at the QTableView delegate paint callback and (not knowing any better way to do it) I suppose we could store the item number of the last pressed "button" and have the paint event paint that differently to indicate that their tap has actually done something. Any other ideas? |
Re: mbarcode
No need, I just found my mistake. I had set the "selectionMode" of the QTableView to "NoSelection" some time long ago (for some reason unknown to me now). I have been suspecting the issue to be something like this, I just haven't had the time to figure out what I did wrong before today.
A new (untested) version with the fix has been pushed to SVN now. Hopefully this will give the user some more input. |
Re: mbarcode
Quote:
|
Re: mbarcode
Yes, you're right. My memory was wrong about what the checkPlugins() function was doing. Do you think that update() should be called by having the plugins issue an "imUpdated" signal, or should we periodically update the tableView? The former would probably cause less CPU time and power consumption.
|
Re: mbarcode
I'd go for something along the lines of an ImUpdated() signal as you say to save power on wasted updates, as many plugins probably won't even use this feature.
I've just tested the SelectionMode update and it works well, the only thing we probably need to do is remove the selection after some time (so it acts more like a button effect). Otherwise for e.g. the web search plugin, you return from the web search url list to find the row still selected. |
Re: mbarcode
On another topic. I figured out how to avoid using Scratchbox for development. I just reinstalled Ubuntu, and figured it would take a couple of hours to get Scratchbox up and running again. That made me think of whether or not I could use Nokia Qt SDK without Scratchbox.
The solution was actually quite simple. Download and extract the armel versions of libdmtx-dev and libzbar-dev and their dependencies (libdmtx and libzbar). Copy the usr folders to the following path, where <NokiaQtSDK> is where you have installed the SDK: Code:
<NokiaQtSDK>/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slimI will have to install Scratchbox again if I need to test packaging some time in the future, thought, but for now this was a very easy option :) I thought I should share it here in case anyone else wants to hack on mbarcode, but feels that installing and setting up Scratchbox is a bit cumbersome. |
Re: mbarcode
Quote:
|
Re: mbarcode
Apologies for butting in to your conversation here, but I had an idea that might work.
You implemented the 'push to scan feature' to save power & cpu usage right? In my use of this app, I wait until I have the barcode in the window before pushing spacebar (thanks again!). In a similar vein of user-interaction, how about having the user select which plugin s/he wants to use by having a different letter on the bottom row of the keyboard call a different plugin. They already know what type of barcode they are scanning so just need to hit the right key. So to scan a standard barcode you press spacebar, to scan a QR url press m, etc.. This could be optional like the push to scan, and I propose the bottom row because you can just edge the keyboard open. Just a thought, and I'll crawl back under my rock now, the app is perfect for my needs as it stands! |
Re: mbarcode
Not a bad idea at all. I guess adding an option for which button to press in the Plugins Settings window could let the users customize this as well :)
|
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
|
Re: mbarcode
Ok, I've just committed a change which removes the selection after 1000ms, so it now looks somewhat like a button-press to the user (which should hopefully let them know the UI has seen what they've done - i.e. pressed one of the plugin rows/buttons.)
Edit: I've just pushed an updated package to extras-devel too. |
Re: mbarcode
Talking about the current SVN code.
Strange, reading in an MECARD generated here (http://www.quickmark.com.tw/en/diy/?qrMeCard) I can correctly pull out the elements, though they way they encode the address fields doesn't match the iMode spec (http://www.nttdocomo.co.jp/english/s...ook/index.html), but for some reason I get error 3 returned by the QtMobility ContactManager, which means InvalidDetailError (see http://qt.gitorious.org/qt-mobility/...ntactmanager.h) Each contact detail is reported as being added successfully to the contact object (e.g. name, phone number, address, etc., etc.) Any ideas chaps? I guess I'll have to do some digging through the QtMobility source code to see what causes this particular error code. |
Re: mbarcode
Hi, I have tested Mbarcode for a couple of times now. Today I updated my n900 firmware to PR 1.3 and updated mbarcode to 0.2.3.3. Since then mbarcode stopped working. After I scanned the barcode of my Ananomy book, Logitech gaming headset, and few other stuff, it takes me to the "Results from scan" page. All i see is Results for "0097855062178" and nothing after that. There is no link or anything. It used to show me a list of link such as google, amazon or something similar. But now nothing. Is it because I updated my firmware? please help. I really in need of this.
|
Re: mbarcode
Quote:
|
| All times are GMT. The time now is 08:47. |
vBulletin® Version 3.8.8