Ask Your Question

js4267's profile - activity

2019-02-22 21:47:39 -0600 commented question How to improve the CRF threshold for lane detection

Sorry to bother you sir, you have posted twice your question, could you remove one of the two occurence.

2019-02-22 08:54:45 -0600 edited question Determining the proper vectorized from a fundamental one

Determining the proper vectorized from a fundamental one Hello In OpenCV 3.4.x the structure V_RegTraits128 was very he

2019-02-22 08:37:27 -0600 edited question Determining the proper vectorized from a fundamental one

Determining the proper vectorized from a fundamental one Hello In OpenCV 3.4.x the structure V_RegTraits128 was very he

2019-02-22 08:36:56 -0600 edited question Determining the proper vectorized from a fundamental one

Determining the proper vectorized from a fundamental one Hello In OpenCV 3.4.x the structure V_RegTraits128 was very he

2019-02-22 08:21:01 -0600 asked a question Determining the proper vectorized from a fundamental one

Determining the proper vectorized from a fundamental one Hello In OpenCV 3.4.x the structure V_RegTraits128 was very he

2019-02-20 17:44:07 -0600 answered a question difference in translation from python to C++

The reason why I do not had the same output was related to the IQR code. Even when in the discussion with LBerger I stop

2019-02-20 17:41:34 -0600 commented question difference in translation from python to C++

Thank you very much for your help. I finally got it.

2019-02-20 15:20:36 -0600 commented question difference in translation from python to C++

I also edited the post in with the test codes.

2019-02-20 15:19:18 -0600 edited question difference in translation from python to C++

difference in translation from python to C++ Hello I am facing hard time to undestand the difference between two algori

2019-02-20 15:14:52 -0600 commented question difference in translation from python to C++

Hello I restart the evaluation without using the IQR and I still do not have the same output... But I have identically

2019-02-20 06:50:02 -0600 commented question difference in translation from python to C++

I am not yet at my office, I'll check as soon as I'll be there. It would not very surprise me however I remember in one

2019-02-20 05:24:39 -0600 commented question difference in translation from python to C++

I'll update later the code I use in both case. There is no version of C++ utils the utils::iqr it is my IQR code that I

2019-02-19 17:20:20 -0600 commented question difference in translation from python to C++

During the test the main difference is after lines you refer in one case there is 32 elements in idx in python and only

2019-02-19 17:20:11 -0600 commented question difference in translation from python to C++

During the test the main difference is after lines you refer in one case there is 32 elements in idx (in python) and onl

2019-02-19 17:19:56 -0600 commented question difference in translation from python to C++

During the test the main difference is after lines you refer in one case there is 32 elements in idx (in python) and onl

2019-02-19 16:10:55 -0600 commented question difference in translation from python to C++

During the test the main difference is that after lines you refer in one case there is 32 elements in idx (in python) an

2019-02-19 16:10:31 -0600 commented question difference in translation from python to C++

LBerger during the test the main difference is that after lines you refer in one case there is 32 elements in idx (in py

2019-02-19 14:56:22 -0600 commented question difference in translation from python to C++

I am not sure to understand your question. Idx is a list in python a cv::Mat1i in C++ it store the index of the boolean

2019-02-19 13:00:54 -0600 asked a question difference in translation from python to C++

difference in translation from python to C++ Hello I am facing hard time to undestand the difference between two algori

2019-01-29 12:54:08 -0600 marked best answer read formated matrix from text file

Hello

I know OpenCV allow to format matrix using different representation of the data thanks to the function: format e.g.:

std::cout<<cv::format(my_matrix, cv::Formatter::FMT_NUMPY)<<std::endl;

I would like to know if there is an already existing function that can read the formatted data from a text file.

Thanks in advance.

2019-01-28 23:58:51 -0600 received badge  Self-Learner (source)
2019-01-28 14:47:05 -0600 answered a question read formated matrix from text file

Hello Here is the code I made in order to read one or more matrices written in a text file. It is all but the most effi

2019-01-27 10:23:52 -0600 commented answer read formated matrix from text file

@berak I made a mistake. Could you please reopen the question and mark it as solve. Sincerely Sorry.

2019-01-27 10:22:38 -0600 commented answer read formated matrix from text file

Ok thank you very much to both of you :). I actually did a piece of code that can "interpret" the output of the example

