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

barcode_finder initial #1

Closed
wants to merge 2 commits into from
Closed

barcode_finder initial #1

wants to merge 2 commits into from

Conversation

muriloformiga
Copy link
Contributor

No description provided.

LuminanceSource source = new RGBLuminanceSource(bMap.getWidth(), bMap.getHeight(), intArray);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
try {
//Vector<BarcodeFormat> barcodeFormats = new Vector<>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Algum motivo para deixar esses comentários?

Comment on lines +3 to +5
public enum BarcodeType {
BARCODE, QRCODE
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Essa nomenclatura está confusa, um QR code não é um tipo de código de barras, por que não utilizar os nomes dos formatos aceitos pela biblioteca usada?
image

return null;
}

private String scanQRImage(Bitmap bMap, Reader reader) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parece que você está lendo todos os tipos possíveis com esta função, mas ela se chama scanQRImage, outro ponto é se não é feito um filtro com os tipos por que definir tipos diferentes? E isso não poderia acarretar em falsos positivos ao escanear um arquivo especifico com objetivo de apenas um dos itens?

@muriloformiga muriloformiga deleted the develop branch December 21, 2020 16:17
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

Successfully merging this pull request may close these issues.

None yet

4 participants