Skip to content

Commit

Permalink
log output from pri/sec star recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Apr 26, 2024
1 parent 13aa7d5 commit 8daba64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/voyimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ int VoyImageScanner::HasStar(cv::Mat skillImg, const std::string &skillName)
if (mean.val[0] + mean.val[1] + mean.val[2] < 10) {
return 0;
} else if (mean.val[0] < 5) {
std::cout << "Primary " << mean.val[0] << " " << mean.val[1] << " " << mean.val[2] << "\n";
return 1; // Primary
} else if (mean.val[0] + mean.val[1] + mean.val[2] > 100) {
std::cout << "Secondary " << mean.val[0] << " " << mean.val[1] << " " << mean.val[2] << "\n";
return 2; // Secondary
} else {
// not sure... hmmm
Expand Down

0 comments on commit 8daba64

Please sign in to comment.