- add support for PIL and numpy images in addition to filepath. https://github.com/fcakyon/craft-text-detector/pull/28
python
from PIL import Image
import numpy
can be filepath, PIL image or numpy array
image = 'figures/idcard.png'
image = Image.open("figures/idcard.png")
image = numpy.array(Image.open("figures/idcard.png"))
apply craft text detection
prediction_result = craft.detect_text(image)