我在教程上实现了自己的减法:http://docs.opencv.org/3.0-beta/doc/tutorials/video/background_subtraction/background_subtraction.html
我的代码:
OpenCV Error: Assertion failed (clEnqueueReadBuffer(q, (cl_mem)u->handle, CL_TRUE, 0, u->size, alignedPtr.getAlignedPtr(), 0, 0, 0) == CL_SUCCESS) in map, file /home/yurychu/developing/opencv/modules/core/src/ocl.cpp, line 3674
terminate called after throwing an instance of 'cv::Exception'
what(): /home/yurychu/developing/opencv/modules/core/src/ocl.cpp:3674: error: (-215) clEnqueueReadBuffer(q, (cl_mem)u->handle, CL_TRUE, 0, u->size, alignedPtr.getAlignedPtr(), 0, 0, 0) == CL_SUCCESS in function map
但是在运行我的程序后,我收到了这个错误:
//pMOG->apply(frame, fgMaskMOG2);
//imshow("FG mask MOG 2", fgMaskMOG2);
如果我评论这一行 - 她就会消失。
{{1}}
我哪里可以犯错?