我这里有个错误
dif = cv2.absdiff(frameAnterior, frameAtual)
错误只发生在视频的最后一帧。在
错误:
cv2.error: ......\modules\core\src\arithm.cpp:1287: error: (-209) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function cv::arithm_op
这个错误与视频结尾的最后一帧有关。也许你应该在最后一帧之前停止阅读?休息一下。在
相关问题 更多 >
编程相关推荐