python-opencv is in apt, not pip
That was using the old API, this is the new example