cv4j
cv4j copied to clipboard
请问抓取图片中的二维码时,只抓到一个Position Detection Pattern是哪个地方做错了
部分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));
}