We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to decode this image I get NotFoundException.
Here's my code:
func scanBarCode(fileName string) { file, _ := os.Open(fileName) img, _,_ := image.Decode(file) bmp, err := gozxing.NewBinaryBitmapFromImage(img) if err != nil { fmt.Println("error: could not get bmp from image", err) return } reader := oned.NewMultiFormatUPCEANReader(nil) result, err := reader.DecodeWithoutHints(bmp) if err != nil { fmt.Println("error: no barcode found in image", err) return } fmt.Println("success:", result) }
The text was updated successfully, but these errors were encountered:
It seems that there is not enough white space on both sides. I got the result by adding white space.
img, _,_ := image.Decode(file) img2 := image.NewRGBA(image.Rect(0, 0, 3000, 2500)) draw.Draw(img2, img2.Bounds(), image.White, image.Pt(0, 0), draw.Over) draw.Draw(img2, image.Rect(250, 0, 2750, 2500), img, image.Pt(0, 0), draw.Over) bmp, err := gozxing.NewBinaryBitmapFromImage(img2)
Sorry, something went wrong.
No branches or pull requests
When trying to decode this image I get NotFoundException.
Here's my code:
The text was updated successfully, but these errors were encountered: