Camera platform control for finding eye in a videosequence
Project being developed in STRaDe research group in the Faculty of Information Techonogy in VUT (Brno University of Technology).
These instructions will get you a copy of the project up and running on your local machine for running purposes
Dependencies, libraries, softwares and OS used in this project.
Not necessary
Ubuntu 16.04 (Not necessary)
Necessary
CMake - at least version 2.8
OpenCV - version 3.3.0
GCC - version 5.4.0
libserialport - version 0.1.1
A step by step series of examples that tell you have to get a development env running
Say what the step will be
The CMake file is already done, it's only necessary to follow the next steps for compiling the code
cd eyefinder
cmake .
make
The algorithm receives one argument, which is the port device (port_name) of the platform.
For running the code, there are two methods.
sudo ./eyefinder /dev/port_name
Usually, the port_name is /dev/ttyUSB0, but not necessarily.
If you don't want to run as sudo, you must change the permission for the port device
sudo chmod 666 /dev/port_name
./eyefinder /dev/port_name
- OpenCV - Computer Vision library
- libserialport - Library used for serial port communication
- CMake - Used for building/compiling/linking C/C++ code
- Victor Araujo Vieira - IceVct
- Algorithm to detect the pupil center was adapted from a translation of this https://www.mathworks.com/matlabcentral/fileexchange/15652-iris-segmentation-using-daugman-s-integrodifferential-operator?focused=3889799&tab=function matlab code to C++ using OpenCV
For returning the platform for the initial position, one code was developed. Follow the steps bellow for compiling and running this code.
In the main folder of the project "./eyefinder", run the following commands
cd MovePlatformBack
gcc movePlatBack.c -lserialport -o movePlatBack
This code requires one argument: the port device name. For running this code, run the following command
sudo ./movePlatBack /dev/port_name
or change the permissions, as explained above and run it normally.