Skip to main content

An API Wrapper for powerful face detection, verification and recongition for python

Project description

Skywatch.ai - Facial Recognition System

Skywatch.ai is an API wrapper for powerful face detection and recognition models. It enables an efficient and clean way to use these models in your project without having to worry about the backend clusters. The focus of these project is to provide a easy-to-use package that speeds up development of lot of applications and research.

Usage

You can install skywatchai using PyPi

pip install skywatchai

Face Detection

import skywatchai.SkywatchAI as skai
img_path = 'test/oscar.jpg'
detected = skai.detect_faces(img_path)

Face Verification

img1 = 'test/image1.jpg'
img2 = 'test/image2.jpg' 
result = skai.compare(img1, img2)
print('Are they same person:', result)

Face Verification Result

Face Recognition

Building the Database

For Face Recognition, you need to build the repository of people face images. You can have multiple images of same person under the directory of his name. Please refer to the below directory tree.

database
├── people
|   ├── Brad Pitt
|   |   ├── image1.jpg
|   |   ├── image2.jpg
|   |   ├── ..
|   ├── Bradley Cooper
|   |   ├── image1.jpg
|   |   ├── image2.jpg
|   |   ├── ..
|   ├── Chris Hemsworth
|   |   ├── image1.jpg
|   |   ├── image2.jpg
|   |   ├── ..
|   ├── ..
import skywatchai.SkywatchDB as skdb
# Give face_path directing to folder containing images following the above requirement
skdb.build_db(face_path='database/people/', save_path='database/')
faceDB, nameMap = skdb.load_db(path='database/')

Recognizing the person from Database

annot_img = skai.find_people(img, faceDB, nameMap)

Dependencies

Acknowledgement

I am very thankful for deepface library created by Sefin Seringil. His works were very useful for me in creating this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skywatchai-0.0.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skywatchai-0.0.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file skywatchai-0.0.2.tar.gz.

File metadata

  • Download URL: skywatchai-0.0.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for skywatchai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3ef4567b977859a1160ef2922fd78469f849d6ef7aeb43f707448921b02a2b00
MD5 61b2d5cd1790a4a8487bab84cdf25a59
BLAKE2b-256 e72b631067fb2eb4528ab41172046692b636b8a1d53a72c144e97dd6e94dc43c

See more details on using hashes here.

File details

Details for the file skywatchai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: skywatchai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for skywatchai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 954eabc498b6162335f53e3045fd9547a31d20658057f59517792659e460d656
MD5 cdb64205afd5074368e7d7ca398ebdf4
BLAKE2b-256 1924f7b7c1eba9396b508abf30f2a0ef8a23e9a02988bd7ea2a1dfd3225fd89b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page