저는 카메라 피드의 실행 평균을 생성하고 업데이트하는 작은 스크립트 (파이썬에서)를 작성 중입니다. 내가 호출 할 때 cv.RunningAvg는 반환openCV RunningAvg implementation
cv2.error: func != 0
가 어디 cv.RunningAvg 구현에 걸림돌입니까? 스크립트는 다음과 같습니다
import cv
feed = cv.CaptureFromCAM(0)
frame = cv.QueryFrame(feed)
moving_average = cv.QueryFrame(feed)
cv.NamedWindow('live', cv.CV_WINDOW_AUTOSIZE)
def loop():
frame = cv.QueryFrame(feed)
cv.ShowImage('live', frame)
c = cv.WaitKey(10)
cv.RunningAvg(frame, moving_average, 0.020, None)
while True:
loop()
감사합니다! 뒤늦은 응답이지만 감사합니다. – benkay