Comments (1)
This image lacks a quiet zone, and gozxing (ZXing) does not support negative color.
You must process the image before scanning:
w, h := img.Bounds().Max.X, img.Bounds().Max.Y
img2 := image.NewRGBA(image.Rect(0, 0, w*2, h*2))
draw.Draw(img2, image.Rect(w/2, h/2, w*3/2, h*3/2), img, image.Pt(0, 0), draw.Over)
for y := 0; y < h*2; y++ {
for x := 0; x < w*2; x++ {
c := color.White
if r, _, _, _ := img2.At(x, y).RGBA(); r > 60000 {
c = color.Black
}
img2.Set(x, y, c)
}
}
I got a result:
https://channels.weixin.qq.com/promote/pages/mobile_login?token=AQAAAFN8wGwRamWEeeZHdA
from gozxing.
Related Issues (20)
- qrcode encode error: extra 1 byte at start HOT 2
- NotFoundException: startSize = 0 HOT 3
- Version tags HOT 1
- How reading EAN? HOT 6
- 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
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.