One should only scan the front of the plastic card/page, like the immigration agents do.
The front of the card has 2 or 3 lines of OCR text, this text is used as a password to read the info of the RDIF chip in the plastic card.
Having this security ensures that no one can read that info by e.g. tapping a phone against your pocket/backpack.
There's an excellent Android app called ReadID that can read your passport the same way the eGates do. It will even verify the digital signature of your passport against known digital passport issuers (countries certificate authorities). The signature is just like those used for HTTPS.
Also, the visa is digital, you don't actually need the stamp, though most countries still require it.