Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022 error - unable to draw #11

Open
nubonics opened this issue Apr 21, 2022 · 0 comments
Open

2022 error - unable to draw #11

nubonics opened this issue Apr 21, 2022 · 0 comments

Comments

@nubonics
Copy link

This happens when installing a fresh clone of this repo and entering a practice game as vayne
I am using one of the yolo default weights as the LeagueAI weights

Traceback (most recent call last):
  File "C:\Users\Sylar6\PycharmProjects\LeagueAI\LeagueAI_minimal_example.py", line 28, in <module>
    objects = LeagueAI.get_objects(frame)
  File "C:\Users\Sylar6\PycharmProjects\LeagueAI\LeagueAI_helper.py", line 136, in get_objects
    list(map(lambda x: self.draw_results(x, input_frame, colors), output))
  File "C:\Users\Sylar6\PycharmProjects\LeagueAI\LeagueAI_helper.py", line 136, in <lambda>
    list(map(lambda x: self.draw_results(x, input_frame, colors), output))
  File "C:\Users\Sylar6\PycharmProjects\LeagueAI\LeagueAI_helper.py", line 154, in draw_results
    cv2.rectangle(img, c1, c2,color, 2)
cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'rec'. Expected sequence length 4, got 2
>  - Can't parse 'rec'. Expected sequence length 4, got 2


Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant