mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
perf: Wpf 增加未找到 CrashDumps 文件夹 Log, correct_rect 增加 rect.empty() log
This commit is contained in:
@@ -81,6 +81,7 @@ Rect VisionHelper::correct_rect(const Rect& rect, const cv::Mat& image)
|
||||
return rect;
|
||||
}
|
||||
if (rect.empty()) {
|
||||
LogWarn << __FUNCTION__ << "roi is empty, use whole image";
|
||||
return { 0, 0, image.cols, image.rows };
|
||||
}
|
||||
if (rect.x >= image.cols || rect.y >= image.rows) {
|
||||
|
||||
@@ -221,6 +221,10 @@ public class Bootstrapper : Bootstrapper<RootViewModel>
|
||||
_logger.Information("Crash dumps are copied to {DumpDir}", dumpDir);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Information("%LocalAppData%/CrashDumps not found");
|
||||
}
|
||||
|
||||
string[] lines = File.ReadAllLines(crashFile, Encoding.UTF8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user