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
8e4fecfd
Commit
8e4fecfd
authored
Jan 16, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added video recording format
parent
9675e950
Changes
1
Hide 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 @
8e4fecfd
...
...
@@ -349,7 +349,7 @@ class Ppe(ModelWrapper):
frame_height
=
int
(
frame
.
shape
[
0
])
size
=
(
frame_width
,
frame_height
)
working_dir
=
"
/home/administrator/vid_tes
t"
working_dir
=
"
outpu
t"
file_name
=
str
(
unique_id
)
+
".mp4"
file_name
=
os
.
path
.
join
(
working_dir
,
file_name
)
# Below VideoWriter object will create
...
...
@@ -446,7 +446,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -530,7 +530,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -555,7 +555,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -639,7 +639,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -662,7 +662,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/recorded_video_list.txt"
,
"a"
)
as
f
:
f
.
write
(
rec_inf
[
2
]
+
".avi"
)
f
.
write
(
"
\n
"
)
del
self
.
active_rec
[
object_id
]
...
...
@@ -748,7 +748,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/administrator/vid_tes
t/recorded_video_list.txt"
,
"a"
)
as
f
:
with
open
(
"
outpu
t/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