Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfxmap_python
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfxmap_python
Commits
90d43165
Commit
90d43165
authored
Jan 11, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交保存文件
parent
458a0d58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
trans_data.py
script/trans_data.py
+4
-4
No files found.
script/trans_data.py
View file @
90d43165
...
...
@@ -484,7 +484,7 @@ if __name__ == '__main__':
for
file_path
,
boxx
in
anno
.
items
():
svaeFile
=
save_root_path
+
saveName
[
file_path
]
+
".csv"
f1
=
open
(
svaeFile
,
'w'
)
f1
.
write
(
'lat,lon,x,y,z,l,w,h,rot_y'
)
f1
.
write
(
'lat,lon,x,y,z,l,w,h,rot_y
\n
'
)
# print(file_path)
# print(boxx)
bbox_flag
,
bboxes
=
read_all_3d_bboxes
(
boxx
,
np
.
identity
(
4
))
...
...
@@ -506,9 +506,9 @@ if __name__ == '__main__':
lidar_loc
,
out_BL
,
out_center_BL
=
get_loc
([
bbox
[
4
][
0
],
bbox
[
4
][
1
],
bbox
[
4
][
2
],
bbox
[
6
][
0
],
bbox
[
6
][
1
],
bbox
[
6
][
2
],
bbox
[
2
]],
0
,
origin_Trans
,
origin_kitti2origin
)
print
(
out_center_BL
)
angle
=
bbox
[
2
]
/
np
.
pi
*
180
isInMap
=
get_map_data
(
out_center_BL
[
0
],
out_center_BL
[
1
],
angle
)
print
(
"call get data isInMap = "
,
isInMap
)
mapInfo
=
get_map_data
(
out_center_BL
[
0
],
out_center_BL
[
1
],
angle
)
print
(
"call get data isInMap = "
,
mapInfo
)
f1
.
write
(
'
%
f,
%
f,
%
f,
%
f,
%
f,
%
f,
%
f,
%
f,
%
f
\n
'
%
(
out_center_BL
[
0
],
out_center_BL
[
1
],
bbox
[
4
][
0
],
bbox
[
4
][
1
],
bbox
[
4
][
2
],
bbox
[
6
][
0
],
bbox
[
6
][
1
],
bbox
[
6
][
2
],
angle
))
flag
=
in_hull
(
xyz
,
bbox
[
1
])
pickcloud
=
xyz
[
flag
]
dz
=
np
.
array
([
0
,
0
,
0
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment