Changing directions with opencv