Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021_123
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
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021_123
2021_123
Commits
b31d8fd7
Commit
b31d8fd7
authored
Nov 22, 2021
by
Fernando P.I.S.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main.py
parent
bad697fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.py
main.py
+3
-3
No files found.
main.py
View file @
b31d8fd7
...
@@ -5,7 +5,7 @@ import time
...
@@ -5,7 +5,7 @@ import time
# Variables
# Variables
COUNTER
=
0
COUNTER
=
0
TOTAL_
BLINKS
=
0
TOTAL_
count
=
0
CLOSED_EYES_FRAME
=
3
CLOSED_EYES_FRAME
=
3
TOTAL_COUNTS
=
0
TOTAL_COUNTS
=
0
cameraID
=
0
cameraID
=
0
...
@@ -73,13 +73,13 @@ while True:
...
@@ -73,13 +73,13 @@ while True:
# print("blink")
# print("blink")
else
:
else
:
TOTAL_
BLINKS
+=
1
TOTAL_
count
+=
1
COUNTER
=
0
COUNTER
=
0
TOTAL_COUNTS
+=
1
TOTAL_COUNTS
+=
1
cv
.
putText
(
image
,
f
'Total Time in screen: {SECONDS}'
,
(
175
,
17
),
m
.
fonts
,
0.5
,
m
.
ORANGE
,
2
)
cv
.
putText
(
image
,
f
'Total Time in screen: {SECONDS}'
,
(
175
,
17
),
m
.
fonts
,
0.5
,
m
.
ORANGE
,
2
)
cv
.
putText
(
image
,
f
'Total Time out of screen: {TOTAL_
BLINKS
}'
,
(
175
,
37
),
m
.
fonts
,
0.5
,
m
.
ORANGE
,
2
)
cv
.
putText
(
image
,
f
'Total Time out of screen: {TOTAL_
count
}'
,
(
175
,
37
),
m
.
fonts
,
0.5
,
m
.
ORANGE
,
2
)
#cv.putText(image, f'Total count of out of screen: {18}', (170, 67),m.fonts, 0.5, m.ORANGE, 2)
#cv.putText(image, f'Total count of out of screen: {18}', (170, 67),m.fonts, 0.5, m.ORANGE, 2)
...
...
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