MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / cherry_pick

Method cherry_pick

source/MaaFramework/Vision/NeuralNetworkDetector.cpp:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void NeuralNetworkDetector::cherry_pick()
193{
194 sort_(all_results_);
195 sort_(filtered_results_);
196
197 if (auto index_opt = pythonic_index(filtered_results_.size(), param_.result_index)) {
198 best_result_ = filtered_results_.at(*index_opt);
199 }
200}
201
202cv::Mat NeuralNetworkDetector::draw_result(const ResultsVec& results) const
203{

Callers

nothing calls this directly

Calls 3

pythonic_indexFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected