Notices


Reply
Thread Tools
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#161
Originally Posted by asfig View Post
Hi

i installed mbarcode on my n900 but the program dont read the barcode.

When i press the "scan" button, nothing happens.

What could be?

thanks
I'm not sure. This might be a silly question, but have you opened the camera lid and closed the camera application?

If you have, you could try to run mbarcode from the terminal by typing mbarcode and hitting the Return key. Then hit scan, close the application and look for output in the terminal. Just copy whatever seems interesting (errors and warnings) into a post here, and I'll see what I can make out of it.
 
Posts: 31 | Thanked: 9 times | Joined on Apr 2010
#162
thanks for your answer.

well, i do that and the message is:

in buffer_probe_callback
analyse_image () returned false
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#163
That means it didn't decode a barcode in the image returned from the camera.

Could you give a link to an image of the barcode? I really need to sort out the "saving last image to history list" stuff so people can upload images that were problematic, I'll add it to the list....
 
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#164
Is the issue that the barcode is not scanned or that nothing shows up on the screen?
 
Posts: 31 | Thanked: 9 times | Joined on Apr 2010
#165
Originally Posted by lardman View Post
That means it didn't decode a barcode in the image returned from the camera.

Could you give a link to an image of the barcode? I really need to sort out the "saving last image to history list" stuff so people can upload images that were problematic, I'll add it to the list....
Well, a tried this one :

and works well
Attached Images
 
 
Posts: 31 | Thanked: 9 times | Joined on Apr 2010
#166
But i tried this too and doesnt work.


most times do not work for me with bottles and other codes.


what I usually do is the following:
I open the camera lens
closing the program for photos
I click the scan
I point out the barcode
Sometimes the lens emits a light (like a flash) and the screen turns green

but do not read ....
Attached Images
 
 
Posts: 31 | Thanked: 9 times | Joined on Apr 2010
#167
run mbarcode by terminal, the message is:
~ $ mbarcode
We're an N900
About to do osso_initialize()
About to do osso_get_sys_dbus_connection()
Entered orientation_init()
orientation_init(): about to run orientation_enable_accelerometers()
INFO: Accelerometers enabled
orientation_init(): about to run device_is_portrait_mode()
INFO: DBus said orientation is: unknown
orientation_init(): about to dbus_bus_add_match()
orientation_init(): about to dbus_connection_add_filter()
INFO: DBus said orientation is: unknown
Using N900 caps
INFO: New orientation is now: landscape
INFO: Setting to orientation: landscape
INFO: New orientation is now: unknown
INFO: Setting to orientation: unknown
ERROR: Orientation must be 'landscape' or 'portrait', not 'unknown'.
INFO: New orientation is now: landscape
INFO: Setting to orientation: landscape
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
Entered libdmtx_analyse_image()
libdmtx_analyse_image(): done dmtxImageCreate
libdmtx_analyse_image(): done dmtxDecodeCreate
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
libdmtx_analyse_image(): done dmtxRegionFindNext
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
Entered libdmtx_analyse_image()
libdmtx_analyse_image(): done dmtxImageCreate
libdmtx_analyse_image(): done dmtxDecodeCreate
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
libdmtx_analyse_image(): done dmtxRegionFindNext
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
analyse_image() returned FALSE
In buffer_probe_callback
Entered libdmtx_analyse_image()
libdmtx_analyse_image(): done dmtxImageCreate
libdmtx_analyse_image(): done dmtxDecodeCreate
analyse_image() returned FALSE
libdmtx_analyse_image(): done dmtxRegionFindNext
INFO: New orientation is now: unknown
INFO: Setting to orientation: unknown
ERROR: Orientation must be 'landscape' or 'portrait', not 'unknown'.
 
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#168
@asfig: The application at times has problems reading small barcodes or barcodes when the lighting is bad. You might as well need to click "Refocus" to make it focus better. The edges of the lines in the barcode needs to be really sharp for the application to be be able to read it.

A good test is to show barcode on your laptop or computer screen which is quite big. For instance this one: https://www.upccode.net/sample_codes...e%20sample.jpg

Try to hit refocus and see if it manages to decode it. If this works, but you are still having problems reading codes on bottles etc. it might be too little for the scanner to read.

By the way, where did you download mBarcode? It seems like you are getting a lot more output in the terminal than you should get with the latest version. Maybe you are using an old version? Have you updated to the latest version from extras-devel?

As a side note, lardman has been talking about optimising the scanner so that it will manage to read 1D EAN and UPC codes under bad conditions, like it manages to do with QR Codes. Hopefully he'll be able to do these enhancements with zbar, which is the backend scanner we are using.
 
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#169
You could type
Code:
dpkg --status mbarcode | grep Version
to find which version of mbarcode you are using. You should be using version 0.1.4-0.
 

The Following User Says Thank You to dragly For This Useful Post:
Posts: 31 | Thanked: 9 times | Joined on Apr 2010
#170
thank you!

thats it. I installed the version that is in the extras devel (which normally do not install) and it worked.
 
Reply

Tags
barcode, camera, mbarcode


 
Forum Jump


All times are GMT. The time now is 12:46.