Ask Your Question

jakr13's profile - activity

2019-06-20 21:54:47 -0600 received badge  Famous Question (source)
2017-12-22 07:29:33 -0600 received badge  Notable Question (source)
2017-06-14 05:48:25 -0600 received badge  Popular Question (source)
2015-07-28 23:45:25 -0600 commented answer imread returns empty Mat

its double slash

2015-07-28 23:43:00 -0600 commented answer imread returns empty Mat

the path is "C:\Users\jakr13\Desktop\Lighthouse.jpg". I didn't copy that properly in my program. Still there is no solution yet!!!

2015-07-28 07:47:36 -0600 commented answer imread returns empty Mat

No, its the same. I used 1 instead, its the same.

2015-07-28 07:26:47 -0600 asked a question imread returns empty Mat

hello everyone,

I have been working on OpenCV 2.4.7 with Visual Studio 2012 express edition for quite a long time and it was working without any flaws. I recently upgraded to OpenCV 2.4.9 and given the path in the environment variables as mentioned. Then I tried running a sample program of loading images from a specific path with the include, library directories and the additional dependencies added to the project properties. The Mat is null even after the imread function. Then I tried upgrading to OpenCV 2.4.10 and its the same with this version too. Then I installed OpenCV 3.0.0, the sample code is working perfectly.

I am wondering why it was not working with OpenCV 2.4.9 and 2.4.10?

The problem was only with windows systems. I have tried in Windows 7 and Windows 8.1. In Linux it works perfectly. Since I tried all the solutions online, Can anyone tell me whats the problem? is it problem with the opencv 2.4.9? I can use 3.0.0 but I want some functions from 2.4.9, so I need to use 2.4.9. Please suggest mesome solution.

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main( int argc, char** argv )
{
    Mat image;  
image = imread("C:\\Desktop\\Lighthouse.jpg", IMREAD_COLOR); 
    if( image.empty() )                      
    {
       cout <<  "Could not open or find the image" << std::endl ;
       return -1;
    }
    namedWindow( "Display window", WINDOW_AUTOSIZE ); 
    imshow( "Display window", image );                
    waitKey(0); 
    return 0;
}

In Environment Variables I added OPENCV_DIR = C:\OpenCV249\build and Path = %OPENCV_DIR%\x86\vc12\bin

In Project properties I have added Additional Include Directories = $(OPENCV_DIR)\include, Additional Library Directories = $(OPENCV_DIR)\x86\vc12\lib and

`Additional Dependencies = opencv_calib3d249.lib
                                         opencv_contrib249.lib
                                         opencv_core249.lib
                                         opencv_features2d249.lib
                                         opencv_flann249.lib
                                         opencv_gpu249.lib
                                         opencv_highgui249.lib
                                         opencv_imgproc249.lib
                                         opencv_legacy249.lib
                                         opencv_ml249.lib
                                         opencv_nonfree249.lib
                                         opencv_objdetect249.lib
                                         opencv_photo249.lib
                                         opencv_stitching249.lib
                                         opencv_ts249.lib
                                         opencv_video249.lib
                                         opencv_videostab249.lib
                                         opencv_superres249.lib
                                         opencv_ocl249.lib`
2015-04-28 14:30:25 -0600 asked a question could not open RTSP link through openCV

Hello Everyone,

I have a RTSP link which I am trying to open through openCV and I have the following code snippet

#include <iostream>
#include <opencv2/opencv.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(){
       cv::VideoCapture cap;
       cv::Mat image;

       const std::string videocap = "rtsp://ipaddress:portaddress/user=admin&password=1234&channel=4&stream=test.sdp";

      if(!cap.open(videocap)){
                 std::cout<<"Error opening video stream or file"<<std::endl;
                 return -1;
      }

     for(;;){
         if(!cap.read(image)){
                  std::cout<<"No frame"<<std::endl;
                  cv::waitKey();
          }
     cv::imshow("output",image);
     if(cv::waitKey(33)==27)break;
     }
   }

Error: Error opening video stream or file.

Where I am going wrong? is the way I written my rtsp link correct?

Thanks in advance!!! jakr13

2014-11-04 07:02:09 -0600 received badge  Editor (source)
2014-11-04 07:01:37 -0600 asked a question Finding Co-ordinates for the Image below

Co-ordinate_Image

Hi everyone,

I have the above image and I now wanted to find the four co-ordinates as shown in the pic. I know to find the co-ordinates of rectangle, but I dont know how to do for this. any suggestions will be highly appreciated!!!

Thanks in advance!!!

Jakr13

2012-11-28 18:25:38 -0600 commented question error while reading an image

my OS is windows 8.

2012-11-28 18:21:08 -0600 asked a question error while reading an image

Hi everyone,

I am newbie to OpenCV. I had installed OpenCV 2.4.3 and visual studio 2010, also i linked opencv libraries properly with visual studio 2010. Then i tried a program of loading an image and i got the image, but the image is getting closed after sometime( 30 sec ) and my visual studio is getting hanged. It is happening for every program which i used to debug. can anyone tell me wat is the problem?

also is cmake necessary for OpenCV 2.4.3?

thanx jakr13