Set the camera focus area in Android

后端 未结 3 1192
心在旅途
心在旅途 2021-02-02 12:14

following several tutorials and examples I came up with the next algorithm to set the camera focus on a specific spot, the problem is that the camera completely ignores the spot

3条回答
  •  太阳男子
    2021-02-02 12:57

    before cameraParameters.setFocusAreas(focusAreas);, you should add this:

    cameraParameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO);
    

提交回复
热议问题