Giter Site home page Giter Site logo

jeeliz / jeelizpupillometry Goto Github PK

View Code? Open in Web Editor NEW
102.0 13.0 23.0 25.73 MB

Real-time pupillometry in the web browser using a 4K webcam video feed processed by this WebGL/Javascript library. 2 demo experiments are included.

Home Page: https://jeeliz.com

License: Apache License 2.0

JavaScript 100.00%
pupillometry pupil eye javascript webcam cctv camera webgl iris tracking

jeelizpupillometry's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jeelizpupillometry's Issues

no results

I tested both demos as posted up here.
The luminous intensity of the screen and alternately images inspiring peace or fear do not show the results. I think I followed the procedures as listed.
The face and pupil locations are found in Demo mode.
Start Experiment tab begins the test.
Stop Experiment gives the error msg;
"There are no results yet. Please run and complete an experiment before".
Thanks in advance for your comments.

How to get the pupil and iris radius

For educational purposes, we need to know the radius of the iris and pupil. How can we do this? We tried to look at the source code but found only the radius of the pupil there, how can we find the radius of the iris? Thanks!

high speed video frame rate?

I ordered a high speed camera to test with your pupil code.
This camera has a frame rate up to 120 fps.
I also want to run your ExperimentRecorder.js
Please let me know what parameters to change to match the camera frame rate.
THX

Frame rate for Pupillometry

Hello,
In the technical specifications of the camera module, a number of different frame-size-dependent frame rates are provided. Could you say what the raw frame rate is (before resampling) and whether user control of frame rate is possible/advisable in the Jeeliz Pupillometry setup?
Many thanks!

Camera selected but no video feed appears

I've downloaded the repo, and uncompressed it. I then opened the index.html of jeelizPupillometry-master/demos/lightIntensity/ in Firefox or Chromium. I have the following version of Ubuntu:

$ cat /etc/issue
Ubuntu 20.10 \n \l

After opening index.html, nothing happens beyond the HTML page being displayed in the browser. I click on 'Experiment' and a popup asks if the browser can access my camera. On Firefox it gives me a dropdown among the available cameras, and on Chromium it defaults to using the built-in camera on my laptop.

Regardless of the choice of the aforementioned browser, accepting access turns a light on my camera (regardless of whether I select the built-in or external webcam). A blinking red icon also appears on the browser indicating access to my camera. However, I do not see any video feed come up if I return to the Debug view.

Opening the console of the browser while in this camera-selected state, I see two messages:

Message one:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at /path/to/jeelizPupillometry-master/dist/jeelizPupillometryNNC.json. (Reason: CORS request not http).

Message two:

Uncaught SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
    P /path/to/jeelizPupillometry-master/dist/jeelizPupillometry.js:149
    onreadystatechange /path/to/jeelizPupillometry-master/dist/jeelizPupillometry.js:19

Associated with message two is the following:

jeelizPupillometry.js:149:83

I'd love to try your software, but I require some assistance in configuring it to run on Ubuntu with a regular webcam.

speed-pupil

Is there a way to capture the speed with which the pupil moves?

Focus, optimization, slider settings and calibrating two eyes

Hi Xavier,
Thanks for your responses so far. We have a few more questions:

  1. Camera focus and placement: we're able to get good focus on the face when the eyes are relatively close to the camera (60cm) but the iris and pupil images showed blurring. At a distance of ~90-100cm, the focus seems a lot better. Is this consistent with your piloting of the setup?
  2. In the ReadMe there's mentioned of "Optimization/Canvas and video resolutions" but the link doesn't seem to lead anywhere. I wondered whether that info might be available somewhere.
  3. We're trying out the setup with a variety of people with different eye colors/eye make-up, and wondered whether you could provide any more information on how each of the four slider setting affects image segmentation/identification of the relevant eye elements/pupil diameter.
  4. Very often, we're able to get good calibration, and good data from one eye but not from both simultaneously. Initially it seemed always to be the eye closest to the red light that was well calibrated, so we bought an extra lamp. However, even with two lamps, we continue to be able to calibrate just one eye well. Mostly the problem begins with iris segmentation--the window is shifted towards the outer edge of the participant's eye. Is there anything we might be overlooking that could be causing this?
    Thanks!

Licensing: opensource or not?

Hello,

It's an amazing software you made, thank you very much for sharing your work freely.

However, it seems to be described as a freeware, and only a minified version of the sourcecode is available, not the original sourcecode. The current license is set to Apache License 2.0, which is an opensource license and, I think (but IANAL), requires to share the source code.

You are of course entitled to your work, but could you please clarify whether this software is open source or not? If not, could you please change the license to something to adequately reflect the terms of use of your software?

Thank you very much!

Running jeelizPupillometry on a local host

Hello,

My group has put together the pupillometry setup as described in the readme. We would like to run experiments locally, and so we would like to first run the demo locally. Two problems have come up:

  1. Initially, running the experiment locally was causing an error because it does not use the right protocol:

jeelizPupillometry.js:19 Access to XMLHttpRequest at 'file:///Users/stobin/Downloads/jeelizPupillometry-master/dist/jeelizPupillometryNNC.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
sa | @ | jeelizPupillometry.js:19

So I modified the file access options on launching the browser, which appears to have resolved that error:

open /Applications/Google\ Chrome.app --args --allow-file-access-from-files

  1. The second problem is that the video stream does not display in the Debug view, although the camera is active and is possible to use with other applications. This problem is proving more challenging to resolve, so I'd appreciate your input on it. Initially I'd assumed it was associated with the first problem, but those errors don't show up any more. However, when I run the demos remotely (those hosted on jeeliz.com) there's no problem with camera access and the experiment proceeds as expected.

Many thanks in advance.

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.