updated opencv solution, article without formatting