Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aart_ppe_detection
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikhin.vc
aart_ppe_detection
Commits
f0337933
Commit
f0337933
authored
Jan 12, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added video rec feature
parent
a54f55ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
scripts/ppe.py
scripts/ppe.py
+6
-6
No files found.
scripts/ppe.py
View file @
f0337933
...
@@ -443,7 +443,7 @@ class Ppe(ModelWrapper):
...
@@ -443,7 +443,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
@@ -527,7 +527,7 @@ class Ppe(ModelWrapper):
...
@@ -527,7 +527,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
@@ -552,7 +552,7 @@ class Ppe(ModelWrapper):
...
@@ -552,7 +552,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
@@ -636,7 +636,7 @@ class Ppe(ModelWrapper):
...
@@ -636,7 +636,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
@@ -659,7 +659,7 @@ class Ppe(ModelWrapper):
...
@@ -659,7 +659,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
@@ -745,7 +745,7 @@ class Ppe(ModelWrapper):
...
@@ -745,7 +745,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
/home/output/
recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
del
self
.
active_rec
[
object_id
]
...
...
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