Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

my problem #4

@xiuluoxiuluo1

Description

@xiuluoxiuluo1

=========== RESTART: C:\Users\Shinelon\Desktop\FGO-master\main.py ===========
Traceback (most recent call last):
File "C:\Users\Shinelon\Desktop\FGO-one-master\main.py", line 21, in
end = s.recognize()
File "C:\Users\Shinelon\Desktop\FGO-one-master\interface\Major.py", line 70, in recognize
back = self.get_basic()
File "C:\Users\Shinelon\Desktop\FGO-one-master\interface\Major.py", line 27, in get_basic
if analyze(self.screenshot, basic_scene, self.threshold) == 1:
File "C:\Users\Shinelon\Desktop\FGO-one-master\util\cvs.py", line 43, in analyze
res = cv2.matchTemplate(sh, tmp, cv2.TM_CCOEFF_NORMED)
cv2.error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:589: error: (-215:Assertion failed) corrsize.height <= img.rows + templ.rows - 1 && corrsize.width <= img.cols + templ.cols - 1 in function 'cv::crossCorr'

I AM NOT GOOD AT ENGLISH(thank you in advance.)
I can find a picture which is called "sh"(screen shot) in my floder
then I checked something about opencv and adb , but there is nothing wrong(I can't find where the problem is)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windowsexceptions on windowsbugSomething isn't workingopenCVproblems related to openCV

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions