Using iphone camera as webcam in matlab

Hello I have been trying to use my iphone 11 as a webcam for a pupil tracking project I have the pupil tracking code on matlab but I am not sure how to have matlab recognize my iphone camera would anyone know this could be possible?

댓글 수: 5

SlipperyGnome
SlipperyGnome 2022년 7월 11일
Hi @Jose,
Can you please elaborate what exactly you mean by a modern way and what project here?
Maybe this link can help you out.
Hiro Yoshino
Hiro Yoshino 2022년 7월 11일
The easiest way is
2) follow the way @SlipperyGnome mentioned.
Note that MATLAB Mobile allows you to access to the sensors and the camera(s?) of iOS devices.
Jan
Jan 2022년 7월 11일
This cannot be solved in Matlab directly, but you need an external software to connect the iPhone at first. Therefore it matters, if you are working under MacOS, Linux or Windows. Nevertheless, this is not a Matlab question and therefore I close it.
Jose
Jose 2022년 7월 11일
Hello Jan I am interested to why you just closed my question like that:( I created code on Matlab and uploading it to a RPi with linux to track a pupil on a smart phone but my problem is getting the code onto the iphone to process. Do you know how this could be possible?
Jan
Jan 2022년 7월 11일
@Jose: I've closed the question, because it contains too few information to be solved and does not seem to be a Matlab problem. Connecting the SmartPhone camera as webcam is possible with different applications, but they have no relation to Matlab. As soon as the computer recognizes the the SmartPhone camera as webcam it is available in Matlab also. Therefore I consider the question to be off-topic.
Now you have mentioned at least, which operating system your are using. It sounds like you do not want to use the external iPhone as a webcam now, but like if you want to run code on the iPhone? For me it is still unclear.
While the editors have the power to close the question, you have the power to re-open it by providing more information - preferrably by editing the question, because additional information are harder to find in a pile of comments.

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

답변 (1개)

Stefanie Schwarz
Stefanie Schwarz 2025년 7월 12일
편집: Stefanie Schwarz 2025년 7월 12일

0 개 추천

For ideas how to stream video from a phone to a MATLAB desktop instance to use the phone camera like a webcam, see this MATLAB Answer:
Note that MATLAB Mobile currently only supports taking single snapshots from a phone camera, but no video streaming. For image capture with MATLAB Mobile, see our documentation:

카테고리

도움말 센터File Exchange에서 MATLAB Mobile에 대해 자세히 알아보기

태그

질문:

2022년 7월 7일

편집:

2025년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by