예제 #1
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)
예제 #2
0
 def test1(self):
     points = self.dummy_fast.detect(to_gray_scale(self.img0_512))
     logger.warning('Points detected: {}.'.format(points.shape[0]))
예제 #3
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)
예제 #4
0
파일: fast_test.py 프로젝트: caomw/Leporis
 def test1(self):
     points = self.dummy_fast.detect(to_gray_scale(self.img0_512))
     logger.warning('Points detected: {}.'.format(points.shape[0]))