Go Back   xda-developers > Kaiser > Kaiser general

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 16th February 2008, 02:38 AM
pizzaguy's Avatar
pizzaguy pizzaguy is offline
Senior Member
 
Join Date: Jan 2008
Posts: 109
Default

I get the same error as nsa666 on my tilt (default rom)
Reply With Quote
Sponsored Links

  #22  
Old 16th February 2008, 04:13 AM
srowen srowen is offline
Junior Member
 
Join Date: Feb 2008
Location: New York
Posts: 17
Default

Quote:
Originally Posted by hypest View Post
EAN13 generally seems to work. Please, could you try this image?
I have tested the prog on about 10 actual products. Try to keep the phone about 6-10cm away from the target (not closer than 5, anyway).

Thank you for the info on the behavior of the load dialog. I will try and use a different facility to browse every folder.

hypest
In the interest of speed it doesn't by default try real hard to find a barcode. It will only find 1D codes that are "upright" -- long axis is basically left to right. Some rotation is OK. So the image you posted won't get recognized. It also won't work if flipped upside down.

Both of those are quite possible, just not desirable by default. On a slow phone, where we're trying 6 1D formats and QR Codes, we don't want to spend too much time. We were thinking of adding a "try harder" hint/mode that would tell it to try a longer search.

The other note is that it will look around the vertical middle of the image for a barcode but not search too far outside that range. So you should try to center the barcode in the capture. Again that could be changed or expanded in a "try harder" mode.

You can toss images against the decoder library here:
http://zxing.org/w/decode.jspx

The original image won't decode but it will if you flip it 90 degrees clockwise.
Reply With Quote

  #23  
Old 16th February 2008, 10:28 AM
hypest hypest is offline
Senior Member
 
Join Date: Feb 2008
Location: Thessaloniki
Posts: 204
Default horizontally and vertically

to srowen:
I have actually slightly modified the recognition code to search both horizontally and vertically, though only "left to right" in both cases. So the photo with the "green cd case" I've uploaded does get recognized. Have you tried it and it failed?

hypest
__________________
HTC TyTN II

Please consider donating for Barcorama

[Pet project] Log your purchases with costpad.com. See statistics, share prices and more
Reply With Quote

  #24  
Old 16th February 2008, 12:36 PM
hypest hypest is offline
Senior Member
 
Join Date: Feb 2008
Location: Thessaloniki
Posts: 204
Default

Quote:
Originally Posted by nsa666 View Post
P.S.2: just tested the verbose version. It seems to be something wrong with directory name. it says \Storagecard\Barcorama\Barcorama_verbose.exe. I think it should say only \Storagecard\Barcorama .
nsa666:
This observation was certainly good! I've made some adjustments and I've uploaded (yet another build) in #1 post - the "nonewdir" one. Perhaps you want to try that also...

hypest
__________________
HTC TyTN II

Please consider donating for Barcorama

[Pet project] Log your purchases with costpad.com. See statistics, share prices and more
Reply With Quote

  #25  
Old 16th February 2008, 04:31 PM
nsa666 nsa666 is offline
Member
 
Join Date: Jan 2008
Posts: 73
Default

Great, new version works! Now you can try to speed it up( for example settings for codetypes that should be recognized schould greatly improve the performance). If it was my programm i would extract the recognition in another thread(than the graphics) and make a progress bar or something, because it seems for some seconds that it hangs.
__________________
I suppose you have tried a soft reset?
Reply With Quote

  #26  
Old 16th February 2008, 07:49 PM
hypest hypest is offline
Senior Member
 
Join Date: Feb 2008
Location: Thessaloniki
Posts: 204
Default

Quote:
Originally Posted by nsa666 View Post
Great, new version works! Now you can try to speed it up( for example settings for codetypes that should be recognized schould greatly improve the performance). If it was my programm i would extract the recognition in another thread(than the graphics) and make a progress bar or something, because it seems for some seconds that it hangs.
At last! It was rather frustrating that the prog worked only on my device!

Your recommendation about the separate thread is actually already in the version I'm working on

hypest
__________________
HTC TyTN II

Please consider donating for Barcorama

[Pet project] Log your purchases with costpad.com. See statistics, share prices and more
Reply With Quote

  #27  
Old 16th February 2008, 08:05 PM
pizzaguy's Avatar
pizzaguy pizzaguy is offline
Senior Member
 
Join Date: Jan 2008
Posts: 109
Default

Sweet! After many, many, tries realizing it was on the wrong resolution or i was holding it the wrong way, it works!


...has anyone tried it with 2D barcodes?
Reply With Quote

  #28  
Old 17th February 2008, 12:21 AM
srowen srowen is offline
Junior Member
 
Join Date: Feb 2008
Location: New York
Posts: 17
Default

Quote:
Originally Posted by hypest View Post
to srowen:
I have actually slightly modified the recognition code to search both horizontally and vertically, though only "left to right" in both cases. So the photo with the "green cd case" I've uploaded does get recognized. Have you tried it and it failed?

hypest
Ah no I was trying with the most recent version of our (Java) code. Makes sense that it works if you've modified it to check other orientations.
Reply With Quote

  #29  
Old 17th February 2008, 12:24 AM
srowen srowen is offline
Junior Member
 
Join Date: Feb 2008
Location: New York
Posts: 17
Default

Quote:
Originally Posted by nsa666 View Post
Great, new version works! Now you can try to speed it up( for example settings for codetypes that should be recognized schould greatly improve the performance). If it was my programm i would extract the recognition in another thread(than the graphics) and make a progress bar or something, because it seems for some seconds that it hangs.
Not sure exactly how much the code was modified, but as of version 0.3, you should be able to easily select a Reader implementation that only looks for the format you want.

EAN13Reader will only look for EAN13, and should be blazingly fast by itself. MultiFormatOneDReader will look for all six supported 1D formats pretty efficiently. If you use the full MultiFormatReader then it's also looking for QR Codes (later, Data Matrix too) which you don't seem to want. But at least it tries 1D formats first, so, you're only incurring that overhead when a 1D format is not recognized.
Reply With Quote

  #30  
Old 17th February 2008, 01:09 AM
hypest hypest is offline
Senior Member
 
Join Date: Feb 2008
Location: Thessaloniki
Posts: 204
Default

Please, find in the #1 post a newer version, implementing new (micro)features and incorporating the fixes from the "remoting debugging" sessions I had here with fellow posters! This is a more user-friendly version as it bypasses the second "ok" to close the camera application, and uses backgound threads for the main jobs.

to srowen:
I have already spotted the decoder-selection functionality, and also have noticed the oftenly quick response of the EAN13 decoder. I hope I will quickly make progress in the basic application functionality so I can dive into the zxing code. I'm particularily interested in experimenting with the image preprocessing.

have fun,
hypest
__________________
HTC TyTN II

Please consider donating for Barcorama

[Pet project] Log your purchases with costpad.com. See statistics, share prices and more
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.