簡體   English   中英

使用 React Native 進行面部識別 Python

[英]Facial Recognition Python with React Native

我正在開發一個利用智能手機攝像頭進行人臉識別的應用程序。

我在 Python 腳本中使用了 OpenCV、 face_recognition庫和眨眼檢測神經網絡來檢測和識別實時(真實)面部。

使用來自智能手機攝像頭的輸入幀實時執行面部識別 Python 腳本的最佳方法是什么? (通過 API 調用?)

PS 我使用 React-Native 作為我的前端。

理想的情況是,

1.Capture the frame from device camera 2.Send it to your Python API 3.Process the image in API and return your response, Probably a Boolean flag (eg:

{ RightFace:真,閃爍:真 }

4.在您的應用程序中處理響應並根據您的響應觸發下一步操作

例如:

 CheckFace=()=>{ var Response = //your api call response.parseJson() if(response.rightFace == "true") { login() } if(response.Blinking == "true") { onBlink() } }

這只是一個抽象的例子,沒有任何意義。 但這是您需要這樣做的方式。

如有任何疑問,請隨時詢問。

謝謝

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM