<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/dd/dd7/tutorial_morph_lines_detection.html" rel="nofollow">https://docs.opencv.org/4.1.0/dd/dd7/tutorial_morph_lines_detection.html</a></p>
<p dir="auto">python version of tutorial throws the following error:<br>
File "ExtractHorzVert.py", line 104, in <br>
main()<br>
File "ExtractHorzVert.py", line 53, in main<br>
horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1))<br>
TypeError: integer argument expected, got float</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="   horizontal_size = cols / 30
   horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1))
    "><pre class="notranslate">   <span class="pl-s1">horizontal_size</span> <span class="pl-c1">=</span> <span class="pl-s1">cols</span> <span class="pl-c1">/</span> <span class="pl-c1">30</span>
   <span class="pl-s1">horizontalStructure</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">getStructuringElement</span>(<span class="pl-s1">cv</span>.<span class="pl-v">MORPH_RECT</span>, (<span class="pl-s1">horizontal_size</span>, <span class="pl-c1">1</span>))
    </pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; :3.4</li>
<li>Operating System / Platform =&gt; :Windows 64 Bit / python</li>
<li>Compiler =&gt; :(python 3.6)</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">OpenCV writes a hdr file with header starting with "#?RGBE". But many programs suppose "#?RADIANCE" and don't work on files with "#?RGBE".  Would you change this header line to "#?RADIANCE"?</p>