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

Method analyze

source/MaaFramework/Vision/NeuralNetworkClassifier.cpp:26–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void NeuralNetworkClassifier::analyze()
27{
28 LogFunc << name_;
29
30 if (!session_) {
31 LogError << "OrtSession not loaded";
32 return;
33 }
34 auto start_time = std::chrono::steady_clock::now();
35
36 while (next_roi()) {
37 auto res = classify();
38 add_results({ std::move(res) }, param_.expected);
39 }
40
41 cherry_pick();
42
43 auto cost = duration_since(start_time);
44 LogDebug << name_ << VAR(all_results_) << VAR(filtered_results_) << VAR(best_result_) << VAR(cost) << VAR(param_.model)
45 << VAR(param_.labels) << VAR(param_.expected);
46}
47
48NeuralNetworkClassifier::Result NeuralNetworkClassifier::classify() const
49{

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected