Hi, I'm an Italian student, so I'm sorry for my elementary English, however I hope that you can understand and help me to solve my problem.
I bought a Camera Module and I want try to capture imagines in a Python shell using IDLE . I installed the library opencv-2.4.8, but when I run the program the window of the program appears but I don't see nothing inside it.
There's only the gray background.
The program is:
#!/usr/bin/python
import cv2.cv as cv
import time
cv.NamedWindow("camera", 1)
capture = cv.CaptureFromCAM(0)
while True:
img = cv.QueryFrame(capture)
cv.ShowImage("camera", img)
if cv.WaitKey(10) == 27:
break
cv.DestroyAllWindows()
How can I do? Where is the problem?
thank you for the attention, I wait your answer.