Coder Social home page Coder Social logo

isayasmatter / hmd-eyes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pupil-labs/hmd-eyes

0.0 2.0 1.0 309.89 MB

Building blocks for eye tracking in AR and VR.

License: GNU Lesser General Public License v3.0

Python 0.23% C# 97.01% ShaderLab 2.19% HLSL 0.57%

hmd-eyes's Introduction

hmd-eyes

Building blocks for eye tracking in Augmented Reality AR and Virtual Reality VR or more generally Head Mounted Displays HMD. The purpose of this repository is do demonstrates how to implement Pupil with Unity3D. For details on Pupil computations, please have a look at the related repositories.

VR Getting Started

This guide walks you through a first time setup for your Pupil Labs VR add-on.

  1. HTC Vive Add-on setup - Install your Pupil eye tracking add-on into your HMD and connect the add-on to your computer.

  2. Download Pupil Software. Extract the Pupil Service app to your Desktop.

  3. Start Pupil Service via the pupil_service.exe in the Pupil Service App folder. A window like this will appear when service is running. Service does pupil detection from eye images. Pupil Service with Eye Window

  4. Download and start hmd-eyes demo app - This demo runs a VR experience. The demo app talks to Pupil software in the background. You will use it to calibrate and visualize gaze data within a demo scene. The demo app will start with settings dialog.

  5. Start the demo with default values. You will see a view of the left eye of the hmd.

  6. This would be a good point to put said device on your head.

  7. Use the displayed realtime videos of your eyes to make sure they are as centered as possible and in focus.

  8. Press 'c' on your keyboard to start a calibration and focus your gaze on the displayed marker as it changes position.

  9. After a successful calibration, this scene will be loaded

    Market Scene Demo

HoloLens Getting Started

  1. HoloLens Add-on setup - Set up the Pupil eye tracking add-on with your HMD and connect it to a PC.
  2. Download Pupil Software. Extract the Pupil Capture app to your Desktop.
  3. Start Pupil Capture via the pupil_capture.exe in the Pupil Capture App folder. A window like this will appear when service is running. Capture does pupil detection from eye images.
  4. Select the Plugin Manager in Pupil Capture and start the HoloLens Relay plugin Pupil Capture with HoloLens Relay
  5. Download and install Unity 3D.
  6. Download the hmd-eyes source code. Extract the Unity project sources for HoloLens, located in unity_pupil_plugin_hololens.
  7. In Unity3d open the unity_pupil_plugin_hololens as a project. Double click the Shark Demo/2D Calibration Demo to load the scene and open the Holographic Emulation tab (Menu/Window/Holographic Emulation)
  8. In the Holographic tab, select Remote to Device as Emulation Mode
  9. Read more about Unity's Holographic Emulation here.
  10. Start the Holographic Remoting Player on your HoloLens device. Enter the displayed device IP in the Holographic tab under Remote machine. Click the Connect button.
  11. Once connected, press Play in Unity Editor.
  12. Follow the on device instructions to open the menu (double air tap) and select Connect to Pupil by looking straight at the button and confirming with a single air tap. HoloLens Menu
  13. Once the connection between Unity3d and Pupil Capture is established two eye windows will open. Use these windows to adjust the eye cameras for good tracking.
  14. The Start Calibration will now be enabled on the HoloLens display.
  15. Calibrate - Start the calibration. Focus your gaze on the displayed marker for each displayed position.
  16. After a successful calibration, you should see a rotating 3D model and a visualization of your gaze Shark Demo with Gaze Visualization

Develop, integrate, and extend

Check out the developer docs to learn how to set up dev envirmoment, make changes to code, and integrate with your own Unity3D project.

Community

Chat with the hmd-eyes community on Discord.

hmd-eyes's People

Contributors

andrenicolai avatar calderarchinuk avatar derya avatar kornellvarga avatar marc-tonsen avatar mkassner avatar mrayy avatar nathakits avatar papr avatar willpatera avatar

Watchers

 avatar  avatar

Forkers

hwtwj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.