Skip to main content

Python wrapper for the EyeLogic eye tracking API

Project description

Python Binding for EyeLogic Eye Tracking Devices

This is the python wrapper for the EyeLogic eye tracking API. It offers the possibility to connect you with your device from any custom application.

Download and install

The EyeLogic python SDK is available via the Python Package Index (PyPI), and can be installed through pip. pip install eyelogic-sdk

You can also download the EyeLogic SDK directly from the eyelogic homepage. The SDK contains also bindings to other languages as well as a user manual and API description.

Usage

In your python script, import the eyelogic SDK:

from eyelogic.ELApi import *

In the __main__ section, the application implements its control flow. It consists of the following code lines:

api = ELApi("Demo Client")

This constructs a new instance of the ELApi class. The instanciation will automatically "initialize" the library. Hence, it will also be automatically be "deinitialized" whenever the api object gets out of scope, e.g. at the end of the program.

resultConnect = api.connect()

Connects to the EyeLogic server. Check for the return value in order to find out whether the connection was established successfully.

resultTracking = api.requestTracking(0)

Starts the tracking of the device. The parameter 0 specifies the frame-rate mode. If your device is capable of multiple frame-rate modes (60Hz, 120Hz, 250Hz), you can also enter a different number. The list of available frame-rates is given to the callback onDeviceConnected( ). Usually, the frame-rate mode 0 is the default (the highest available speed mode of your system).

resultCalibrate = api.calibrate(0)

Performs a calibration. This method blocks until the calibration was performed (or aborted). The parameter 0 denotes the type of calibration.

At the end of your recording, close the connection:

api.disconnect()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

eyelogic_sdk-1.1.2-py3-none-any.whl (809.8 kB view details)

Uploaded Python 3

File details

Details for the file eyelogic_sdk-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: eyelogic_sdk-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 809.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for eyelogic_sdk-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4166acd9a7bbd06e27751080e2764a2006d7518c70fe0d3b3fe6a8fc4ceb1562
MD5 c388c48f983e85f57da402d07ec6ea7b
BLAKE2b-256 0176877782e651c6a28a785afceb03f3601d6f713e6f95ccc550c3654e447439

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page