Graduate

Delete func standardization

...@@ -28,9 +28,6 @@ app = Flask(__name__) ...@@ -28,9 +28,6 @@ app = Flask(__name__)
28 sess = tf.compat.v1.Session() 28 sess = tf.compat.v1.Session()
29 29
30 30
31 -def image_standardization(image):
32 - return (image - 127.5) / 128.0
33 -
34 def resize(image): 31 def resize(image):
35 resized = cv2.resize(image, (image_size, image_size), interpolation=cv2.INTER_AREA) 32 resized = cv2.resize(image, (image_size, image_size), interpolation=cv2.INTER_AREA)
36 return resized 33 return resized
...@@ -83,7 +80,6 @@ def register(): ...@@ -83,7 +80,6 @@ def register():
83 image_np = np.frombuffer(image, dtype=np.uint8) 80 image_np = np.frombuffer(image, dtype=np.uint8)
84 image_np = cv2.imdecode(image_np, cv2.IMREAD_UNCHANGED) 81 image_np = cv2.imdecode(image_np, cv2.IMREAD_UNCHANGED)
85 image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB) 82 image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB)
86 - image_np = image_standardization(image_np)
87 image_np = prewhiten(image_np) 83 image_np = prewhiten(image_np)
88 image_np = resize(image_np) 84 image_np = resize(image_np)
89 image_np = image_np.reshape(-1, image_size, image_size, 3) 85 image_np = image_np.reshape(-1, image_size, image_size, 3)
......