Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

reading csv file in opencv

Hello everyone I want to write code in opencv for reading csv file in opencv. I have csv file(which i directly got from MS excel) and I want to read it and store it in a array. My csv files has 2 rows and 108 colums. How to do that? Thanks in advance!!!

include <opencv2\highgui\highgui.hpp>

            #include <opencv2\core\core.hpp>
            #include <opencv2\core\mat.hpp>
            #include <opencv2\imgproc\imgproc.hpp>
            #include<opencv2\features2d\features2d.hpp>
            #include<iostream>
            #include<math.h>
            #include<conio.h>
            #include<fstream>
            #include<sstream>
            using namespace std;
            using namespace cv;
            char filename[80];

             int main()
            {
                ifstream reader;
                Mat vect=Mat::zeros(2,108,CV_8U);
                reader.open("periods of arnold transform.csv");
                //What to do from this onwards???
                return 0;
            }

reading csv file in opencv

Hello everyone I want to write code in opencv for reading csv file in opencv. I have csv file(which i directly got from MS excel) and I want to read it and store it in a array. My csv files has 2 rows and 108 colums. How to do that? Thanks in advance!!!

include <opencv2\highgui\highgui.hpp>

            #include <opencv2\highgui\highgui.hpp>
            #include <opencv2\core\core.hpp>
            #include <opencv2\core\mat.hpp>
            #include <opencv2\imgproc\imgproc.hpp>
            #include<opencv2\features2d\features2d.hpp>
            #include<iostream>
            #include<math.h>
            #include<conio.h>
            #include<fstream>
            #include<sstream>
            using namespace std;
            using namespace cv;
            char filename[80];

             int main()
            {
                ifstream reader;
                Mat vect=Mat::zeros(2,108,CV_8U);
                reader.open("periods of arnold transform.csv");
                //What to do from this onwards???
                return 0;
            }