samj1912 / Fbrecog
An unofficial python wrapper for the Facebook face recognition endpoint
Stars: ✭ 184
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Fbrecog
Zenpy
Python wrapper for the Zendesk API
Stars: ✭ 222 (+20.65%)
Mutual labels: api, wrapper, python-wrapper
Node Fb Messenger
✉️ Facebook Messenger Platform Node.js API Wrapper
Stars: ✭ 206 (+11.96%)
Mutual labels: api, wrapper, facebook
Tlaw
The Last API Wrapper: Pragmatic API wrapper framework
Stars: ✭ 112 (-39.13%)
Mutual labels: api, wrapper
Coronavirus Tracker Api
🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
Stars: ✭ 1,577 (+757.07%)
Mutual labels: api, pip
Kayn
superagent-inspired Node.js lib (w/ **some** TypeScript support) for accessing Riot's League of Legend's API (discord: cnguy#3614)
Stars: ✭ 122 (-33.7%)
Mutual labels: api, wrapper
Binance.api.csharp.client
C#.NET client for Binance Exchange API.
Stars: ✭ 98 (-46.74%)
Mutual labels: api, wrapper
Thispersondoesnotexist Js
Api for https://thispersondoesnotexist.com Generates an image of a person that does not exist in real life
Stars: ✭ 101 (-45.11%)
Mutual labels: api, face
Easylogin
Login effortlessly with different social networks like Facebook, Twitter or Google Plus
Stars: ✭ 90 (-51.09%)
Mutual labels: api, facebook
Mastodonkit
MastodonKit is a Swift Framework that wraps Mastodon's API
Stars: ✭ 134 (-27.17%)
Mutual labels: api, wrapper
Mailjet Apiv3 Nodejs
[API v3] Official Mailjet API v3 NodeJS wrapper
Stars: ✭ 137 (-25.54%)
Mutual labels: api, wrapper
Spotify Web Api Js
A client-side JS wrapper for the Spotify Web API
Stars: ✭ 1,313 (+613.59%)
Mutual labels: api, wrapper
Mtcnn
MTCNN face detection implementation for TensorFlow, as a PIP package.
Stars: ✭ 1,689 (+817.93%)
Mutual labels: face, pip
Apipeline
Feature-rich and pluggable offline-first API wrapper for all your javascript environements ! Easily wire-up your API and make your app work offline in minutes.
Stars: ✭ 92 (-50%)
Mutual labels: api, wrapper
Spaces Api
An API wrapper for DigitalOcean's Spaces object storage designed for easy use.
Stars: ✭ 166 (-9.78%)
Mutual labels: api, wrapper
Tf Siamesenet
Face recognition based on SiameseNet
Stars: ✭ 87 (-52.72%)
Mutual labels: face, recognition
fbrecog
An unofficial python wrapper for the Facebook face recognition endpoint
fbrecog is a python wrapper that uses Facebook's face recognition to recognize faces in pictures.
How-To:
- Install fbrecog from pip
pip install fbrecog
- Now simply import the recognize method from fbrecog module
from fbrecog import recognize
- The recognize method takes 4 input args and returns an array of recognitions.
- To get the access token simply go to https://developers.facebook.com/tools/explorer and get a user access token with user_photos, publish_actions and user_posts permissions.
- Get your Facebook cookie and fb_dtsg token as follows:
-
Go to your Facebook profile.
-
Open chrome dev tools by
Right Click > Inspect
-
Upload any picture. As it gets uploaded monitor the Network tab for 'dpr?' endpoint.
-
Click on it. Scroll down to Request Header. Copy the entire cookie string.
-
Scroll further down to Form Data. Copy the value of fb_dtsg parameter.
- Call the recognize method with the following parameters.
from pprint import pprint
from fbrecog import FBRecog
path = '1.jpg' # Insert your image file path here
path2 = '2.jpg' # Insert your image file path here
access_token = '#######' # Insert your access token obtained from Graph API explorer here
cookie = '###' # Insert your cookie string here
fb_dtsg = '###' # Insert the fb_dtsg parameter obtained from Form Data here.
# Instantiate the recog class
recog = FBRecog(access_token, cookies, fb_dtsg)
# Recog class can be used multiple times with different paths
print(recog.recognize(path))
print(recog.recognize(path2))
# Call recognize_raw to get more info about the faces detected, including their positions
pprint(recog.recognize_raw(path), indent=2)
Please star this repo if it helped :)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].