Ask Your Question

Revision history [back]

Code won't run Atom/opencv AttributeError:'cv2.cv2' win 10

Trying to run this simple code in atom to display image via opencv but the window is not popping up. i'm getting File

import cv2

image = cv2.imread('test_image.jpg')

cv2.imshow('result',image)

cv2.waitkey(0)

AttributeError: module 'cv2.cv2' has no attribute 'waitkey'

this is video of the issue

image of code and conda cmd

Code won't run Atom/opencv AttributeError:'cv2.cv2' win 10

Trying to run this simple code in atom to display image via opencv but the window is not popping up. i'm getting File

import cv2

cv2

image = cv2.imread('test_image.jpg')

cv2.imread('test_image.jpg') cv2.imshow('result',image)

cv2.imshow('result',image)

cv2.waitkey(0)

cv2.waitkey(0)

AttributeError: module 'cv2.cv2' has no attribute 'waitkey'

this is video of the issue

image of code and conda cmd