Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design1
/
PKH_project
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
이영훈
2020-11-27 12:04:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
967ab891f7acd38a23c84a8bec71fa6f92333314
967ab891
1 parent
3993f5f5
changed coordinatevalue in project.py
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
codes/Project/project.py
codes/Project/project.py
View file @
967ab89
...
...
@@ -72,7 +72,7 @@ if __name__ == '__main__':
name
=
all_classes
[
cl
]
size
=
w
*
h
# 얼마나 가운데인지 확인하는 알고리즘
coordinatevalue
=
abs
(
x
-
image
.
shape
[
1
]
/
2
)
+
abs
(
y
-
image
.
shape
[
0
]
/
2
)
/
image
.
shape
[
0
]
*
image
.
shape
[
1
]
coordinatevalue
=
abs
(
(
x
+
0.5
*
w
)
-
image
.
shape
[
1
]
/
2
)
+
abs
((
y
-
h
*
0.5
)
-
image
.
shape
[
0
]
/
2
)
/
(
image
.
shape
[
0
]
/
image
.
shape
[
1
])
detectionInfo
.
append
([
i
,
name
,
size
,
coordinatevalue
])
# name 별로 크기가 가장 크거나 물체가 프레임의 가운데 있는 프레임 번호 목록 얻어오기
...
...
Please
register
or
login
to post a comment