enable barcode, qr code scan mode using camera app on htc phone

Scan QR and Bar codes using HTC phone

How to scan QR codes, bar codes using the stock Camera app on HTC mobile phone?