Where Is The Error? "systemerror: New Style Getargs Format But Argument Is Not A Tuple"
I am doing an image processing Lane Detection project. Im getting this error within my code. Im hoping someone can help me figure out how to fix this error. Here is the function: d
Solution 1:
You are correct in the origin of the problem; it's the cv2.line function. Take a look at this: https://pythonprogramming.net/drawing-writing-python-opencv-tutorial/
I think your color needs to be a tuple (255,0,0)
instead of a list [255,0,0]
.
Edit: You'll likely have the same problem with your line arg...I think it needs to be a tuple as well.
Solution 2:
Not sure how that library formats colour, but normally it is in rounded brackets (255,36,239) which is probably the error about the tuple. Secondly, do not use an equals (=) when defining parameters. This:
color = [255,0,0]
Should be changed to:
colour = (255,0,0)
, color, thickness..
Also change thickness in the same way.
Post a Comment for "Where Is The Error? "systemerror: New Style Getargs Format But Argument Is Not A Tuple""