필터 지우기
필터 지우기

Unable to use Ipcam function in batch processing

조회 수: 1 (최근 30일)
Ebrahim Atya
Ebrahim Atya 2019년 12월 4일
답변: Lucas Barbedo de Freitas 2024년 3월 4일
0
I am using batch processing in matlab to run a function in the background.
This is the fucntion which simply captures an image and saves it:
function = captureImg(URL)
cam = ipcam(URL);
img = snapshot(cam);
imwrite(img,'newImg.jpg');
end
The function captureImg works fine but when I use batch to run it I get an error:
job = batch(@captureImg , 0, {'HTTP://192.168.0.49'})
Error: Unable to load a message catalog 'matlab:ipcamera:ipcam'. Please check the file location and
format.
  댓글 수: 2
Urmila Rajpurohith
Urmila Rajpurohith 2020년 1월 6일
can you check whether the URL is working fine or not in web viewer ?
Walter Roberson
Walter Roberson 2020년 1월 6일
Could you confirm that you only have one of those batches running at any given time, and that at the time you run the batch, the ipcam is not allocated within the interactive MATLAB session?

댓글을 달려면 로그인하십시오.

답변 (1개)

Lucas Barbedo de Freitas
Lucas Barbedo de Freitas 2024년 3월 4일
I have an similar issue with a ipcam script in batch processing:
function [airsea_state]=AirSeaSnapshot()
cam1 = ipcam('http://106.1.206.200/mjpg/video.mjpg?camera=1');
airsea_state = snapshot(cam1);
This function runs perfectly in command line.
However, when I run it in matlab batch processing. It produces the follow error message:
Error: Failure to load the converter plug-in.
Note that, it works producing the snapshot at same time that produce an error of failure.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by