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
c6f28833
Commit
c6f28833
authored
Feb 07, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交参数更新
parent
028f9eb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
trans_and_export_data_multi_auto.py
script/trans_and_export_data_multi_auto.py
+4
-2
No files found.
script/trans_and_export_data_multi_auto.py
View file @
c6f28833
...
@@ -609,7 +609,7 @@ threads = []
...
@@ -609,7 +609,7 @@ threads = []
threadID
=
1
threadID
=
1
class
pcdThread
(
threading
.
Thread
):
class
pcdThread
(
threading
.
Thread
):
def
__init__
(
self
,
threadID
,
name
,
start
,
idx
,
_dirs
,
_dir_pcd_list
,
save_list
,
jsn_list
,
trans
,
kit2o
,
box_info_count
,
_dir_g
):
def
__init__
(
self
,
threadID
,
name
,
start
,
idx
,
_dirs
,
_dir_pcd_list
,
save_list
,
jsn_list
,
trans
,
kit2o
,
box_info_count
,
_dir_g
,
_m
):
threading
.
Thread
.
__init__
(
self
)
threading
.
Thread
.
__init__
(
self
)
self
.
threadID
=
threadID
self
.
threadID
=
threadID
self
.
name
=
name
self
.
name
=
name
...
@@ -623,6 +623,7 @@ class pcdThread (threading.Thread):
...
@@ -623,6 +623,7 @@ class pcdThread (threading.Thread):
self
.
kit2ori
=
kit2o
self
.
kit2ori
=
kit2o
self
.
box_info_count
=
box_info_count
self
.
box_info_count
=
box_info_count
self
.
dir_g
=
_dir_g
self
.
dir_g
=
_dir_g
self
.
m
=
_m
def
run
(
self
):
def
run
(
self
):
global
g_save_count
global
g_save_count
global
MAX_SAVE_FILE_NUM
global
MAX_SAVE_FILE_NUM
...
@@ -636,6 +637,7 @@ class pcdThread (threading.Thread):
...
@@ -636,6 +637,7 @@ class pcdThread (threading.Thread):
dirs
=
self
.
_dirs
dirs
=
self
.
_dirs
save_cloud_list
=
self
.
save_list
#保存点云的数组
save_cloud_list
=
self
.
save_list
#保存点云的数组
json_list
=
self
.
jsn_list
json_list
=
self
.
jsn_list
m
=
self
.
m
while
isStop
==
0
:
while
isStop
==
0
:
if
g_save_count
>=
MAX_SAVE_FILE_NUM
:
if
g_save_count
>=
MAX_SAVE_FILE_NUM
:
print
(
"finish g_save_count = "
,
g_save_count
)
print
(
"finish g_save_count = "
,
g_save_count
)
...
@@ -832,7 +834,7 @@ if __name__ == '__main__':
...
@@ -832,7 +834,7 @@ if __name__ == '__main__':
save_json_list
.
append
(
jsn_list
)
save_json_list
.
append
(
jsn_list
)
box_info_cout
=
{
'big'
:
0
,
'little'
:
0
,
'pedestrian'
:
0
,
'mid'
:
0
,
'cyclist'
:
0
}
box_info_cout
=
{
'big'
:
0
,
'little'
:
0
,
'pedestrian'
:
0
,
'mid'
:
0
,
'cyclist'
:
0
}
cloud_box_count
.
append
(
box_info_cout
)
cloud_box_count
.
append
(
box_info_cout
)
thread
=
pcdThread
(
i
,
"Thread"
+
str
(
i
)
,
i
,
Thread_NUM
,
dirs
,
dir_pcd_list
,
save_cloud_list
[
i
],
save_json_list
[
i
],
generate_Trans
,
generate_kitti2origin
,
cloud_box_count
[
i
],
dir_g
)
thread
=
pcdThread
(
i
,
"Thread"
+
str
(
i
)
,
i
,
Thread_NUM
,
dirs
,
dir_pcd_list
,
save_cloud_list
[
i
],
save_json_list
[
i
],
generate_Trans
,
generate_kitti2origin
,
cloud_box_count
[
i
],
dir_g
,
m
)
thread
.
start
()
thread
.
start
()
threads
.
append
(
thread
)
threads
.
append
(
thread
)
for
t
in
threads
:
for
t
in
threads
:
...
...
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