Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how can I create CSV?

Hi friends

As a mater of fact, I read some articles about creating CSV file but unfortunately I couldn't understand how to make it. can you please tell me step by step?

My code is written in c++ and I downloaded ORL DB (AT & T).

I need to use it like this:

string filename = "FDB/yaml/at.txt";

how can I create CSV?CSV file?

Hi friends

As a mater of fact, I read some articles about creating CSV file but unfortunately I couldn't understand how to make it. can you please tell me step by step?

My code is written in c++ and I downloaded ORL DB (AT & T).

I need to use it like this:

string filename = "FDB/yaml/at.txt";
click to hide/show revision 3
retagged

how can I create CSV file?

Hi friends

As a mater of fact, I read some articles about creating CSV file but unfortunately I couldn't understand how to make it. can you please tell me step by step?

My code is written in c++ and I downloaded ORL DB (AT & T).

I need to use it like this:

string filename = "FDB/yaml/at.txt";

how can I When I use OpenCV 2.4,the image does not load!

In my prev problem, I found out that the image doesn't load in my project when I use OpenCV 2.4 so I couldn't create CSV file?

Hi friends

As a mater of fact, I read some articles about creating CSV file file.

when I was using OpenCV 3.0.0 every thing was OK and I could load the image via imread

but unfortunately I couldn't understand how to make it. can you please tell me step by step?

My now I'm using OpenCV 2.4 but the image doesn't load and always img.empty() command return true

here is my code but the img is written in c++ and I downloaded ORL DB (AT & T).

I need to use it like this:null:

string filename // faceRecognitionTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
#include "opencv2\contrib\contrib.hpp"
#include "opencv2\core\core.hpp"
#include "opencv2\highgui\highgui.hpp"
#include "opencv2\objdetect\objdetect.hpp"
#include "opencv2\opencv.hpp"
#include "opencv2\imgproc\imgproc.hpp"
#include "FaceRec.h"

//file handling
#include <fstream>
#include <sstream>

using namespace std;
using namespace cv;


Mat img;
bool b=false;
int _tmain(int argc, _TCHAR* argv[])
{
 img = "FDB/yaml/at.txt";
imread("f.jpg",CV_LOAD_IMAGE_GRAYSCALE);
    if (b=img.empty())
    {
        return -1;
    }


    saveMatToCsv(img,"mycs.csv");

    //fisherFaceTrainer();
    return 0;
}

When I use OpenCV 2.4,the image does not load!Can't create CSV file

In my prev problem, Can someone tell me how I found out that the image doesn't load in my project when I use OpenCV 2.4 so I couldn't can create CSV file.file?

when I was using OpenCV 3.0.0 every thing was OK and I could load the image via imread

but now I'm using OpenCV 2.4 but the image doesn't load and always img.empty() command return true

here is my code but the img is null:

// faceRecognitionTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
#include "opencv2\contrib\contrib.hpp"
#include "opencv2\core\core.hpp"
#include "opencv2\highgui\highgui.hpp"
#include "opencv2\objdetect\objdetect.hpp"
#include "opencv2\opencv.hpp"
#include "opencv2\imgproc\imgproc.hpp"
#include "FaceRec.h"

//file handling
#include <fstream>
#include <sstream>

using namespace std;
using namespace cv;


Mat img;
bool b=false;
int _tmain(int argc, _TCHAR* argv[])
{
 img = imread("f.jpg",CV_LOAD_IMAGE_GRAYSCALE);
    if (b=img.empty())
    {
        return -1;
    }


    saveMatToCsv(img,"mycs.csv");

    //fisherFaceTrainer();
    return 0;
}