Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find enough finder patterns #32

Open
AjayPoshak opened this issue Dec 14, 2016 · 7 comments
Open

Couldn't find enough finder patterns #32

AjayPoshak opened this issue Dec 14, 2016 · 7 comments

Comments

@AjayPoshak
Copy link

It is generating an error saying - "Couldn't find enough error patterns:0 patterns found"

@edi9999
Copy link
Owner

edi9999 commented Dec 14, 2016

Can you send your image that you are trying to decode ?

@AjayPoshak
Copy link
Author

static_qr_code_without_logo

@adrai
Copy link

adrai commented Dec 20, 2016

Which cam do you use? I have the same issue but only with the in-built macbook cam... any ideas?

Repository owner deleted a comment from software-fang Sep 8, 2017
@0xganz
Copy link

0xganz commented Nov 8, 2018

I have the same issue.Is there any solution?

@ipchi9012
Copy link

ipchi9012 commented Jan 16, 2020

all these failed due to same issue...
about 20% of qrcode images can be parsed successfully
I am using node12, code here:

const QRReader = require('qrcode-reader')
const fs = require('fs')
const sharp = require('sharp')

const f = process.argv[2]
run().catch(error => console.error(error.stack))

async function run () {
  const img = await sharp('./' + f)
    .raw()
    .toBuffer({ resolveWithObject: true })

  const bitmap = { width: img.info.width, height: img.info.height, data: img.data }
	console.log(bitmap.width, bitmap.height)
  const qr = new QRReader()
  const value = await new Promise((resolve, reject) => {
    qr.callback = (err, v) => err != null ? reject(err) : resolve(v)
    qr.decode(bitmap)
  })
  console.log(value)
}

3
4
5
9
10

@edi9999
Copy link
Owner

edi9999 commented Jan 16, 2020

This project is no more maintained. Explanation : Lazarsoft's qrcode reader is not maintained since 2 years, so I decided to fork it one year ago to fix some issues. However, there are many things missing on this project, such as proper test cases. Also, I still haven't had the time to understand how the qrcode processing really works under the hood. On the other side, a new library called : https://github.com/cozmo/jsQR exists for over a year, is maintained and has multiple test cases. I have personally moved to this library instead.

@ipchi9012
Copy link

ok, thanks, I'll give other qr readers a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants