| 377 | } |
| 378 | |
| 379 | bool MacroConditionVideo::ScreenshotContainsObject() |
| 380 | { |
| 381 | auto model = _objMatchParameters.GetModel(); |
| 382 | if (!model) { |
| 383 | return false; |
| 384 | } |
| 385 | auto objects = MatchObject(_screenshotData.GetImage(), *model, |
| 386 | _objMatchParameters.scaleFactor, |
| 387 | _objMatchParameters.minNeighbors, |
| 388 | _objMatchParameters.minSize.CV(), |
| 389 | _objMatchParameters.maxSize.CV()); |
| 390 | const auto count = objects.size(); |
| 391 | SetTempVarValue("objectCount", std::to_string(count)); |
| 392 | return count > 0; |
| 393 | } |
| 394 | |
| 395 | bool MacroConditionVideo::CheckBrightnessThreshold() |
| 396 | { |
nothing calls this directly
no test coverage detected