They have been offered short roles.
"Johnny always likes to help out the community when on location. While scouting out the area around Albuquerque, he came across these two characters. He was straight on the phone to the casting director," a website quoted a source as saying.
It is not the first time the actor has helped out people living on the streets. In 2011, he had bought a hat from a homeless person.
His film 'Transcendence', is directed by Wally Pfister. Releasing April 2014, it also includes actors like Morgan Freeman, Cillian Murphy and Rebecca Hall.
Photos: Salman Khan returns from Jodhpur to Mumbai
Pics: Sidharth Shukla-Rashami Desai's sizzling chemistry at TV show launch
Ooh La Lana! WWE Diva flaunts sexy curves in these 30 pictures
15 'peach' perfect photos of Priyanka Chopra at People's Choice Awards 2017
62 going on 16: These photos of Rekha prove she is 'forever young'