Simplify opencv