Re: [問題] Opencv2.1範例中facedetect.py問題
多謝aht幫忙,不過又出現了其他問題
Traceback (most recent call last):
File "C:\Python31\webcam.py", line 4, in <module>
from cv import *
ImportError: DLL load failed: 找不到指定的模組。
不知道為什麼會出現找不到模組?
※ 引述《aht (誠實豆沙包)》之銘言:
: 我猜你的python版本是3.0以上的版本print 要加小括號括起來...
: 3.0以下的版本只要打print "hello"
: 但3.0以上必須要打print("hello")不然語法會有問題...
: ※ 引述《shamen (watin)》之銘言:
: : 你好,
: : 我試了之後,出現了一些問題,
: : 程式第48行
: : print " detection time = %gms " % (float(t)/(cvGetTickFrequency()*1000.))
: : ↑
: : 這個 " 會被全選起來,然後跳出一個視窗
: : 視窗顯示 "invalid syntax",然後要我按確定。
: : 請問這是什麼問題,可以告訴我解決方法嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.26.229.155
推
03/21 19:41, , 1F
03/21 19:41, 1F
討論串 (同標題文章)
Python 近期熱門文章
PTT數位生活區 即時熱門文章