打开cv2错误1287读写视频

2024-06-27 18:41:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我这里有个错误

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


Tags: the视频错误errorarraycv2scalarsame