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

Remove unnecessary connection from faceRecognizer #150

Merged
merged 2 commits into from
Jan 23, 2019

Conversation

pattacini
Copy link
Member

@pattacini pattacini commented Dec 29, 2018

This PR attempts to fix #134.

To spare one unnecessary connection, faceRecognizer main thread can now call QueryThread::setImage() to pass the received image on to the QueryThread, which in turn can handle safely the image relying on QueryThread::getImage().

Note the use of yarp::cv::toCvMat() introduced by robotology/yarp#1932.

⚠️ To be tested accurately.

cc @vtikha @vvasco

@pattacini pattacini added the ✨improvement Improve current features label Dec 29, 2018
@pattacini pattacini self-assigned this Dec 29, 2018
@pattacini pattacini requested a review from vtikha December 29, 2018 10:31
@pattacini pattacini force-pushed the fix/faceRecognizer-comm branch 6 times, most recently from 3a0c203 to 2f82b41 Compare January 3, 2019 14:05
@pattacini pattacini requested a review from vvasco January 11, 2019 18:59
@vvasco vvasco force-pushed the fix/faceRecognizer-comm branch from 2f82b41 to 1f4a06f Compare January 16, 2019 14:56
@vvasco
Copy link

vvasco commented Jan 17, 2019

Tested on the robot and working!

@pattacini
Copy link
Member Author

@vtikha do you agree if we merge this PR?

Be aware that, aside from the modifications required to get rid of the connection, there are also parts of the code to deal with the images according to the new YARP::cv library.

Incidentally, upgrading the user code to make it use YARP::cv isn't that straightforward, unfortunately. We would need to judge it case by base 😞

pattacini and others added 2 commits January 23, 2019 14:36
faceRecognizer was receiving twice the same
images from yarpOpenPose

fix #134
@vvasco vvasco force-pushed the fix/faceRecognizer-comm branch from dff052e to 3f58337 Compare January 23, 2019 13:36
@pattacini
Copy link
Member Author

@vtikha gave the green light 🚥

@pattacini pattacini merged commit 1652db9 into master Jan 23, 2019
@pattacini pattacini deleted the fix/faceRecognizer-comm branch January 23, 2019 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨improvement Improve current features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streamline faceRecognizer communication
2 participants