PCのMATLABからスマホのカメラ操作することができたが,ピントを合わせられない
    5 views (last 30 days)
  
       Show older comments
    
PCのMATLABからMATLAB mobileをインストールしたスマホのカメラを以下のコードで操作することができたのですが,全然ピントが合いません.
ピントをあわせる方法があれば教えていただきたいです.
よろしくお願いします.
m = mobiledev;
cam = camera(m,'back');
img = cam.snapshot('manual');
0 Comments
Accepted Answer
  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';
でオンにしてから撮影してみてください。
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!