Easy symmetrizer for an image contained face(s)
Project description
face-symmetrizer
- Easy symmetrizer for an image contained face(s)
Install
pip install face_symmetrizer
How
- First, load an image
from face_symmetrizer import FaceSym
f = FaceSym("img/two_people.jpg") # Image URL or local file path
# ATTR: ['image_location',
'f_img', 'f_img_PIL', 'image_size',
'face_locations', 'face_landmarks',
'mid_face_locations', 'face_count']
- Get & show a full image
f.get_full_image(show=True) #=> <PIL.Image.Image>
- Get & show an image of a rectangle drawn around a face.
f.get_face_box_drawed_image(show=True) #=> <PIL.Image.Image>
- Get & show cropped face(s)
f.get_cropped_face_images(show=True) #=> [<PIL.Image.Image>, ...]
- Get & show symmetrized images (face: 0)
f.get_symmetrized_images(show=True, idx=0) #=> (left_cropped, left_cropped_inner, left_cropped_outer,
right_cropped, right_cropped_inner, right_cropped_outer)
- Get & show symmetrized images (face: 1)
f.get_symmetrized_images(show=True, idx=1)
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
face_symmetrizer-1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for face_symmetrizer-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44eba664cfec8daa40c3fdb2b460c353bf7d09d94d6384d8c1fb436871d53ac |
|
MD5 | f217ef6eca25f7941508db034fe39013 |
|
BLAKE2b-256 | b7aafd24b0722ae53d1c86875cb244169a645c068629756d271c56fbf04554e6 |