Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EPSA Pae AI Self Driving
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EPSA Personnal Git
EPSA Pae AI Self Driving
Commits
65231674
Commit
65231674
authored
2 years ago
by
Lacroix Paul
Browse files
Options
Downloads
Patches
Plain Diff
outils debug camerac
parent
20d02045
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PAR 152/Yolo V3/TensorFlow-2.x-YOLOv3-master/MCL.py
+10
-1
10 additions, 1 deletion
PAR 152/Yolo V3/TensorFlow-2.x-YOLOv3-master/MCL.py
with
10 additions
and
1 deletion
PAR 152/Yolo V3/TensorFlow-2.x-YOLOv3-master/MCL.py
+
10
−
1
View file @
65231674
...
@@ -210,6 +210,10 @@ def get_position(boxes,commande,pos):
...
@@ -210,6 +210,10 @@ def get_position(boxes,commande,pos):
liste_y
.
append
(
y
)
liste_y
.
append
(
y
)
z_t
=
[]
z_t
=
[]
cone_x
=
[]
cone_y
=
[]
for
i
in
range
(
len
(
liste_x
)):
for
i
in
range
(
len
(
liste_x
)):
z_t
.
append
((
liste_x
[
i
],
liste_y
[
i
]))
z_t
.
append
((
liste_x
[
i
],
liste_y
[
i
]))
...
@@ -223,7 +227,12 @@ def get_position(boxes,commande,pos):
...
@@ -223,7 +227,12 @@ def get_position(boxes,commande,pos):
pos_calc
[
1
]
+=
pos
[
i
][
1
]
*
W
[
i
]
pos_calc
[
1
]
+=
pos
[
i
][
1
]
*
W
[
i
]
pos_calc
[
2
]
+=
pos
[
i
][
2
]
*
W
[
i
]
pos_calc
[
2
]
+=
pos
[
i
][
2
]
*
W
[
i
]
return
pos_calc
,
pos
for
i
in
range
(
len
(
liste_x
)):
x
,
y
=
rotation
((
liste_x
[
i
]
,
liste_y
[
i
]),
(
0
,
0
),
pos_calc
[
2
])
cone_x
.
append
(
x
+
pos_calc
[
0
])
cone_y
.
append
(
y
+
pos_calc
[
1
])
return
pos_calc
,
pos
,
cone_x
,
cone_y
'''
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment