![]() |
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
Thanks a bunch, and do well on your exams (I'm sorry I might have kept you away from your books.) |
Re: mbarcode
Quote:
|
Re: mbarcode
I got an idea to call refocus on a time interval instead of only when the "Refocus" button is clicked. I have updated the newest version of mbarcode with this, and would really like to hear if this works as expected for everybody ;) If it does, I believe we could remove the 'Refocus' button completely.
|
Re: mbarcode
Quote:
For me it doesn't seem I'll need to use the manual refocus again. Another nice, and user-friendly addition to the app. Thanks Dragly |
Re: mbarcode
Hi,
Couple of questions about this wonderful app: * Is there any Python script/plugin integration yet? (from what I could make out by reading this topic, there isn't?) * If I wanted to integrate a Python script with this program at this moment, what are my options? (someone mentioned DBUS?) * If there isn't any easy integration yet: wouldn't it be a good idea to provide a simple 'Execute program/script' plugin that just lets you configure (multiple) programs/scripts to be run, with the result of the scan as command line parameter(s)? Each configured program/script would be run when you click on it's button that is show on the 'Results from scan' screen. This would allow integration with practically anything, no? * Regarding the latest improvement about refocus: I just installed mbarecode from extras-devel, but the auto refocus feature isn't there. Or is this just uploaded to the garage page, but not the repo? Hopla |
Re: mbarcode
Quote:
Quote:
Quote:
|
Re: mbarcode
Allright, thanks!
The auto refocus feature is working as well now, I didn't have an updated package db when I first installed mbarcode :) It works pretty good, allthough I wouldn't let an epileptic person look at it :p |
Re: mbarcode
Quote:
|
Re: mbarcode
dragly, I'm replying to your post from my thread about the GUI for mBarcode (http://talk.maemo.org/showthread.php?t=48151). I don't have any formal graphic design expertise, but I've been doing web development and advertising on the side for a long time. I threw together my vision for mBarcode, although its not my app so feel free to tear it apart (because I added some extra buttons you don't have in your current design). Thoughts?
http://www.rajivoberoi.com/images/mBarCode.jpg |
Re: mbarcode
Is it easy to add a search engine? I live in Sweden and it is a site called (http://www.prisjakt.nu/) that is very popular.
|
Re: mbarcode
Yes, that is fairly easy. Just scan a barcode, click Search the Web, click on the window title menu, select Add Custom Provider, type in Prisjakt as name, and http://www.prisjakt.nu/search.php?query=%s as the Address. If barcodes are supported over at Prisjakt it should work.
|
Re: mbarcode
dragly, dude I'm pretty sure you missed my post! It was on the previous page at the bottom :P
http://talk.maemo.org/showpost.php?p...&postcount=210 |
Re: mbarcode
Quote:
First of all I must say that it looks really sexy! The design is neat and clean, yet prettier than the default Maemo look. However, a few things come to mind when I see it, which needs to be discussed:
I've considered to move the options like "Open Image", "Scan" and maybe some other stuff like "History" and "About" to a startup screen. Somewhat like they do in Shop Savvy: http://blog.mywebgrocer.com/wp-conte...screenshot.jpg Do you think this would be a good idea? Anyways, nice work and thanks for the suggestion! I would really like to have you on the team for some design work. Do you design icons as well? |
Re: mbarcode
Hey, sorry, I jumped the gun! I saw you respond to another post and figured you missed mine since it was on a previous page.
My thoughts: 1. I feel that fullscreen apps take away from the Maemo experience of multitasking if done improperly. When I'm in a fullscreen app with no multitasking button, if I need to switch to another program I need to press the power button, tap 'phone' and then get to the main UI through the phone interface (like in Brain Party). However, if done right, then it's great, like in Maps, where it still retains the time, back and close, so the user isn't "trapped" in your app. 2. I didn't even notice that search options show up in a different list :o that's a great idea! haha 3. This goes with #2. I agree completely, which also goes back to having a main menu screen like you suggested, which I think is a better way to engage the user and add future options easily, and not tie yourself into "just" scanning barcodes. I have no experience coding for Maemo, so I design a "dream" interface not knowing if its feasible. But I'd love to help you out where ever I can, just let me know! I do not design icons persay, but I do have a vast collection of free icons that I use in my websites and designs. |
Re: mbarcode
@dragly Don't want to threaten your exams, but just in case you do a rebuild, you could switch to building against the Qt 4.6.2 from PR 1.2 instead of the libqt4-maemo5-* packages. Currently makes it necessary to have 4.6.2 installed twice.
|
Re: mbarcode
@tvogel: That's quickly done and the packages are actually already prepared, so no worries about the exams there :)
For the moment I've already uploaded the PR1.2 version of mbarcode, but I didn't get time to build and upload the plugins. I believe I'll get time to do that tonight or tomorrow. |
Re: mbarcode
Quote:
I'll take another look at how we might be able to get it up and running this evening. The other option was to broadcast DBUS messages when a barcode is found, this was pretty simple in GTK+, not sure about Qt. |
Re: mbarcode
Quote:
|
Re: mbarcode
The new packages that are built against libqt4 in PR1.2 are on their way through the autobuilder now. If everything works as expected they should be ready for download from extras-devel in 10 minutes.
Quote:
But I suggest we go for PythonQt first and DBUS second. With PythonQt we should more easily be able to integrate plugins in the main app. Quote:
|
Re: mbarcode
Quote:
Here is a websearch URL for codecheck.info: Code:
http://www.codecheck.info/mobi/results?text=%s |
Re: mbarcode
A nice plugin which comes to my mind would be a metasearch plugin which just queries all (or a user defined subset) of the available web search URLs in parallel and gathers which are actually returning hits.
Not completely trivial because they usually will return very different "no results" pages... But maybe a keyword indicating an empty result page per search engine might suffice. |
Re: mbarcode
Ok, so the pipeline is currently running at its native framerate and 640x480 resolution (only the middle of which is used for the scanning/display to allow the user to hold the barcode further from the camera).
Therefore there's probably not much I can fix here re. strobing effects. Are these effects severe? I've not really noticed anything. I guess improvements to the gst elements might yield better performance still if anyone wants to take a crack at them. |
Re: mbarcode
Quote:
http://www.flickr.com/photos/dragly/4644741712/ Look for the green/purple flickering in the top of the scanning widget. This video doesn't show what it at times is like when scanning in darker places, where I often get a white strobe. Since this is only making the scanning look a bit ugly, I don't think we should give this an high priority unless it's an easy fix. ;) |
Re: mbarcode
hmm, yeah that looks like the autofocus at work (and not finding focus - note how the text keeps going into and out of focus).
Perhaps we should alter the continuous autofocus code so that it tries less often if it fails multiple times...? Either that or we need to implement our own autofocus routines |
Re: mbarcode
I don't think the artifacts (the green and purple blinking) in the top corners are because of the autofocus. They appeared even before I added the autofocusing. I just got used to them after some time.
The LEDs turning off and on is because of the autofocus, but that doesn't really bother me, because it helps finding barcodes even in the pitch dark (don't know why anyone would do that though :p ). If we are able to implement our own autofocus that would of course be the best, but in my opinion it works pretty well now. It does at least take much less time to scan a barcode than when I had to click the refocus button earlier. |
Re: mbarcode
Hmm, it's green and purple things is it, interesting, I'll see if I can spot that.
|
Re: mbarcode
Hi all,
I am developing an application and in my application there is one part that I should search the engine based on its bar code. I examined mbarcode application for N900 in repository and would like to embed it to my application. I have try this code https://garage.maemo.org/plugins/scm...=maemo-barcode It works and I got a plugin installed. However, sorry for my stupidness but still I could not find out a way to use this plugin in my application. I think it should be something like: QRreader reader(myMainApplication); reader.show(); Any help for sample code please. |
Re: mbarcode
What about going the other way round and making your application a plugin that runs within mbarcode?
Otherwise, to use the mbarcode implementation in your app, you'll need to setup the GStreamer pipeline and handle the events coming from the libzbar gst decoder element. |
Re: mbarcode
Hi,
Sorry to hassle but please use this thread not other one :). My application is quite complicated and mbarcode should be a part of it. Can you please give me some guidelines how to do it in the second way. Please help me with this, I have been struggling with it quite a bit but still not much achievement Can we have codes somewhere? |
Re: mbarcode
dragly! ;)
There are some example plugins in the repo. What does your application do? |
Re: mbarcode
Hmm? Yes? :)
lamle, there is currently no easy way to integrate the backend in mbarcode into an other application since we don't yet have an API made. This is one of the things we'll be looking at in the future, but I guess it's not going to happen very soon. I'm not even sure how such an API would be best made either (DBus? Separate library with access to the camera widget?). I think the closest you'll get for now is to make a plugin that sends a DBus message to your application from mbarcode (look at Qt Dbus documentation). However, this would make your users have to open up your application alongside mbarcode, which might be tedious. The other solution is to copy the VideoWidget, BarcodeDetector and decoder classes from mbarcode and implement these statically in your application. mbarcode is open source, after all :) The problem with this solution is that you will have to update your application with changes in mbarcode if you want to stay up to date with the latest bugfixes etc. I'm afraid there are no code examples of what you are trying as of yet, but we'll probably make it easier to do in the future, when we've figured out how to set up an API for other applications. |
Re: mbarcode
hi,
Thank you for your reply. I will try to copy the whole mbarcode project and modify it then. However, I just wonder what is the use of those plugins such as https://garage.maemo.org/plugins/scm...=maemo-barcode if I cannot embed it in other application??? |
Re: mbarcode
Well, it's just useful for mbarcode itself. It's an extensible interface for postprocessing scanned data. The qrcode plugin will process data scanned from a QR barcode. Pretty self-explanatory if you read the code.
If you want to process that data in another way, just provide another plugin. What license is your project under? |
Re: mbarcode
lamle, what are you actually trying to do in your application? That's why I suggested making your app a plugin that runs within mBarcode.
|
Re: mbarcode
Quote:
mBarcode is licensed with the GPL license, meaning that you should release your application with the same (or compatible) license if you copy code from mBarcode. In other words, you should make your application open source as well, if it is not already GPL-licensed. You don't have to worry about this before you release/distribute your application, however :) While developing before distribution you don't have to release the source code. I hope this is not problematic for you, but if it is, just give us a heads up and I'm sure we could figure something out. |
Re: mbarcode
Hi,
Thank you for your reply. I am doing this as my thesis so license is not my concern right now. I just need it to work. My idea is to implement a nice search function for my application. User do not need to type anything but scan the barcode of the device or engine, the application will read the code and display relevant information of the engine. My pursuit is to use stacked window, when I push one button, it will open mbarcode window, after I have scanned the code and get the result, mbarcode window will close and return the main screen with the updated information of the engine. I am trying to build that mbarcode application in my computer but it seems to have some unmet dependencies. Can you pls help me where can I have the include for those gboolean, gchar or guint????? I am just newbie in this environment so your help is really precious for me. By the way, this PR1.2 is working great now.:) |
Re: mbarcode
Quote:
Barcode readers were far too much money back then, but it would be interesting to go back and do it using camera + barcode recognition. Anyway I digress, but basically if you tell us in more detail what you're doing, you may get people interested and willing to help. On a more technical note, what type of barcode are we talking about here? Quote:
Quote:
Quote:
|
Re: mbarcode
Quote:
Quote:
error.txt Can you explain a little bit about your idea implementing plugin for mbarcode? I really dont know how to achieve that yet. |
Re: mbarcode
Quote:
Code:
debhelper (>= 5), libzbar-dev, libdmtx-dev, gstreamer0.10-plugins-bad-dev | maemo-version (<5.0), libconic0-dev,To develop a plugin you are probably best off at the moment by starting with the webrequest or QR-code plugin and modify parts of that code. You'll need the mbarcode-dev package to build the plugins. After building you put the plugin into /usr/share/mbarcode/plugins/ on your device. I'm going to write a guide on writing plugins soon, but I'm afraid I don't have time to do that right now. |
| All times are GMT. The time now is 08:47. |
vBulletin® Version 3.8.8