leptonica: Handle API change for pixFindPageForeground

This commit is contained in:
James R. Barlow
2019-12-04 17:13:51 -08:00
parent d5bb9929f3
commit 9baccee8c5
3 changed files with 30 additions and 17 deletions
+4
View File
@@ -63,6 +63,10 @@ def test_pix_otsu(crom_pix):
assert im1bpp.mode == '1'
@pytest.mark.skipif(
lept.get_leptonica_version() < 'leptonica-1.76',
reason="needs new leptonica for API change",
)
def test_crop(resources):
pix = lept.Pix.open(resources / 'linn.png')
foreground = pix.crop_to_foreground()