<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.1.0</li>
<li>Operating System / Platform =&gt; Mac OS Mojave 10.14</li>
<li>Compiler =&gt; n/a python 3.7</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto"><a href="https://docs.opencv.org/4.1.0/d3/d96/tutorial_basic_geometric_drawing.html" rel="nofollow">https://docs.opencv.org/4.1.0/d3/d96/tutorial_basic_geometric_drawing.html</a><br>
python version of tutorial throws the following error:</p>
<p dir="auto">'''TypeError: ellipse() takes at most 5 arguments (9 given)'''</p>
<p dir="auto">This error appears to be a bit misleading.  Instead the problem seems to be the way python 3 treats integer division (converts to float).  Casting positional arguments to int should solve this.</p>
<h5 dir="auto">Steps to reproduce</h5>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    cv.ellipse(img,
                (W / 2, W / 2),
                (W / 4, W / 16),
                angle,
                0,
                360,
                (255, 0, 0),
                thickness,
                line_type)
 "><pre class="notranslate">    <span class="pl-s1">cv</span>.<span class="pl-en">ellipse</span>(<span class="pl-s1">img</span>,
                (<span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">2</span>, <span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">2</span>),
                (<span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">4</span>, <span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">16</span>),
                <span class="pl-s1">angle</span>,
                <span class="pl-c1">0</span>,
                <span class="pl-c1">360</span>,
                (<span class="pl-c1">255</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>),
                <span class="pl-s1">thickness</span>,
                <span class="pl-s1">line_type</span>)
 </pre></div>
<p dir="auto">OpenCV =&gt; master<br>
Operating System / Platform =&gt; Windows 64 Bit<br>
Compiler =&gt; Visual Studio 2017<br>
CMake option WITH_OPENMP=ON</p>
<p dir="auto">Here: <a href="https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L553">https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L553</a><br>
pbody need integer value: <a href="https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L428">https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L428</a></p>