add opencv test code