1

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?

1
  • 1
    it's video.py and common.py, in the same samples/python2 folder Commented Nov 25, 2015 at 9:28

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.