コード例 #1
0
ファイル: matcher_test.py プロジェクト: caomw/Leporis
 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
ファイル: fast_test.py プロジェクト: PolarNick239/Leporis
 def test1(self):
     points = self.dummy_fast.detect(to_gray_scale(self.img0_512))
     logger.warning('Points detected: {}.'.format(points.shape[0]))
コード例 #3
0
ファイル: matcher_test.py プロジェクト: caomw/Leporis
 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]))