An Egyptian court has sentenced two policemen to prison for torturing a detainee in their custody.

The court in Cairo on Monday convicted Islam Nabih and Reda Fathi and sentenced them to three years each for sodomizing minibus driver Imad el-Kabir.

Kabir was detained after he tried to break up a fight between police and a cousin in January 2006.

Video shot from a cell phone showed a man identified as Kabir screaming in pain while being sodomized with a stick as onlookers taunted him. The footage was circulated on the Internet and sparked widespread outrage and condemnation.

Kabir was later jailed for three months for resisting arrest. Upon hearing the verdict at Monday's court session, he shouted, "God is Great."

The human rights group, Amnesty International, called the sentencing a positive step, and urged authorities to investigate and punish all acts of torture.

Rights groups allege that torture by Egyptian security forces is widespread. Egyptian officials say the government does not approve of torture and prosecutes those who are guilty of it.