taking video and picture with opencv