Skip to content

Эффективный поиск людей по фотографии

Notifications You must be signed in to change notification settings

kudddy/find_face_postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Идексация лиц с помощью PostgreSQL

Демо-версия ageitgey/face_recognition

Установка

Зависимость:

pip install cmake py-postgresql face_recognition opencv-python

Запускаем PostgreSQL 9.6 с помощью докера

docker-compose up -d

Инициализируем базу данных

python db.py

Использование

Добавляем лицо в базу

python face-add.py <image.jpg>
python face-add.py ../lfw/Bill_Clinton/Bill_Clinton_0009.jpg 
Found 1 faces in the image file ../lfw/Bill_Clinton/Bill_Clinton_0009.jpg
- Face #0 found at Left: 86 Top: 96 Right: 175 Bottom: 186


python face-add.py ../lfw/John_Malkovich/John_Malkovich_0001.jpg 
Found 1 faces in the image file ../lfw/John_Malkovich/John_Malkovich_0001.jpg
- Face #0 found at Left: 76 Top: 86 Right: 165 Bottom: 176


python face-add.py ../lfw/Bill_Gates/Bill_Gates_0006.jpg 
Found 1 faces in the image file ../lfw/Bill_Gates/Bill_Gates_0006.jpg
- Face #0 found at Left: 67 Top: 80 Right: 175 Bottom: 187

Ищем лицо в базе

python face-find.py <image.jpg>
python face-find.py ../lfw/John_Malkovich/John_Malkovich_0003.jpg 
Found 1 faces in the image file ../lfw/John_Malkovich/John_Malkovich_0003.jpg
- Face #0 found at Left: 67 Top: 68 Right: 175 Bottom: 175
[('../lfw/John_Malkovich/John_Malkovich_0001.jpg',)]


python face-find.py ../lfw/Bill_Clinton/Bill_Clinton_0002.jpg 
Found 1 faces in the image file ../lfw/Bill_Clinton/Bill_Clinton_0002.jpg
- Face #0 found at Left: 86 Top: 86 Right: 175 Bottom: 176
[('../lfw/Bill_Clinton/Bill_Clinton_0009.jpg',)]

About

Эффективный поиск людей по фотографии

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published