Removed cv2 dependency in icp and li.