Bollywood superstar Amitabh Bachchan said Sunday he had been discharged from hospital, three weeks after being admitted with "mild" coronavirus symptoms after testing positive for the disease.

The news came as powerful Indian Home Minister Amit Shah revealed he had tested positive for coronavirus, which is infecting tens of thousands of people a day -- and killing hundreds -- in the world's second most-populous country.

More than 1.7 million people have now been infected in India, giving it the world's highest toll behind the United States and Brazil, and more than 37,000 have died.

A fan with a tattoo of Amitabh Bachchan on his arm takes part in a ceremony praying for the Bollywood star's recovery from coronavirus in Kolkata
A fan with a tattoo of Amitabh Bachchan on his arm takes part in a ceremony praying for the Bollywood star's recovery from coronavirus in Kolkata AFP / Dibyangshu SARKAR

Bachchan's actor-son Abishek, who was admitted at the same time, will remain in hospital, while his daughter-in-law, actress and former Miss World Aishwarya Rai, and granddaughter Aaradhya, were discharged last week.

They were the highest-profile family in India to contract the virus in a country that worships movie stars.

"I am back home. I will have to be in solitary quarantine in my room," Bachchan wrote on Instagram, saying he had tested negative.

A fan makes an offering to a statue of  Bollywood actor Amitabh Bachchan at a temple named after him in Kolkata
A fan makes an offering to a statue of Bollywood actor Amitabh Bachchan at a temple named after him in Kolkata AFP / Dibyangshu SARKAR

He thanked his family, fans and "the excellent care and nursing" at the hospital, saying they "made it possible for me to see this day".

At the time he said he had "mild" symptoms.

Bachchan's discharge came as Home Minister Amit Shah -- Prime Minister Narendra Modi's right-hand man -- said he had tested positive for the virus.

Actress Aishwarya Rai Bachchan and her daughter Aaradhya were released from hospital last week
Actress Aishwarya Rai Bachchan and her daughter Aaradhya were released from hospital last week AFP / Sujit Jaiswal

"On getting initial symptoms of coronavirus, I got myself tested and my report is positive," Shah tweeted.

"My health is fine, but on the advice of doctors I'm getting myself admitted to a hospital."

The 55-year-old -- the first national government cabinet minister to test positive -- called on everyone in contact with him over the past two days to get tested and isolate.

Amitabh Bachchan, affectionately known as 'Big B', was discharged from hospital three weeks after being admitted with 'mild' coronavirus symptoms after testing positive
Amitabh Bachchan, affectionately known as 'Big B', was discharged from hospital three weeks after being admitted with 'mild' coronavirus symptoms after testing positive AFP / Sujit Jaiswal

It was not clear if Shah had met Modi or other senior cabinet ministers in recent days. He was admitted to a hospital in Gurgaon, just outside the capital New Delhi, local media reported.

B.S. Yediyurappa, chief minister of the southwestern state of Karnataka which has a population of more than 60 million people, late Sunday also tweeted that he had tested positive.

Screen legend Bachchan, 77, idolised in India and affectionately known as "Big B", has worked for more than half a century in the film industry.

His release from hospital was cheered by his legion of fervent fans.

Hundreds of them gathered at the Amitabh Bachchan Temple -- built by his fans in the city in 2001 and which has a life-size statue of the revered celebrity -- in Kolkata on Sunday.

"Amitabh is our 'guru'. He is more than god to us," Amitabh Bachchan Fan Association secretary Sanjoy Patodiya told AFP on Sunday ahead of the actor's announcement.

"His fans are spending sleepless nights praying that their god gets well soon."

India will reopen gyms and yoga teaching facilities, as well as end a nighttime curfew -- subject to state and territory requirements -- from August 5, as part of its latest easing of virus restrictions.

The government added Sunday that arriving international passengers -- mostly stranded Indians returning home on special charter flights -- could skip seven days of institutional quarantine if they submitted negative coronavirus test results.

They would still be required to undergo 14 days of home quarantine.

Metro train services are still suspended while cinemas, swimming pools, entertainment parks, theatres, bars, auditoriums and assembly halls remain closed.