I've found this paper on bulding a camera: http://www.cs.ubc.ca/~heidrich/Papers/EG.04.pdf
They removed scanner lens and focused the image right to the sensor. This eliminates the need of ground glass, but needs some scanner surgery. Also focusing and framing the image on enlarger will be more complicated unless an autofocus enlarger is used and calibrated to sensor position.