Giter VIP home page Giter VIP logo

ua-sdns's Introduction

UA-SDNS

Seizure detection and notification system utilizing Python 3 and Intel's RealSense D415 depth camera

Initially developed at the University of Arizona with funding from Intel Corporation

Installation

UA-SDNS requires Python 3 and Git to install. Windows 10 is currently the only operating system supported.

  1. Download this repository:

    $ git clone https://github.com/gordondowns/UA-SDNS.git
  2. Install dependencies and create the virtual environment by running UA-SDNS\install.bat.

    Using the commandline:

    $ cd UA-SDNS
    $ install.bat

    Or run UA-SDNS\install.bat using the File Explorer.

  3. To make the SDNS program start on startup, make a shortcut to UA-SDNS\data_collection2\sdns.bat and put it in C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

Usage

Run UA-SDNS\data_collection2\sdns.bat to start the program.

Then, control the system by pressing keys on your keyboard. Note that you do not have to have the sdns.bat window active in order to enter commands.

Also, note that when text-to-speech is enabled, you must wait until the speaker finishes speaking before you can enter another command. However, with text-to-speech disabled, commands can be entered as quickly as you would like. Commands are executed in the order in which they are received.

Depth resolution, text-to-speech mode, video length, and other settings can be configured at the top of the file data_collection2\main.py.

key action
spacebar / s save last 5 minutes of video
q quit and delete the recordings
p pause recording
r resume paused recording

Troubleshooting tips

Error Message Solution
Frame did not arrive within 1000 RealSense D415 camera connection failed. Unplug the camera, plug it back in, and re-run sdns.bat.
MemoryError: Unable to allocate XX.X GiB for an array with shape (XXX, XXX, XXX) and data type uintX Computer memory is insufficient to store a video of the length and resolution described in data_collection2\main.py. Please go to data_collection2\main.py and modify the parameter SECONDS_PER_RECORDING.
RuntimeError: Couldn't resolve requests Depth resolution is too high for your hardware setup. First, try plugging the RealSense D415 camera into a USB 3 port (the Intel RealSense Viewer can tell you what kind of USB port the camera is plugged into). If that doesn't work, try using a lower depth resolution by modifying the parameters DEPTH_X_SIZE,DEPTH_Y_SIZE in the file data_collection2\main.py.

Have a problem you can't figure out? Contact [email protected] for technical assistance.

I want to contribute!

That's awesome!

If you'd like to contribute data and use the system as we develop it, contact Iwan at [email protected].

If you are a developer and would like to contribute to the codebase, contact Gordon at [email protected].

License

GNU General Public License v3.0

ua-sdns's People

Contributors

gordondowns avatar dependabot[bot] avatar juangn5 avatar louisbertani avatar iwangrau avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.