Image scanner built using a Lego Mindstorms EV3 set
github.com
github.com
LEGO have a slogan of sorts, "Learning through play," which couldn't be more true with their Mindstorms kits.
A custom sensor or lens, and using a dual rail instead of a monorail, could also improve image accuracy. If you gather data while the sensor is moving, using a second microcontroller, it would increase resolution greatly. You'd have to be careful for motion blur though.