Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2.imshow python

can any body tell me whart is worng with this code cause when i run it i get no errors and yet no image is shown

from VideoCapture import Device

import cv2

import cv2.cv as cv

cam = Device(0)

cam.saveSnapshot('imageL.jpg')

fn = 'C:\Python276\imageL.jpg'

imageL = cv2.imread(fn,0)

cv2.imshow('Left',imageL)

if cv2.waitKey(1) & 0xFF == 27:

    cv.DestroyAllWindows()