title: Opencv Resize in loop
body: <p>I want to include a loop in my code to resize a image with specific size, so i have this:</p>
  <pre><code>    # NEW SIZE
  width_expect = 79
  height_expect = 525
  
  Test1 = cv2.imread('image.png')
  print('Before: ',Test1.shape)
  h2 = Test1.shape[0] + int((abs(rows_diff)))# keep original weight
  w2 = Test1.shape[1] #+ int((abs(cols_diff)))
  dim2 = (w2, h2)
  # resize image
  Test2 = cv2.resize(Test1, dim2, interpolation = cv2.INTER_AREA)
  print('After',Test2.shape)
  </code></pre>
  <p>And i just wanne keep my spected size in my all images, any idea?</p>