安卓網路攝影機對焦問題,求大神支招。

來源:互聯網
上載者:User

標籤:ar   sp   for   問題   bs   ef   as   nbsp   c   

============問題描述============


查了一些資料,都沒有找到,手機網路攝影機對選定的地區對焦的方法,就像小米照相機一樣,點擊哪。哪裡顯示就特別清晰的那個功能,求大神 支招 怎麼做到這個功能。。。。

============解決方案1============


對焦這個問題,早期版本未能解決。安卓4.0新增的Camera類,有一個setFocusAreas方法可以設定焦距。

早起SDK因為手機品種不齊,有些缺乏硬體支援,所以沒有一個統一的對焦介面,新的SDK裡已經出現了。

============解決方案2============


這個是要硬體支援的,不是所有camera都可以。
先調用getMaxNumFocusAreas()看下是否支援,google的說明:
Before using this API or {@link #setFocusAreas(List)}, apps should
call {@link #getMaxNumFocusAreas()} to know the maximum number of
focus areas first. If the value is 0, focus area is not supported.

安卓網路攝影機對焦問題,求大神支招。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.