1
0
Fork 0
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:
ser1zw 2014-01-13 17:42:52 +09:00
parent b9ad077ae3
commit a2b2cdb978

View file

@ -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