Updated by Andrey Kamaev about 13 years ago
The following code works fine
<pre><code class="python">
small_img = cv2.resize(img, (ncols, nrows))
</code></pre>
But if it is called in a function like:
<pre><code class="python">
def my_resize(img):
small_img = cv2.resize(img, (ncols, nrows))
my_resize(img)
</code></pre>
It crashes python.exe
environment:
win 7 32 bit
opencv 2.3.1
mingw 4.4
cmake 2.8
<pre><code class="python">
small_img = cv2.resize(img, (ncols, nrows))
</code></pre>
But if it is called in a function like:
<pre><code class="python">
def my_resize(img):
small_img = cv2.resize(img, (ncols, nrows))
my_resize(img)
</code></pre>
It crashes python.exe
environment:
win 7 32 bit
opencv 2.3.1
mingw 4.4
cmake 2.8