• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error com.google.zxing.NotFoundException processing QR Barcode with ZXING 3.1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I 'm working with pdfbox 1.8.6 for read the images in the Pdf and ZXING 3.1 for process the QR Barcode.

I have a com.google.zxing.NotFoundException

I attached the image of the barcode in this post.

Anyone can help me, please?

Img313.png
[Thumbnail for Img313.png]
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

That image is very small - if that is the actual size I wouldn't be surprised that no barcode could be detected, given the size barcodes normally are. Also, QR codes I've seen had markers in 3 of the corners; this one doesn't seem to have those - that would definitely make detection harder (if it's even still a valid QR code without those).
 
Ana Marie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer, that's totally true, is my fault, is not QR is Data Matrix ECC 200 exactly.

I did several test now, my result was:

1.- Test with the Image Attached (Img313-png) (by Windows Paint redimension)bigger: KO.

2.- Test with the Image Attached (Img313-png) bigger and white white border: OK, WORKS!!

3.- Test with the Image Attached (Img313-png) original size with white border: KO.

4.- Test with the Image Attached (Img313-png) original size: KO.

Questions..?

1.- Why works with the white border and not without? 0-O.

2.- Is possible increasse the size of the Image in memory?.

3.- Why the image in the real PDF the size is 9,14 mm but when I get with PDFbox is less?
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you attach the pdf so we can see the actual image to are trying to decode.
Also have you tried using screen capture to get the image at actual size and then loading the image directly into your application to see if the full size image can be decoded.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic