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

face_detector freeze at imshow. #54

Open
b51 opened this issue Jun 7, 2017 · 1 comment
Open

face_detector freeze at imshow. #54

b51 opened this issue Jun 7, 2017 · 1 comment
Labels

Comments

@b51
Copy link

b51 commented Jun 7, 2017

Hi there, I'm using face detector to detect faces and got a strange problem at cv::imshow.

At first I use face_detector on ros kinetic against opencv 2.4.9, it works fine, but when I trying to use ros-kinetic-opencv3 (version 3.2.0), it get freeze at cv::imshow() in line 799 of face_detection. If I comment out cv::namedWindos() at line 235, then the opencv image windows can show the first image and then get freeze at the second image.

Set do_display_ to false can make detector run normal, but it's not the best solution. I get stuck on this problem about a week and hope someone can help me out. Thanks

@b51
Copy link
Author

b51 commented Jun 7, 2017

Finally I found a solution

Comment out line 325, 326
//ros::MultiThreadedSpinner s(2);
//ros::spin(s);

then add
ros::spin();

But I don't know how&why this happened. Can anyone tell me?

@DLu DLu added the faces label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants