コード例 #1
0
ファイル: test_perceptops.py プロジェクト: longears/rigor
 def test_imageops_decode():
     ops = ImageOps(kConfig)
     result = ops.decode(constants.kExampleImageFile)
     assert result.shape == constants.kExampleImageDimensions
コード例 #2
0
ファイル: test_perceptops.py プロジェクト: longears/rigor
 def test_imageops_fetch():
     ops = ImageOps(kConfig)
     percept = Percept()
     percept.locator = constants.kExampleImageFile
     result = ops.fetch(percept)
     assert result.shape == constants.kExampleImageDimensions