Police may seize evidence and contraband that are in plain view, as long as the officer is in a place where he has a legal right to be and the seizure won't involve entering a home (some exceptions apply).
Where was the officer when he spied the evidence or contraband? Did he have a right to be there?