i'm new android-emulator..can tell me how use "android.media.facedetector" ? , how combine webcam preview face detection in android emulator?
i'm not sure you're asking for; api straight forward:
facedector fc = new facedetector(<width of bitmap>, <height of bitmap>, <max number of faces>); face[] faces = new face[<max number of faces>]; int found = fc.findfaces(<your bitmap>, faces); pointf point = new pointf(); (int = 0; < found; ++i) { faces[i].getmidpoint(point); system.out.println("point: " + point.x + ", " + point.y); }
Comments
Post a Comment