Some Policemen do such tricks to reach their targets. Yes, you can prove your innocence and get discharged. However, it takes time and money.
On the other hand, you can authorise an advocate to plead guilty on your behalf and close the matter by paying a same fine.
It is this scenerio that prompts some irresponsible policement to hoist false cases on innocent public.