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

Method cherry_pick

source/MaaFramework/Vision/NeuralNetworkClassifier.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void 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
125cv::Mat NeuralNetworkClassifier::draw_result(const Result& res) const
126{

Callers

nothing calls this directly

Calls 3

pythonic_indexFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected