Check out RealityCapture [1]. I think it's what's used to create the Quixel Megascans [2]. (They're both under the Epic corporate umbrella now.)
[1] https://www.capturingreality.com/realitycapture
[2] https://quixel.com/megascans/