Using consistently IO operations from the utils module, which offers a fallback to OpenCV if functions from scipy.misc are not available and avoids errors with newer scipy versions.
Also using system-dependent separator when splitting paths to avoid hard-to-debug errors on Windows platforms.
Using consistently IO operations from the
utils
module, which offers a fallback to OpenCV if functions fromscipy.misc
are not available and avoids errors with newerscipy
versions.Also using system-dependent separator when splitting paths to avoid hard-to-debug errors on Windows platforms.