diff --git a/EliteReporter/Assets/reward_eng.bmp b/EliteReporter/Assets/reward_eng.bmp index cbaf54d..f41dd80 100644 Binary files a/EliteReporter/Assets/reward_eng.bmp and b/EliteReporter/Assets/reward_eng.bmp differ diff --git a/EliteReporter/Assets/reward_rus.bmp b/EliteReporter/Assets/reward_rus.bmp index 10664d2..e4c44cb 100644 Binary files a/EliteReporter/Assets/reward_rus.bmp and b/EliteReporter/Assets/reward_rus.bmp differ diff --git a/EliteReporter/Utils/ScreenAnalyzer.cs b/EliteReporter/Utils/ScreenAnalyzer.cs index bf85aaa..0191a4e 100644 --- a/EliteReporter/Utils/ScreenAnalyzer.cs +++ b/EliteReporter/Utils/ScreenAnalyzer.cs @@ -105,6 +105,7 @@ public MissionInfo findAndAnalyzeMissionSummaryPage(string pathToBmp, bool inclu } } + source = source.GetSubRect(new Rectangle((int)(450*widthFactor), 0, source.Width - (int)(450*widthFactor), source.Height)); using (Image result = source.MatchTemplate(rewardTemplate, Emgu.CV.CvEnum.TemplateMatchingType.CcoeffNormed)) { double[] minValues, maxValues; @@ -112,11 +113,11 @@ public MissionInfo findAndAnalyzeMissionSummaryPage(string pathToBmp, bool inclu result.MinMax(out minValues, out maxValues, out minLocations, out maxLocations); // You can try different values of the threshold. I guess somewhere between 0.75 and 0.95 would be good. - if (maxValues[0] > 0.7) + if (maxValues[0] > 0.65) { int reward = 0; // reward - var match = new Rectangle(new Point(maxLocations[0].X + rewardTemplate.Width + (int)(210 * widthFactor), + var match = new Rectangle(new Point(maxLocations[0].X + rewardTemplate.Width, maxLocations[0].Y), new Size((int)(210 * widthFactor), rewardTemplate.Height)); if (match.X + match.Width > source.Width || match.Y + match.Height > source.Height)