blank = cv2.line(blank,focus1,focus2,(255,0,0),5) I understand this is miscellaneous to execute with a mismatch of varieties with the underlying library. Yet what need to I be utilizing exactly? I" tried through focus1 and also focus2 gift both lists (defined through square-brackets) and tuples (defined with just commas). Both it seems to be ~ to trigger the exact same error.

I" in Python 2.7 and

Update: for anyone else struggling through this. I was mystified because I to be generating the points as tuples (and so assumed this wasn" the problem). But I uncovered somewhere rather in my code which was handling them and transforming them earlier into list on the method to the draw function.

Something come watch the end for if you hit this problem.

You are watching: Systemerror: new style getargs format but argument is not a tuple

edit retag flag attack close merge delete
add a comment

1 prize

kind by » oldest newest many voted


berak 32993 ●7 ●81 ●312

try with tuples :

focus1=0,20 # works even w/o braces !focus2=(80,20)cv2.line(ocv,focus1,focus2,(255,0,0),5)


also you re welcome note, the the 2.4 variation does not return a new image, check out docs

modify flag offensive delete link more



# works even w/o braces ! is among the key things why Python scares the hell out of me :D


^^ hell, yea..


That" funny. If I placed it your example straight it works fine. In mine code, i AM generating mine two emphasis points as tuples, yet they should be obtaining converted to a perform somewhere follow me the line. Thanks.


Yes. That" what to be happening. Ns was generating the points as tuples however processing them in another role that turn them back into lists follow me the way. Cheers.

See more: Burger Tap &Amp; Shake Foggy Bottom, The Field Burger & Tap

interstar, oh, i m really sorry forgot to make that much more clear: having a list there cause the getargs error.

add a comment


official site




Question Tools

1 monitor

i ordered it to rss feed


Seen: 9,635 times

critical updated: Sep 02 "

Related questions

Area of a solitary pixel object in

Weird an outcome while finding edge

cv2.perspectiveTransform() through Python

Python findFundamentalMat example aid

Python correctMatches

cv2 bindings incompatible v numpy.dstack function?

Getting solitary frames from video with python

line detection and also timestamps, video, Python

different behaviour that Python arguments in 32 and 64-bit systems

around | faq | help | privacy policy | terms of company
it is provided by Askbot version 0.10.2
please note: requires javascript to job-related properly, please enable javascript in your browser, here is how