問題描述
如何在 Flutter 中獲得手動相機對焦 (How to get manual camera focus in Flutter)
目前我正在使用這個庫:https://pub.dev/packages/camera並且它已將 setFocusMode 設置為自動或鎖定,但我需要一種能夠獲得相機手動對焦模式的方法,用戶可以在其中點擊相機供稿並相應地調整焦點。如何在我的應用中實現這一點?
參考解法
方法 1:
I found this plugin https://pub.dev/documentation/manual_camera/latest/. Does this work? you could use focus distance. If you could get the distance of the object you could set it that way. It's almost like shooting out a ray in game programming. I don't know if this is possible to do but maybe using the size of the objects in the image you could get the distance. someone else has probably already figured this out.
(by Apoorv pandey、Cody)