Skip to content

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

@Amenoimi

Description

@Amenoimi

部分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));
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions