Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

image.height is unexpected token

there's no problem with your silly ide, or the opencv libs, image.height does simply not exist.

(each numpy array has a shape member, use that instead)

image.height is unexpected token

there's no problem with your silly ide, or the opencv libs, image.height does simply not exist.

(each numpy array has a shape member, use that instead)instead, height would be: image.shape[0])