Graduate

Convert color BGR to RGB

......@@ -101,10 +101,10 @@ def verify():
image = base64.b64decode(request.form['image'])
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 = prewhiten(image_np)
image_np = resize(image_np)
image_np = image_np.reshape(-1, image_size, image_size, 3)
print(image_np.shape)
# get embedding
feed_dict = {input_placeholder:image_np, phase_train_placeholder:False }
embedding = sess.run(embeddings_placeholder, feed_dict=feed_dict)
......