CHANGED:applied OpenCV test code