Revamp BarcodeRecognition.java