PCのMATLABか​らスマホのカメラ操作​することができたが,​ピントを合わせられな​い

4 views (last 30 days)
大輝 隅岡
大輝 隅岡 on 30 Jan 2023
Commented: 大輝 隅岡 on 30 Jan 2023
PCのMATLABからMATLAB mobileをインストールしたスマホのカメラを以下のコードで操作することができたのですが,全然ピントが合いません.
ピントをあわせる方法があれば教えていただきたいです.
よろしくお願いします.
m = mobiledev;
cam = camera(m,'back');
img = cam.snapshot('manual');

Accepted Answer

Shunichi Kusano
Shunichi Kusano on 30 Jan 2023
私のスマホでは下記のようにAutofocusがデフォルトで'on'になっていますが、こちらどうなっていますか?
cam =
Camera のプロパティ:
Name: 'back'
AvailableResolutions: {'640x480' '1280x720'}
Resolution: '640x480'
Flash: 'off'
Autofocus: 'on'
もしoffになっていれば
cam.Autofocus = 'on';
でオンにしてから撮影してみてください。
  1 Comment
大輝 隅岡
大輝 隅岡 on 30 Jan 2023
オフになっていました.
解決できました.ありがとうございます.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!