opencv - AttributeError: 'module' object has no attribute 'imshow' -


i using mac os10.12 when run following snippet of code

import cv2 img = cv2.imread('happyfish.jpeg',0) cv2.imshow('image',img) cv2.waitkey(0) cv2.destroyallwindows() 

i error saying:

attributeerror: 'module' object has no attribute 'imshow'

my opencv installed fine. when run imread command execute.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -