-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use of texture (including color) to improve the detection of some objects #10
Comments
In line 212 of linemod_train.cpp, addTemplate() might return -1. This turns the indexes of the poses of the templates saved in the database out of sync with the id of the detected objects. This typically shows up in rviz as not properly oriented object detections. To correct the problem I suggest changing this peace of code: detector_->addTemplate(sources, "object1", mask);
// Also store the pose of each template
Rs_->push_back(cv::Mat(R));
Ts_->push_back(cv::Mat(T));
distances_->push_back(distance);
Ks_->push_back(cv::Mat(K)); to that one: int template_in = detector_->addTemplate(sources, "object1", mask);
if (template_in == -1)
{
// Delete the status
for (size_t j = 0; j < status.str().size(); ++j)
std::cout << '\b';
continue;
}
// Also store the pose of each template
Rs_->push_back(cv::Mat(R));
Ts_->push_back(cv::Mat(T));
distances_->push_back(distance);
Ks_->push_back(cv::Mat(K)); Alberto. |
Hi Alberto, regarding the title of this issue, I'd direct you to the paper of LINEMOD. I would rather add a post-filtering step after the linemod module in a pipeline fashion (in the end that is what ORK is for) that gets rid of wrong detections. If you prepare such a system, I'm sure many would apprieciate using it/ reading about it on the mailing list. Cheers, |
Hi Bence, On Wed, Jan 28, 2015 at 7:22 AM, Bence Magyar [email protected]
The current implementation of OpenCV linemod (used by ORK linemod) uses
Even in the case of a post-linemod color processing pipeline step, a color
I am in for an extra pipeline step for reducing false positives as well, Cheers, Alberto.
|
Hi, |
Hi, On Fri, Jan 30, 2015 at 3:41 AM, Bence Magyar [email protected]
Alberto.
|
The solution we found involved solving two problems: (1) enabling texture in OpenGL and (2) fixing the recursive call to
But note that with any outside calls to the Colin |
That looks good. So that we check better the differences, can you please make a proper pull request ? Thx |
See also @mtamburrano linergb branches at https://github.com/mtamburrano/lineRGB |
The texture of the coke.obj model used in the Tutorials does not appear during training when I turn on LINEMOD_VIZ_IMG... Relevant code for visualization (linemod_train.cpp):
I would like to use texture (including color) to improve detection of some objects...
Alberto.
The text was updated successfully, but these errors were encountered: