williamcfrancis's picture
Upload 74 files
e22b55b
raw
history blame
278 Bytes
import cv2
class Process:
def __init__(self,width,height,inter=cv2.INTER_AREA):
self.width=width
self.height=height
self.inter=inter
def preprocess(self,image):
return cv2.resize(image,(self.width,self.height),interpolation=self.inter)