Using the built-in CV algorithms