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-12-10 11:08:37 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a37675c1ba7c8fccfc250993998fd5b464e77336
a37675c1
1 parent
bfce5329
Delete func standardization
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
flask/app.py
flask/app.py
View file @
a37675c
...
...
@@ -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
)
...
...
Please
register
or
login
to post a comment