Open chfakht opened 9 years ago
why you daid that ''This does not track gaze yet.'' i see in the main.cpp some coordinates x,y and the width , height .... can i use them to determine the eye Gaze ?? thanks :)
Yah this currently doesn't work with OpenCV 3. The fix is really simple though, you just have to change the camera capture setup.
The x,y are on the captured image, not the screen. So movement in those coordinates could be either eye motion or head movement.
Hi , Hi all , i'm under ubuntu 14.04 and opencv 3 gold .... i have found your code here for eye detection https://github.com/trishume/eyeLike
when compiling in raspberry pi i got a lot of errors /home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp: In function 'int main(int, const char)': /home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp:82:37: error: no match for 'operator=' in 'frame = cvQueryFrame(capture)' /home/pi/opencv-3.0.0/samples/cpp/test/eyeLike-master/src/main.cpp:82:37: note: candidates are: /usr/local/include/opencv2/core/mat.inl.hpp:560:6: note: cv::Mat& cv::Mat::operator=(const cv::Mat&) /usr/local/include/opencv2/core/mat.inl.hpp:560:6: note: no known conversion for argument 1 from 'IplImage* {aka _IplImage}' to 'const cv::Mat&' /usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note: cv::Mat& cv::Mat::operator=(const cv::MatExpr&) /usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note: no known conversion for argument 1 from 'IplImage {aka _IplImage}' to 'const cv::MatExpr&' /usr/local/include/opencv2/core/mat.hpp:1102:10: note: cv::Mat& cv::Mat::operator=(const Scalar&) /usr/local/include/opencv2/core/mat.hpp:1102:10: note: no known conversion for argument 1 from 'IplImage {aka IplImage}' to 'const Scalar& {aka const cv::Scalar&}' src/CMakeFiles/eyeLike.dir/build.make:54: recipe for target 'src/CMakeFiles/eyeLike.dir/main.cpp.o' failed make[2]: * [src/CMakeFiles/eyeLike.dir/main.cpp.o] Error 1 CMakeFiles/Makefile2:75: recipe for target 'src/CMakeFiles/eyeLike.dir/all' failed make[1]: [src/CMakeFiles/eyeLike.dir/all] Error 2 Makefile:72: recipe for target 'all' failed make: * [all] Error 2
NB : i have tested the program with opencv 2.4.10 and it worked very well :)
thanks for your help