Ask Your Question

Adrianos01's profile - activity

2016-08-10 15:49:23 -0500 received badge  Notable Question (source)
2016-04-15 01:21:54 -0500 received badge  Famous Question (source)
2014-11-15 10:12:25 -0500 received badge  Notable Question (source)
2014-08-26 02:04:12 -0500 received badge  Popular Question (source)
2014-04-21 10:06:40 -0500 commented question Change the color of a string text with createTrackbar
  createTrackbar("R", "Test", &slider1, max_slider);
createTrackbar("G", "Test", &slider2, max_slider);
createTrackbar("B", "Test", &slider3, max_slider);

Point textOrg(120, 220);
putText(image, text, textOrg, fontFace, fontScale, Scalar(slider1,slider2,slider3));

imshow(window_name, image );

You mean like this? But it doesnt change the Color of text..

2014-04-20 15:52:12 -0500 asked a question Change the color of a string text with createTrackbar

Hi,

i have created a GUI with a gray Background, three Trackbars and a Text. I have searched in Opencv wiki and finding this: createTrackbar but it is changing the color of an image not a string. Must i convert the string by calling the callback for trackbar?

Mat image; 
int slider = 127; 
int max_slider = 255; 
RNG rng(12345);
define w  400  //  Number of rows and columns char* window_name = "Test";

// Attributes for Text string text = "Test"; 
int fontFace = CV_FONT_HERSHEY_DUPLEX;
double fontScale = 2; 
int thickness = 3;
int const max_type = 4;

//void on_trackbar( int, void* );


int main(int argc, char** argv) {

image = Mat::zeros(w, w, CV_8UC3); image.setTo(cv::Scalar(127,127,127));

Point textOrg(120, 220); putText(image, text, textOrg, fontFace, fontScale, Scalar::all(255), thickness,8);

namedWindow(window_name, WINDOW_AUTOSIZE);// Create a window for display.

createTrackbar("R: ", "Test", &slider, max_slider); createTrackbar("G: ", "Test", &slider, max_slider); createTrackbar("B: ", "Test", &slider, max_slider);

imshow(window_name, image );

// Wait for ESC in the window while(true) {
int c;
c = waitKey( 20 );
if( (char)c == 27 ) { break; }
}

//waitKey(0); // Wait for a keystroke in the window
return 0; }

2014-04-16 11:15:27 -0500 commented answer How to create a window with gray Background?

thank you.

2014-04-16 10:04:54 -0500 asked a question How to create a window with gray Background?

Hi there all,

i want to create a gray window. I find the function to create a BLANK Window (in black) with Mat atom_image = Mat::zeros( w, w, CV_8UC3 );

How can i change the color to gray?

p.s. i dont want to use a gray image.

2014-04-09 02:59:24 -0500 received badge  Popular Question (source)
2013-08-10 04:46:48 -0500 commented answer How can i test the face detection?

@StevenPuttermans and @all Does not look like her it is so hard. But you can also ask too: What do you mean by test? ;) Thanks to all.

2013-08-07 15:51:17 -0500 received badge  Critic (source)
2013-08-07 15:04:13 -0500 commented answer How can i test the face detection?

Are u joke me? i know this website and i have a code thats code thats run very well. i mean how can i TEST it. NOT write a code. ;) How SPEED it is or how sure it is. JUST TEST

2013-08-07 14:27:05 -0500 asked a question How can i test the face detection?

Hey,

how can i test the face detection in a Laptop?

the people this question a negative review, "Have their boredom"?

2013-07-30 11:18:26 -0500 asked a question What is the Difference from Face Detection from an image and from a Camera

Hey,

i write a documenting over the Face Detection from a Video and Face Recognation using eigenface from a video.

I have finding many of documantations over face detection from a image. And Face Recognition using eigenfaces from a image.

My question is:

If i detect or recognize faces from camera: the camera take a photo and save this in "vectors" or in a xml file too like detect face and recognize face from a image?

best regards Adrianos

2013-05-21 14:19:24 -0500 asked a question Face Detection & Face Recognition using Opencv with C++

My Project is to write a Program that recognize faces with Video Camera and compare the recognized Face if the recognized face in database. If it not in Database send Email.

I read in google the face detection and face recognition from OpenCV.

Face detection and Face recognition: learns a subspace for each person and when i input a new image it measures the distance to all subspaces it has previously learned and chooses the nearest one.

My Question is how can i sort and check that the image is too far from all learned subspaces. Also check the image is the same in the database:

I should realise that with OpenCV.

2013-04-23 12:56:55 -0500 commented answer How to start camera in OpenCV and draw a rectangle on a detection? Nullpointer exception.

So her is the solution:

   rectangle( frame, cvPoint(faces[i].x, faces[i].y), cvPoint(faces[i].x + faces[i].width, faces[i].y + faces[i].height), Scalar(0,0,255),1,8,0);

Thank you Steven :)

2013-04-23 12:52:34 -0500 commented answer How to start camera in OpenCV and draw a rectangle on a detection? Nullpointer exception.

hmm thank u it will works :)

   rectangle( frame, faces[i].x, faces[i].y, faces[i].x + faces[i].width, faces[i].y + faces[i].height, Scalar(0,0,255));

I am sitting her and to solve this compiler error:

Error: no matching function for call to 'rectangle (cv :: Mat &, int &, int &, int, int, cv :: Scalar) Note: void cv :: rectangle (cv :: Mat &, cv :: Point cv :: Point, Scalar const &, int, int, int) Note: no known conversion for argument 2 of 'int' to 'cv :: Point Note: no known conversion for argument 2 of 'int' to 'cv :: Rect

