The female is a pet, with a collar and a healthy, clean coat. The male's coat wasn't in good condition; he had hairless patches possibly caused by flea-bites, a common problem. Almost definitely not a pet. Even when village pet dogs don't have collars, I've found one can usually tell the owned ones from the ownerless from the condition of the coat.
The black female had a scar on the back of her head. She must definitely have had human help for healing that wound. Dogs can't reach there to lick and heal themselves. That's why head and neck wounds are common sites for maggot infestations in street dogs.
Two more dogs were sitting at this construction site nearby.
This is a mating group I clicked on Nagaon beach last year. Second from the left is the female in oestrus (white with brown patches). The black dog is her son from a previous litter, quite correctly looking the other way! The other four are her 'suitors' come from far and wide. They aren't permanent residents of this part of the beach.
And this is a mating fight I clicked in a different part of the state, Vidarbha (Central India). It was in a small tribal village.