As for public it goes "Innocent unless proven guilty". Meaning, until a verdict is given against you, you are innocent. Now that a verdict gone against you, you are guilty.
But when you go in to the courts, it works slightly differently. The prosecution have to prove that the defense is guity. But at the same time, you (as a defense) have to prove your innocence to the Judge. In this type of case, the prosecution would bring witnesses. You as a defense asking questions and trap them in them in giving conflicting accounts, you can prove your innocence. I think you can also have your witnesses (if available) who the prosecution would question. By questioning, you can easily bring the truth out or poke holes in the witness accounts and thereby you can prove your innocence.