class_docstr: DB pre-process for Test mode
class_docstr_tok: ["DB","pre-process","for","Test","mode"]
code: def resize_image_type1(self, im):
      resize_h, resize_w = self.image_shape
      ori_h, ori_w = im.shape[:2]  # (h, w, c)
      im = cv2.resize(im, (int(resize_w), int(resize_h)))
      ratio_h = float(resize_h) / ori_h
      ratio_w = float(resize_w) / ori_w
      return im, (ratio_h, ratio_w)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import cv2
  import numpy
  import pyclipper
  from PIL import ImageDraw
  from shapely.geometry import Polygon
label_desc: Use image node_id 3 for calling the DBProcessTest obj's underlying member method code with example usage: obj.resize_image_type1(im) and returns: im,  ratio_h,  ratio_w