jsqrcode icon indicating copy to clipboard operation
jsqrcode copied to clipboard

Couldn't find enough finder patterns

Open AjayPoshak opened this issue 8 years ago • 7 comments

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

AjayPoshak avatar Dec 14 '16 08:12 AjayPoshak

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

edi9999 avatar Dec 14 '16 10:12 edi9999

static_qr_code_without_logo

AjayPoshak avatar Dec 15 '16 12:12 AjayPoshak

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

adrai avatar Dec 20 '16 12:12 adrai

I have the same issue.Is there any solution?

0xganz avatar Nov 08 '18 03:11 0xganz

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

ipchi9012 avatar Jan 16 '20 08:01 ipchi9012

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.

edi9999 avatar Jan 16 '20 08:01 edi9999

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

ipchi9012 avatar Jan 16 '20 09:01 ipchi9012