2013-04-23 11:48:52 -0500 commented answer How to start camera in OpenCV and draw a rectangle on a detection? Nullpointer exception.

I know this guide and i can compile it. My code is the same code in the link but i want to draw a rectangle not a circle.

2013-04-23 11:00:38 -0500 asked a question How to start camera in OpenCV and draw a rectangle on a detection? Nullpointer exception.

I want to start my Webcam and draw a Rectangle based on the regions returned by face detection. The compiler of Code::Blocks says no error while compiling. If i want to "Run" the Code the webcam started and in a few second after stoped it and i get this Error in Terminal:

http://imageshack.us/photo/my-images/835/20130423173054486x346sc.png/

So i have the following code:

#include "/usr/local/include/opencv/cv.h"
#include "/usr/local/include/opencv/highgui.h"

#include <iostream>
#include <cstdio>

using namespace std;
using namespace cv;

CvRect *r;

const string haarcascade_face = "/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml";
const string haarcascade_eye = "/usr/local/share/OpenCV/haarcascades/haarcascade_eye_tree_eyeglasses.xml";

////String window_name = "Capture - Face detection";

CvHaarClassifierCascade* cascade;
CvMemStorage* storage;

void detectAndDisplay( IplImage* img);


int main()
{
    CascadeClassifier cascade_face, cascade_eye;
    char c;

    cascade = (CvHaarClassifierCascade*)cvLoad("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml");
    CvCapture *capture = 0;



    IplImage *frame;


    if(!cascade_face.load(haarcascade_face))
    {
        cout << "[ERROR]: Could not load classifier cascade Face" <<endl;
        return -1;
    }

    if(!cascade_eye.load(haarcascade_eye))
    {
        cout << "[ERROR]: Could not load classifier cascade Eye" <<endl;
        return -1;
    }

    capture = cvCaptureFromCAM(0); // select camera
    if(capture == NULL)
    {
        cout << "[ERROR] No camera found!" << endl;
        return -1;
    }


    // loop forever till ESC
    for(;;)
    {
        // capture a frame from the camera
        frame = cvQueryFrame(capture);

        // display it
        if(!frame) break;


            detectAndDisplay(frame);


        // test for ESC
        c = cvWaitKey(33);
        if(c == 27 /* ESC */)
           break;
    }

    return 0;
}


void detectAndDisplay(IplImage* img)
{

    int i;

    CvSeq* faces = cvHaarDetectObjects(img, cascade, storage, 1.1, 3, CV_HAAR_DO_CANNY_PRUNING, cvSize (100, 100));


    for(i = 0; i<(faces ? faces->total:0); i++)
    {

         r=(CvRect*)cvGetSeqElem(faces,i);
         cvRectangle(img,
                     cvPoint(r->x, r->y),
                     cvPoint(r->x + r->width, r->y + r->height),
                     CV_RGB(255,0,0), 1, 8, 0);
                     }


   cvShowImage("Capture - Face Detection", img);
}

I dont know what the problem is, can someone help me solve this problem?

Thank you for helping me!!!

2013-04-16 06:24:26 -0500 commented answer face recognition and face detection using Eigenface

This error comes from utility.hpp Because i have no such file in the folder "opencv2/core/utility.hpp

2013-04-16 05:56:26 -0500 commented answer face recognition and face detection using Eigenface

But i couldn't use the following link because i have a ATI-Based System.: https://github.com/Itseez/opencv/blob/master/samples/cpp/facerec_demo.cpp

I have a #include <cuda_runtime.h> compile error. I downloaded the cuda_5.0.35_linux_32_ubuntu10.04-1.run and want to run this but i became other errors.

2013-04-15 08:08:38 -0500 asked a question face recognition and face detection using Eigenface

Hello all there,

I want to start write a program with OpenCV with face recognation and face detection.

I have asked at the weekend this question on this forum and became a answer:

http://answers.opencv.org/question/11552/how-to-start-to-program-face-recognition/

My answer is now:

I have a OpenCV code that started my Webcam. Also can I use(insert) the same to my Webcam start code the function recognition, detection, train and to convert the grayscale the following code?

> #include "highgui\highgui.hpp"
> #include "imgproc\imgproc.hpp"  
> #include < iostream >   
using namespace std;

>using namespace cv;   
>int main()
> {

>     int c;

>     CvCapture *camera;

>     Mat cameraFrame;
>  
>     camera = cvCaptureFromCAM(0); // select 1st camera
>     if(camera == NULL)
>     {
>         cout << "[ERROR] No camera found!" << endl;
>         return -1;
>     }
>  
>     // output window
>     cvNamedWindow("Camera Output", 0);
>  
>     // loop forever till ESC
>     for(;;)
>     {
>         // capture a frame from the camera
>         cameraFrame = cvQueryFrame(camera);
>  
>         // display it
>         if(!cameraFrame.empty())
>             imshow( "Camera Output", cameraFrame );
>         else
>             cout << "[WARN] No frame captured in this loop!" << endl;
>  
>  
>         // test for ESC
>         c = cvWaitKey(10);
>         if(c == 27 /* ESC */)
>             break;
>     }
>  
>     cvReleaseCapture(&camera);
>     cvDestroyWindow("Camera Output");
>  
>     return 0; }

Thanks

2013-04-15 08:03:39 -0500 marked best answer How to start to program face recognition?

Hey There,

i want to write a program face recognition Program with OpenCV. This programm must do: If the face not in database send a sms to user. I have researched in internet that i can use for face recognation haarcascade...xml files or eigenface algorithm.

What ist better eigenface or haarcascade?

How can i start to write this program?

I use the System Linux and i have installed the OpenCV-Libraries and i can use OpenCV-Libraries with CodeBlocks.

Please help me with to write this project.