Ask Your Question
0

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

asked 2019-11-28 12:26:00 -0600

updated 2019-11-28 14:10:57 -0600

supra56 gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-11-28 14:12:01 -0600

supra56 gravatar image

Change this capital K not k:

cv2.waitkey(0)

to:

cv2.waitKey(0)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-28 12:26:00 -0600

Seen: 2,615 times

Last updated: Nov 28 '19