mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
plotting disabled
This commit is contained in:
parent
4696ca05df
commit
71edb0150f
@ -1,4 +1,3 @@
|
||||
import matplotlib.pyplot as plt
|
||||
from keras.preprocessing import image
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore")
|
||||
@ -103,24 +102,7 @@ def verify(img1_path, img2_path=''
|
||||
identified = "true"
|
||||
else:
|
||||
identified = "false"
|
||||
#----------------------
|
||||
if plot:
|
||||
label = "Verified: "+identified
|
||||
label += "\nThreshold: "+str(round(distance, 2))
|
||||
label += ", Max Threshold to Verify: "+str(threshold)
|
||||
label += "\nModel: "+model_name
|
||||
label += ", Similarity metric: "+distance_metric
|
||||
|
||||
fig = plt.figure()
|
||||
fig.add_subplot(1,2, 1)
|
||||
plt.imshow(img1[0][:, :, ::-1])
|
||||
plt.xticks([]); plt.yticks([])
|
||||
fig.add_subplot(1,2, 2)
|
||||
plt.imshow(img2[0][:, :, ::-1])
|
||||
plt.xticks([]); plt.yticks([])
|
||||
fig.suptitle(label, fontsize=17)
|
||||
plt.show(block=True)
|
||||
|
||||
|
||||
#----------------------
|
||||
#response object
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user