Snowfall – helpful image handling utils – abstracts various file and opencv and pil features into result oriented functions

helpful image handling utils – abstracts various file and opencv and pil features into result oriented functions

from image_handlers import *

load an image – a simple task in theory but often set with details…is the file there? is the argument a string and not a PathLib object, should it be loaded as rgb or bgr format?

cv_load_func

example:
cv_load_usage

opencv continues to have BGR as it’s channel format, vs PIL and the rest of the world use RGB format. A common source of confusion is thus confusing the channel format, resulting in blue tinted images.

Snowfall thus adds

 

 

 

To finish reading, please visit source site