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
rahul
aart_ppe_detection
Commits
fafb4719
Commit
fafb4719
authored
Jan 09, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
camera 4
parent
4835adad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
scripts/ppe.py
scripts/ppe.py
+3
-3
scripts/utils/infocenter.py
scripts/utils/infocenter.py
+1
-1
No files found.
scripts/ppe.py
View file @
fafb4719
...
@@ -443,7 +443,7 @@ class Ppe(ModelWrapper):
...
@@ -443,7 +443,7 @@ class Ppe(ModelWrapper):
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
cur
=
self
.
conn
.
cursor
()
cur
=
self
.
conn
.
cursor
()
frame_count
=
self
.
frame_id
frame_count
=
self
.
frame_id
cur
.
execute
(
sql
,
[
3
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
cur
.
execute
(
sql
,
[
4
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
self
.
conn
.
commit
()
self
.
conn
.
commit
()
cur
.
close
()
cur
.
close
()
else
:
else
:
...
@@ -495,7 +495,7 @@ class Ppe(ModelWrapper):
...
@@ -495,7 +495,7 @@ class Ppe(ModelWrapper):
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
cur
=
self
.
conn
.
cursor
()
cur
=
self
.
conn
.
cursor
()
frame_count
=
self
.
frame_id
frame_count
=
self
.
frame_id
cur
.
execute
(
sql
,
[
3
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
cur
.
execute
(
sql
,
[
4
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
self
.
conn
.
commit
()
self
.
conn
.
commit
()
cur
.
close
()
cur
.
close
()
...
@@ -548,7 +548,7 @@ class Ppe(ModelWrapper):
...
@@ -548,7 +548,7 @@ class Ppe(ModelWrapper):
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
# present_event_id = 'SELECT "event_id" FROM aarti_violation_event_table'
cur
=
self
.
conn
.
cursor
()
cur
=
self
.
conn
.
cursor
()
frame_count
=
self
.
frame_id
frame_count
=
self
.
frame_id
cur
.
execute
(
sql
,
[
3
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
cur
.
execute
(
sql
,
[
4
,
frame_count
,
datetime
.
datetime
.
now
(),
v
])
self
.
conn
.
commit
()
self
.
conn
.
commit
()
cur
.
close
()
cur
.
close
()
...
...
scripts/utils/infocenter.py
View file @
fafb4719
...
@@ -40,7 +40,7 @@ class MongoLogger:
...
@@ -40,7 +40,7 @@ class MongoLogger:
try
:
try
:
input_data
=
{
input_data
=
{
"eventId"
:
str
(
uuid1
())
.
split
(
'-'
)[
0
],
"eventId"
:
str
(
uuid1
())
.
split
(
'-'
)[
0
],
"cameraId"
:
"
3
"
,
"cameraId"
:
"
4
"
,
"cameraName"
:
self
.
camera_mapping_json
.
get
(
data
[
'deviceId'
],
"Thermal Camera"
),
"cameraName"
:
self
.
camera_mapping_json
.
get
(
data
[
'deviceId'
],
"Thermal Camera"
),
"timestamp"
:
datetime
.
now
(),
"timestamp"
:
datetime
.
now
(),
"frame"
:
data
[
'frame'
],
"frame"
:
data
[
'frame'
],
...
...
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