GithubHelp home page GithubHelp logo

xshipeng / gazesense Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 70.33 MB

Detecting Visual Areas of Interest on Webpages with Intel SR300 camera

C++ 5.30% JavaScript 28.06% CSS 66.01% HTML 0.63%
gaze heatmap

gazesense's Introduction

GazeSense

Gaze Point Analysis with Intel RealSense SR300 Camera

Introduction

Project Introduction

How dose it work?

  • Websocket Server is always running in the background and waiting for requests;
  • When the user click the "start" button, the background.js send "start" message to Websocket Server. Then the Websocket Server start the camera to calibrate and gaze tracking.
  • The background.js will send "query" message to the server every 10 ms, and the server will return the gaze data immediately. After getting the gaze data, the background.js will run code in the webpage to get the current scroll lane height. The scroll height will be pushed into the array which also stores the received gaze data[x,y]. Without clicking the "stop" button, this loop will not be ended.
  • Due to the security limit of Google that the page cannot communicate with background.js directly, the content.js serves as a transfer station between those two.
  • When the user click the "stop" button, the background.js will send the "stop" message to the server to stop the tracking process of the camera.
  • We will get an array whose element is also an three-element array. After calculating the relative position of the gaze data, the content.js will draw a heatmap on the current page based on the data collected before.

Dependencies(Mostly when compiling the C++ program)

  • Operating System: Windows 10 64bit
  • Runtime: Intel Realsense SDK
  • Chrome platform version: 50+
  • Lib Boost version: 1.62.0+
  • Websocket++
  • OpenCV 3.1.0

Extend the project

  • Since the User Interface is based on the Chrome Extension, changing the eye tracking device will be easier:the only thing you need to do is to combine the api of one particular device and use Websocket++ to establish the websocket server to transmit message with the chrome extension.
  • The data structure between the server and client is as following:
  1. Client to Server:
  • string"start"--Start tracking the gaze of user
  • string"stop"--Stop tracking the gaze of user
  1. Server to Client:
  • arraybuffer[x,y]--The gaze data of user on screen

gazesense's People

Contributors

xshipeng avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zhangxuelei86

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.