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

请问抓取图片中的二维码时,只抓到一个Position Detection Pattern是哪个地方做错了 #19

Open
Amenoimi opened this issue Aug 17, 2018 · 0 comments

Comments

@Amenoimi
Copy link

部分Code:

                 V4JImage cv4JImage = new CV4JImage(bitmap);
                ImageProcessor img= cv4JImage.getProcessor();
                com.cv4j.core.datamodel.Rect rect =findQRCodeBounding(img, 1, 6);
 
                if(rect.tl().x>0&&rect.tl().y>0&&rect.br().x>0&&rect.br().y>0) {
                    bitmap = Bitmap.createBitmap(bitmap, rect.tl().x, rect.tl().y, Math.abs(rect.br().x-rect.tl().x ),Math.abs(rect.br().y-rect.tl().y));
                }
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

1 participant