Java (Eclipse)와 함께 zxing 라이브러리에서 WhiteRectangleDetector() 함수를 사용하려고합니다. User-Library로 core-3.3.0.jar 및 javase-3.3.0.jar를 추가했습니다.WhiteRectangleDetector 메서드가 main 유형에 대해 정의되지 않았습니다.
LuminanceSource source = new BufferedImageLuminanceSource(barCodeBufferedImage);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
Reader reader = new MultiFormatReader();
result = reader.decode(bitmap);
ResultPoint[] scannedCoord = result.getResultPoints();
System.out.println("ResultPoint 1: " + scannedCoord[0]);
System.out.println("ResultPoint 2: " + scannedCoord[1]);
System.out.println("\n Barcode text is " + result.getText() + "\n");
System.out.println("-------------------------------------------------------------------");
BitMatrix bitMatrix = bitmap.getBlackMatrix();
System.out.println(bitMatrix.getTopLeftOnBit());
System.out.println(bitMatrix.getBottomRightOnBit());
ResultPoint[] wrpts = WhiteRectangleDetector(bitMatrix);
이 오류 메시지가 나타납니다. WhiteRectangleDetector (BitMatrix) 메서드가 main 유형에 대해 정의되지 않았습니다!
수입을 수정하지 않았습니까? – rkosegi
수입에 대한 것이 누락 되었습니까? –