Skip to content

Commit

Permalink
Merge pull request #410 from caerulescens/enable-jpeg2000-support
Browse files Browse the repository at this point in the history
enable JPEG2000 format support
  • Loading branch information
int3l committed Feb 2, 2022
2 parents c2daad5 + 56172c4 commit d32bbb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pytesseract/pytesseract.py
Expand Up @@ -42,6 +42,7 @@
RGB_MODE = 'RGB'
SUPPORTED_FORMATS = {
'JPEG',
'JPEG2000',
'PNG',
'PBM',
'PGM',
Expand Down
Binary file added tests/data/test.jpeg2000
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/pytesseract_test.py
Expand Up @@ -77,6 +77,7 @@ def test_file_small():
'test_file',
[
'test.jpg',
'test.jpeg2000',
'test.pgm',
'test.png',
'test.ppm',
Expand All @@ -87,6 +88,7 @@ def test_file_small():
],
ids=[
'jpg',
'jpeg2000',
'pgm',
'png',
'ppm',
Expand Down

0 comments on commit d32bbb5

Please sign in to comment.