Reputation: 11
I'm trying to run the facedetect.py sample code : here
but I don't really understand what are these two line in the import section
from video import create_capture
from common import clock, draw_str
this error is displayed :
from video import create_capture
ImportError: No module named video
What are these libraries and how can I install them?
Upvotes: 1
Views: 2903
Reputation: 650
If you check the repository here , you'll find video.py and common.py . You need this to run the file. Perhaps you need their dependencies too (other files)
Upvotes: 1
Reputation: 2576
i think you are using opencv samples..to run it you copy video.py and common.py files from the folder to C:\Python34\Lib\site-packages\ or you need to have these files in the same folder so that python can detect it is available.
they have used functions from video module so you need to include them.
Upvotes: 2