Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-28 09:08:18 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
edcd1953a6d213cd44fde8aeab8bd2b70ddb44e3
edcd1953
1 parent
bbbd9ab5
HTML
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
flask/app.py
flask/templates/index.html
flask/app.py
View file @
edcd195
...
...
@@ -106,7 +106,7 @@ 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
)
print
(
get_brightness
(
image_np
))
#
print(get_brightness(image_np))
image_np
=
cv2
.
cvtColor
(
image_np
,
cv2
.
COLOR_BGR2RGB
)
image_np
=
prewhiten
(
image_np
)
image_np
=
resize
(
image_np
)
...
...
flask/templates/index.html
View file @
edcd195
...
...
@@ -195,11 +195,9 @@ function main()
<p>
Made by
<span
class=
"w3-tag"
>
정해갑
</span></p>
</header>
<div
class=
"w3-row"
,
style=
'text-align:center'
>
<div
id=
"container"
>
<video
autoplay=
"true"
id=
"videoInput"
style=
"display: none; object-fit: cover;"
></video>
<canvas
id=
"canvasOutput"
></canvas>
</div>
<div
id=
"container"
>
<video
autoplay=
"true"
id=
"videoInput"
style=
"display: none; object-fit: cover;"
></video>
<canvas
id=
"canvasOutput"
></canvas>
</div>
</div>
</body>
...
...
Please
register
or
login
to post a comment