Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Help! me. I have bug with real time IP camera.(when use Split Function)

#include <opencv\cv.h>

include <opencv2\highgui\highgui.hpp>

include <opencv2\imgproc\imgproc.hpp>

include <iostream>

include <stdio.h>

include <opencv2 opencv.hpp="">

using namespace cv; using namespace std;

int main() { /////**************Conect IP Camera*******************

cv::VideoCapture vcap;
cv::Mat image;

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
int frame=0;
while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

/////***********************************************FIre Detection test**********************************************************
//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;
//***********************************************Perspective Transformation test***************************************************
// Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection)
////  ********************************************************************************************************************************

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below 'testvs.exe' (Win32): Loaded 'C:\Users\Yokkung\Documents\Visual Studio 2012\Projects\TestVS\Debug\testvs.exe'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager_etoured.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvd3d9wrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll' 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_ffmpeg2411.dll'. Module was built without symbols. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll' HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

Help! me. I have bug with real time IP camera.(when use Split Function)

#include <opencv\cv.h>

include <opencv2\highgui\highgui.hpp>

include <opencv2\imgproc\imgproc.hpp>

include <iostream>

include <stdio.h>

include <opencv2 opencv.hpp="">

using namespace cv; using namespace std;

int main() { /////**************Conect IP Camera*******************

cv::VideoCapture vcap;
cv::Mat image;

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
int frame=0;
 while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

/////***********************************************FIre Detection test**********************************************************
//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;
//***********************************************Perspective Transformation test***************************************************
// Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection)
////  ********************************************************************************************************************************

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below 'testvs.exe' (Win32): Loaded 'C:\Users\Yokkung\Documents\Visual Studio 2012\Projects\TestVS\Debug\testvs.exe'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager_etoured.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvd3d9wrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll' 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_ffmpeg2411.dll'. Module was built without symbols. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll' HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

Help! me. I have bug with real time IP camera.(when use Split Function)

#include <opencv\cv.h>

include <opencv2\highgui\highgui.hpp>

include <opencv2\imgproc\imgproc.hpp>

include <iostream>

include <stdio.h>

include <opencv2 opencv.hpp="">

using namespace cv; using namespace std;

int main() { /////**************Conect IP Camera*******************

cv::VideoCapture vcap;
cv::Mat image;

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
 int frame=0;
while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

/////***********************************************FIre Detection test**********************************************************
//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;
//***********************************************Perspective Transformation test***************************************************
// Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection)
////  ********************************************************************************************************************************

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below 'testvs.exe' (Win32): Loaded 'C:\Users\Yokkung\Documents\Visual Studio 2012\Projects\TestVS\Debug\testvs.exe'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager_etoured.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvd3d9wrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll' 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_ffmpeg2411.dll'. Module was built without symbols. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll' HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

Help! me. I have bug with real time IP camera.(when use Split Function)

int main() { /////**************Conect IP Camera*******************

cv::VideoCapture vcap;
cv::Mat image;

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
int frame=0;
while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

/////***********************************************FIre Detection test**********************************************************
//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;
//***********************************************Perspective Transformation test***************************************************
// Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection)
////  ********************************************************************************************************************************

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below 'testvs.exe' (Win32): Loaded 'C:\Users\Yokkung\Documents\Visual Studio 2012\Projects\TestVS\Debug\testvs.exe'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager_etoured.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvd3d9wrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll' 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_ffmpeg2411.dll'. Module was built without symbols. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll' HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

Help! me. I have bug with real time IP camera.(when use Split Function)

int main() { /////**************Conect IP Camera******************* { cv::VideoCapture vcap; cv::Mat image;

cv::VideoCapture vcap;
cv::Mat image;

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
int frame=0;
while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

/////***********************************************FIre Detection test**********************************************************
//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;
//***********************************************Perspective Transformation test***************************************************
 // Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection)
////  ********************************************************************************************************************************
detection

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below 'testvs.exe' (Win32): Loaded 'C:\Users\Yokkung\Documents\Visual Studio 2012\Projects\TestVS\Debug\testvs.exe'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc2411d.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager_etoured.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvd3d9wrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll' 'testvs.exe' (Win32): Loaded 'C:\opencv\build\x86\vc10\bin\opencv_ffmpeg2411.dll'. Module was built without symbols. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded. 'testvs.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded. 'testvs.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll' HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

Help! me. I have bug with real time IP camera.(when use Split Function)

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

// This works on a D-Link CDS-932L
const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

//open the video stream and make sure it's opened
if(!vcap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;
    return -1;
}
int frame=0;
while(1) {
    //cv::Mat image;
    if(!vcap.read(image)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey();
    }
    cv::imshow("Camera Window", image);
    if(cv::waitKey(1) >= 0) break;
    printf("%d\n",frame);
    frame=frame+1;

//Load the image
//cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
cv::Mat rgb_image = image; //connect camera done
int m = rgb_image.rows;
int n = rgb_image.cols;
cv::Size s = rgb_image.size();
m = s.height;
n = s.width;

// Input Quadilateral or Image plane coordinates
Point2f inputQuad[4]; 
// Output Quadilateral or World plane coordinates
Point2f outputQuad[4];
// Lambda Matrix
Mat lambda( 2, 4, CV_32FC1 );
// Input and Output Image;
Mat input, output;
// Load the image
input = rgb_image;

// Set the lambda matrix the same type and size as input
lambda = Mat::zeros( input.rows, input.cols, input.type());

// The 4 points that select quadilateral on the input , from top-left in clockwise order
// These four pts are the sides of the rect box used as input 
inputQuad[0] = Point2f( 8.33,275.94);
inputQuad[1] = Point2f( 359.36,193.1);
inputQuad[2] = Point2f( 602.78,219.57);
inputQuad[3] = Point2f( 361.07,433.1);  
// The 4 points where the mapping is to be done , from top-left in clockwise order
outputQuad[0] = Point2f( 100,400 );
outputQuad[1] = Point2f( 100,75);
outputQuad[2] = Point2f( 550,75);
outputQuad[3] = Point2f( 550,400);

// Get the Perspective Transform Matrix i.e. lambda 
lambda = getPerspectiveTransform( inputQuad, outputQuad );
// Apply the Perspective Transform just found to the src image
warpPerspective(input,output,lambda,output.size() );
rgb_image=output;
Mat transformedII2 = (Mat_<double>(m,n)) ;
transformedII2 = rgb_image;
// Display input and output
//imshow("Input",input);
//imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection

//Split HSV plane
vector<Mat> channels;
Mat hsv_image,h_image,s_image,v_image;
cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

Output debugger show below HEAP[testvs.exe]: Invalid address specified to RtlValidateHeap( 006F0000, 0455A358 ) testvs.exe has triggered a breakpoint. The thread 0x110 has exited with code 0 (0x0). The thread 0x12f8 has exited with code 0 (0x0). The thread 0x16c4 has exited with code 0 (0x0). The thread 0x16ec has exited with code 0 (0x0). The thread 0x4fc has exited with code 0 (0x0). The thread 0x1698 has exited with code 0 (0x0). The thread 0xa1c has exited with code 0 (0x0). The program '[3364] testvs.exe' has exited with code 0 (0x0).

I have bug with real time IP camera.(when use Split Function)

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

image;

    // This works on a D-Link CDS-932L
 const std::string videoStreamAddress = "http://admin:[email protected]/video.cgi?.mjpg";

 //open the video stream and make sure it's opened
 if(!vcap.open(videoStreamAddress)) {
     std::cout << "Error opening video stream or file" << std::endl;
     return -1;
 }
 int frame=0;
 while(1) {
     //cv::Mat image;
     if(!vcap.read(image)) {
         std::cout << "No frame" << std::endl;
         cv::waitKey();
     }
     cv::imshow("Camera Window", image);
     if(cv::waitKey(1) >= 0) break;
     printf("%d\n",frame);
     frame=frame+1;

 //Load the image
 //cv::Mat rgb_image = imread( "C:/Users/Yokkung/Desktop/project_combine/1201.png",CV_LOAD_IMAGE_COLOR);// test didnt connect camera
 cv::Mat rgb_image = image; //connect camera done
 int m = rgb_image.rows;
 int n = rgb_image.cols;
 cv::Size s = rgb_image.size();
 m = s.height;
 n = s.width;

 // Input Quadilateral or Image plane coordinates
 Point2f inputQuad[4]; 
 // Output Quadilateral or World plane coordinates
 Point2f outputQuad[4];
 // Lambda Matrix
 Mat lambda( 2, 4, CV_32FC1 );
 // Input and Output Image;
 Mat input, output;
 // Load the image
 input = rgb_image;

 // Set the lambda matrix the same type and size as input
 lambda = Mat::zeros( input.rows, input.cols, input.type());

 // The 4 points that select quadilateral on the input , from top-left in clockwise order
 // These four pts are the sides of the rect box used as input 
 inputQuad[0] = Point2f( 8.33,275.94);
 inputQuad[1] = Point2f( 359.36,193.1);
 inputQuad[2] = Point2f( 602.78,219.57);
 inputQuad[3] = Point2f( 361.07,433.1);  
 // The 4 points where the mapping is to be done , from top-left in clockwise order
 outputQuad[0] = Point2f( 100,400 );
 outputQuad[1] = Point2f( 100,75);
 outputQuad[2] = Point2f( 550,75);
 outputQuad[3] = Point2f( 550,400);

 // Get the Perspective Transform Matrix i.e. lambda 
 lambda = getPerspectiveTransform( inputQuad, outputQuad );
 // Apply the Perspective Transform just found to the src image
 warpPerspective(input,output,lambda,output.size() );
 rgb_image=output;
 Mat transformedII2 = (Mat_<double>(m,n)) ;
 transformedII2 = rgb_image;
 // Display input and output
 //imshow("Input",input);
 //imshow("Output",rgb_image); //USE rgb_image next section (Navigation and fire detection

 //Split HSV plane
 vector<Mat> channels;
 Mat hsv_image,h_image,s_image,v_image;
 cvtColor(rgb_image, hsv_image, CV_BGR2HSV); 
 split(hsv_image, channels); //channels[0], channels[1], channels[2] will contain your H, S, V respectively

// h_image = channels[0]; // s_image = channels[1]; //v_image = channels[2]; //imshow("V", v_image); //imshow("S", s_image); //imshow("H", h_image); } //end capture every frame }

}

Output debugger show below HEAP[testvs.exe]: Invalid address address specified to RtlValidateHeap( RtlValidateHeap( 006F0000, 0455A358 ) ) testvs.exe has has triggered a breakpoint. breakpoint.

The thread 0x110 has exited with code code 0 (0x0). (0x0).

The thread 0x12f8 has exited with code code 0 (0x0). (0x0).

The thread 0x16c4 has exited with code code 0 (0x0). (0x0).

The thread 0x16ec has exited with code code 0 (0x0). (0x0).

The thread 0x4fc has exited with code code 0 (0x0). (0x0).

The thread 0x1698 has exited with code code 0 (0x0). (0x0).

The thread 0xa1c has exited with code code 0 (0x0). (0x0).

The program '[3364] testvs.exe' has has exited with code 0 (0x0).