Skip to content

Template matching sizing bug - RatEye v4.0.0 #6

@sam30606

Description

@sam30606

Error
One or more errors occurred. (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width)

System.AggregateException: One or more errors occurred. (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width)
 ---> OpenCvSharp.OpenCVException: _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width
   at OpenCvSharp.Internal.NativeMethods.<>c.<.cctor>b__1682_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
   at OpenCvSharp.Internal.NativeMethods.imgproc_matchTemplate(IntPtr image, IntPtr templ, IntPtr result, Int32 method, IntPtr mask)
   at OpenCvSharp.Cv2.MatchTemplate(InputArray image, InputArray templ, OutputArray result, TemplateMatchModes method, InputArray mask)
   at OpenCvSharp.Mat.MatchTempla
Log
[05:15:45.7388229] > [Info]  ----- RatScanner 3.6.5 -----
[05:15:45.7397363] > [Info]  Screen Info: 2560x1440 at 125%
[05:15:45.7397446] > [Info]  Setting temporary default item...
[05:15:45.7407945] > [Info]  Initializing tarkov tracker database
[05:15:45.7408954] > [Info]  Initializing hotkey manager...
[05:15:45.7438180] > [Info]  UI Ready!
[05:15:46.7529275] > [Info]  Checking for updates...
[05:15:46.7539683] > [Info]  Loading resource "RSClientVersion"...
[05:15:47.9776753] > [Info]  Loading item data...
[05:15:49.1795138] > [Info]  Loading price data...
[05:15:50.2843639] > [Info]  Loading TarkovTracker data...
[05:15:50.2843737] > [Info]  Loading TarkovTracker...
[05:15:51.7982336] > [Info]  Initializing RatEye...
[05:15:52.3664116] > [Info]  Setting up timer routines...
[05:15:52.3664311] > [Info]  Setting default item...
[05:15:52.3679891] > [Info]  Enabling hotkeys...
[05:15:52.3680201] > [Info]  Ready!
[05:20:52.3802568] > [Info]  Refreshing TarkovTracker DB...
[05:25:53.4659282] > [Info]  Refreshing TarkovTracker DB...
[05:30:54.3985991] > [Info]  Refreshing TarkovTracker DB...
[05:35:55.5534381] > [Info]  Refreshing TarkovTracker DB...
[05:40:56.4762769] > [Info]  Refreshing TarkovTracker DB...
[05:45:52.3779763] > [Info]  Refreshing Market DB...
[05:45:57.3726644] > [Info]  Refreshing TarkovTracker DB...
[05:47:52.4814639] > [Error] One or more errors occurred. (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width)
 -------------------- 
 System.AggregateException: One or more errors occurred. (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width) (_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width)
 ---> OpenCvSharp.OpenCVException: _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width
   at OpenCvSharp.Internal.NativeMethods.<>c.<.cctor>b__1682_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userData)
   at OpenCvSharp.Internal.NativeMethods.imgproc_matchTemplate(IntPtr image, IntPtr templ, IntPtr result, Int32 method, IntPtr mask)
   at OpenCvSharp.Cv2.MatchTemplate(InputArray image, InputArray templ, OutputArray result, TemplateMatchModes method, InputArray mask)
   at OpenCvSharp.Mat.MatchTemplate(InputArray templ, TemplateMatchModes method, InputArray mask)
   at RatEye.Processing.Icon.<>c__DisplayClass42_0.<TemplateMatchSub>b__0(KeyValuePair`2 icon)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions