Example #1
0
 def test_orientation_90(self):
     img = base.Image.open(self._path_to_img("test-90.png"))
     result = libtesseract.detect_orientation(img, lang='eng')
     self.assertEqual(result['angle'], 90)
Example #2
0
 def test_orientation_90(self):
     img = Image.open(os.path.join('tests', 'input', 'specific',
                                   'test-90.png'))
     result = libtesseract.detect_orientation(img, lang='eng')
     self.assertEqual(result['angle'], 90)
Example #3
0
 def test_orientation_90(self):
     img = base.Image.open(self._path_to_img("test-90.png"))
     result = libtesseract.detect_orientation(img, lang='eng')
     self.assertEqual(result['angle'], 90)
 def test_orientation_90(self):
     img = Image.open('tests/data/test-90.png')
     result = libtesseract.detect_orientation(img, lang='eng')
     self.assertEqual(result['angle'], 90)