Showing
2 changed files
with
4 additions
and
6 deletions
... | @@ -106,7 +106,7 @@ def verify(): | ... | @@ -106,7 +106,7 @@ def verify(): |
106 | image = base64.b64decode(request.form['image']) | 106 | image = base64.b64decode(request.form['image']) |
107 | image_np = np.frombuffer(image, dtype=np.uint8) | 107 | image_np = np.frombuffer(image, dtype=np.uint8) |
108 | image_np = cv2.imdecode(image_np, cv2.IMREAD_UNCHANGED) | 108 | image_np = cv2.imdecode(image_np, cv2.IMREAD_UNCHANGED) |
109 | - print(get_brightness(image_np)) | 109 | + # print(get_brightness(image_np)) |
110 | image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB) | 110 | image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB) |
111 | image_np = prewhiten(image_np) | 111 | image_np = prewhiten(image_np) |
112 | image_np = resize(image_np) | 112 | image_np = resize(image_np) | ... | ... |
... | @@ -195,11 +195,9 @@ function main() | ... | @@ -195,11 +195,9 @@ function main() |
195 | <p>Made by <span class="w3-tag">정해갑</span></p> | 195 | <p>Made by <span class="w3-tag">정해갑</span></p> |
196 | </header> | 196 | </header> |
197 | 197 | ||
198 | - <div class="w3-row", style='text-align:center'> | 198 | + <div id="container"> |
199 | - <div id="container"> | 199 | + <video autoplay="true" id="videoInput" style="display: none; object-fit: cover;"></video> |
200 | - <video autoplay="true" id="videoInput" style="display: none; object-fit: cover;"></video> | 200 | + <canvas id="canvasOutput"></canvas> |
201 | - <canvas id="canvasOutput"></canvas> | ||
202 | - </div> | ||
203 | </div> | 201 | </div> |
204 | </div> | 202 | </div> |
205 | </body> | 203 | </body> | ... | ... |
-
Please register or login to post a comment