我正在matlab中使用批处理在后台运行函数。
这是仅捕获图像并将其保存的功能:
function = captureImg(URL)
cam = ipcam(URL);
img = snapshot(cam);
imwrite(img,'newImg.jpg');
end
captureImg函数工作正常,但是当我使用批处理运行它时,出现错误:
job = batch(@captureImg,{'HTTP://192.168.0.49'})
Error: Unable to load a message catalog 'matlab:ipcamera:ipcam'. Please check the file location and
format.