Two face comparison pack
Project description
compare_faces
Description.
The package compare_faces is used to:
- Delimit face
- Confront faces
- Plot image
- Plot result
- Get image file
Installation
Use the package manager pip to install compare_faces
pip install compare_faces
Usage
from compare_faces import load_img
image = load_img.get_image_file("my_image.jpg")
image = load_img.delimit_face(image)
# delimit_face returns an image with a rectangle delimiting the first face detected in the input image
from compare_faces import load_img
from compare_faces import comparation
from compare_faces import plot
image = load_img.get_image_file("my_image.jpg")
image_compare = load_img.get_image_file("other_image.jpg")
result_message = comparation.confront_faces(image, image_compare)
# confront_image returns a string informing whether or not the faces belong to the same person and the distance between them
plot.plot_result(image, image_compare, result_message)
# plot_result displays the images and the massage using matplotlib library
from compare_faces import load_img
from compare_faces import plot
image = load_img.get_image_file("my_image.jpg")
plot.plot_image(image)
# plot_image displays the image using matplotlib library
Author
Ronaldo Nunes
License
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
Built Distribution
Close
Hashes for face_picture_comparator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd57c657280d4ff894c6288aea80ad32aad4fde48ec1a4c71bdc5406f25154aa |
|
MD5 | f7653a4244aaded19b9ce67425a6876b |
|
BLAKE2b-256 | 86e76285d1509fdb5fee4ff5f1e08e01ee321d77a4719ef29db8c7dadbd1c2ed |
Close
Hashes for face_picture_comparator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ae65bae0556439e1b74db125d73d5e4df196ad206492d578721b4ca21276c3 |
|
MD5 | b6ae6e3f76ea33b911f64bcc7b1eabdd |
|
BLAKE2b-256 | bb5956d830f93c01eefce0f1e9beefade1b1a33ee2bb3bfc31d4a6b2baf5c688 |