have you seen BarcodeScanner component in app-inventor sources it uses zxing barcode scanner library, it says some where in that component source code something about lanscape/portrait scanning methods.
PS: it will be great if you can an extension out of this library or similar
https://github.com/yuriy-budiyev/code-scanner