Ask Your Question

dhaniarianda's profile - activity

2015-08-08 08:21:49 -0600 received badge  Enthusiast
2015-08-07 00:23:00 -0600 commented question Error when Capturing RTSP IP Camera

I had tried the solution that you gave but the result was the same. What must I do to solve that problem ? Please help me

2015-08-04 22:18:06 -0600 asked a question Error when Capturing RTSP IP Camera

Hi all ! I am working to connect my IP Camera using openCV 2.4.11 and VS 2012. My IP Camera supports H.264 video compression. When I program it using openCV, it can be connected and I can capture image from it but when I try to mount my camera in parking area of my campus and I run my program again, I got some error. This error is like this. How to solve this problem ? Thank you.image description

This is my code :

#pragma once
#include "stdafx.h"
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <iostream>

using namespace SistemKameraWrapper;
using namespace cv;

IplImage *InputImage1;

void CameraWrapper::AksesKamera()
{
    CvCapture *Kamera1 = cvCaptureFromFile("rtsp://192.168.1.127:554//user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream");
    cvNamedWindow("input image 1", CV_WINDOW_FREERATIO);
    cvResizeWindow("input image 1", 400, 300);

    while(1)
    {
        InputImage1 = cvQueryFrame (Kamera1);
        cvShowImage("input image 1",InputImage1);
        int key = cvWaitKey(1);
        if ((key==27)|(key==13)) break; //key 27 escape, key 13 enter
    }
    cvReleaseCapture(&Kamera1);
    cvDestroyWindow("input image 1");
    return;
}
2015-08-04 22:12:01 -0600 commented question Error when capture RTSP IP Camera using OpenCV 2.10 and Visual Studio 2008

Ok thank you all. I have upgraded my openCV to 2.4.11 and my Visual Studio to VS 2012 and it works :) God bless you all :)

2015-07-27 19:12:30 -0600 received badge  Editor (source)
2015-07-27 19:09:37 -0600 commented question Error when capture RTSP IP Camera using OpenCV 2.10 and Visual Studio 2008

I have ever tried to use opencv 2.4.10 using VS 2008 but I always got some error, Missing MSVCP120.dll . How can I solve that problem ?

2015-07-27 09:50:21 -0600 asked a question Error when capture RTSP IP Camera using OpenCV 2.10 and Visual Studio 2008

Hi ! I am newbie in openCV. I made a program to access IP Camera that support RTSP protocol using OpenCV 2.10 and Visual Studio 2008. I made this program using Win32 Application. When I debug my program, my frame could open once and I got some error.

The error said:

Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. You may try recompiling using gcc >= 4.2. Do not report crashes to FFmpeg developers.

An unhandled exception of type 'System.AccessViolationException' occurred in CobaKameraIPConsole.exe

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

This is my code :

#include "stdafx.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"

IplImage *in_img;

using namespace System;

int main(array<System::String ^> ^args)
{

    CvCapture *URLKamera1 = cvCaptureFromFile("rtsp://192.168.1.125:554//user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream");

    while(1)
    {
        in_img = cvQueryFrame (URLKamera1);
        cvShowImage("input image",in_img);
        int key = cvWaitKey(1);
        if ((key==27)|(key==13)) break; //key 27 escape, key 13 enter
    }
    cvReleaseCapture(&URLKamera1);
    cvDestroyWindow("input image");
    return 0; 
}