Professional Documents
Culture Documents
AI Worksheet Exp 3
AI Worksheet Exp 3
HOME TASK
EXPERIMENT – 3
CLASS-CSE9(B)
GROUP MEMBER’S DETAIL:
NAMES:
Aman Singh
Sudhanshu Singhal
Shaurya Yadav
SIDDHARTHA KUMAR
Aman Kumar Nishad
Aim:
Derive insights from images in the cloud using pre-trained Vision API
models to detect facial emotions.
Requirements: PC with internet connectivity, Python 3.7
Requirements:
Code:
import os
path = r'C:\Users\hp\.spyder-py3\New folder'
os.environ['PATH']+=':'+path
img_path = 'aman.jpg'
img = cv2.imread(img_path)
plt.imshow(img[:, :, ::-1])
image = Image.open(img_path)
image.show()
demography = DeepFace.analyze(img_path)
USED IMAGE
Foundations of AI Applications Lab
OUTCOME: