Ask Your Question
-2

Need small prog - I will donate

asked 2013-01-17 01:59:37 -0500

fRAS gravatar image

Hello, I forgot my programmer skills years ago...

I need your help and I will donate some euros (or some beers) :) if you can help me Basically I want a small windows app like this: http://www.youtube.com/watch?v=Gm5RknODXTM&noredirect=1

edit retag flag offensive close merge delete

Comments

I don't think Q&A forum is the place for this. You should go on freelance job board. Here it's for user/programmer of OpenCV that want help from the communities.

Jean-François Côté gravatar imageJean-François Côté ( 2013-01-17 08:51:45 -0500 )edit

1 answer

Sort by » oldest newest most voted
4

answered 2013-01-17 04:21:09 -0500

Ben gravatar image
void whitePixelCount()
{
    VideoCapture cap(0);
    if(!cap.isOpened())
        return;

    Mat thresImg;
    namedWindow("thresImg",1);
    for(;;)
    {
        Mat frame;
        cap >> frame;
        cvtColor(frame, thresImg, CV_BGR2GRAY);
        blur(thresImg, thresImg, Size(5,5));
        threshold(thresImg, thresImg, 100, 255, THRESH_BINARY);
        Mat subImg(thresImg, Rect(100,100,100,100));
        Scalar nwp = sum(subImg)/255;
        cout << "number of white pixels: " << nwp[0] << endl;
        rectangle(thresImg, Point(100,100), Point(200,200), Scalar(100));
        imshow("thresImg", thresImg);
        if(waitKey(30) >= 0) break;
    }
}

You can donate to this project.

edit flag offensive delete link more

Comments

+1 for your project selection

SR gravatar imageSR ( 2013-01-17 05:38:22 -0500 )edit

Also you can donate to OpenCV project on opencv.org! :-)

AlexanderShishkov gravatar imageAlexanderShishkov ( 2013-01-17 06:28:34 -0500 )edit

I'm ok with that, too .. additionally ;) No, seriously... that crowdfunding project needs 5000€ until next sunday and we are at 1296€. So everybody feel free to donate :)

Ben gravatar imageBen ( 2013-01-17 07:04:15 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-01-17 01:59:37 -0500

Seen: 225 times

Last updated: Jan 17 '13