def setUp(self): self.img0 = cv2.imread( os.path.join(test_commons.resources_dir_path, 'IMG_0644.JPG')) self.img1 = cv2.imread( os.path.join(test_commons.resources_dir_path, 'IMG_0645.JPG')) self.gray_img0 = to_gray_scale(self.img0) self.gray_img1 = to_gray_scale(self.img1)
def test1(self): points = self.dummy_fast.detect(to_gray_scale(self.img0_512)) logger.warning('Points detected: {}.'.format(points.shape[0]))
def setUp(self): self.img0 = cv2.imread(os.path.join(test_commons.resources_dir_path, "IMG_0644.JPG")) self.img1 = cv2.imread(os.path.join(test_commons.resources_dir_path, "IMG_0645.JPG")) self.gray_img0 = to_gray_scale(self.img0) self.gray_img1 = to_gray_scale(self.img1)