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
6e046113
Commit
6e046113
authored
Jan 12, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added video rec feature
parent
1d8b80e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
scripts/ppe.py
scripts/ppe.py
+7
-7
No files found.
scripts/ppe.py
View file @
6e046113
...
...
@@ -351,7 +351,7 @@ class Ppe(ModelWrapper):
size
=
(
frame_width
,
frame_height
)
working_dir
=
os
.
getcwd
()
file_name
=
str
(
unique_id
)
+
".avi"
file_name
=
os
.
path
.
join
(
"/home/
output"
,
file_name
)
file_name
=
os
.
path
.
join
(
working_dir
,
"
output"
,
file_name
)
# Below VideoWriter object will create
# a frame of above defined The output
# is stored in 'filename.avi' file.
...
...
@@ -443,7 +443,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -527,7 +527,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -552,7 +552,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -636,7 +636,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -659,7 +659,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -745,7 +745,7 @@ class Ppe(ModelWrapper):
for
v
in
temp_v_list
:
self
.
send_payload
(
frame
=
resize_to_64_64
(
frame
),
message
=
temp_v_list
,
event
=
v
,
frame_id
=
rec_inf
[
2
])
with
open
(
"
/home/
output/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"output/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
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