Skip to content

for paralyzed patients/ we have 5 games using opencv, pygame, turtle with raspberry pi

Notifications You must be signed in to change notification settings

zoonyoung/Home-rehabilitation-treatment

Repository files navigation

Home-rehabilitation-treatmen(by Grape!)

We are participating in EDISON2018 project
home rehabilitation treatment device using raspberry pi

Project description

It is a rehabilitation device for people with paralyzed hands.
We provide some games(using video recognition and tact) and patients can rehabilitate through games

Grape!

  • my team name is Grape!
  • i'm studying Electronic Engineering, Incheon National University.
  • Team members

Project plan

Project period: 2018. 07. 03. ~ 2018. 07. 12.
We found problem, found problem solution, and developed some games.
We had meetings every day during lunch(12:00~13:00) and dinner(18:00~19:00)

Problems

  1. Increase in stroke patients.
  2. Shortage of rehabilitation hospitals.
  3. Takes a lot of money and time.
  4. Without rehabilitation, paralysis gets worse.

Solutions

  1. Provide patients with rehabilitation treatment.
  2. Have fun with games.
  3. Provide low cost services.

Contents

1. dice game demo(video)

  • We used picamera and opencv(module in python) to recognize the dice.
  • This game is rolling dice game.
  • If you win the game, you can read good words.

2. hand gesture game demo(video)

  • We used picamera and opencv(module in python) to recognize the hand.
  • This game is counting iteration. (finger concentration or stretching)

3. pick up color card game demo(video)

  • We used picamera and opencv(module in python) to recognize the color card.
  • This game is played by picking up color cards that computer shows.

4. mole game demo(video)

  • We used tact switch and pygame(module in python)
  • This game is catching mole randomly coming out on the computer screen.

5. maze game demo(video)

  • We used tact switch and pygame(module in python)
  • This game is solving complicated maze.

We used these..

Alt text

  1. raspberry pi3
  2. pi camera
  3. TACT switch
  4. python3
  5. opencv
  6. RPi.GPIO
  7. numpy
  8. pygame
  9. turtle

Installation of dependencies

  1. install RASPBIAN
    We used RASPBIAN : Release date: 2018.06.27

  2. apt-get update

pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get upgrade
  1. Install RPi.GPIO
pi@raspberrypi:~ $ sudo apt-get install python-dev python3-dev
pi@raspberrypi:~ $ sudo apt-get install python-rpi.gpio
  1. Install numpy
pi@raspberrypi:~ $ sudo apt-get install python3-numpy
  1. Install opencv
    We used github to install opencv
pi@raspberrypi:~ $ git clone https://github.com/dltpdn/opencv-for-rpi.git
pi@raspberrypi:~ $ cd {your path}/opencv-for-rpi/stretch/3.4.0
pi@raspberrypi:~/...../3.4.0 $ sudo apt-get install ./OpenCV*.deb -y

    Install check

pi@raspberrypi:~ $ pkg-config --modversion opencv

        if you look at 3.4.0, it is success!

  1. Setting picamera
    pi camera is not USB type, so you should set it to recgnize it as a device.
pi@raspberrypi:~ $ sudo modprobe bcm2835-v4l2

        Checking device

pi@raspberrypi:~ $ ls /dev/video*
  1. etc
    python3, pygame are installed with the RASPBIAN installation. turtle is internal function of python3 if there is anything else you need Please install

Future development plan

  1. We can get data from patients how much time they took to finish up the each game.

  2. Scrutinizing that data we collected, We could discern degree of stroke or other diseases related to hand paralysis or numbness.

  3. Now, In this stage, IoT technology will transfer not only our raw data but also analysis of data to the medical society.

  4. And then we can make ecosystem between patients society and medical society that they can feedback more precisely and promptly.

About

for paralyzed patients/ we have 5 games using opencv, pygame, turtle with raspberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages