webcam() function "MEX level2 S-function" error

3 ビュー (過去 30 日間)
Fatih Kaptanoglu
Fatih Kaptanoglu 2022 年 11 月 5 日
回答済み: Fatih Kaptanoglu 2023 年 3 月 4 日
I reinstall support package for usb webcams but doesn't matter,
If I tried matlab web, webcam is running but matlab in win11 doesn't acquire my laptop webcam.
How can I do?
ERROR TEXT:
Error using webcam
MEX level2 S-function "webcam" must be called with at least 4 right hand arguments

回答 (2 件)

Eswaramoorthy
Eswaramoorthy 2023 年 3 月 1 日
Hi,
You seem to have created a MEX function and named it as "webcam". This is shadowing Webcam SPKG's function "webcam".
This is the reason why you get the error message that it needs 4 input arguments.
Rename the file name(from "webcam") to overcome the issue.
Hope this Helps!

Fatih Kaptanoglu
Fatih Kaptanoglu 2023 年 3 月 4 日
I fully remove Matlab and the problem solved.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by