I am running windows 7, python 2.7 and pygame 1.9.2a0. Running
import pygame.camera
import pygame.image
import sys
pygame.camera.init()
I get the following error:
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
pygame.camera.init()
File "C:\Program Files (x86)\Python3.4-32bit\lib\site-packages\pygame\camera.py", line 42, in init
from pygame import _camera
ImportError: cannot import name '_camera'
According to the stackexchange question at: How to open camera with pygame in Windows? this should work (at least it was accepted as answer for windows 7, python 2.7 and pygame 1.9.1)
Does anybody have a good suggestion why this does not work (or why it did work for Debujang in the above link and does not work for me?)
I am grateful for any help that will ultimatively allow me to stream the picture of the webcam to a figure and capture a frame from within python.
Thanks!