Ask Your Question

ambikav's profile - activity

2018-12-05 19:01:20 -0500 received badge  Notable Question (source)
2018-08-21 12:42:26 -0500 received badge  Popular Question (source)
2017-10-02 16:46:42 -0500 commented question opencv triangulatePoints() giving NaN values

Here are the two matrices - Cam1 = [1000 0 500 0 0 1000 500

2017-10-02 16:46:17 -0500 commented question opencv triangulatePoints() giving NaN values

Here are the two matrices - Cam1 = [1000 0 500 0 0 1000 500

2017-09-26 01:50:56 -0500 asked a question opencv triangulatePoints() giving NaN values

opencv triangulatePoints() giving NaN values I'm trying to implement standard Structure from Motion code but the triangu

2017-08-16 14:10:15 -0500 asked a question opencv2/xfeatures2d/cuda.hpp no such file or directory

System information (version)

•OpenCV => 3.2 •Operating System / Platform =>Windows 64 Bit •Compiler => MinGW (CodeBlocks)

Detailed description

Downloaded and extracted openCV 3.2 and opencv_contrib 3.2 version. Used Cmake GUI to go through standard steps. It configures and generates without error. Then while building openCV.cbp project in CodeBlocks I get the following error in stitching module -

opencv2/xfeatures2d/cuda.hpp no such file or directory

Steps to reproduce

Note: if I build openCV 3.2 on its own (i.e. without the extra modules) it builds perfectly fine.

Any fix for this issue?

2017-07-17 14:43:54 -0500 commented answer VideoCapture not working in opencv android

Hi

I did try the MJPG encoded avi files but even that did not work. I used ffmpeg command line tool to do that. But still not able to read the file.

Are there particular instructions for ffmpeg tool that you can refer me to?

2017-07-14 10:54:24 -0500 commented question VideoCapture not working in opencv android

extern "C"

{

void JNICALL Java_com_example_ambikav_opencvvideo_MainActivity_myfun(

JNIEnv *env, jobject instance, jstring path) {

nPath = env->GetStringUTFChars(path, NULL);

LOGD("path: %s \n",nPath);

cv::VideoCapture videoCapture(nPath);

if(videoCapture.isOpened()){

LOGD("yes");

}

else{

LOGD("no");

2017-07-14 10:52:59 -0500 commented question VideoCapture not working in opencv android

extern "C" { void JNICALL Java_com_example_ambikav_opencvvideo_MainActivity_myfun( JNIEnv *env, jobject instance, jstring path) { nPath = env->GetStringUTFChars(path, NULL); LOGD("path: %s \n",nPath);

cv::VideoCapture videoCapture(nPath);
if(videoCapture.isOpened()){
    LOGD("yes");
}
else{
    LOGD("no");
2017-07-14 10:37:41 -0500 asked a question VideoCapture not working in opencv android

I'm trying to use VideoCapture() in an android application. The app makes a JNI call to the cpp file which has the videocapture() call and passes it a video path.

  • I have provided the storage read and write permissions.
  • The path is also in correct format like (/storage/emulated/0/filename.avi)
  • The video file that I put into my device is first encoded as mjpeg and then as avi using ffmpeg on my PC.

Still I get false result when I check VideoCapture.isopened().

Any suggestions to fix this issue?

2017-07-14 10:29:18 -0500 commented answer How to create a Mat (1D) with sequential values?

Great. Thanks!

2017-07-05 19:25:40 -0500 asked a question How to create a Mat (1D) with sequential values?

In Matlab following can be done -

Matrix=startVal:endVal; which results in a row vector with first element of startVal, incremented by one each time and last value being endVal.

Is there a similar way to create a 1D Mat in openCV?

2017-07-05 19:23:29 -0500 answered a question In case of image inputs for estimateRigidTransform() what feature points are computed? Are they similar to SIFT/SURF/FAST/ORB?

Thanks for clarifying this!

2017-07-03 15:40:44 -0500 asked a question In case of image inputs for estimateRigidTransform() what feature points are computed? Are they similar to SIFT/SURF/FAST/ORB?

I'm starting to work with estimateRigidTransform(). It allows two types of inputs - Vector or mat of 2D points OR two input images. It is mentioned in docs that some feature points are computed in case the inputs are images. What are these features?