PyPI
pypi.org › project › python-facepp
python-facepp · PyPI
February 26, 2019 - Python-FacePP is a library for communicating with a Face++ facial recognition service.
» pip install python-facepp
python - Face Comparison using Face++ - Stack Overflow
I am writing a code in python for face comparison using facepplib library, the function face_comparing(app) takes image url to compare. i have some images stored in local disk which on which i want to work. i have no clue on how to convert local directory into url. More on stackoverflow.com
image processing - Face Plus Plus Python API Changing Parameters - Stack Overflow
I would recommend you to use this simpler version of the code that works on Python, you can add other features as well such as 'return_landmark'. import requests http_url = 'https://api-us.faceplusplus.com/facepp/v3/detect' key = "YOUR_API_KEY" secret = "YOUR_SECRET_API_KEY" attributes="ge... More on stackoverflow.com
Build Your Own Face Recognition Tool With Python – Real Python
Dan? I just wanted to say I love your site and your contribution of service to your community. You are an excellent ambassador for the Python community. More on reddit.com
Face Recognition
Man, i think there is a lot to learn in between tic tac toe and facial recognition. Try googling something like , “detect faces python” “image learning python”. That should at least cover some basic concepts. Often times I ask questions here too and get answers like this. .. Import facerecognizeiffamilymember For screenscan in camera: If guy not in family: Homedefense.releaseattackdogs() More on reddit.com
GitHub
github.com › yanminhui › python-facepp › blob › master › facepplib › __main__.py
python-facepp/facepplib/__main__.py at master · yanminhui/python-facepp
Library for communicating with a Face++ facial recognition service - yanminhui/python-facepp
Author: yanminhui
Yanminhui
yanminhui.github.io › 2019 › 02 › 24 › python-facepp.html
Python-FacePP - 颜闽辉的博客
February 24, 2019 - Python-FacePP is a library for communicating with a Face++ facial recognition service.
Starred by 346 users
Forked by 149 users
Languages: Python
Stack Overflow
stackoverflow.com › questions › 56036510 › face-comparison-using-face
python - Face Comparison using Face++ - Stack Overflow
from __future__ import print_function, ... beauty_score_and_emotion_recognition="" def face_comparing(app): """ Compare two faces and decide whether they are from the same person....
Top answer 1 of 2
2
Used the requests library with locally stored images to implement Faceplusplus API. You can select any number of parameters based on your needs. The code below has all parameters listed.
import requests
import base64
def faceplusAPI(filepath):
http_url = 'https://api-us.faceplusplus.com/facepp/v3/detect'
key = "YOUR API KEY"
secret = "API SECRET"
fr = open(filepath,'rb')
img64 = base64.b64encode(fr.read())
payload = {
'api_key': key,
'api_secret': secret,
'image_base64':img64,
'return_attributes': 'age,gender,headpose,smiling,facequality,blur,eyestatus,emotion,ethnicity,beauty,mouthstatus,eyegaze,skinstatus'
}
fr.close()
try:
res = requests.post(http_url, data=payload)
return res
except Exception as e:
print('Error:')
print(e)
response = faceplusAPI("IMG_8934.JPG")
2 of 2
0
I had the same issue when I tried to use the code sample. I would recommend you to use this simpler version of the code that works on Python, you can add other features as well such as 'return_landmark'.
import requests
http_url = 'https://api-us.faceplusplus.com/facepp/v3/detect'
key = "YOUR_API_KEY"
secret = "YOUR_SECRET_API_KEY"
attributes="gender,age,ethnicity"
url="YOUR_IMAGE_URL"
json_resp = requests.post(http_url,
data = {
'api_key': key,
'api_secret': secret,
'image_url': url,
'return_attributes': attributes
}
)
print("Response : ", json_resp.text)
YouTube
youtube.com › watch
Python Face Recognition (Beginner Tutorial) - YouTube
Let's walk through building facial recognition from completely scratch! We will learn about Python facial recognition libraries, embeddings and vectors, and ...
Published: January 22, 2024