Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

iOS detect blur part in capture image

Hello Friends,

Thanks for help in advance.

In my app, Client need when capture image and then check the parts of the whole image which part is blur in the image,

So please can you suggest me is it possible with OpenCv which part of image is blur or not?

Please give me any idea or link or code so I can integrate it in my app.

iOS detect blur part in capture image

Hello Friends,All,

Thanks for help in advance.

In my app, Client I need when capture image and then check the parts of the whole image which part is blur in the image,or not,

So please can you suggest me is it possible with OpenCv which part of for checking image is blur or not?

And I also see that it is working in Android with this link Please give me any idea or link or code so I can integrate it in my app.

click to hide/show revision 3
retagged

updated 2014-06-05 06:21:19 -0600

berak gravatar image

iOS detect blur part in capture image

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link Please give me any idea or link or code so I can integrate it in my app.

iOS detect blur part in capture image

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

Please give me any idea or link or code so I can integrate it in my app.

iOS detect blur part in capture imageimage or not

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

Please give me any idea or link or code so I can integrate it in my app.

iOS Laplacian formula detect blur image or not

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

I have lots of R&D and search but I can't find any solution for detect blur image or not.

I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image

-(void) checkForBurryImage:(UIImage *) image {

cv::Mat matImage = [image toMat];
cv::Mat matImageGrey;
cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY);

cv::Mat dst2 =[image toMat];
cv::Mat laplacianImage;
dst2.convertTo(laplacianImage, CV_8UC1);
cv::Laplacian(matImageGrey, laplacianImage, CV_8U);
cv::Mat laplacianImage8bit;
laplacianImage.convertTo(laplacianImage8bit, CV_8UC1);
//-------------------------------------------------------------
//-------------------------------------------------------------
unsigned char *pixels = laplacianImage8bit.data;
//-------------------------------------------------------------
//-------------------------------------------------------------
 //    unsigned char *pixels = laplacianImage8bit.data;
int maxLap = -16777216;

for (int i = 0; i < ( laplacianImage8bit.elemSize()*laplacianImage8bit.total()); i++) {
    if (pixels[i] > maxLap)
        maxLap = pixels[i];
}

int soglia = -6118750;

printf("\n maxLap : %i",maxLap);


if (maxLap < soglia || maxLap == soglia) {
    printf("\n\n***** blur image *****");
}else
    printf("\nNOT a blur image"); }

And I used same code as Android but its give me always positive so I think its not working,

Please give me any idea or link or code so I can integrate it in my app.

iOS Laplacian formula detect blur image or not

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

I have lots of R&D and search but I can't find any solution for detect blur image or not.

I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image

-(void) checkForBurryImage:(UIImage *) image {

cv::Mat matImage = [image toMat];
cv::Mat matImageGrey;
cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY);

cv::Mat dst2 =[image toMat];
cv::Mat laplacianImage;
dst2.convertTo(laplacianImage, CV_8UC1);
cv::Laplacian(matImageGrey, laplacianImage, CV_8U);
cv::Mat laplacianImage8bit;
laplacianImage.convertTo(laplacianImage8bit, CV_8UC1);
//-------------------------------------------------------------
//-------------------------------------------------------------
unsigned char *pixels = laplacianImage8bit.data;
//-------------------------------------------------------------
//-------------------------------------------------------------
 //    unsigned char *pixels = laplacianImage8bit.data;
int maxLap = -16777216;

for (int i = 0; i < ( laplacianImage8bit.elemSize()*laplacianImage8bit.total()); i++) {
    if (pixels[i] > maxLap)
        maxLap = pixels[i];
}

int soglia = -6118750;

printf("\n maxLap : %i",maxLap);


if (maxLap < soglia || maxLap == soglia) {
    printf("\n\n***** blur image *****");
}else
    printf("\nNOT a blur image"); }

And I used same code as Android but its give me always positive value so I think its not working,

Please give me any idea or link or code so I can integrate it in my app.

iOS Laplacian formula detect blur image or not

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

I have lots of R&D and search but I can't find any solution for detect blur image or not.

I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image

-(void) checkForBurryImage:(UIImage *) image {

cv::Mat matImage = [image toMat];
cv::Mat matImageGrey;
cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY);

cv::Mat dst2 =[image toMat];
cv::Mat laplacianImage;
dst2.convertTo(laplacianImage, CV_8UC1);
cv::Laplacian(matImageGrey, laplacianImage, CV_8U);
cv::Mat laplacianImage8bit;
laplacianImage.convertTo(laplacianImage8bit, CV_8UC1);
//-------------------------------------------------------------
//-------------------------------------------------------------
unsigned char *pixels = laplacianImage8bit.data;
//-------------------------------------------------------------
//-------------------------------------------------------------
 //    unsigned char *pixels = laplacianImage8bit.data;
int maxLap = -16777216;

for (int i = 0; i < ( laplacianImage8bit.elemSize()*laplacianImage8bit.total()); i++) {
    if (pixels[i] > maxLap)
        maxLap = pixels[i];
}

int soglia = -6118750;

printf("\n maxLap : %i",maxLap);


if (maxLap < soglia || maxLap == soglia) {
    printf("\n\n***** blur image *****");
}else
    printf("\nNOT a blur image"); }

And I used same code as Android but its give me always positive value so I think its not working,

Please give me any idea or link or code so I can integrate it in my app.

iOS Laplacian formula detect blur image or not

Hello All,

Thanks for help in advance.

In my app, I need when capture image and then check image is blur or not,

So please can you suggest me is it possible with OpenCv for checking image is blur or not?

And I also see that it is working in Android with this link

I have lots of R&D and search but I can't find any solution for detect blur image or not.

I have used this https://github.com/BloodAxe/OpenCV-Tutorial and for blur detection used Laplacian formula but can't get blur detection in image

-(void) checkForBurryImage:(UIImage *) image {

cv::Mat matImage = [image toMat];
cv::Mat matImageGrey;
cv::cvtColor(matImage, matImageGrey, CV_BGRA2GRAY);

cv::Mat dst2 =[image toMat];
cv::Mat laplacianImage;
dst2.convertTo(laplacianImage, CV_8UC1);
cv::Laplacian(matImageGrey, laplacianImage, CV_8U);
cv::Mat laplacianImage8bit;
laplacianImage.convertTo(laplacianImage8bit, CV_8UC1);
//-------------------------------------------------------------
//-------------------------------------------------------------
unsigned char *pixels = laplacianImage8bit.data;
//-------------------------------------------------------------
//-------------------------------------------------------------
 //    unsigned char *pixels = laplacianImage8bit.data;
int maxLap = -16777216;

for (int i = 0; i < ( laplacianImage8bit.elemSize()*laplacianImage8bit.total()); i++) {
    if (pixels[i] > maxLap)
        maxLap = pixels[i];
}

int soglia = -6118750;

printf("\n maxLap : %i",maxLap);


if (maxLap < soglia || maxLap == soglia) {
    printf("\n\n***** blur image *****");
}else
    printf("\nNOT a blur image"); }

And I used same code as Android and its working but its not working,in iPhone,

Please give me any idea or link or code so I can integrate it in my app.