Zimbabwe opposition leader Morgan Tsvangirai, recovering from injuries he says were inflicted by police, has been released from custody and is due to appear in court later on Wednesday, his lawyer said.