Initialize background model in background subtraction KNN.
The method does cvCheckPixelBackgroundNP (which reads bgmodel) before it is ever updated (in cvUpdatePixelBackgroundNP). This initialization is thus needed to avoid reads of unitialized values.
Showing
想要评论请 注册 或 登录