python opencv import libraries error
Question: I'm trying to run the facedetect.py sample code : [here
](https://github.com/Itseez/opencv/blob/master/samples/python2/facedetect.py)

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?


Answer: 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.

