mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
fix facerec sample
This commit is contained in:
parent
b9ad077ae3
commit
a2b2cdb978
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ model.set_double('threshold', 0.0);
|
|||
|
||||
# Now the threshold of this model is set to 0.0. A prediction
|
||||
# now returns -1, as it's impossible to have a distance below it
|
||||
predicted_label = model.predict(test_sample)
|
||||
predicted_label, predicted_confidence = model.predict(test_sample)
|
||||
puts "Predicted class = #{predicted_label}"
|
||||
|
||||
# Show some informations about the model, as there's no cool
|
||||
|
|
Loading…
Add table
Reference in a new issue