Test code for OpenCV