Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

your image was not loaded. (so your code fails in the next lines)

please make it a habit to check the output of imread() or similar io

your image was not loaded. (so your code fails in the next lines)

please make it a habit to check the output of imread() or similar ioio before trying to use the result

also, be careful with relative file path, if using weird ide's like jupyter or pycharm, it's usually not what you expect. when in doubt, try with an absolute path to your media