Skip to main content

vk_face_recognition

A program for creating a database with human biometrics based on photos. Photos will be automatically downloaded from VKontakte. Subsequently, it will be possible to search for a person using the created database. The program was created based on the face_recognition and vk_api libraries

PyPI PyPI - Python Version


Installation

Requirements

  • Python 3.8+
  • Linux, Windows or macOS

Installing on Linux or Mac

pip3 install vk_face_recognition

Installing on Windows

pip install vk_face_recognition

Usage

Initial setup

To get started, you need to add your token_vk received on the site, to the file main.py to a string

self.session = vk_api.VkApi(token='your_token')

Using the Library

from vk_face_recognition import Vk_recognition

vk_recognition = Vk_recognition()
vk_recognition.start_recognition(age_min=25, age_max=26, gender=1, city='Moscow')

When running this code, a file will be created first users_id.txt with the user id according to the specified parameters of age_min, age_max, gender and city. Then the user's photos will be downloaded to the data folder. And then these photos will be used to recognize faces and create face parameters and write them to a separate file in the pickle_files folder

Search by photo

After creating the database you need, you can search through the photo in the following way

from vk_face_recognition import Vk_recognition

search = Vk_recognition()
search.find_people('path to the photo')

A search will be performed on the database you created and, if it matches, it will report this

Metadata

Release files for vk-face-recognition 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vk-face-recognition 1.1.5
File Size Uploaded
vk_face_recognition-1.1.5.tar.gz 4.5 kB Details

Release files / vk_face_recognition-1.1.5.tar.gz

Download URL vk_face_recognition-1.1.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
845996cf347e6364def74860ffb07f63b3676c8d19a8783190890da3ae3f6aee
BLAKE2b-256 checksum
How to use checksums
faccd149b2e162003df29336b014ca0de36815c3f56d864c280146dfaf410d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

1.1.5 This release

1 release file

1.1.4

1 release file

1.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page