Added,
- Face mask detection
- sketch effect A-kriti
- mosiac effect Sudip Ghosh
- ghost image iaditichine
A unified library for FaceX to run all the FaceX algorithms using only one line of code.
from facex import FaceX
import cv2
img = FaceX.cartoonify('your-img.jpg', method='opencv')
cv2.imshow(img)
cv2.waitkey()
Similarly we can run,
FaceX.face_detect('your-img.jpg', method='opencv') #Face detection
FaceX.face_mask('your-img.jpg', method='opencv') #Face mask detection
And many more....
You can simply run the demo.py
file to visualize some examples. Also check the below steps to run your own code,
-
Clone this repo.
-
cd
facex-library
from the command line. -
open your favourite text editor and place it inside
facex-library
folder. -
Run the commands of example section.
-
face_detection method :
facex.face_detect(img_path='your-img.jpg', methods='opencv')
-
cartoonify method :
facex.cartoonify(img_path='your-img.jpg', methods='opencv')
-
blur background method :
facex.blur_bg(img_path='your-img.jpg', methods='opencv')
-
Ghost image method :
facex.ghost_img(img_path='your-img.jpg', methods='opencv')
-
mosaic method :
facex.mosaic(img_path='your-img.jpg', x=219, y=61, w=460-219, h=412-61)
Where, (x,y,w,h) are co-ordinates to apply mosaic effect on the image. -
Sketch method :
facex.sketch(img_path='your-img.jpg', methods='opencv')
- Face Mask Detection
method :
facex.face_mask(image='your-img.jpg') (for image)
facex.face_mask(image='your-img.jpg') (for video)
More deep learning algorithms shall be added soon! (Stay put)
- Release facex library V1.0
- Refine the environment for easy access to the algorithms.
- Make a facex pip package.
- Make a clear documentation.
- Make clear documentation for the contributors to link the algorithms with the package.
- Add more algorithms.
Feel free to suggest any changes or fixes for the benefit of the package here.