import face_recognition
knownimage=face_recognition.load_image_file(" Path of your image")
unknownimage=face_recognition.load_image_file("Path of your image")
knowencoding=face_recognition.face_encodings(knownimage)[0]
unknownencoding=face_recognition.face_encodings(unknownimage)[0]
results=face_recognition.compare_faces([knowencoding],unknownencoding)
if results[0]==True:
print("Image Matched Successfully")
else:
print("Image Mismatched")
knownimage=face_recognition.load_image_file(" Path of your image")
unknownimage=face_recognition.load_image_file("Path of your image")
knowencoding=face_recognition.face_encodings(knownimage)[0]
unknownencoding=face_recognition.face_encodings(unknownimage)[0]
results=face_recognition.compare_faces([knowencoding],unknownencoding)
if results[0]==True:
print("Image Matched Successfully")
else:
print("Image Mismatched")
#YKYG : After a long time YKYG back into action to boost your knowledge level about Computers World
Question : Who invented GUI..? Share & Support 🌟
Question : Who invented GUI..? Share & Support 🌟
Anonymous Quiz
64%
Microsoft
20%
Xerox
6%
Apple
9%
Adobe
Kindly share this poll to friends❤️ I'm not using any bot for conducting this quizzes..Its all about interest in the subject 👍
#YKYG : Which Topic that not comes under OOPS Concepts
Anonymous Quiz
58%
Mutlithreading
19%
Polymorphism
11%
Inhertiance
12%
Encapsulation
If you have any queries,projects,doubts, sponsorships,Don't hesitate
Contact 👇
Mail-id: queriesakpython@yahoo.com
Instagram: akpythonyt
Thanks
Contact 👇
Mail-id: queriesakpython@yahoo.com
Instagram: akpythonyt
Thanks
#YKYG : The Feature in OOPS that allows same operation to be carried out differently... Identify the feature
Anonymous Quiz
74%
Polymorphism
14%
Encapsulation
12%
Abstraction
What is your programming experience?
Anonymous Poll
75%
0-1 years
18%
2-5 years
7%
More than 5 years
class Human:
def init(self,name,height,weight):
self.name=name
self.height=height
self.weight=weight
def eating(self,food):
return("{} is eating {}".format(self.name,food))
#creating objects
ram=Human("Ram",6,60)
praveen=Human("Praveen",5.9,56)
arun=Human("Arun",6.0,50)
#Retreiving the object information
print("Height of {} is {}".format(ram.name,ram.height))
print("weight of {} is {}".format(ram.name,ram.weight))
print(ram.eating("Pizza"))
print("Height of {} is {}".format(praveen.name,praveen.height))
print("weight of {} is {}".format(praveen.name,praveen.weight))
print(praveen.eating("banana"))
print("Height of {} is {}".format(arun.name,arun.height))
print("weight of {} is {}".format(arun.name,arun.weight))
print(arun.eating("Rice"))
def init(self,name,height,weight):
self.name=name
self.height=height
self.weight=weight
def eating(self,food):
return("{} is eating {}".format(self.name,food))
#creating objects
ram=Human("Ram",6,60)
praveen=Human("Praveen",5.9,56)
arun=Human("Arun",6.0,50)
#Retreiving the object information
print("Height of {} is {}".format(ram.name,ram.height))
print("weight of {} is {}".format(ram.name,ram.weight))
print(ram.eating("Pizza"))
print("Height of {} is {}".format(praveen.name,praveen.height))
print("weight of {} is {}".format(praveen.name,praveen.weight))
print(praveen.eating("banana"))
print("Height of {} is {}".format(arun.name,arun.height))
print("weight of {} is {}".format(arun.name,arun.weight))
print(arun.eating("Rice"))