(CNN)Leading Venezuelan opposition figure Leopoldo Lopez claims he met high-ranking members of the Venezuelan security services while under house arrest.

Speaking to journalists at the gates of the Spanish ambassador's residence in Caracas, Lopez said senior members of the military supported the end of the regime of President Nicolas Maduro.

Lopez, who has been in some form of detention since a series of mass protests in 2014, said he believed Maduro's government would fall "in weeks."

Photos:In photos: Venezuela in crisis

A woman demonstrates in front of police outside the Venezuelan navy headquarters in Caracas on Saturday, May 4.

Hide Caption

1 of 39

Photos:In photos: Venezuela in crisis

Anti-government demonstrators gather in Caracas on Sunday, May 5.

Hide Caption

2 of 39

Photos:In photos: Venezuela in crisis

Opposition leader Juan Guaido gives a speech to opposition leaders and workers for the Venezuelan state-owned oil and natural gas company PDVSA on Friday, May 3.

Hide Caption

3 of 39

Photos:In photos: Venezuela in crisis

In this handout photo, released by the Miraflores Press Office, Venezuelan President Nicolas Maduro, center, is accompanied by military officers as he arrives for a meeting with troops at Caracas' Fort Tiuna on Thursday, May 2.

Hide Caption

4 of 39

Photos:In photos: Venezuela in crisis

Opposition activist Leopoldo Lopez speaks to the media at the gate of the Spanish ambassador's residence in Caracas on May 2. Lopez is meant to be on house arrest, but he said on Twitter that he was released by the military. He and his family have been received as guests by Spanish Ambassador Jesús Silva Fernández following his release.

Hide Caption

5 of 39

Photos:In photos: Venezuela in crisis

Journalists carry reporter Gregory Jaimes, who was injured Wednesday, May 1, while covering clashes between security forces and anti-government protesters in Caracas.

Hide Caption

6 of 39

Photos:In photos: Venezuela in crisis

Anti-government protesters clash with security forces during the May Day protests in Caracas.

Hide Caption

7 of 39

Photos:In photos: Venezuela in crisis

Anti-government protesters clash with security forces on May 1.

Hide Caption

8 of 39

Photos:In photos: Venezuela in crisis

National Police forces detain anti-government protesters near the La Carlota airbase during clashes in Caracas on May 1.

Hide Caption

9 of 39

Photos:In photos: Venezuela in crisis

Guaido, who has been recognized by many countries as Venezuela's interim president, speaks during a rally in Caracas on May 1.