-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e27df4c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hgaiser I am interested to know, what feedback errors where you lacking from OpenCV?
Because using it should be orders of scale faster than PIL, if I know what features you were missing perhaps I could work on it.
e27df4c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpenCV doesn't provide any feedback on why image loading failed. The most straightforward case of trying to load an image file that doesn't exist just returns
None
, whereas PIL returns :I've briefly looked at more optimized loaders a long time ago, because I also noticed that OpenCV was faster than PIL for loading an image. Back then I decided to use PIL for it's verbosity in output, but if you have an alternative that is faster and provides similar feedback, it would be very nice. Pluspoints for not introducing a new dependency, but that's not a primary goal.