AI FACE MESHING / MASKING with Python in 7 LINES !. How to MAKE an A.I Face Masking/Meshing system.

Published: 08 July 2022
on channel: Computer Science With Bas
180
5

This Python A.I Tutorial demonstrates How you can MAKE YOUR OWN AI FACE MESHING / MASKING System WITH PYTHON. This video will teach you to make your own AI MODEL which will be able to do Face Meshing and Face Masking with a very HIGH ACCURACY and you can also implement this program in other aspects such as criminology, detection, robots, etc.

The Source Code of the Program is given as below:-
NOTE:- You need to install the given two modules 'pip install mediapipe and pip install opencv-python'

import mediapipe as mp
import cv2

cap = cv2.VideoCapture(0)
mpFaceMesh = mp.solutions.face_mesh
mpDraw = mp.solutions.drawing_utils
FaceMesh = mpFaceMesh.FaceMesh(max_num_faces=1)

while True:

succes, img = cap.read()
img = cv2.resize(img, (0,0), fx=0.5, fy=0.5)
imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
results = FaceMesh.process(imgRGB)

if results.multi_face_landmarks:
for facelms in results.multi_face_landmarks:
mpDraw.draw_landmarks(img, facelms, mpFaceMesh.FACEMESH_CONTOURS)

cv2.imshow('A.I PROGRAM', img)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows()

On this channel, you can also find content related to A.i Projects, Web Development, Game Development, Computer Tips and Tricks, Computer Programming & skills, and more amazing and awesome stuff and the videos are very high quality and well explained.

If you find my channel helpful and if you find the content valuable and informative then kindly please consider subscribing and also share and like. Your kind support means a lot to us and we value it a lot.

✔ If you want to follow for more tips - check out my Instagram -
  / iambash__  

✔ You can also check out my website from the Link -
https://sites.google.com/view/compute...

Hope to see you again in another Awesome Video. Till then bye and Be Safe.


Watch video AI FACE MESHING / MASKING with Python in 7 LINES !. How to MAKE an A.I Face Masking/Meshing system. online without registration, duration hours minute second in high quality. This video was added by user Computer Science With Bas 08 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 180 once and liked it 5 people.