add opencv support