마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

카메라 포커스기능 추가

0 추천
카메라에 부과 적인 기능을 더 넣을려고 하는 데...관련된 지식도 없고 아시는 분들도 없써서요...

좀 도와 주세요.  관련된 예제나 지식을 나누어 주세요....

영상에 필터 넣는 방법은 아예 예제도 없던데...아시는 분 혹시 계신가요?
밤밤바 (1,450 포인트) 님이 2013년 7월 25일 질문

1개의 답변

0 추천

http://stackoverflow.com/questions/10953708/is-it-possible-in-android-to-have-the-camera-focus-on-a-specific-point-in-the-pr

 

In Android 4.x, this is possible, with the setFocusAreas. You'll have to check getMaxNumFocusAreas first to see if this feature is supported on your device, and how many areas to use.

Then, you'll need to convert the user's touch coordinates to the coordinates used by the Camera.Area object (described here), and call setFocusAreas with the coordinates. From then on, calls to autoFocus will use that region for selecting focus.

aucd29 (218,390 포인트) 님이 2013년 7월 25일 답변
...