mirror of
https://github.com/ciromattia/kcc
synced 2026-09-21 18:27:08 +00:00
fix truncated file read (#1133)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from PIL import ImageOps, ImageFilter
|
||||
from PIL import ImageOps, ImageFilter, ImageFile
|
||||
import numpy as np
|
||||
from .common_crop import threshold_from_power, group_close_values
|
||||
|
||||
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
||||
|
||||
|
||||
'''
|
||||
Some assupmptions on the page number sizes
|
||||
|
||||
Reference in New Issue
Block a user