a sample working code for ip cam capture with opencv