2019-01-26 15:24:17 -0600 edited question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:24 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:23 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:22 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:22 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:22 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2019-01-26 15:21:15 -0600 asked a question read formated matrix from text file

read formated matrix from text file Hello I know OpenCV allow to format matrix using different representation of the da

2018-08-19 19:58:58 -0600 commented question Do split and merge in python support UMat some how

In C++ it is possible but it seem that in python it is not.

2018-08-17 06:11:13 -0600 received badge  Supporter (source)
2018-08-16 01:02:50 -0600 edited answer Opencv findCountours is not find all contours

Hello This solution is not optimal but ... it work in such case: import numpy as np import cv2 from matplotlib import

2018-08-15 17:06:47 -0600 answered a question Opencv findCountours is not find all contours

Hello This solution is not optimal but ... it work in such case: import numpy as np import cv2 from matplotlib import

2018-08-12 17:48:22 -0600 received badge  Nice Answer (source)
2018-08-12 09:20:52 -0600 received badge  Teacher (source)
2018-08-11 08:43:50 -0600 commented question how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

cv::Mat1f k = (cv::Mat1f(9,9)<<0,0,0,0,0,0,1,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,1,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0

2018-08-09 23:09:58 -0600 commented question how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

Take a look here

2018-08-09 08:32:36 -0600 commented question Opencv findCountours is not find all contours

After the thresholding apply a bitwise not then apply findContours but with RETR_TREE. findContours return three outputs

2018-08-09 07:12:25 -0600 asked a question interface cusolver SVD with GpuMat

interface cusolver SVD with GpuMat Hello everyone I try to devellop a function that like SVDecomp but which work with c

2018-08-07 14:24:14 -0600 received badge  Enthusiast
2018-07-16 23:20:13 -0600 marked best answer make python binder return a list

Hello

I made a custom module in c++ in which I have a function that extract a sequence of images (aka a video with a uncommon format, not an image set) from a file. My function is declare as:

CV_EXPORTS_W void read_myJFile(const String& filename, OutputArrayOfArrays img);

And instantiate as:

void read_myJFile(const cv::String &filename, cv::OutputArrayOfArrays img, const int &fmt)
{

    CV_Assert(img.isMat() || img.isMatVector() || img.isUMatVector());

    std::vector<cv::Mat> data;
    std::vector<cv::Mat> dst;

// Here goes the code that  fill data with the content of the file specified.

    if(img.isMat()) // work as long data's size is lower than CV_MAX_CN.
        cv::merge(datas,img);

    img.create(data.size(),1,data.front().type());
    img.assign(data);


}

The compilation work like a charm, how when I try to call it from python I receive that message:

OpenCV(4.0.0-pre) /home/smile/lib_dir/opencv/opencv_400/opencv/modules/core/src/matrix_wrap.cpp:1280: error: (-215:Assertion failed) i < 0 in function 'create'

I investigate a little bit it is because the binder pass a Mat container as second argument of my function. Is there any way to tell the binder that the second argument of my function is std::vector<cv::mat> ? Somehow this case is a little bit like the builtin function cv::split in the sense it does not return a cv::Mat

Otherwise what should I do (write) for make the binder understand ?

Thanks in advance for any help

2018-07-16 23:20:13 -0600 received badge  Scholar (source)
2018-07-16 23:19:37 -0600 commented question How to replace color in one ROI with another ROI

An example to adapt could be: // I supposed the type of A and B is CV_8UC3 cv::Mat dst = B; cv::Mat src = A; // adapt

2018-07-16 23:18:44 -0600 commented question How to replace color in one ROI with another ROI

An example to adapt could be: // I supposed the type of A and B is CV_8UC3 cv::Mat dst = B; cv::Mat src = A; // adapt

2018-07-16 23:18:01 -0600 commented question How to replace color in one ROI with another ROI

An example to adapt could be: // I supposed the type of A and B is CV_8UC3 cv::Mat dst = B; cv::Mat src = A; // adapt

2018-07-16 23:17:50 -0600 commented question How to replace color in one ROI with another ROI

An example to adapt could be: // I supposed the type of A and B is CV_8UC3 cv::Mat dst = B; cv::Mat src = A; // adapt