Graduate

Delete func standardization

......@@ -28,9 +28,6 @@ app = Flask(__name__)
sess = tf.compat.v1.Session()
def image_standardization(image):
return (image - 127.5) / 128.0
def resize(image):
resized = cv2.resize(image, (image_size, image_size), interpolation=cv2.INTER_AREA)
return resized
......@@ -83,7 +80,6 @@ def register():
image_np = np.frombuffer(image, dtype=np.uint8)
image_np = cv2.imdecode(image_np, cv2.IMREAD_UNCHANGED)
image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB)
image_np = image_standardization(image_np)
image_np = prewhiten(image_np)
image_np = resize(image_np)
image_np = image_np.reshape(-1, image_size, image_size, 3)
......