フィルターのクリア

how to fix camera error on matlab

31 ビュー (過去 30 日間)
Sang
Sang 2022 年 11 月 9 日
回答済み: Cris LaPierre 2022 年 11 月 9 日
another way to fix the error: An active connection to webcam, Integrated Webcam, already exists. You cannot create another connection to the same webcam.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 11 月 9 日
Does this happen the first time you try to connect to your camera, or when you try to rerun your code?
The issue is something is using your camera already, which prevents MATLAB from connecting to it. You will need to close whatever is using it first. If it is another program on your computer, close that program.
If it is happening the second time you run your code, it is likely you have not properly closed the object from the previous run of your code. Be sure to clear your camera object. See the recommended steps here.
% create camera object
cam = webcam
% <your code>
% At end, clear 'cam'
clear('cam');

カテゴリ

Help Center および File ExchangeMATLAB 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