Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tobii-gaze-mapping
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shreyasb
tobii-gaze-mapping
Commits
fd73ecb3
Commit
fd73ecb3
authored
4 years ago
by
shreyasb
Browse files
Options
Downloads
Patches
Plain Diff
PC changes
parent
c14fca2e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
background.jpg
+0
-0
0 additions, 0 deletions
background.jpg
map_and_send.py
+5
-5
5 additions, 5 deletions
map_and_send.py
with
5 additions
and
5 deletions
background.jpg
+
0
−
0
View replaced file @
c14fca2e
View file @
fd73ecb3
414 KiB
|
W:
|
H:
515 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
map_and_send.py
+
5
−
5
View file @
fd73ecb3
...
...
@@ -33,7 +33,7 @@ def main():
exit
(
1
)
camera_rate
=
30
num_apriltags
=
1
5
# Number of apriltags in the background image
num_apriltags
=
1
1
# Number of apriltags in the background image
test_time
=
60
cap
=
cv2
.
VideoCapture
(
0
)
...
...
@@ -202,10 +202,10 @@ def main():
gaze_screen
=
1
elif
gaze_mapped
[
0
]
>
s2_min_x
and
gaze_mapped
[
1
]
>
s2_min_y
and
gaze_mapped
[
0
]
<
s2_max_x
and
gaze_mapped
[
1
]
<
s2_max_y
:
# and gaze_mapped[1] > 180:
# LOOKING AT SCREEN2 ######
print
(
"
Looking at screen 2
"
,
end
=
'
\r
'
)
gaze_screen
=
2
#
elif gaze_mapped[0] > s2_min_x and gaze_mapped[1] > s2_min_y and gaze_mapped[0] < s2_max_x and gaze_mapped[1] < s2_max_y: # and gaze_mapped[1] > 180:
#
# LOOKING AT SCREEN2 ######
#
print("Looking at screen 2", end='\r')
#
gaze_screen = 2
elif
gaze_mapped
[
0
]
>
s3_min_x
and
gaze_mapped
[
1
]
>
s3_min_y
and
gaze_mapped
[
0
]
<
s3_max_x
and
gaze_mapped
[
1
]
<
s3_max_y
:
# LOOKING AT SCREEN 3 ###
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment