Comments (2)
Try NewQRCodeMultiReader()
in github.com/makiuchi-d/gozxing/multi/qrcode
.
It has different detection algorithm.
func gozxingQR(filename string) {
// open and decode image file
fileQR, _ := os.Open(filename)
imgQR, _, _ := image.Decode(fileQR)
// prepare BinaryBitmap
bmp, _ := gozxing.NewBinaryBitmapFromImage(imgQR)
// decode image
qrReader := qrcode.NewQRCodeMultiReader()
result, err := qrReader.DecodeMultiple(bmp, nil)
if err != nil {
fmt.Printf("Decode failed: %v\n", err)
return
}
fmt.Printf("[gozxing/multi/qrcode] text: %s\n", result[0].GetText())
}
from gozxing.
Thanks for your reply, it works fine using the code you provided. Was the reason it didn't work before because there were other pixels interfering with the QR code?
from gozxing.
Related Issues (20)
- not support large image HOT 4
- NotFoundException: startSize = 1 HOT 1
- ChecksumException HOT 1
- Unable to decode some QR codes HOT 1
- decode panic HOT 3
- Datamatrix encoder in Writter HOT 1
- wechat miniprogram qrcode parse error HOT 1
- QR decoding of this file does not find a code. Scanners (Android, online) find it. HOT 2
- error: NotFoundException: dimension = 63 HOT 2
- Decrease White Border HOT 1
- NotFoundException: dimension = 75 HOT 2
- Sa
- https://github.com/stretchr/testify
- qr is not recognized HOT 1
- Scanning of code 128 HOT 2
- NotFoundException: startSize = 0 HOT 1
- How to handle error NotFoundException: startSize = 0 HOT 1
- How to handle: error creating code128 HOT 2
- NotFoundException using MultiFormatUPCEANReader HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gozxing.