Ask Your Question

nagaraju's profile - activity

2014-03-20 00:24:37 -0600 received badge  Editor (source)
2014-03-20 00:14:17 -0600 asked a question How to access video from NVR

Hello,

I want to access video from Network Video Recorder(NVR). My NVR connected with multiple ip cameras.Now i want access the NVR. What url format should i fallow ?

2014-03-15 06:48:43 -0600 answered a question OpenCV vs EMGU
enter code here
2014-03-15 06:48:04 -0600 received badge  Supporter (source)
2014-03-15 06:46:52 -0600 commented question R6010 abort () called:When accessing my web cam

Actually i am new to opencv what are the new api's ?? i got this basic example from O'Rilly OpenCV book

2014-03-15 05:57:10 -0600 asked a question R6010 abort () called:When accessing my web cam

Hi... I try to access webcam from my system. But it throws an error "R6010 abort () called" But the same code working perfectly in my laptop I am using logitech webcam in my system. The sample code also provided here. Please Help me in this regard.

int main(int argc, char** argv) {

cvNamedWindow("Example2", CV_WINDOW_AUTOSIZE);
CvCapture* capture;
if (argc == 1) {
    capture = cvCreateCameraCapture(0);
}
else {
    capture = cvCreateFileCapture(argv[1]);
}
assert(capture != NULL);
IplImage* frame;
while (1) {
    frame = cvQueryFrame(capture);
    if (!frame) break;
    cvShowImage("Example2", frame);
    char c = cvWaitKey(33);
    if (c == 27) break;
}
cvReleaseCapture(&capture);
cvDestroyWindow("Example2");

}