I'm curious why this would be such a hassle. I work in China right now and every time I go through customs, there's a little web cam there that takes a photo of me while the customs officer looks at my passport and stamps it. I think both foreigners and citizens experience it. Adds no time to the process at all. I even see my photo on the computer screen if the screen is angled right.
Unless Brazil simply doesn't have the ability to set up this kind of tech....