gpt4 book ai didi

android - 在android中通过相机捕获实时照片

转载 作者:行者123 更新时间:2023-12-02 12:54:36 25 4
gpt4 key购买 nike

我想开发一个支付应用程序。这就需要通过摄像头拍摄实时图像。通过实时图像,我的意思是图像应该从人身上捕获,而不是从人的图像中捕获。

但是如果我从一个不是实时图像的人的图像中获取图像。希望我能够让你理解。

最佳答案

我认为你应该对一个人使用面部识别。

FaceDetector.Face

A Face contains all the information identifying the location of a face in a bitmap.

( Face Detection Concept )

Face detection is the process of automatically locating human faces in visual media (digital images or video). A face that is detected is reported at a position with an associated size and orientation. Once a face is detected, it can be searched for landmarks such as the eyes and nose.

Here are some of the terms that we use in discussing face detection and the various functionalities of the Mobile Vision API.

Face recognition automatically determines if two faces are likely to correspond to the same person. Note that at this time, the Google Face API only provides functionality for face detection and not face recognition. Face tracking extends face detection to video sequences. Any face appearing in a video for any length of time can be tracked. That is, faces that are detected in consecutive video frames can be identified as being the same person. Note that this is not a form of face recognition; this mechanism just makes inferences based on the position and motion of the face(s) in a video sequence. A landmark is a point of interest within a face. The left eye, right eye, and nose base are all examples of landmarks. The Face API provides the ability to find landmarks on a detected face. Classification is determining whether a certain facial characteristic is present. For example, a face can be classified with regards to whether its eyes are open or closed. Another example is whether the face is smiling or not.

可从 API 级别 1 开始使用。

在您的应用中实现人脸检测。希望使用这个库您能够区分人与人的图像。

这里有一些 example

关于android - 在android中通过相机捕获实时照片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43383935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com