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

How to improve the accuracy of points detected ? #14

Closed
henriquem opened this issue Sep 10, 2014 · 3 comments
Closed

How to improve the accuracy of points detected ? #14

henriquem opened this issue Sep 10, 2014 · 3 comments
Labels

Comments

@henriquem
Copy link

Somebody knows how I can improve to become points found more accuracy ?

For Example in example here,
the pre-processing of image is just convert image to grayscale

There is something more that you do for sharing with us ?

I did cvEqualizeHist(gray, gray); and reduce specks from image:

cvMorphologyEx(gray, gray, null, null, CV_CAP_OPENNI, 1);

I tried to applied Gabor Filter but the accuracy of points wasn't good.

@saudet
Copy link
Member

saudet commented Sep 14, 2014

Which function are you using to detect points?

@henriquem
Copy link
Author

the same used by example:
// only gray scale
final IplImage input= cvCreateImage(cvGetSize(image), IPL_DEPTH_8U, 1);
cvCvtColor(image, imageBW, CV_BGR2GRAY);

BytePointer elem = cvGetSeqElem(rects, iface);
CvRect rect = new CvRect(elem);

            bbox[0] = rect.x();
            bbox[1] = rect.y();
            bbox[2] = rect.x() + rect.width();
            bbox[3] = rect.y() + rect.height();

            flandmark_detect(input, bbox, model, landmarks);

@saudet
Copy link
Member

saudet commented Sep 20, 2014

It looks like this is detecting corners, so we might be able to get subpixel accuracy by calling cvFindCornerSubPix() on the detected corners.

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