How to use ZXing ("Zebra Crossing") library to get the location of three finder patterns (QR code)?
조회 수: 9 (최근 30일)
이전 댓글 표시
I am using the ZXing library to get information about the location of QR code.
Follow the javadoc[1], I import package: "com.google.zxing.qrcode.detector" and using class "FinderPatternInfo" in this package to get the location of QR code in pixel coordinate.
But, I don't know how to set up parameters of "FinderPatternInfo" class!!!
Code matlab version 2016a (javaclasspath add to matlab classpath.txt):
import com.google.zxing.qrcode.*;
import com.google.zxing.client.j2se.*;
import com.google.zxing.*;
import com.google.zxing.common.*;
import com.google.zxing.client.result.*;
import com.google.zxing.qrcode.detector.*;
jimg = im2java2d(img); % convert image to java
source = BufferedImageLuminanceSource(jimg); % convert image to luminance source
bitmap = BinaryBitmap(HybridBinarizer(source)); % local threshold before convert image to bitmap
fp1 = FinderPattern;
P1 = fp1.getEstimatedModuleSize(bitmap);
disp(P1)
Thanks a lot!
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!