What is your budget?
You can build a 2K scanner for about USD$1500-$2000 plus the cost of a projector to use for parts, and a Windows based computer with USB3 and an SSD RAID or one of the new fast PCIe SSDs (need at least 700MB/s write speed). If you want to go 4K, then the sensor cost starts getting very high ($3000+)
If that is within the budget, I can lay out how to go about it, but basically you need an LED control board with trigger function and camera control (from memory around $500-$700 or so), A PGR sensor ($500-$750), a hall effect sensor and magnet and some associated components ($25), and a suitable projector, some mounting hardware and a focusing rail/micrometer adjustable stage ($80-$400)