and the coordinates of each eye and the mouth:camera.setFaceDetectionL dịch - and the coordinates of each eye and the mouth:camera.setFaceDetectionL Việt làm thế nào để nói

and the coordinates of each eye and

and the coordinates of each eye and the mouth:
camera.setFaceDetectionListener(new FaceDetectionListener() { public void onFaceDetection(Face[] faces, Camera camera) { if (faces.length > 0){
Log.d("FaceDetection", "face detected: "+ faces.length +
" Face 1 Location X: " + faces[0].rect.centerX() +
"Y: " + faces[0].rect.centerY() );
}
}
});
To begin detecting and tracking faces, call the Camera’s startFaceDetection method. This must be called each time you start (or restart) the Camera preview, as it will be automatically stopped whenever the preview ends.
public void surfaceCreated(SurfaceHolder holder) { try {
camera.setPreviewDisplay(holder);
camera.startPreview();
camera.startFaceDetection();
// TODO Draw over the preview if required.
} catch (IOException e) {
Log.d(TAG, "IO Exception", e);
}
}
You can stop face detection by calling stopFaceDetection:
public void surfaceDestroyed(SurfaceHolder holder) { camera.stopFaceDetection();
camera.stopPreview();
}
Taking a Picture
After you have configured the camera settings, and a preview is active, you can take a picture by calling takePicture on the Camera object and passing in a ShutterCallback and two PictureCallback implementations (one for the RAW and one for JPEG-encoded images). Each picture callback will receive a byte array representing the image in the appropriate format, while the shutter callback is triggered immediately after the shutter is closed.
Listing 15-27 shows the skeleton code for taking a picture and saving the JPEG image to an SD card.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
and the coordinates of each eye and the mouth:camera.setFaceDetectionListener(new FaceDetectionListener() { public void onFaceDetection(Face[] faces, Camera camera) { if (faces.length > 0){Log.d("FaceDetection", "face detected: "+ faces.length +" Face 1 Location X: " + faces[0].rect.centerX() +"Y: " + faces[0].rect.centerY() );}}});To begin detecting and tracking faces, call the Camera’s startFaceDetection method. This must be called each time you start (or restart) the Camera preview, as it will be automatically stopped whenever the preview ends.public void surfaceCreated(SurfaceHolder holder) { try {camera.setPreviewDisplay(holder);camera.startPreview();camera.startFaceDetection();// TODO Draw over the preview if required.} catch (IOException e) {Log.d(TAG, "IO Exception", e);}}You can stop face detection by calling stopFaceDetection:public void surfaceDestroyed(SurfaceHolder holder) { camera.stopFaceDetection();camera.stopPreview();}Taking a PictureAfter you have configured the camera settings, and a preview is active, you can take a picture by calling takePicture on the Camera object and passing in a ShutterCallback and two PictureCallback implementations (one for the RAW and one for JPEG-encoded images). Each picture callback will receive a byte array representing the image in the appropriate format, while the shutter callback is triggered immediately after the shutter is closed.Danh sách 15-27 cho thấy mã bộ xương để chụp ảnh và lưu hình ảnh JPEG vào một thẻ SD.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
và tọa độ của mỗi mắt và miệng:
camera.setFaceDetectionListener (FaceDetectionListener mới () {public void onFaceDetection (Face [] khuôn mặt, máy ảnh Camera) {if (faces.length> 0) {
Log.d ( "FaceDetection", " khuôn mặt được phát hiện: "+ faces.length +
" Face 1 Địa X: "+ khuôn mặt [0] .rect.centerX () +
" Y: "+ khuôn mặt [0] .rect.centerY ());
}
}
});
để bắt đầu phát hiện và theo dõi khuôn mặt, gọi phương thức startFaceDetection của camera. . Điều này phải được gọi mỗi khi bạn bắt đầu (hoặc khởi động lại) xem trước máy ảnh, vì nó sẽ tự động dừng lại bất cứ khi nào xem trước kết thúc
public void surfaceCreated (chủ SurfaceHolder) {try {
camera.setPreviewDisplay (chủ);
camera.startPreview ();
camera.startFaceDetection ();
// TODO Vẽ qua bản xem trước nếu có yêu cầu.
} catch (IOException e) {
Log.d (TAG, "IO ngoại lệ", e);
}
}
Bạn có thể ngừng nhận diện khuôn mặt bằng cách gọi stopFaceDetection:
public void surfaceDestroyed (chủ SurfaceHolder) {camera.stopFaceDetection ();
camera.stopPreview ();
}
Hít một hình
Sau khi bạn đã cấu hình các cài đặt máy ảnh, và một bản xem trước đang hoạt động, bạn có thể chụp ảnh bằng cách gọi takePicture vào đối tượng máy ảnh và đi qua trong một ShutterCallback và hai triển khai PictureCallback (một cho RAW và một cho hình ảnh JPEG-mã hóa). Mỗi cuộc gọi lại hình ảnh sẽ nhận được một mảng byte đại diện cho hình ảnh trong các định dạng thích hợp, trong khi gọi lại chụp được kích hoạt ngay lập tức sau khi chụp được đóng lại.
Liệt kê 15-27 cho thấy mã bộ xương cho chụp ảnh và lưu lại hình ảnh JPEG với một thẻ SD .
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: