| 113 | } |
| 114 | |
| 115 | void NeuralNetworkClassifier::cherry_pick() |
| 116 | { |
| 117 | sort_(all_results_); |
| 118 | sort_(filtered_results_); |
| 119 | |
| 120 | if (auto index_opt = pythonic_index(filtered_results_.size(), param_.result_index)) { |
| 121 | best_result_ = filtered_results_.at(*index_opt); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | cv::Mat NeuralNetworkClassifier::draw_result(const Result& res) const |
| 126 | { |
nothing calls this directly
no test coverage detected