Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.78k stars 459 forks source link

Bad support for PIL images for `crop_image` APIs #42

Open lolipopshock opened 3 years ago

lolipopshock commented 3 years ago

box.crop_image(image) doesn't support for PIL images. Current method requires manual conversion box.crop_image(np.array(image)) beforehand.