Need a computational algorithm for creating portraits out of thread

I need help with technology and algorithms. Please let me know if anyone can help me with this. I’m just a beginner, and I want to start with this as I’m an artist.