Code Monkey home page Code Monkey logo

eyes-blink-project's Introduction

Eyes Blink Project

In this project, it is aimed to operate the components specified in the interface with blinking gesture.

Installation

There is a go-service-local file inside the frontend folder. You need to run this file with double click.

You need to run index.html file with live server.

There is conn.py file inside the opencv folder. In this file you need to enter your own database connection information.

You need to run the main.py file inside the opencv folder.

python main.py

Usage

PostgreSQL was used for database operations in this project. Below are the DDLs of the database tables.

	id int8 NOT NULL GENERATED ALWAYS AS IDENTITY,
	blink_type_id int8 NULL,
	blink_duration float8 NULL,
	create_date timestamp NOT NULL DEFAULT now(),
	is_deleted bool NULL,
	CONSTRAINT blink_logs_pk PRIMARY KEY (id),
	CONSTRAINT blink_logs_un UNIQUE (id),
	CONSTRAINT fk_blink_type_id FOREIGN KEY (blink_type_id) REFERENCES public.blink_log_blink_type(id) ON DELETE CASCADE
);
CREATE TABLE public.blink_log_blink_type (
	id int8 NOT NULL GENERATED ALWAYS AS IDENTITY,
	blink_type varchar NULL,
	create_date timestamp NOT NULL DEFAULT now(),
	CONSTRAINT blink_log_blink_type_pkey PRIMARY KEY (id),
	CONSTRAINT blink_log_blink_type_un UNIQUE (id)
);

You need to run the DDLs above and enter your own connection path in the conn.go and conn.py files in the frontend and opencv folders.

How to Run the Project

1- Create database tables as described above. Information is entered in the connection paths of Go and Python projects.

2- main.go is run.

3- main.py is run.

4- Run index.html.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

eyes-blink-project's People

Contributors

diamazlum avatar mazlumtekin1 avatar

Stargazers

Tarık Berkay Altunkanat avatar Alpcan Demirci avatar

Watchers

 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.