Google2 Face detection(얼굴인식) in Android Using Mobile Vision API - 3 샘플예제 다운로드 앞선 포스팅에서 얼굴의 중요부위(LandMark)에 원을 그렸었습니다. 위 사진을 보고 사람마다 생김새가 다르니 얼굴의 눈과 볼, 입사이의 거리 비율을 적어 비교해 보겠습니다. 수정할 부분은 FaceView.java 파일입니다. drawFaceAnnotations함수를 보면 얼굴에서 랜드마크에 원을 그립니다. 이부분을 보면 랜드마크의 위치를 알 수 있습니다. 123456789101112131415private void drawFaceAnnotations(Canvas canvas, double scale) { Paint paint = new Paint(); paint.setColor(Color.GREEN); paint.setStyle(Paint.Style.STROKE); paint.set.. 2018. 6. 5. android location (위치찾기) 위치찾기 소스 android에서 위치를 찾기위해서 android api의 android.location class를 사용하였는데 이제 google location services API를 사용하라고 하는군요. Google Location Services API 위 링크로 가면 위치정보를 좀 더 쉽게 가져올 수 있습니다. 1. 최신위치 찾기 ( Getting the Last Known Location) 이건 디바이스에서 최신 위치를 찾아오는 겁니다. 일단 레이아웃 입니다. 간단하게 버튼과 아래는 텍스트뷰로~ 이제 build.gradle로 가셔서 dependency를 추가해 줍니다. 12345dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') .. 2015. 4. 29. 이전 1 다음 인기글