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

Error #2

Open
craqpter opened this issue Jan 10, 2022 · 2 comments
Open

Error #2

craqpter opened this issue Jan 10, 2022 · 2 comments

Comments

@craqpter
Copy link

Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\gui.py", line 932, in process
self.start_error = process.start(path[0])
File "C:\process.py", line 135, in start
draw_delaunay( img_copy, subdiv, (255,219,0) ); #255, 219, 0
File "C:\process.py", line 108, in draw_delaunay
cv2.line(img, pt1, pt2, delaunay_color, lfont, cv2.LINE_AA, 0)
cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'line'

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
@craqpter
Copy link
Author

solution

@craqpter
Copy link
Author

        for t in triangleList:

            pt1 = (int(t[0]), int(t[1]))
            pt2 = (int(t[2]), int(t[3]))
            pt3 = (int(t[4]), int(t[5]))

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