I was trying to make a barcode scanner out of a raspberry pi with a camera module during a hackathon once. What an absolute nightmare.