![]() |
Re: mbarcode
Nothing that I know of, but if you find some method I'd be happy to look at incorporating it.
|
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
It doesn't come up in the plugins list, I even tried rebooting the phone. When I scan a barcode there's nothing available to write to a file. |
Re: mbarcode
I didn't know anything about this till a few days ago when I got a card from Symantec saying I could enter their contest by using my barcode application. I remembered there was one available, downloaded mbarcode and it worked perfectly.
|
Re: mbarcode
I've been looking at the mbarcode code and I see xml files describing the interface. I was expecting to see interface defined in QML instead.
My experience with Qt is very limited so my question would be if using xml -based description for interface (I assume those are processed by qdbusxml2cpp) is a preferable way of describing/designing user interfaces? What about QML - will that result in better performance as Qt documentation claims? |
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
No idea about the speed claims, but I can't see how using Javascript is going to help things. |
Re: mbarcode
Quote:
[1|user@Nokia-N900|/usr/share/mbarcode/plugins/pythonqt]ls isbn_saver.py Path: [1|user@Nokia-N900|/usr/share/mbarcode/plugins/pythonqt]pwd /usr/share/mbarcode/plugins/pythonqt Debugging: [1|user@Nokia-N900|/usr/share/mbarcode/plugins/pythonqt]"main():" Started mbarcode [1|user@Nokia-N900|/usr/share/mbarcode/plugins/pythonqt]kill "main():" Showed splash, t= 2673 "main():" Showing window "MaemoBarcodeWindow():" Started MaemoBarcodeWindow "MaemoBarcodeWindow():" Killing the camera app, t= 2931 "MaemoBarcodeWindow():" Setting window title, t= 3174 "MaemoBarcodeWindow():" Setting up dbus, t= 3176 "MaemoBarcodeWindow():" Setting up lensCoverPropertyModified "MaemoBarcodeWindow():" Setting up focusButtonPropertyModified "MaemoBarcodeWindow():" Setting up cameraButtonPropertyModified "MaemoBarcodeWindow():" Initing state of lens cover, t= 3231 "MaemoBarcodeWindow():" Creating settings, t= 3235 "MaemoBarcodeWindow():" Initializing decoder, t= 3337 "ZBarDecoderThread():" Created scanner "ZBarDecoderThread():" Enabled scanner "ZBarDecoderThread():" Created image "MaemoBarcodeWindow():" Initializing video widget, t= 3382 VideoWidget::VideoWidget(): Called VideoWidget::VideoWidget(): Getting device type We're an N900 VideoWidget::VideoWidget(): Initializing pipeline VideoWidget::initPipeline() called VideoWidget::initPipeline(): initializing gstreamer VideoWidget::initPipeline(): creating new pipeline VideoWidget::initPipeline(): getting bus VideoWidget::initPipeline(): adding watch VideoWidget::initPipeline(): unrefing bus VideoWidget::initPipeline(): making factory VideoWidget::initPipeline(): setting object VideoWidget::initPipeline(): camera_src is now loaded VideoWidget::initPipeline(): Creating csp_filter VideoWidget::initPipeline(): csp_filter is now loaded VideoWidget::initPipeline(): Using N900 caps VideoWidget::initPipeline(): Used N900 caps VideoWidget::initPipeline(): Linking filtered VideoWidget::initPipeline(): Unref caps VideoWidget::initPipeline(): Using rgb caps VideoWidget::initPipeline(): Linking again VideoWidget::initPipeline(): Linking another filtered VideoWidget::initPipeline(): Unrefing caps VideoWidget::initPipeline(): Ask for emitted signals VideoWidget::initPipeline(): Creating screen sink Pipeline initialized with success! VideoWidget::VideoWidget(): Pipeline initialized VideoWidget::VideoWidget(): Setting up images VideoWidget::VideoWidget(): Setting up frame counts VideoWidget::VideoWidget(): Finished "MaemoBarcodeWindow():" Setting video widget attributes, t= 5908 "MaemoBarcodeWindow():" Finished setting video widget attributes, t= 5911 "MaemoBarcodeWindow():" Connecting signals, t= 5915 "MaemoBarcodeWindow():" Initializing buttons, t= 5918 "MaemoBarcodeWindow():" Checking lens cover state, t= 5991 "MaemoBarcodeWindow():" Setting central widget, t= 5994 "MaemoBarcodeWindow():" Finished, t= 6470 "main():" Setup DBus connections, t= 6527 MaemoBarcodeWindow::lensCoverPropertyModified(): is true VideoWidget::start(): Called with startEvenIfNotYetStarted = false and lensCoverOpen = true VideoWidget::start(): Setting pipeline state VideoWidget::refocus(): Calling refocus VideoWidget::refocus(): Interval is 2000 VideoWidget::refocus(): Refocus called New buffer added! Appsink initialized! Start dmtx thread running Start zbar thread running analyse_image(): start dmtx thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): start dmtx thread running analyse_image(): no barcode found, start zbar thread running VideoWidget::busCallback(): Autofocus failed message received. analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running VideoWidget::refocus(): Calling refocus VideoWidget::refocus(): Interval is 2000 VideoWidget::refocus(): Refocus called analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): start dmtx thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): start dmtx thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running VideoWidget::busCallback(): Autofocus failed message received. VideoWidget::refocus(): Calling refocus VideoWidget::refocus(): Interval is 2000 VideoWidget::refocus(): Refocus called analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): start dmtx thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running analyse_image(): no barcode found, start zbar thread running MaemoBarcodeWindow::lensCoverPropertyModified(): is false VideoWidget::stop(): Called with stopCompletely = false VideoWidget::stop(): Setting pipeline to paused The Top of the plugin info (to make sure I have the right file). I couldn't capture all of it: import sys from PySide import QtGui, QtCore # Barcode types returned by libzbar, from zbar.h # # typedef enum zbar_symbol_type_e { # ZBAR_NONE = 0, /**< no symbol decoded */ # ZBAR_PARTIAL = 1, /**< intermediate status */ # ZBAR_EAN8 = 8, /**< EAN-8 */ # ZBAR_UPCE = 9, /**< UPC-E */ # ZBAR_ISBN10 = 10, /**< ISBN-10 (from EAN-13). @since 0.4 */ # ZBAR_UPCA = 12, /**< UPC-A */ # ZBAR_EAN13 = 13, /**< EAN-13 */ # ZBAR_ISBN13 = 14, /**< ISBN-13 (from EAN-13). @since 0.4 */ # ZBAR_I25 = 25, /**< Interleaved 2 of 5. @since 0.4 */ # ZBAR_DATABAR = 34, /**< GS1 DataBar (RSS). @since 0.11 */ # ZBAR_DATABAR_EXP = 35, /**< GS1 DataBar Expanded. @since 0.11 */ # ZBAR_CODE39 = 39, /**< Code 39. @since 0.4 */ # ZBAR_PDF417 = 57, /**< PDF417. @since 0.6 */ # ZBAR_QRCODE = 64, /**< QR Code. @since 0.10 */ # ZBAR_CODE93 = 93, /**< Code 93. @since 0.11 */ # ZBAR_CODE128 = 128, /**< Code 128 */ # ZBAR_SYMBOL = 0x00ff, /**< mask for base symbol type */ # ZBAR_ADDON2 = 0x0200, /**< 2-digit add-on flag */ # ZBAR_ADDON5 = 0x0500, /**< 5-digit add-on flag */ # ZBAR_ADDON = 0x0700, /**< add-on flag mask */ # } zbar_symbol_type_t; |
Re: mbarcode
Quote:
|
Re: mbarcode
@eachna:
Do you have mbarcode-plugin-pythonqtwrapper installed? Assuming you do, try opening the settings menu (which forces the plugins to be loaded) then see if there are any error messages related to loading this plugin. The paths all look fine, the only other possibilities are that the Python script name doesn't match the class name within (the two must match, bar the .py extension) or perhaps it has dos line endings rather than unix, which is stopping it from being loaded. |
| All times are GMT. The time now is 08:47. |
vBulletin® Version 3.8.8