Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erros with the latest version of opencv 3 gold #5

Open
chfakht opened this issue Jul 14, 2015 · 3 comments
Open

erros with the latest version of opencv 3 gold #5

chfakht opened this issue Jul 14, 2015 · 3 comments

Comments

@chfakht
Copy link

chfakht commented Jul 14, 2015

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

@chfakht
Copy link
Author

chfakht commented Jul 14, 2015

@chfakht
Copy link
Author

chfakht commented Jul 14, 2015

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 :)

@trishume
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants