get better at finding best faces
This commit is contained in:
parent
cbcdd3e14c
commit
721608c493
@ -22,6 +22,12 @@ class Deepfacex(object):
|
||||
return None
|
||||
|
||||
|
||||
# Get main face
|
||||
def get_main_face(self):
|
||||
faces = DeepFace.find_faces(self.img2_path)
|
||||
print(faces)
|
||||
|
||||
|
||||
# Compare the two pics
|
||||
def process(self):
|
||||
print("proc1")
|
||||
@ -43,8 +49,10 @@ if __name__ == '__main__':
|
||||
|
||||
d = Deepfacex()
|
||||
print("main2")
|
||||
d.load("file1","file2","testimg/test1.jpg","testimg/test2.jpg")
|
||||
print("main3")
|
||||
d.load("file1","file2","testimg/brucedickinson.jpg","testimg/ironmaiden.jpg")
|
||||
d.get_main_face()
|
||||
#d.load("file1","file2","testimg/test1.jpg","testimg/test2.jpg")
|
||||
#print("main3")
|
||||
|
||||
print (d.process())
|
||||
#print (d.process())
|
||||
|
||||
|
||||
@ -60,6 +60,13 @@ class yoloserv(object):
|
||||
self.facematcher = Facematch()
|
||||
self.facematcher.init()
|
||||
|
||||
# Object (face) matching
|
||||
if "facematch_open" in self.devices:
|
||||
print("Loading paravision facematch...")
|
||||
from facematch_open import Facematch
|
||||
self.facematcher = Facematch()
|
||||
self.facematcher.init()
|
||||
|
||||
# Image acquisition
|
||||
if "camera" in self.devices:
|
||||
print("AAAAAAAAAAA Loading YUV standard camera...")
|
||||
|
||||
BIN
testimg/brucedickinson.jpeg
Normal file
BIN
testimg/brucedickinson.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
BIN
testimg/ironmaiden.jpg
Normal file
BIN
testimg/ironmaiden.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 104 KiB |
Loading…
Reference in New Issue
Block a user